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

regression: Move WorkspaceCredentials models to CE #33657

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Oct 18, 2024

Proposed changes (including videos or screenshots)

Migration 316 breaks community edition, the migration tries to use some models which are only present in EE, which crashes the server.

image

Fixing it by moving the required models to CE

Issue(s)

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Oct 18, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Oct 18, 2024

⚠️ No Changeset found

Latest commit: bf5cea6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

What happens if I don't have the license but then I install it?

@ggazzo
Copy link
Member

ggazzo commented Oct 18, 2024

I don't see much problem with a model being public, what we should be concerned about are the controllers/logic

@yash-rajpal
Copy link
Member Author

What happens if I don't have the license but then I install it?

Good Question, I have no idea, maybe @Gustrb can help us.

Copy link
Contributor

github-actions bot commented Oct 18, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33657/
on branch gh-pages at 2024-10-18 16:37 UTC

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.85%. Comparing base (94a1119) to head (bf5cea6).
Report is 10 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33657   +/-   ##
========================================
  Coverage    74.85%   74.85%           
========================================
  Files          470      470           
  Lines        20744    20744           
  Branches      5295     5295           
========================================
  Hits         15528    15528           
  Misses        4595     4595           
  Partials       621      621           
Flag Coverage Δ
unit 74.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@KevLehman
Copy link
Contributor

2nd vote for making the model CE. Nothing on the model needs to be EE as long as whatever is calling it is on EE.

@yash-rajpal
Copy link
Member Author

3rd vote on moving the model to CE.

I'll take care of this.

@Gustrb
Copy link
Contributor

Gustrb commented Oct 18, 2024

Yea I think the best approach would be to make the models public and avoid having to do weird things such as migrating on license change

@yash-rajpal yash-rajpal force-pushed the regression/migration-316 branch from b69124c to 607996c Compare October 18, 2024 16:04
@yash-rajpal yash-rajpal requested a review from ggazzo October 18, 2024 16:05
@yash-rajpal
Copy link
Member Author

@ggazzo Moved the models to CE

@KevLehman
Copy link
Contributor

Can you update the PR title as well? We're not skipping migration anymore

@yash-rajpal yash-rajpal changed the title regression: Skip migration 316 for community workspaces regression: Move WorkspaceCredentials models to CE Oct 18, 2024
@yash-rajpal yash-rajpal marked this pull request as ready for review October 18, 2024 16:29
@yash-rajpal yash-rajpal requested a review from a team as a code owner October 18, 2024 16:29
@KevLehman KevLehman added this to the 7.0 milestone Oct 18, 2024
@KevLehman KevLehman added the stat: QA assured Means it has been tested and approved by a company insider label Oct 18, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 18, 2024
@ggazzo ggazzo merged commit 10ee065 into develop Oct 18, 2024
52 checks passed
@ggazzo ggazzo deleted the regression/migration-316 branch October 18, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants