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

Combine preferences callback and track-changes on defining query #1961

Open
ralfhandl opened this issue Jul 2, 2024 · 2 comments
Open

Combine preferences callback and track-changes on defining query #1961

ralfhandl opened this issue Jul 2, 2024 · 2 comments
Labels
Protocol Protocol, URL Conventions V4.02

Comments

@ralfhandl
Copy link
Contributor

Current specification text suggests that preference callback can only be used

This suggests that two requests are necessary for being notified of changes:

  • Send defining query with preference track-changes
  • Send GET request to delta link with preference callback

Allow combining this into one request:

  • Send defining query with both preference track-changes and preference callback
@HeikoTheissen
Copy link
Contributor

It seems problematic that callback is a preference on its own which can appear together with another preference, either respond-async or track-changes. If callback was an attribute of these other preferences, it could appear in both in one request.

@ralfhandl
Copy link
Contributor Author

Extend current state

Prefer: track-changes

  • return delta link for polling

Prefer: track-changes,callback;url=http://me

  • return delta link, callback on changes

Prefer: track-changes;mode=no-delta-link

  • don't return delta link, kind of useless

Prefer: track-changes;mode=no-delta-link,callback;url=http://me

  • don't return delta link, callback on changes

Problem: can't prefer to have a complicated defining request processed async and get a callback for the async processing and a different callback for the available delta

Add callback-url attribute to other preferences, optionally deprecate callback preference in combinat

Prefer: track-changes;callback-url=http://me

  • return delta link, callback on changes

Prefer: track-changes;no-delta

  • don't return delta link, kind of useless

Prefer: track-changes;no-delta;callback-url=http://me

GET /complicated-collection
Prefer: respond-async;callback-url=http://me/initial,track-changes;callback-url=http://me/delta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Protocol Protocol, URL Conventions V4.02
Projects
Status: Open
Development

No branches or pull requests

2 participants