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

Bugfixes for platform delete #184

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

josvandervelde
Copy link

@josvandervelde josvandervelde commented Nov 10, 2023

Making sure platform deletion works as planned.

Decided to use hard-delete for platforms. That should not be problematic (platforms are not indexed by ES anyway), and this makes it easier to keep the unique index platform.name, easy for foreign key constraints.

The usage of the decorator @declared_attr is suggested by sqlalchemy (https://docs.sqlalchemy.org/en/13/orm/extensions/declarative/api.html#sqlalchemy.ext.declarative.declared_attr) instead of classproperty. I just adopted this, because SqlAlchemy suggests it, and because classproperty was giving errors.

…ere, because they will not be indexed by ES, and this makes it easier to keep the unique index platform.name, easy for foreign key constraints
Copy link
Collaborator

@Taniya-Das Taniya-Das 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.

@josvandervelde josvandervelde merged commit ac64d0c into develop Nov 13, 2023
1 check passed
@josvandervelde josvandervelde deleted the bugfix/platform-deletion branch November 13, 2023 12:56
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.

2 participants