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

Update tags. #1131

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Update tags. #1131

merged 3 commits into from
Oct 2, 2024

Conversation

Andrei-Dolgolev
Copy link
Contributor

No description provided.

@@ -1184,7 +1184,7 @@ def create_resource_for_user(
def chekc_user_resource_access(
Copy link
Contributor

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,
Copy link
Contributor

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",
Copy link
Contributor

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
?

Copy link
Contributor Author

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"
Copy link
Contributor

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?

Copy link
Contributor

@kompotkot kompotkot left a comment

Choose a reason for hiding this comment

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

lg

@Andrei-Dolgolev Andrei-Dolgolev merged commit 1fe6726 into main Oct 2, 2024
1 check failed
@Andrei-Dolgolev Andrei-Dolgolev deleted the add-instance-tag branch October 2, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants