-
Notifications
You must be signed in to change notification settings - Fork 106
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
Dependency/dependant tracking #426
Conversation
Plenty to do on this, but I want to get some feedback on the structure and the future UI Annoyingly, my thinking is pretty much the same as Packagist. Showing the actual dependencies above the README. Then maybe a separate package list on a separate page, linked under Actions. Maybe the dependant list is a special search (depends:giggsey/locale) |
|
I'm not that familiar with doctrine, and it's complaining about the schema not matching the mapping files. Any ideas @akondas? Apart from that, the tests should be passing, and it should be ready for review. I've updated the top comment with the latest screenshots/features. |
So, you can run public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE organization_package_link ADD CONSTRAINT FK_4A06082932C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE INDEX IDX_4A06082932C8A3DE ON organization_package_link (organization_id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE organization_package_link DROP CONSTRAINT FK_4A06082932C8A3DE');
$this->addSql('DROP INDEX IDX_4A06082932C8A3DE');
} Besides, the whole thing looks very good, when you're done, let me know, I'll click through it and we'll make a new release 🎉 |
Migration now failing due to:
However, this file doesn't exist? |
Hey @giggsey it was my fault, sorry. When I debugged the previous pipeline, I forgot to remove the generated migration. Anyway, there are still some differences: $this->addSql('ALTER INDEX link_organization_id_idx RENAME TO IDX_4A06082932C8A3DE'); |
Thanks @akondas. That index is currently generated via: $this->addSql('CREATE INDEX link_organization_id_idx ON organization_package_link (organization_id)'); I can rename it there, but how does that automatic name get generated when it's fine for the 'link_package_id_idx' index? |
As far as I remember, this name is generated by doctrine, based on mappings:
Maybe you had an older version, or you made it out of your finger? it's hard for me to figure out why this name is wrong ... 🤔 |
Codecov Report
@@ Coverage Diff @@
## master #426 +/- ##
============================================
- Coverage 99.38% 99.34% -0.05%
- Complexity 1864 1891 +27
============================================
Files 297 298 +1
Lines 5873 5969 +96
============================================
+ Hits 5837 5930 +93
- Misses 36 39 +3
Continue to review full report at Codecov.
|
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.
I tested the whole thing, the user experience is very positive. There is still the question of optimizing the number of database queries to consider.
Great work, and thank you @giggsey 🎖️
Show package dependencies in detail view, linking to other packages known in the same organisation.
Allow searching for other packages that depend on this package (count is shown on the details view):
Fixes #175