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
Conversation
api/model/src/main/java/org/projectnessie/model/RepositoryInformation.java
Outdated
Show resolved
Hide resolved
servers/jax-rs-tests/src/main/java/org/projectnessie/jaxrs/tests/BaseTestNessieApi.java
Outdated
Show resolved
Hide resolved
...rsist/store/src/main/java/org/projectnessie/versioned/persist/store/PersistVersionStore.java
Outdated
Show resolved
Hide resolved
versioned/spi/src/main/java/org/projectnessie/versioned/TracingVersionStore.java
Outdated
Show resolved
Hide resolved
api/model/src/main/java/org/projectnessie/model/RepositoryInformation.java
Outdated
Show resolved
Hide resolved
api/model/src/main/java/org/projectnessie/api/v2/http/HttpConfigApi.java
Outdated
Show resolved
Hide resolved
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
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.
I've changed this PR to not expose a new REST endpoint but extend the existing This PR adds new attributes to |
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
public abstract String getNoAncestorHash(); | ||
|
||
/** | ||
* Timestamp when the repository has been created. |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
Builds on the API changes from projectnessie#6635 Fixes projectnessie#4993 Fixes projectnessie#5810
Enhances the REST endpoint
v2/config
with repository specific information: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.