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

[MM-35] Update plugin with respect to phase 1 upgrades #428

Merged
merged 8 commits into from
Jan 30, 2024
Merged

Conversation

ayusht2810
Copy link
Contributor

Summary

Updated plugin with respect to phase 1 upgrades

  • Updated Makefile
  • Updated version in nvmrc file and update package-lock.json file.
  • Updated developer docs link in the readme file

Ticket Link

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (60d1605) 33.53% compared to head (9305bc3) 33.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #428   +/-   ##
=======================================
  Coverage   33.53%   33.53%           
=======================================
  Files          22       22           
  Lines        3996     3996           
=======================================
  Hits         1340     1340           
  Misses       2523     2523           
  Partials      133      133           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avas27JTG avas27JTG marked this pull request as draft December 19, 2023 14:29
@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Dec 19, 2023
@ayusht2810 ayusht2810 marked this pull request as ready for review December 19, 2023 16:07
Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

Thanks for these updates @ayusht2810 👍 I have two remaining requests on this. I've updated the doc to reflect this as well https://docs.google.com/document/d/12IoQTHxFHc7yvM-oxPrBTx_LWW6lDVVego8TWkBOQE0/edit

webapp/package.json Show resolved Hide resolved
Makefile Show resolved Hide resolved
@ayusht2810
Copy link
Contributor Author

@mickmister fixed the review comments. Please re-review.

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

Awesome LGTM 👍

Makefile Outdated
@@ -40,6 +46,7 @@ all: check-style test dist
check-style: webapp/node_modules
@echo Checking for style guide compliance

## TODO: Add check-types as well
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the result when we run npm run check-types right now? Maybe the errors we can take care of while this is open? That way the project is ready to be worked on with other typescript contributions. No worries if you think it doesn't make sense to do that in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mickmister On adding the above script, we were getting various errors. So I think we can do that in another PR.

@mickmister mickmister added the 3: QA Review Requires review by a QA tester label Dec 20, 2023
Copy link

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

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

Tested for all the basic features and functionalities, working fine for all of them. Nothing seems to break, approved.

@ayusht2810 ayusht2810 added QA Review Done PR has been approved by QA and removed 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Jan 18, 2024
@mickmister
Copy link
Contributor

mickmister commented Jan 18, 2024

@ayusht2810 Heads up that there are linting issues to resolve here

Note that for the no-use-before-define rule, we can just disable it in webapp/.eslintrc.json, since the @typescript-eslint/no-use-before-define rule already takes care of this. This is a known issue with this eslint rule working with typescript. To disable the rule you can just set this value:

"no-use-before-define": [
2,
{
"classes": false,
"functions": false,
"variables": false
}
],

to

"no-use-before-define": "off"

I think we can modify the camelcase rule with ignoreDestructuring: true https://eslint.org/docs/latest/rules/camelcase#ignoredestructuring-true


The import/order rules and many others can be resolved by running npm run fix


For the import/no-unresolved, I think this solution may work https://stackoverflow.com/a/57678771

@ayusht2810 ayusht2810 removed the QA Review Done PR has been approved by QA label Jan 24, 2024
@ayusht2810 ayusht2810 added the 2: Dev Review Requires review by a core committer label Jan 29, 2024
@ayusht2810
Copy link
Contributor Author

ayusht2810 commented Jan 29, 2024

@mickmister fixed the lint errors and typescript errors.

I think we can modify the camelcase rule with ignoreDestructuring: true

Regarding the camelcase issue in the plugin, I tried to fix it by applying the above rule, but I was still getting camelcase lint errors in the plugin. For now, I have disabled the rule. Let me know your thoughts on this issue.

@mickmister
Copy link
Contributor

@ayusht2810 Disabling the camelCase rule sounds fine to me. Thanks for looking into that

@mickmister
Copy link
Contributor

Are we able to include the latest PRs from the starter template like mattermost/mattermost-plugin-starter-template#192, or would you prefer to do them in a separate PR? A separate PR probably makes sense to minimize scope and get these merged.

I wonder if we can have an automated process to cherry-pick starter template PRs into plugin projects. That would make keeping things up-to-date a lot easier. We could batch them with multiple cherry-picks in one PR if we wanted to as well.

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

LGTM, great work @ayusht2810 🚀

@mickmister mickmister added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Jan 30, 2024
@mickmister mickmister merged commit 7d0e97c into master Jan 30, 2024
9 checks passed
@mickmister mickmister deleted the MM-35 branch January 30, 2024 19:45
@ayusht2810 ayusht2810 mentioned this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants