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

[webpack] Migrate a few tempus dominus pages #35383

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

orangejenny
Copy link
Contributor

Technical Summary

Update tempus dominus config for webpack, migrated a couple of pages.

Safety Assurance

Safety story

The only non-flagged page is user API keys, which I've smoke tested on staging.

Automated test coverage

no

QA Plan

no

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@orangejenny orangejenny added the product/invisible Change has no end-user visible impact label Nov 18, 2024
@@ -3,7 +3,8 @@ hqDefine("app_execution/js/workflow_charts", [
'jquery',
'moment/moment',
'd3/d3.min',
'nvd3/nv.d3.latest.min', // version 1.1.10 has a bug that affects line charts with multiple series
'nvd3-1.8.6', // version 1.1.10 has a bug that affects line charts with multiple series
Copy link
Contributor

Choose a reason for hiding this comment

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

Version numbers should normally only be in package.json so we don't have to change other files when upgrading. Is it possible to use some alias/name that does not include the version number?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That makes sense. I added an alias in the webpack config so that application code doesn't need the version number, does that work? 429a2ca

@@ -13,6 +13,8 @@ const aliases = {
// remove this file and the yarn modernizr post-install step
"modernizr": "hqwebapp/js/lib/modernizr",

"nvd3/nv.d3.latest.min": "nvd3-1.8.6/build/nv.d3.min",
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this is fine since it looks like dependabot will never upgrade this library (because package.json depends on the specific version). That doesn't seem like an ideal situation, but I don't have a better suggestion if that's the only way to get the version we need.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if the comment // version 1.1.10 has a bug that affects line charts with multiple series should be moved over here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants