Skip to content
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

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

ebradbury
Copy link
Contributor

PR Checklist

PR Type

What kind of change does this PR introduce?

  • [ ✅ ] Bugfix (fixes an issue)
  • Feature (adds functionality)
  • Code style update
  • Refactoring (no functional changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

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?

  • Yes
  • [ ✅ ] No

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.

@ebradbury ebradbury requested a review from a team as a code owner January 14, 2025 15:15
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhhh nice find!!!!!

@benfurber
Copy link
Member

Awesome. Thanks @ebradbury. If you see the checks the linter is currently failing. Running yarn format locally should fix that up nice and quick. :)

Copy link

cypress bot commented Jan 16, 2025

onearmy-community-platform    Run #6762

Run Properties:  status check passed Passed #6762  •  git commit 9423027976: Merge branch 'master' of github.com:ebradbury/community-platform
Project onearmy-community-platform
Branch Review pull/4074
Run status status check passed Passed #6762
Run duration 05m 28s
Commit git commit 9423027976: Merge branch 'master' of github.com:ebradbury/community-platform
Committer Elliot Bradbury
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 78
View all changes introduced in this branch ↗︎

@benfurber benfurber merged commit b687fd7 into ONEARMY:master Jan 16, 2025
16 checks passed
@benfurber
Copy link
Member

@allcontributors add @ebradbury for code

Copy link
Contributor

@benfurber

I've put up a pull request to add @ebradbury! 🎉

@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 2.27.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[bug] Dont reset downloadcounter when editting files
4 participants