-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Allow to add/switch components of a published local repository #1356
Allow to add/switch components of a published local repository #1356
Conversation
0d96e4b
to
18ffde2
Compare
changing the logging is a bit tricky, since the aptly output is used extensively in the testing. but I like the cleanup ! if you wanna update the tests with the new logs automatically, uncomment CAPTURE in the Makefile locally and run the system-tests (it will write new gold files) ;-) |
18ffde2
to
bcab28d
Compare
Thanks a lot. I was not aware of the consequences. Unfortunately, we must change the output of the switch command and make it more generic, so that it can be also used for published local repositories. It requires some time for fixing the test cases. |
9c64533
to
eb6acfd
Compare
amazing work :) I sent you an invitation as maintainer, it would be great to have more of your contribution as well as reviewing some PRs (i.e. #1352) to move things forward a bit faster ! |
I dont have the rights to push to your branch, but here would be the golang-lint fix: eb15a65 :-) |
there is one more log update in a S3 test (where your i does not have creds): https://github.com/aptly-dev/aptly/actions/runs/11153050817/job/30999844378#step:9:1456 |
1924941
to
e97725c
Compare
@neolynx
|
e97725c
to
744c0d9
Compare
Ok, that is strange. The flag that the maintainer has editing rights is set. |
1a9638b
to
584146f
Compare
coverage 76.85% of diff hit (target 74.90%) nice ! |
It finally turns into green 😅. Thanks a lot for your support. |
8580703
to
b908730
Compare
This commit modifies the behavior of the publish switch method in the way, that it can also be used to add/switch components of a published local repository. Furthermore, the commit ensures that the sources returned by a published repository are ordered by their component names. Signed-off-by: Christoph Fiehe <[email protected]>
b908730
to
de05ea3
Compare
I have implemented the new I have simplified the REST API and introduced the new In the next day, I will have a look at the (Swagger) documentation and add/update what is missing. |
@@ -452,8 +456,26 @@ func (p *PublishedRepo) UpdateLocalRepo(component string) { | |||
p.rePublishing = true | |||
} | |||
|
|||
// UpdateSnapshot switches snapshot for component | |||
func (p *PublishedRepo) UpdateSnapshot(component string, snapshot *Snapshot) { | |||
// UpsertLocalRepo inserts/updates local repository source for component |
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.
typo
shall we close this in favor of #1366 ? |
closing in favor of #1366 |
Fixes #1355, #1338
Description of the Change
This commit modifies the behavior of the publish
switch
method in the way, that it can also be used to add/update components of published local repositories. Furthermore, the commit ensures that the sources returned by a published repository are ordered by their component names.Checklist
AUTHORS