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

Expose Nessie repository information (preparation) #6635

Merged
merged 1 commit into from Apr 21, 2023

Conversation

snazy
Copy link
Member

@snazy snazy commented Apr 19, 2023

Enhances the REST endpoint v2/config with repository specific information:

  • repository creation timestamp (new storage model only)
  • oldest possible commit timestamp (new storage model only)
  • no-ancestor-hash value
  • default branch name (currently hard-wired to the configuration value)

Prepares the API changes for #4993 and #5810.

Since this changes the existing model for v2-beta, the added fields will be populated in a follow-up-PR.

snazy added a commit to snazy/nessie that referenced this pull request Apr 20, 2023
Enhances the REST endpoint `v2/config` with repository specific information:
* repository creation timestamp (new storage model only)
* oldest possible commit timestamp (new storage model only)
* no-ancestor-hash value
* default branch name (currently hard-wired to the configuration value)

Prepares the API changes for projectnessie#4993 and projectnessie#5810.

Since this changes the existing model for v2-beta, the added fields will
be populated in a follow-up-PR.
@snazy snazy changed the title Expose Nessie repository information Expose Nessie repository information (preparation) Apr 20, 2023
@snazy
Copy link
Member Author

snazy commented Apr 20, 2023

I've changed this PR to not expose a new REST endpoint but extend the existing NessieConfiguration.

This PR adds new attributes to NessieConfiguration, but leaves those empty. A follow-up PR #6640 will then populate the new attributes in a Nessie release later than the one that includes this commit.

snazy added a commit to snazy/nessie that referenced this pull request Apr 20, 2023
snazy added a commit to snazy/nessie that referenced this pull request Apr 20, 2023
snazy added a commit to snazy/nessie that referenced this pull request Apr 20, 2023
public abstract String getNoAncestorHash();

/**
* Timestamp when the repository has been created.
Copy link
Member

Choose a reason for hiding this comment

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

nit: was created?

private final ServerConfig config;

public ConfigApiImpl(ServerConfig config) {
public ConfigApiImpl(ServerConfig config, VersionStore store) {
this.store = store;
Copy link
Member

Choose a reason for hiding this comment

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

nit: This can pprobably be in #6640

@snazy snazy merged commit 1233683 into projectnessie:main Apr 21, 2023
24 checks passed
@snazy snazy deleted the rest-repo-info branch April 21, 2023 10:12
snazy added a commit to snazy/nessie that referenced this pull request Apr 21, 2023
snazy added a commit to snazy/nessie that referenced this pull request May 12, 2023
snazy added a commit to snazy/nessie that referenced this pull request May 18, 2023
snazy added a commit that referenced this pull request May 19, 2023
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.

None yet

2 participants