Problem/Motivation
After checking a warning in #3502643: PHP warning - Undefined array key "name" in DrupalDotOrgJsonApi.php, I thought about this property and we might not need it at all.
We currently have as author:
- Core modules: hardcoded to "Drupal Core"
- Recipes: empty
- Contrib modules: name of the user that created the module
The person that created a module might or might not be a maintainer of the module, and they might even cancel their account and the module would still exists.
So I'm not sure that author is a useful property right now.
Proposed resolution
Discuss if the above make sense and if it does, clean up code everywhere.
If we want to think about maintainers, that should be a separate follow-up from this issue in my opinion. This should be about clean up a property that is not really useful.
Issue fork project_browser-3502734
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
chrisfromredfinThis is related to #3494824: Cleanup of Project object contract/constructor
Comment #3
phenaproximaThis runs directly counter to #3498121: Add information about authors and maintainers in project details page. Which one do we want to do?
Comment #4
poker10 commentedIf author != one of the maintainers on d.o., then this is probably not dependent. Otherwise -1 to this. Commented on the related issue.
Comment #5
fjgarlin commentedI commented on the other issue, I still think that this should be done as author (person that created the node) is not the same as maintainers.
As mentioned in the issue description
Comment #6
phenaproximaThanks for clearing that up, @fjgarlin. I think it makes sense, then, to remove the $authors property from Project now, along with its Svelte representation, and add a new $maintainers property in the other issue when the d.o side is ready.
Comment #8
phenaproximaClosing as a duplicate of #3494824: Cleanup of Project object contract/constructor, let's just do this in there.
Comment #9
fjgarlin commentedOuch! I had the MR ready, was just waiting for the pipeline to finish.
Comment #10
fjgarlin commentedBut just saw that you already transferred the commit!! Great!