Skip to content

Ui/update datefns#9524

Closed
andaley wants to merge 11 commits intomainfrom
ui/update-datefns
Closed

Ui/update datefns#9524
andaley wants to merge 11 commits intomainfrom
ui/update-datefns

Conversation

@andaley
Copy link
Contributor

@andaley andaley commented Jul 17, 2020

Update date-fns

Update date-fns to 2.0.0 which requires us update all of our date-related helpers. The most notable change we had to account for is that all of the date-fns functions no longer accept strings as arguments. You'll notice we also had to switch some of the formatting arguments from YYYY to yyyy as a result. See the full list of breaking changes when upgrading to date-fns 2.0.0 here.

Testing

This PR requires a considerable QA as it changes the behavior of our date-from-now and date-format helpers. We now return an empty string and console log an error if the formatting doesn't work, so there's a chance some dates may be missing in the UI.

Navigate to the various pages of the UI where date-format or date-from-now is used, such as the replication secondaries add modal which displays the expiration date. These pages should still display the date as expected.

Here's an example of the replication secondaries add modal:
image

@andaley andaley force-pushed the ui/update-datefns branch from 563f604 to 75a14e0 Compare July 17, 2020 20:57
@andaley andaley closed this Jul 23, 2020
@andaley
Copy link
Contributor Author

andaley commented Jul 23, 2020

@chelshaw @Monkeychip i'm closing this PR for now since it wasn't needed to fix the transit bug from last week and i don't see a huge need to update datefns just yet. if you encounter a reason to during the Ember upgrade you can re-open it, rebase and merge. :)

@chelshaw
Copy link
Contributor

Reopening this so we can take advantage of RFC3339 formatting (available in >=2.8) which is the format used for Pricing Metrics api parameters.

@chelshaw chelshaw reopened this Sep 29, 2020
@aphorise
Copy link
Contributor

@noelledaley @chelshaw is this PR still relevant?

@hashishaw
Copy link
Contributor

No longer relevant, updated in #10848 😄

@hashishaw hashishaw closed this Aug 17, 2022
@hashishaw hashishaw deleted the ui/update-datefns branch August 17, 2022 15:43
pull bot pushed a commit to mayocream/vault that referenced this pull request Sep 22, 2025
…rp#9478) (hashicorp#9524)

* make allowed and denied_parameters compare lists

* change name of env var

* add changelog

* linter fixes and unnecessary code removal

Co-authored-by: Bruno Oliveira de Souza <bruno.souza@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants