-
Notifications
You must be signed in to change notification settings - Fork 27
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
Concept for filtering Shells based on timestamp #466
Comments
Filter Shell based on timestampOverviewInclude Database tables1. Shell table TABLE shell (
...,
created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); API DesignSearch by created afterA new query parameter
Extend ShellA new parameter {
...
"id": "123",
"idShort": "model-b1",
"specificAssetIds" : [],
"createdAt": "2021-01-01T00:00:00Z",
...
} Business logicGeneral workflowWhen consumer sends a request with the
When the Backward compatible (How to handle existing where created_date = NULL )1. Solution: Migrate existing dataThe Impact on business logic: 2. Solution: Handle
|
Id | idShort | creationDate |
---|---|---|
1 | Shell 1 | NULL |
2 | Shell 2 | 2024-11-20 |
3 | Shell 3 | 2010-05-10 |
- Initial call (without parameters): Fetches all data, including entries with created_date =
NULL
.
[
...
{
"idShort": "shell 1",
"creationDate": null
},
{
"idShort": "shell 2",
"creationDate": "2024-11-20"
},
{
"idShort": "shell 3",
"creationDate": "2010-05-10"
}
...
]
- Call with the
createdAfter =2024-11-19
parameter: Fetches all entries after thecreatedAfter
date. Entries with `reated_date = NULL are excluded
[
...
{
"idShort": "shell 2",
"creationDate": "2024-11-20"
}
...
]
For metadata like creationDate, updateDate etc. please request new attributes for AssetAdministrationShellDescriptor/administration of type However: creationDate of AssetAdministrationShellDescriptor needs not to be identicial with creationDate of the AssetAdministrationShell itself. Same for Submodel and SubmodelDescriptor. Besides this I would always use |
As a dataconsumer,
i want to retrieve only the shells that have been created since my last request
so that i dont have to fetch and process all the shells every time, enabling more efficient and resource-saving operations.
Notes
Useful links
admin-shell-io/aas-specs-api#176
Outcome
concept-shell-timestamp-filter_0.0.1.md
Related issues
admin-shell-io/aas-specs-api#346
admin-shell-io/aas-specs#484
The text was updated successfully, but these errors were encountered: