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

chore: Permission group migrations #33332

Merged
merged 11 commits into from May 21, 2024
Merged

chore: Permission group migrations #33332

merged 11 commits into from May 21, 2024

Conversation

vivonk
Copy link
Contributor

@vivonk vivonk commented May 9, 2024

Description

Fixes #Issue Number
or
Fixes Issue URL

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags=""

🔍 Cypress test results

Caution

If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

@vivonk vivonk requested a review from abhvsn May 9, 2024 12:27
@vivonk vivonk changed the base branch from pg to chore/create-tenant-anonymous-user-migration May 9, 2024 12:28
Base automatically changed from chore/create-tenant-anonymous-user-migration to pg May 13, 2024 05:26
@vivonk vivonk marked this pull request as ready for review May 16, 2024 19:56
@vivonk vivonk changed the title chore: WIP Permission group migrations chore: Permission group migrations May 17, 2024
Copy link
Contributor

@abhvsn abhvsn left a comment

Choose a reason for hiding this comment

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

Minor comments!

vivonk and others added 4 commits May 20, 2024 18:12
## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
public class V11__cleanPermissionsInPermissionGroups extends AppsmithJavaMigration {
@Override
public void migrate(JdbcTemplate jdbcTemplate) throws Exception {
String sql = "UPDATE permission_group SET permissions = NULL";
Copy link
Member

Choose a reason for hiding this comment

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

This clears the column for the whole table, no? Don't we need this column's data anymore? Can we remove it in today's release branch itself then? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't reuqire this column anymore, it's deprecated. Removing it from release is a legit solution but that will require efforts and understanding of 1-2 places where this field is used + some initial migrations require this field so removing it is not a easy task.
This is a tech debt that we are carry forwarding from release to pg.

@vivonk vivonk merged commit 78960e6 into pg May 21, 2024
4 checks passed
@vivonk vivonk deleted the chore/pg-migrations branch May 21, 2024 06:45
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.

None yet

4 participants