-
Notifications
You must be signed in to change notification settings - Fork 49
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
Update tags. #1131
Update tags. #1131
Conversation
@@ -1184,7 +1184,7 @@ def create_resource_for_user( | |||
def chekc_user_resource_access( |
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.
chekc_user_resource_access -> check_user_resource_access
@@ -109,12 +109,14 @@ async def add_subscription_handler( | |||
user_token=token, | |||
) | |||
|
|||
if not results: | |||
if results is None: | |||
raise MoonstreamHTTPException( | |||
status_code=403, |
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.
Better to type 404, and error "Not found" even user do not have access to it
@@ -309,6 +309,8 @@ | |||
"user_id", | |||
"address", | |||
"blockchain", | |||
"customer_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.
What about journal entities changes (at spire). We added here reserved tags, but not modified the source. Why just not to use required_fields
https://spire.bugout.dev/journals/docs#tag/entities/operation/create_journal_entity__journal_id__entities_post
?
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.
Old one remain same. New one will have new tags
@@ -624,7 +638,7 @@ async def update_subscriptions_handler( | |||
f"{key}:{value}" | |||
for tag in subscription_required_fields | |||
for key, value in tag.items() | |||
if key not in MOONSTREAM_ENTITIES_RESERVED_TAGS | |||
if key not in MOONSTREAM_ENTITIES_RESERVED_TAGS and key != "instance_name" |
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.
Why do we need here check instance name, since instance_name
already in reserved tags?
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.
lg
No description provided.