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

Add Correlation Identifiers to Requests Originating from the User Interface #244

Open
bencap opened this issue Aug 6, 2024 · 0 comments
Labels
app: frontend Task implementation touches the frontend type: enhancement Enhancement to an existing feature type: maintenance Maintaining this project

Comments

@bencap
Copy link
Collaborator

bencap commented Aug 6, 2024

As an extension of VariantEffect/mavedb-api#80, we should add functionality to the front-end that sends an X-Correlation-ID header with each outgoing request. These correlation identifiers (c-ids) should be generated for distinct interactions a user undertakes (generally, they should change with each un-correlated user action).

In practice, this might mean different things for different resources. As an example, a user might navigate to the score set creation wizard. All requests made while the user is on the score set wizard page should be correlated. However, once the user submits the new score set and a new GET request is issued for the modified score set, we should execute that request with a new c-id.

We can probably implement this as an extension of the compositions module, with a Pinia store tracking the correlation identifier and code set up to modify the correlation identifier as necessary. The managed c-id should be injected into all outgoing requests to our backend.

@bencap bencap added the type: enhancement Enhancement to an existing feature label Aug 6, 2024
@bencap bencap added app: frontend Task implementation touches the frontend type: maintenance Maintaining this project labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: frontend Task implementation touches the frontend type: enhancement Enhancement to an existing feature type: maintenance Maintaining this project
Projects
None yet
Development

No branches or pull requests

1 participant