-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weather story uploads: overwrite upload #2091
Conversation
6756629
to
ebc3cfd
Compare
@eric-gade Is this the evidence you needed? (Asking because I'm not sure if these were the correct tests or not.)
|
@sspj-does-weather I'm going to add you as a reviewer. If you are able to do as the PR instructions say (that the image is saved, then ovewritten after running outside tests twice), then feel free to approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Nice work, @jamestranovich-noaa! I left one optional suggestion.
drupal-test-1 | [NOTICE] [weather_cms] [2024-11-26T19:00:15] weather story upload: moving public://JAN/wfo_weather_story_upload/field_fullimage/test-upload_0.png to public://JAN/wfo_weather_story_upload/field_fullimage/test-upload.png | uid: 2 | request-uri: http://localhost:9080/jsonapi/node/wfo_weather_story_upload
drupal-test-1 | [NOTICE] [weather_cms] [2024-11-26T19:00:15] weather story upload: moving public://JAN/wfo_weather_story_upload/field_smallimage/test-upload_0.png to public://JAN/wfo_weather_story_upload/field_smallimage/test-upload.png | uid: 2 | request-uri: http://localhost:9080/jsonapi/node/wfo_weather_story_upload
b90980a
to
6e8cbf7
Compare
What does this PR do? 🛠️
NB #2082 should be reviewed/merged first
Partially addresses #2033 -- specifically, by overwriting weather story images as they come in. I've also changed it so that uploads use the derived wfo for clarity.
What does the reviewer need to know? 🤔
I've added a logging message for this specific path. Example:
To test, please run outside tests twice and observe that
/web/sites/default/files/unknown/wfo_weather_story_upload/field_fullimage/test-upload.png
is overwritten properly.