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

fix(BA-515): Let the vfolder REST API accept vfolder UUIDs as intended #3451

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

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Jan 14, 2025

resolves #3450 (BA-515)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation

📚 Documentation preview 📚: https://sorna--3451.org.readthedocs.build/en/3451/


📚 Documentation preview 📚: https://sorna-ko--3451.org.readthedocs.build/ko/3451/

@achimnol achimnol added this to the 24.09 milestone Jan 14, 2025
@achimnol achimnol added the comp:manager Related to Manager component label Jan 14, 2025
@achimnol achimnol self-assigned this Jan 14, 2025
@github-actions github-actions bot added the size:S 10~30 LoC label Jan 14, 2025
@github-actions github-actions bot added area:docs Documentations size:L 100~500 LoC and removed size:S 10~30 LoC labels Jan 14, 2025
@github-actions github-actions bot added size:S 10~30 LoC and removed size:L 100~500 LoC labels Jan 14, 2025
@github-actions github-actions bot added size:M 30~100 LoC and removed size:S 10~30 LoC labels Jan 14, 2025
@github-actions github-actions bot added size:L 100~500 LoC and removed size:M 30~100 LoC labels Jan 14, 2025
@github-actions github-actions bot added size:M 30~100 LoC and removed size:L 100~500 LoC labels Jan 14, 2025
@github-actions github-actions bot added size:L 100~500 LoC and removed size:M 30~100 LoC labels Jan 14, 2025
Copy link
Collaborator

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions github-actions bot added size:XL 500~ LoC and removed size:L 100~500 LoC labels Jan 15, 2025
@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels Jan 15, 2025
@github-actions github-actions bot added size:XL 500~ LoC and removed size:L 100~500 LoC labels Jan 15, 2025
@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels Jan 15, 2025
Comment on lines +297 to +307
folder_name_or_id: str | uuid.UUID
piece = request.match_info["name"]
try:
folder_name_or_id = uuid.UUID(piece)
except ValueError:
folder_name_or_id = piece
return await handler(
request, await resolve_vfolder_rows(request, perm, folder_name), *args, **kwargs
request,
await resolve_vfolder_rows(request, perm, folder_name_or_id),
*args,
**kwargs,
Copy link
Member

Choose a reason for hiding this comment

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

How about parsing folder id value to UUID in resolve_vfolder_rows() rather than in with_vfolder_rows_resolved()?
There are some handler functions that call resolve_vfolder_rows()

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 size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing UUID conversion when accepting vfolder "name or ID" in the vfolder REST APIs
3 participants