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

Issue 2387 #2503

Merged
merged 1 commit into from
Dec 4, 2021
Merged

Issue 2387 #2503

merged 1 commit into from
Dec 4, 2021

Conversation

LuigiZaccagnini
Copy link
Contributor

Fixes #2387

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

  • Updated the root package.json packages.
  • Added a global textEncoder for upgrade jsdom

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@gitpod-io
Copy link

gitpod-io bot commented Nov 20, 2021

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

Looks good, tests are all passing. One small fix.

package.json Outdated Show resolved Hide resolved
package.json Outdated
"@wordpress/wordcount": "2.15.0",
"@elastic/elasticsearch": "7.15.0",
"@elastic/elasticsearch-mock": "0.3.1",
"@wordpress/wordcount": "3.2.3",
"body-parser": "1.19.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Filed #2504 to remove this. We don't need it.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can't remove this withing fixing the other things I mention in #2504. Please add body-parser back, and read review comments more carefully.

package.json Show resolved Hide resolved
src/api/status/public/index.html Show resolved Hide resolved
src/backend/data/stats.js Outdated Show resolved Hide resolved
@Qiwen-Yu
Copy link
Contributor

Mark this one as the code review template and example to me.

src/backend/data/stats.js Outdated Show resolved Hide resolved
humphd
humphd previously approved these changes Nov 22, 2021
Copy link
Member

@manekenpix manekenpix left a comment

Choose a reason for hiding this comment

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

Please don't merge master into your branch. Revert that change and rebase.

Copy link
Member

@manekenpix manekenpix left a comment

Choose a reason for hiding this comment

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

I'll block this until the PR gets rebased.

humphd
humphd previously approved these changes Nov 23, 2021
@humphd
Copy link
Contributor

humphd commented Nov 28, 2021

Can we get another review on this?

manekenpix
manekenpix previously approved these changes Nov 28, 2021
@humphd
Copy link
Contributor

humphd commented Nov 28, 2021

@LuigiZaccagnini this needs another rebase:

git checkout master
git pull upstream master
git checkout issue-2387
git rebase master
# fix merge conflict in package.json
git push origin issue-2387 -f

Then ping me so I can review and merge.

@humphd
Copy link
Contributor

humphd commented Dec 3, 2021

What's happening with this?

@humphd
Copy link
Contributor

humphd commented Dec 3, 2021

This is out of date with package.json, please fix.

outdated normalize url, Bull and JSDom

Updated jsdom and fixed ReferenceError: TextEncoder is not defined

Upgraded Bull package

Prettier files

Removed body-parser and wordcount from package.json

Removed wordcount

Prettier index

Added wordcount back to stats.js

Added wordcount module

Updated worcount
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

I don't understand the changes to the non-package.json files in this. Why would prettier change things?

I think the rest is good. I'll add @menghif as a reviewer, since this will cause churn in #2545

@humphd humphd requested a review from menghif December 3, 2021 22:47
@LuigiZaccagnini
Copy link
Contributor Author

The change in src/backend/utils/html/dom.js was done because the updates in the package.json required an encoder for JSDom. The other changes were prettier as they weren't passing the tests on my end with the rebase.

@humphd
Copy link
Contributor

humphd commented Dec 3, 2021

OK, sounds good.

Copy link
Contributor

@menghif menghif left a comment

Choose a reason for hiding this comment

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

Looks good! This will impact #2563 but seems like no one is working on it yet.

@humphd
Copy link
Contributor

humphd commented Dec 4, 2021

OK, going to merge this. FYI @HyperTHD, @manekenpix, in case this breaks staging in ways we haven't tested.

@humphd humphd merged commit 3b8f365 into Seneca-CDOT:master Dec 4, 2021
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.

Outdated dependencies for package.json in root directory
5 participants