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

Adding fetch examples for events #718

Merged
merged 6 commits into from
Dec 8, 2023

Conversation

mmwilder26
Copy link
Contributor

@mmwilder26 mmwilder26 commented Nov 27, 2023

Adding fetch examples for Events API

 Mention [stepsize] in a comment if you'd like to report some technical debt. See examples here.

Signed-off-by: Madia Wilder <mwilder@Madias-MBP.attlocal.net>
Copy link
Contributor

@JAG-UK JAG-UK left a comment

Choose a reason for hiding this comment

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

Very nice, a few small changes required.

content/developers/api-reference/events-api/index.md Outdated Show resolved Hide resolved
"https://app.datatrails.ai/archivist/v2/assets/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/events"
```

#### Fetch Specific Events by Identity
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be at the top before you make the note "If you don't know the identity ... " - or at least it should be the very first example after it - see what flows better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @JAG-UK may be confused as there is a note before this example that states . . .

"If you know the unique identity of the Asset record . . . " as it represents retrieving events for a specific Asset thus all a person would require to know is the Asset ID.

Then following is if you know the the unique ID for the Asset and Events. . .

Was following the flow of the Asset page. . . seems in step with what we have documented. Are you stating that we should have a line that states "If you don't know the identity . . ."? seems redundant as it's the other side of the coin of just knowing the Asset ID . . . retrieving events for a specific Asset.

content/developers/api-reference/events-api/index.md Outdated Show resolved Hide resolved
"https://app.datatrails.ai/archivist/v2/assets/-/events?event_attributes.arc_display_type=Software%20Package%20Release"
```

#### Fetch Event by Asset Type
Copy link
Contributor

@JAG-UK JAG-UK Nov 28, 2023

Choose a reason for hiding this comment

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

There seem to be 2 concepts here - the text is talking about fetch by Asset type (like, show me all events that have happened to "apples") but the example then shows fetching based on an Event type (like, show me all events that have happened where the Asset has been "peeled").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @JAG-UK . . . there already is an example that fetches an Event by Asset Type it's after Fetch Event by type. However I do see an update to the verbiage. . . but it does already exists. . . provided that we are talking about the same two examples.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah but that's not the point: The example is looking at EVENT attributes, while the text accompanying it is about ASSET attributes. Confusion between re-use of 'arc_display_type' I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @JAG-UK . . . ok hopefully we are referencing the same thing re: the above about updating the verbiage as there has been additional commits to change from asset type to asset attribute. . . did that last week. Let me know if this is what you are referring to.

mmwilder26 and others added 5 commits December 1, 2023 16:00
Co-authored-by: Jon Geater <jon.geater@gmail.com>
Signed-off-by: mmwilder26 <85260509+mmwilder26@users.noreply.github.com>
Co-authored-by: Jon Geater <jon.geater@gmail.com>
Signed-off-by: mmwilder26 <85260509+mmwilder26@users.noreply.github.com>
Signed-off-by: Madia Wilder <mwilder@Madias-MBP.attlocal.net>
…tatrails/datatrails-docs into mmwilder26/eventsapi_getdocumentation
Signed-off-by: Madia Wilder <mwilder@Madias-MBP.attlocal.net>
Event records in DataTrails are tokenized at creation time and referred to in all future API calls by a permanent unique identity of the form:

```bash
assets/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/events/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy link
Contributor

Choose a reason for hiding this comment

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

it's great we're obfuscating the asset_id's we use to create the docs. Can we create environment variables so users can copy/paste the commands? It's a bit confusing to know which guid's should be replaced, and when.

Copy link
Contributor

@JAG-UK JAG-UK left a comment

Choose a reason for hiding this comment

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

lgtm

@mmwilder26 mmwilder26 merged commit 3e842be into main Dec 8, 2023
1 check passed
@SteveLasker SteveLasker deleted the mmwilder26/eventsapi_getdocumentation branch December 14, 2023 17:17
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.

3 participants