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

[v4.3] Show "Unavailable" status for products with a future Available On date #5743

Merged
merged 2 commits into from
May 8, 2024

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented May 3, 2024

Backport

This will backport the following commits from main to v4.3:

Questions ?

Please refer to the Backport tool documentation

@github-actions github-actions bot requested a review from a team as a code owner May 3, 2024 16:16
@tvdeyen tvdeyen changed the title [v4.3] Show "Unavailable" status for products with a future `Available On` date [v4.3] Show "Unavailable" status for products with a future Available On date May 3, 2024
Currently if a product has the `available_on` date in the future, it
will still show a status of Available, even though it is not available
for purchase on the store. This change proposes a new status of
`Unavailable` for scheduled products.

Co-authored-by: Harmony Bouvier <harmony@super.gd>
(cherry picked from commit e404e44)
This change fixes an issue where certain browsers (namely Firefox) will
not render the date field correctly when it contains the full date and
time format as the value. This change just truncates the available_on
and discontinue_on values to match the precision expected, rather switch
to the datetime-local input which is not fully supported in all
browsers, but also maintains the old admin behaviour.

Co-authored-by: Andrew Stewart <andrew@super.gd>
(cherry picked from commit 1fdb686)
@tvdeyen
Copy link
Member

tvdeyen commented May 8, 2024

rebased with v4.3 to fix issues with sqlite3

@tvdeyen tvdeyen merged commit 7afa10e into v4.3 May 8, 2024
11 checks passed
@tvdeyen tvdeyen deleted the backport/v4.3/pr-5734 branch May 8, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants