Skip to content

fix(BA-1229): Change wrong fieldspec #4268

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

Merged
merged 2 commits into from
Apr 24, 2025
Merged

Conversation

seedspirit
Copy link
Contributor

resolves #4267 (BA-1229)

@seedspirit seedspirit requested review from Copilot, jopemachine and HyeockJinKim and removed request for Copilot and jopemachine April 24, 2025 08:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR corrects an incorrect field mapping for the resource_policy in the user model.

  • Fixes the mapping for resource_policy from the wrong key ("domain_name") to the proper key ("resource_policy").

@@ -505,7 +505,7 @@ async def load_all(
"modified_at": ("modified_at", dtparse),
"domain_name": ("domain_name", None),
"role": ("role", enum_field_getter(UserRole)),
"resource_policy": ("domain_name", None),
"resource_policy": ("resource_policy", None),
Copy link
Preview

Copilot AI Apr 24, 2025

Choose a reason for hiding this comment

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

The previous mapping for 'resource_policy' incorrectly used 'domain_name' as its field name. The corrected mapping now accurately maps the 'resource_policy' field, ensuring consistency with the UserInput definition.

Copilot uses AI. Check for mistakes.

@github-actions github-actions bot added size:XS ~10 LoC comp:manager Related to Manager component labels Apr 24, 2025
@jopemachine
Copy link
Member

jopemachine commented Apr 24, 2025

Please create news fragment

@HyeockJinKim HyeockJinKim added this pull request to the merge queue Apr 24, 2025
Merged via the queue into main with commit 2e9ef9d Apr 24, 2025
29 checks passed
@HyeockJinKim HyeockJinKim deleted the fix/change-wrong-field-spec branch April 24, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix wrong fieldspec in User
3 participants