-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
raylrui
commented
Jan 23, 2025
•
edited
Loading
edited
- lookup_value_regex = "[^/]+" # to allow id prefix like 'seq.' in the url
- remove prefix when prefix added in "associated_id"
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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