-
Notifications
You must be signed in to change notification settings - Fork 108
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
Package View Improvements #175
Comments
I wanted to look into implementing this. Some questions / remarks:
For the readme: I think this is the hardest one, since we need to actually get the readme; this is not part of the composer
For releases and dependencies, as well as the readme, I propose to add a To make life even easier we could show a copy button after each version on this detail page, that will copy Any thoughts? We could also start with the simpler ones, like the copy button and the releases/dependencies. |
I think linking through to packagist for those non-local packages would be fine.
Most people (hopefully) would want to install that as a minimum version, so ideally "^1.2.3". Although with a copyable package link from the package view, that's less of an issue. |
But it might also not be on Packagist but somewhere else?
Fair point, I think ^ makes sense. |
Good point. Our local satis setup mirrors all of our dependencies (and we only use local or Packagist anyway), so it contains links for everything. Maybe then it only links to internal packages it knows about. That does mean a full package list will need to be known on page load though |
Yes, but that is stored in the database in one table anyway. I do wonder what the impact will be though if you have a lot of packages. |
If the list of dependencies is stored in a table per package version (this
could potentially be a large table), then it's a WHERE IN after you load
the package. That table design also gives you the ability to search for
dependants.
…On Fri, 29 May 2020, 09:54 Nicky Gerritsen, ***@***.***> wrote:
Yes, but that is stored in the database in one table anyway. I do wonder
what the impact will be though if you have a lot of packages.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#175 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKUQWQEVEJYWESF3NXPITRT5Z3BANCNFSM4NIM7EJA>
.
|
This topic is getting a bit extensive so if in doubt I suggest you do a separate issue. I would not like someone to work on something that we do not merge 😉. When it comes to tar files, we will handle them, I still have this feature during the works, but I looked at this topic initially.
Sounds good. At the moment I would take what it is, there is no point in optimizing if there are no performance problems. When it comes to readme detection, I would do some simple mechanism and improved it over time. The readme content could be pushed to the table to make displaying faster (read model). |
I'm thinking about working on these last two features, showing the information for the latest version only. Any objections? |
Not on my part. You can go ahead and take action 😉 . |
Just taking a look at the dependencies task, this is my current plan:
If you're happy with that plan, I'll try working on it over the next few days/weeks. |
I wonder if it really has to be a separate table? Will this data be searchable or cumulative with other tables? Because if not and it is only to be viewed on the UI, it seems to me that an additional json column would be enough. |
There is a two way search. Each package will list its dependencies, and a separate list showing what depends on this package. If it was only listing dependencies, a JSON column would be okay. I might have a draft MR within a few days. |
Mimics our commonly used features from satis/packagist
The text was updated successfully, but these errors were encountered: