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

Incremental updates #536

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Incremental updates #536

merged 1 commit into from
Sep 29, 2023

Conversation

Danielius1922
Copy link
Member

No description provided.

@ocf-conformance-test-tool
Copy link

🎉 Thank you for your code contribution! To guarantee the change/addition is conformant to the OCF Specification, we would like to ask you to execute OCF Conformance Testing of your change ☝️ when your work is ready to be reviewed.


ℹ️ To verify your latest change (38ff72f), label this PR with OCF Conformance Testing.

⚠️ Label is removed with every code change.

@Danielius1922 Danielius1922 force-pushed the adam/feature/update-query-api branch from c5a4793 to ea0eca6 Compare September 20, 2023 13:06
@Danielius1922 Danielius1922 force-pushed the adam/feature/etag-incremental branch 2 times, most recently from 6e945dd to 80acd1f Compare September 22, 2023 08:57
Base automatically changed from adam/feature/update-query-api to master September 22, 2023 13:33
@Danielius1922 Danielius1922 force-pushed the adam/feature/etag-incremental branch 6 times, most recently from 3a598b8 to 98378cb Compare September 27, 2023 09:39
@Danielius1922 Danielius1922 marked this pull request as ready for review September 28, 2023 09:25
@Danielius1922 Danielius1922 force-pushed the adam/feature/etag-incremental branch from 08cdcaa to e0c4dc6 Compare September 29, 2023 14:32
@Danielius1922 Danielius1922 changed the title Incremental query Incremental updates Sep 29, 2023
@Danielius1922 Danielius1922 changed the base branch from master to adam/feature/extend-base64 September 29, 2023 14:32
@Danielius1922 Danielius1922 added the OCF Conformance Testing OCF Conformance Testing required label Sep 29, 2023
Base automatically changed from adam/feature/extend-base64 to master September 29, 2023 17:55
This update introduces the Incremental Updates feature for the
/oic/res resource in CoAP requests. When querying the /oic/res
resource using a GET request with the batch interface and including
the "incChanges" key in the query, Incremental Updates are
activated. The "incChanges" key should contain a comma-separated
list of base64 encoded ETags (using URL-safe encoding without
padding).

This feature leverages the uniqueness and strict incrementality
of ETags. By comparing the ETags received in the query with the
stored ETags, the system identifies the highest still valid ETag.
Resources with an ETag that is lower or equal than the identified
ETag are skipped and not contained by the GET request response,
since we know that they have not been updated.
@Danielius1922 Danielius1922 force-pushed the adam/feature/etag-incremental branch from e0c4dc6 to 1c9c8e7 Compare September 29, 2023 18:39
@ocf-conformance-test-tool ocf-conformance-test-tool bot removed the OCF Conformance Testing OCF Conformance Testing required label Sep 29, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

88.5% 88.5% Coverage
0.0% 0.0% Duplication

@Danielius1922 Danielius1922 merged commit 373e720 into master Sep 29, 2023
120 checks passed
@Danielius1922 Danielius1922 deleted the adam/feature/etag-incremental branch September 29, 2023 22:28
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants