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

fix[event.schema.json]: query_id optional #20

Merged
merged 2 commits into from
Aug 31, 2024

Conversation

AnkitSiva
Copy link
Contributor

@AnkitSiva AnkitSiva commented Aug 7, 2024

This is again a small, backwards-compatible change so I am not writing up the full RFC for this. The query_id field is required in the current schema. However, the scope of UBI is broader than only tracking the behavior of users after a search is performed. Indeed, the demo tracks user data before searches and writes an empty query ID to the index. This PR fixes that antipattern of a user writing an empty value to a required field.

Fixes this issue

@jzonthemtn
Copy link
Collaborator

Thanks @AnkitSiva!

@epugh epugh added the RFC Request for Comment label Aug 15, 2024
@epugh
Copy link
Member

epugh commented Aug 20, 2024

I can see this argument... At this point in time, it's probably better for us to be laxer in our validation versus overly strict as we gain more "real world" use. So agreed.

@epugh
Copy link
Member

epugh commented Aug 31, 2024

as part of this, also making sure session_id is not required. we want to be careful about what we require...

@epugh epugh added this to the 1.1 milestone Aug 31, 2024
@epugh epugh merged commit 700f4ce into o19s:main Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request for Comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event --> Query ID is marked as required... but what if I haven't done a search?
3 participants