-
Notifications
You must be signed in to change notification settings - Fork 131
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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/src/components/modals/channel_subscriptions/edit_channel_subscription.tsx
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/... |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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
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.