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

analytics: Send merge_base and more RemoteRealm info to the bouncer. #30513

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

mateuszmandera
Copy link
Contributor

Adds sending a bit more information to the bouncer. At the realm level:

  • realm.description
  • realm.icon_url

At the server level:

  • ZULIP_MERGE_BASE

org_type: int = 0
icon_url: str = ""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure whether we want to send icon_url here or if we meant the actual image data - so went with the basic option first.

@mateuszmandera
Copy link
Contributor Author

Hmm the test_analytics_api is breaking, going to fix this soon.

@timabbott
Copy link
Sponsor Member

Maybe worth just doing merge_base for this PR, since I think there's some stuff to figure out for the other fields, if we want to do them at all.

The test asserts entries about the zephyr realm anyway. The reason the
filter hasn't been limiting the query to zephyr is that we might
simultaneously want to ensure no other realms received changes - but
that doesn't seem quite right, given that the test doesn't dilligently
set up the initial conditions for all realms to have control over what
exactly happens with them. That makes this logic pretty fragile since if
some new (potentially unrelated) changes to Realm/RemoteRealm initial
state make it so some updates to other realms occur during the early
analytics upload calls in the test, the remote_audit_logs asserts here
will break in a very annoying to debug way.

If we want this query to be general, without limiting to the zephyr
realm, we could alter the test a bit to set up initial conditions
precisely.
@mateuszmandera
Copy link
Contributor Author

Changed this to just add merge_base

@timabbott timabbott merged commit 9f24b30 into zulip:main Jun 23, 2024
14 checks passed
@timabbott
Copy link
Sponsor Member

Looks great, merged, thanks @mateuszmandera!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants