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

Added the mattermost-webapp from the monorepo of mattermost #1074

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

Conversation

Kshitij-Katiyar
Copy link
Contributor

Summary

Added the mattermost-webapp from the mono repo of mattermost to add the newer mattermost-redux package. Took the reference from the https://github.com/mattermost/mattermost-plugin-calls/pull/555/files.

@hanzei hanzei added the 2: Dev Review Requires review by a core committer label May 7, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

These seem like unrelated changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was facing a very peculiar error https://github.com/mattermost/mattermost-plugin-jira/actions/runs/8938919453/job/24553976441, so there was a package named file-hound of frontend, and after it was installed, it was creating an empty go file, and in the lint as well as test CI, we run commands like go test ./... which basically going to work on all files including the node modules and that's why we were getting the above error. So for now I have made the go commands to only work in the server folder and not outside of it.
@hanzei

Copy link
Contributor

@mickmister mickmister May 14, 2024

Choose a reason for hiding this comment

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

I think the problem @hanzei may have with this is that the build folder is no longer being checked. Can we instead make it so only webapp exists in the monorepo checkout folder? Either we can do something replacing the whole repo with just the webapp directory like:

mv mattermost-webapp/webapp .
rm -rf mattermost-webapp
mv webapp mattermost-webapp

Naming the cloned directory just mattermost may make more sense here. Then this becomes:

mv mattermost/webapp .
rm -rf mattermost
mv webapp mattermost-webapp

Alternatively we can do a sparse checkout, but that seems more complicated https://stackoverflow.com/a/52270636

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.

Nice work on this @Kshitij-Katiyar 🚀

In general LGTM 👍 Just some comments for discussion, and one request to move the monorepo commit hash to package.json to keep all the dependency information in one place.

webapp/package.json Outdated Show resolved Hide resolved
webapp/package.json Outdated Show resolved Hide resolved
webapp/package.json Show resolved Hide resolved
webapp/install_mattermost_webapp.sh Outdated Show resolved Hide resolved
webapp/package.json Outdated Show resolved Hide resolved
webapp/package-lock.json Outdated Show resolved Hide resolved
Base automatically changed from upgrade_package to master May 30, 2024 16:55
@Kshitij-Katiyar Kshitij-Katiyar added the 3: QA Review Requires review by a QA tester label Jun 13, 2024
webapp/install_mattermost_webapp.sh Outdated Show resolved Hide resolved
@@ -69,8 +69,8 @@ endif
# weird reports at golangci-lint step
ifneq ($(HAS_SERVER),)
@echo Running golangci-lint
$(GO) vet ./server/...
$(GOBIN)/golangci-lint run ./server/...
$(GO) vet ./server/... ./build/...
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this? Or will $(GO) vet ./... work since we changed how the monorepo checkout works?

Copy link
Contributor

Choose a reason for hiding this comment

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

The reason I ask, is we want to keep the Makefile as identical to the starter template's Makefile as we can. This change creates drift between the two repos

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 Yeah we still require the file-hound package and its respective files.

@wiggin77 wiggin77 requested review from hanzei and hmhealey July 12, 2024 17:46
Copy link
Member

@hmhealey hmhealey 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 to me, but I did have a question to ask about

webapp/install_mattermost_webapp.sh Show resolved Hide resolved
@hanzei hanzei removed their request for review July 29, 2024 09:21
@raghavaggarwal2308 raghavaggarwal2308 added this to the v4.3.0 milestone Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants