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

Distinct repository content views #4

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Distinct repository content views #4

merged 4 commits into from
Jul 18, 2024

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Jul 15, 2024

This is the server-side implementation of distinct repository content views, one returned to the Software Center page (the latest view), and the other returned to the nightly automatic updates cronjob (the managed view).

For backward compatibility, the previous behavior is retained when Software Center clients from <2.10 core releases send requests without the new X-Repo-View HTTP header.

Additions:

  • The new script sync-head updates distfeed contents from NS8 upstream repository. Contents are used to see modules in the Software Center page, as opposed to the take-snapshot script, which manages the content for the nightly update cronjob of subscription installations and includes also Rocky Linux mirrored content.

  • The response from snapshot.php depends also on the new X-Repo-View client header. The README.md table summarizes what a client gets back from the server for every header and request sent.

Refs NethServer/dev#6970

@DavidePrincipi DavidePrincipi self-assigned this Jul 15, 2024
@DavidePrincipi DavidePrincipi marked this pull request as draft July 16, 2024 08:12
@DavidePrincipi DavidePrincipi changed the title Add sync-head 15-minutes timer script Distinct repository content views Jul 17, 2024
@DavidePrincipi DavidePrincipi marked this pull request as ready for review July 17, 2024 15:58
This new script update repodata contents from NS8 upstream repository.
Its copied contents are used to see modules in the Software Center page, as
opposed to the take-snapshot script, which manages the content for the
nightly update cronjob of subscription installations.
For core <2.10, serve updates from snapshots as before (repo_view is
"unknown").

Only HTTP clients sending X-Repo-View header receive the repo view as
the new feature 6970 says (repo_view is "managed" or "latest").
@DavidePrincipi DavidePrincipi merged commit 59271df into main Jul 18, 2024
1 check passed
@DavidePrincipi DavidePrincipi deleted the feat-6970 branch July 18, 2024 09:09
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.

1 participant