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

Update create date of bounty only once. #1520

Closed
3 tasks
ecurrencyhodler opened this issue Feb 16, 2024 · 4 comments · Fixed by #1541
Closed
3 tasks

Update create date of bounty only once. #1520

ecurrencyhodler opened this issue Feb 16, 2024 · 4 comments · Fixed by #1541
Assignees
Labels
bounties bug Something isn't working Posted

Comments

@ecurrencyhodler
Copy link
Contributor

ecurrencyhodler commented Feb 16, 2024

Describe the bug
Superadmin is displaying incorrect bounties. The query of the date range should account for bounty creation date. But instead it's showing something different. Possible latest activity.

Here is an example. I set a custom date range from 9/9-9/15 and saw this bounty:
https://community.sphinx.chat/bounty/1302
Screenshot 2024-02-15 at 4 16 02 PM
When I click the bounty it also shows the creation date as "a day".
Screenshot 2024-02-15 at 4 15 55 PM
But I posted this bounty 1/29
Screenshot 2024-02-15 at 4 16 16 PM

Upon further investigation, the problem is that the field "created" gets updated whenever a bounty gets saved.

Expected behavior
Creation date of bounties should reflect the date it was created only. The "created" field should only get updated once, which is when a bounty gets created.

Desktop (please complete the following information):

  • Browser: Chrome

Acceptance Criteria

  • I have tested on Chrome desktop
  • I have rebased and tested locally before submitting my PR
  • I can submit a PR within 2 days of taking the bounty

Here is an example backend test

@ecurrencyhodler
Copy link
Contributor Author

ecurrencyhodler commented Feb 16, 2024

@elraphty can you take a look at this issue when you get a chance? Let's find the cause and see what is needed to fix then make some bounties.

@ecurrencyhodler ecurrencyhodler moved this from 🆕 New to 🧐 Scope Needed in Bounties Platform Feb 16, 2024
@ecurrencyhodler ecurrencyhodler changed the title Bounties displayed in superadmin are incorrect Update create date of bounty only once. Feb 20, 2024
@ecurrencyhodler ecurrencyhodler moved this from 🧐 Scope Needed to 🧨 To Do in Bounties Platform Feb 20, 2024
@ColdMice
Copy link

@ecurrencyhodler would this be available to work on? or this is reserved?

@wright-eric
Copy link
Contributor

Assign

@ecurrencyhodler
Copy link
Contributor Author

Sorry just missed your comment cold mice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounties bug Something isn't working Posted
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants