-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Fixes #4033 [bug] Dont reset downloadcounter when editting files #4074
Conversation
… preserving count when file is replaced
@@ -241,10 +241,6 @@ export class ResearchStore extends ModuleStore { | |||
logger.debug('upload images ok') | |||
this.updateUpdateUploadStatus('Images') | |||
|
|||
if ((update.files && update.files.length) || update.fileLink) { | |||
updateWithMeta.downloadCount = 0 |
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.
ahhhhh nice find!!!!!
Awesome. Thanks @ebradbury. If you see the checks the linter is currently failing. Running |
onearmy-community-platform Run #6762
Run Properties:
|
Project |
onearmy-community-platform
|
Branch Review |
pull/4074
|
Run status |
Passed #6762
|
Run duration | 05m 28s |
Commit |
9423027976: Merge branch 'master' of github.com:ebradbury/community-platform
|
Committer | Elliot Bradbury |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
0
|
Skipped |
0
|
Passing |
78
|
View all changes introduced in this branch ↗︎ |
@allcontributors add @ebradbury for code |
I've put up a pull request to add @ebradbury! 🎉 |
🎉 This PR is included in version 2.27.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR Checklist
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Replacing a file on a research update resets the file download counter.
What is the new behavior?
The research update file download counter is not reset when the file is replaced.
Describe the new behaviour
If useful, provide screenshot or capture to highlight main changes
Does this PR introduce a breaking change?
Git Issues
Closes #4033
What happens next?
Thanks for the contribution! We try to make sure all PRs are reviewed ahead of our monthly maintainers call (first Monday of the month)
If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.
If you need more immediate feedback you can try reaching out on Discord in the Community Platform
development
channel.