-
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
fix: raw text data for gcp #36
Conversation
fd019d9
to
b4f57e1
Compare
54c3c0b
to
3a34956
Compare
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.
LGTM.
Would be good if US could be added to the regex
encord_agents/core/constants.py
Outdated
@@ -0,0 +1,3 @@ | |||
ENCORD_DOMAIN_REGEX = ( | |||
r"^https:\/\/(?:(?:cord-ai-development--[\w\d]+-[\w\d]+\.web.app)|(?:(?:dev|staging|app)\.encord\.com))$" |
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.
Also need us suffix 🇺🇸 . I think optional us suffix on dev|staging|app but may need to check:
i.e: https://app.us.encord.com/ is the path to the base app
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.
Uh - well spotted. I was not aware of this tbh.
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.
@Jim-Encord fixed this now. Also added a unit test for the CORS regex just to make it clear what it should and shouldn't match.
|
||
if request.is_json: | ||
frame_data = FrameData.model_validate(request.get_json()) | ||
else: |
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.
Is this necessary or just defensive?
Is it worth having a try/ except around these conditions given that it could throw?
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.
Might add a TODO to remove it by end of January where we'll remove the reverse feature flag. It's a protection for anyone who update the repo where it used to work. Those will have the reverse FF set until eo-jan. So upgrading like this should keep it working for them.
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.
Added the TODO
No description provided.