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

feat(BA-760): Add scaling_group_name column to resource preset table #3718

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Feb 16, 2025

resolves #3716 (BA-760)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@github-actions github-actions bot added comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated size:M 30~100 LoC labels Feb 16, 2025
Copy link
Member Author

@fregataa fregataa changed the title feat: Add resource_group_id column to resource preset table feat(BA-: Add resource_group_id column to resource preset table Feb 16, 2025
@fregataa fregataa changed the title feat(BA-: Add resource_group_id column to resource preset table feat(BA-760): Add resource_group_id column to resource preset table Feb 16, 2025
@fregataa fregataa marked this pull request as ready for review February 17, 2025 04:14
@fregataa fregataa changed the title feat(BA-760): Add resource_group_id column to resource preset table feat(BA-760): Add scaling_group_name column to resource preset table Feb 17, 2025
@fregataa fregataa force-pushed the topic/02-16-feat_add_resource_group_id_column_to_resource_preset_table branch from 0553600 to 7523ea2 Compare February 17, 2025 10:14
@HyeockJinKim HyeockJinKim self-requested a review February 20, 2025 02:35
Comment on lines +280 to +284
resource_preset_rows = relationship(
"ResourcePresetRow",
back_populates="scaling_group_row",
primaryjoin="ScalingGroupRow.name == foreign(ResourcePresetRow.scaling_group_name)",
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if you need to join based on the name, as it's not an ID value that needs to be joined.

Copy link
Member Author

@fregataa fregataa Feb 20, 2025

Choose a reason for hiding this comment

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

Sadly, scaling_groups table does not have id column and name column is a primary key of it

@fregataa fregataa force-pushed the topic/02-16-feat_add_resource_group_id_column_to_resource_preset_table branch from 7523ea2 to 30a689e Compare February 20, 2025 06:20
@github-actions github-actions bot added the area:docs Documentations label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Documentations comp:manager Related to Manager component require:db-migration Automatically set when alembic migrations are added or updated size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a 'resource_group' column to resource preset table
2 participants