Closed (fixed)
Project:
Project Dependency
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Sep 2019 at 19:34 UTC
Updated:
23 Oct 2019 at 21:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
trobey commentedThere are two tables. One is for the component (module) and the other is for the dependency. Currently the core key is in the table for the dependency but not in the table for the component. Technically the release is tagged so the core key can be determined so this has not been needed. I am thinking with this change that in addition to the core_version_requirement we also should be saving the core key in the component table. Thoughts?
Comment #3
trobey commentedComment #4
trobey commentedAre there any releases to test this code? This stores both the core and core_version_requirement keys. The core key is currently obtained by other means but I am not sure that will work with this change and both keys are needed.
Comment #5
trobey commentedThe diff for the patch file was reversed. This fixes it.
Comment #6
MixologicRe #2, yes, I do believe that the right place to store these is on the component table. Releases will someday soon no longer have a core_api as part of the tag, as we're adding support for semver tags, so adding a field for the core key, if it is set, is a good idea. We might even consider backfilling the data, either by reprocessing everything, or by a one-off database update query.
Re: #4 I found a couple issues on drupal.org where a maintainer has started using this: https://www.drupal.org/project/adsense/issues/3079247
https://git.drupalcode.org/project/adsense/raw/8.x-1.x/adsense.info.yml
So It looks like we could use the 8.x-1.x-dev version of adsense to test with.
I only found a couple of minor things:
We should probably store empty strings to be consistent with the other table values.
I believe that this could potentially also be empty, if not now, at least in the future.
Comment #7
trobey commentedI also had to update the two new database columns to not allow NULLs and use the empty string as the default. The database update is pretty slow now with these changes. I tested this with the Adsense project latest release which is node ID 2456675:
Comment #8
MixologicNice. This looks great.
With hindsight it would have been better if we used NULL's instead of empty strings, but it'll be easier to expect only one or the other when writing queries etc.
Thanks for showing up to manage this.
Comment #10
trobey commentedComment #11
MixologicThanks. We deployed this this morning.