-
Notifications
You must be signed in to change notification settings - Fork 67
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
Change package path from {packagename}-{version} to {packagename}/{version} #300
Conversation
I think we should create an issue for EPM to make sure it can all be fixed locally, first. |
@neptunian Could you take a lead on that and then we can merge and deploy close together? |
os.MkdirAll(dst, 0755) | ||
err := sh.RunV("cp", "-a", src, dst) | ||
err := sh.RunV("rsync", "-a", src, dst) |
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.
@kuisathaverat I switched to rsync
to have better cross platform consistency. But it is not yet on CI. Is there an easy way to get it there?
@jfsiii I am thinking we need to change the EPM api to mirror this change |
@neptunian I don't know if we need to (I believe the two are and should be independent) but we can. There is already a ticket for using name@version for EPM. We could implement that or change it to mirror this. |
@ruflin what exactly is |
@neptunian At the moment it will return nothing. This change only gives us the opportunity to discuss further on how we will use this endpoint. If it turns out, we don't need it at all this is ok, but I would still like to do the change as if we realise later we need it, we can't make this change anymore as it is a breaking change. About the content it could return: I'm thinking of a much more compact version than what we have in the Related to the comment from @jfsiii: Agree that we don't need to tie this change to the internal EPM API. This can change on its own pace and see there if it makes to change it at all. |
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.
Can you update the readme API?
@neptunian README updated. |
README.md
Outdated
@@ -20,8 +20,7 @@ The `/search` API endpoint has few additional query parameters. More might be ad | |||
a package requires 7.4, the package will not be returned or an older compatible package will be shown. | |||
By default this endpoint always returns only the newest compatible package. | |||
* category: Filters the package by the given category. Available categories can be seend when going to `/categories` endpoint. | |||
* package: Filters by a specific package name, for example `mysql`. In contrast to the other endpoints, it will return | |||
by default all versions of this package. | |||
* package: Filters by a specific package name, for example `mysql`. It will return the most recent version of the package. |
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.
@ruflin i think you meant to put this in the search PR. I was referring to updating the API endpoint path on line 12
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.
@neptunian argh, sorry. Now did the right adjustement.
…rsion} The current package path is `/package/{packagename}-{version}`. EPM will need some info about which packages exist. To make it possible to populate some generic info about a package, the path is changed to `/package/{packagename}/{version}`. No additional info is added yet but it gives you the option to add it. This PR makes all changes in the code that are needed on the packaging side to make the above happen. Also all test files are updated. This is a breaking change for EPM.
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.
"name": "example", | ||
"title": "Example", | ||
"version": "0.0.2", | ||
"readme": "/package/example-0.0.2/docs/README.md", |
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.
"readme": "/package/example-0.0.2/docs/README.md", | |
"readme": "/package/example/0.0.2/docs/README.md", |
In elastic#300 the links to the README and icons were not correct.
In #300 the links to the README and icons were not correct.
The current package path is
/package/{packagename}-{version}
. EPM will need some info about which packages exist. To make it possible to populate some generic info about a package, the path is changed to/package/{packagename}/{version}
. No additional info is added yet but it gives you the option to add it.This PR makes all changes in the code that are needed on the packaging side to make the above happen. Also all test files are updated.
This is a breaking change for EPM.