Add environmental variable to control path of media #683

Sloučený
epsilon-phase sloučil 1 commit z Media-path do master 2019-10-28 21:28:29 +00:00
epsilon-phase okomentoval/a 2019-10-24 17:10:15 +00:00 (Migrováno z github.com)

This was a request made on the matrix chat that will make it possible to release a snap version, that environmental variable being MEDIA_UPLOAD_DIRECTORY

This was a request made on the matrix chat that will make it possible to release a snap version, that environmental variable being `MEDIA_UPLOAD_DIRECTORY`
codecov[bot] okomentoval/a 2019-10-24 17:28:53 +00:00 (Migrováno z github.com)

Codecov Report

Merging #683 into master will decrease coverage by 0.03%.
The diff coverage is 21.05%.

@@            Coverage Diff            @@
##           master    #683      +/-   ##
=========================================
- Coverage   39.83%   39.8%   -0.04%     
=========================================
  Files          72      72              
  Lines        9368    9383      +15     
  Branches     2219    2219              
=========================================
+ Hits         3732    3735       +3     
- Misses       4580    4592      +12     
  Partials     1056    1056
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/683?src=pr&el=h1) Report > Merging [#683](https://codecov.io/gh/Plume-org/Plume/pull/683?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/dd6d39135e71cd4f4f22befb45da46d89d39ae33?src=pr&el=desc) will **decrease** coverage by `0.03%`. > The diff coverage is `21.05%`. ```diff @@ Coverage Diff @@ ## master #683 +/- ## ========================================= - Coverage 39.83% 39.8% -0.04% ========================================= Files 72 72 Lines 9368 9383 +15 Branches 2219 2219 ========================================= + Hits 3732 3735 +3 - Misses 4580 4592 +12 Partials 1056 1056 ```
RAOF (Migrováno z github.com) posoudil/a 2019-10-27 01:06:34 +00:00
RAOF (Migrováno z github.com) zanechal komentář

This looks correct to me; I'm not familiar with Rocket's #[get()] routing stuff, so someone else should check that this is correct.

I'll give it a test! Thanks!

This looks correct to me; I'm not familiar with Rocket's `#[get()]` routing stuff, so someone else should check that this is correct. I'll give it a test! Thanks!
igalic (Migrováno z github.com) posoudil/a 2019-10-27 17:32:52 +00:00
igalic (Migrováno z github.com) zanechal komentář

👀

👀
igalic (Migrováno z github.com) okomentoval/a 2019-10-27 17:32:09 +00:00

is this supposed to be deterministic?

is this supposed to be deterministic?
epsilon-phase (Migrováno z github.com) posoudil/a 2019-10-27 17:36:38 +00:00
epsilon-phase (Migrováno z github.com) okomentoval/a 2019-10-27 17:36:38 +00:00

Is it deterministic? It seems to come up with new GUIDs each piece we upload.
(We don't think we quite understand)

Is it deterministic? It seems to come up with new GUIDs each piece we upload. (We don't think we quite understand)
igalic (Migrováno z github.com) posoudil/a 2019-10-27 17:56:44 +00:00
igalic (Migrováno z github.com) okomentoval/a 2019-10-27 17:56:43 +00:00

aah, never mind, i was thinking of something else
(the deterministially random id we use per release for our assets)

aah, never mind, i was thinking of something else (the deterministially random id we use per release for *our* assets)
trinity-1686a posoudil/a 2019-10-27 21:19:36 +00:00
trinity-1686a zanechal komentář
Vlastník

I haven't tested yet, but apart from a minor path mistake, it looks good to me 🙂

I haven't tested yet, but apart from a minor path mistake, it looks good to me :slightly_smiling_face:
Vlastník

the media part is already included in the default value of media_directory (static/media). I don't know if it should be removed from here or from there (it depends on how custom directory should appear), but I think there is one too much

the `media` part is already included in the default value of media_directory (`static/media`). I don't know if it should be removed from here or from there (it depends on how custom directory should appear), but I think there is one too much
epsilon-phase (Migrováno z github.com) posoudil/a 2019-10-28 01:51:49 +00:00
epsilon-phase (Migrováno z github.com) okomentoval/a 2019-10-28 01:51:49 +00:00

Oh, thanks for the catch.

Oh, thanks for the catch.
RAOF okomentoval/a 2019-10-28 07:04:48 +00:00 (Migrováno z github.com)

I've built a snap from this locally, setting the new MEDIA_UPLOAD_DIRECTORY appropriately, and it works!

Once this lands I'll push a PR for the snapcraft metadata and we'll have a fully-functional snap that I can then document! 😁

I've built a snap from this locally, setting the new `MEDIA_UPLOAD_DIRECTORY` appropriately, and it works! Once this lands I'll push a PR for the snapcraft metadata and we'll have a fully-functional snap that I can then document! :grin:
elegaanz (Migrováno z github.com) schválil/a tyto změny 2019-10-28 21:28:20 +00:00
elegaanz (Migrováno z github.com) zanechal komentář

Looks good to me! Thank you for your help! 👍

Looks good to me! Thank you for your help! :+1:
Přihlaste se pro zapojení do konverzace.
Žádní posuzovatelé
Žádný milník
Žádný projekt
Žádní přiřazení uživatelé
2 účastníků
Oznámení
Termín dokončení
Termín dokončení není platný nebo je mimo rozsah. Použijte prosím formát „rrrr-mm-dd“.

Žádný termín dokončení.

Závislosti

Nejsou nastaveny žádné závislosti.

Reference: Plume/Plume#683
K dispozici není žádný popis.