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

Workspace base rtt #21793

Merged
merged 10 commits into from
Jul 29, 2022
Merged

Workspace base rtt #21793

merged 10 commits into from
Jul 29, 2022

Conversation

it-harrison
Copy link
Contributor

@it-harrison it-harrison commented Jul 27, 2022

Description

This PR adds workspaces to vets-website

Original issue(s)

department-of-veterans-affairs/va.gov-team#39205

Testing done

local testing passed. project built successfully; browser testing in local, dev, staging, prod , RI environments.

Screenshots

Acceptance criteria

  • does not change vets-website behavior

Definition of done

  • Events are logged appropriately
  • Documentation has been updated, if applicable
  • A link has been provided to the originating GitHub issue (or connected to it via ZenHub)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs

@it-harrison it-harrison requested a review from a team as a code owner July 27, 2022 19:33
@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 27, 2022 19:41 Inactive
@@ -0,0 +1,111 @@
{
// Javascript settings.
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally the JSON format doesn't allow comments, which I think is why these comments are highlighted in red

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Normally the JSON format doesn't allow comments, which I think is why these comments are highlighted in red

that makes sense. we had to change the extension for workspaces.

package.json Outdated
@@ -304,7 +304,7 @@
"mapbox-gl": "^1.12.0",
"markdown-it": "^12.3.2",
"markdown-it-link-attributes": "^4.0.0",
"moment": "~2.24.0",
"moment": "^2.29.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Any potential side effects from this upgrade? If so I'd recommend doing it in a separate PR

Copy link
Contributor

@timwright12 timwright12 Jul 27, 2022

Choose a reason for hiding this comment

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

Same. unless this is required, let's move it to a new PR

@@ -0,0 +1,24 @@
# get argument or default to "."
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not immediately sure what the -f means in this filename. Consider removing that, or expanding it to be more descriptive (-force?)

Copy link
Contributor

Choose a reason for hiding this comment

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

The f was meant to signify folder, but update this file and script name accordingly

@va-vfs-bot va-vfs-bot requested a review from a team July 27, 2022 20:18
Copy link

@va-vfs-bot va-vfs-bot left a comment

Choose a reason for hiding this comment

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

ESLint is disabled

vets-website uses ESLint to help enforce code quality. In most situations we would like ESLint to remain enabled.

What you can do

See if the code can be refactored to avoid disabling ESLint, or wait for a VSP review.

@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 27, 2022 20:19 Inactive
"**/cached-path-relative": "1.1.0",
"**/moment": "^2.29.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this removed on purpose? I assume we still need it in there, no?

Copy link
Contributor

@rmessina1010 rmessina1010 Jul 27, 2022

Choose a reason for hiding this comment

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

"**/yargs-parser": "13.1.2"
"punycode": "1.4.1"
"**/moment": "^2.29.2"

We removed these because otherwise Yarn would attempt to alter the .lockfile (even when the weren't any dependency changes in the package.json), in turn blocking CI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

without removing these listings in the resolutions field yarn install --frozen-lockfile throws an error: error Your lockfile needs to be updated, but yarn was run with '--frozen-lockfile'.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, but I'm pretty sure these are in there for a reason. Usually security issues. Please confirm before merging

Copy link
Contributor

@timwright12 timwright12 Jul 28, 2022

Choose a reason for hiding this comment

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

This is the PR from @jhonnyoddball that set the moment resolution: #20768 (high severity security issue)

Webpack 5 upgrade brought in punycode (also @jhonnyoddball ) #19403

Copy link
Contributor

Choose a reason for hiding this comment

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

Here's more background on the punycode/IE issue: mathiasbynens/punycode.js#86

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it was there because of security vulnerability

Copy link
Contributor

Choose a reason for hiding this comment

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

We will need to find a work around it

Copy link
Contributor

Choose a reason for hiding this comment

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

With the latest changes in this PR, looking at the yarn.lock, I see:

"moment@>= 2.9.0", moment@^2.22.1:
  version "2.29.4"

and

[email protected], [email protected], punycode@^1.3.2, punycode@^2.1.0, punycode@^2.1.1:
  version "1.4.1"

We should be fine with resolving to those versions. I would only be concerned if I saw yarn.lock changing to resolve to an older version of moment (security issues) or a newer version of punycode (IE issues)

"@babel/runtime": "^7.15.4",
"punycode": "1.4.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Previously we had to downgrade punycode because newer versions of punycode caused errors in IE 11. Make sure to test thoroughly in IE 11

@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 27, 2022 23:54 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 28, 2022 00:17 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 28, 2022 15:01 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/workspace-base-RTT/main July 29, 2022 15:08 Inactive
Copy link
Contributor

@rmessina1010 rmessina1010 left a comment

Choose a reason for hiding this comment

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

LGTM,F

@rmessina1010 rmessina1010 merged commit aaf6601 into main Jul 29, 2022
@rmessina1010 rmessina1010 deleted the workspace-base-RTT branch July 29, 2022 17:10
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.

6 participants