-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: Incorrect listing status #2015
Conversation
✔️ Deploy Preview for dev-bloom ready! 🔨 Explore the source changes: 0206823 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-bloom/deploys/6176bf330131ac00075170df 😎 Browse the preview: https://deploy-preview-2015--dev-bloom.netlify.app |
✔️ Deploy Preview for dev-partners-bloom ready! 🔨 Explore the source changes: 0206823 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-partners-bloom/deploys/6176bf332bb00e0008f6bc40 😎 Browse the preview: https://deploy-preview-2015--dev-partners-bloom.netlify.app |
✔️ Deploy Preview for dev-storybook-bloom ready! 🔨 Explore the source changes: 0206823 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/6176bf331a8d270007e97c2b 😎 Browse the preview: https://deploy-preview-2015--dev-storybook-bloom.netlify.app |
From what's in the issue this looks good but I cannot get back from the Closed state. So if I make a draft listing with a due date in the past this branch still keeps it as a draft which is good. Then I publish it and its closed which makes sense. Then I change the due date to the future and save but it is still closed. It shows up in the closed section in the website but its due date is in the future. |
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.
@dominikx96 , please see @emilyjablonski's comment
Hm when I click the "Publish" button, a listing is active again. This behavior is only when you click on the "Save and exit" button. How do we want to resolve it? I think when a listing is closed, you should use
|
@dominikx96 Just putting a note here from what we talked about in standup - when a listing is Closed and we change the due date to the future and hit save and exit, the status should be published |
@emilyjablonski updated. I had to implement it frontend-side because there is also a |
* fix: Fix lisitng status on past application due date * docs: Update changelog * fix: Update status to active if the dueDate is future * fix: Fix incorrect useMemo dependency
Pull Request Template
Issue
Addresses #1949
Description
Fixes incorrect status (closed) if the application due date is before the current time even if the application is a draft.
Type of change
How Can This Be Tested/Reviewed?
Try to create a new listing with a past due date ad try to save it as a draft. After saving, a status still should be
draft
;Checklist:
yarn generate:client
if I made backend changes