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

add lookup_value_regex to allow special char in url #821

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

raylrui
Copy link
Contributor

@raylrui raylrui commented Jan 23, 2025

  1. lookup_value_regex = "[^/]+" # to allow id prefix like 'seq.' in the url
  2. remove prefix when prefix added in "associated_id"

@raylrui raylrui added bug Something isn't working fix labels Jan 23, 2025
@raylrui raylrui self-assigned this Jan 23, 2025
@raylrui
Copy link
Contributor Author

raylrui commented Jan 23, 2025

I will revert this PR from UI when this PR merge to the Prod, because pord will has issues about api call without this changes here. @williamputraintan

@@ -40,7 +41,7 @@ def create(self, request, *args, **kwargs):

# Add workflow_run_id to the request data
mutable_data = request.data.copy()
mutable_data['association_id'] = seq_orcabus_id
mutable_data['association_id'] = seq_orcabus_id.split('.')[1] # remove prefix for association_id
Copy link
Member

Choose a reason for hiding this comment

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

I think the OrcaBusIdField do this already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, just miss that, not work before but it works now

@raylrui raylrui added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit d1bb38e Jan 23, 2025
6 checks passed
@raylrui raylrui deleted the fix/add-lookup-regex branch January 23, 2025 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants