Skip to content

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

Merged
epugh merged 2 commits intoo19s:mainfrom
AnkitSiva:query_id_optional
Aug 31, 2024
Merged

fix[event.schema.json]: query_id optional#20
epugh merged 2 commits intoo19s:mainfrom
AnkitSiva:query_id_optional

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