Closed (fixed)
Project:
Config Pages
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2018 at 12:04 UTC
Updated:
5 Aug 2019 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rodrigoaguileraHere is my approach.
In the config page type form I add a new textfield for each context so is possible to add a value.
When loading a config page I added a second query modifying the context with the fallback.
Comment #3
grimreaperHi rodrigoaguilera,
Thanks you very much for the patch!
I encountered the same problem. Here is my review. Only minor things.
In OOP code, $this->t() should be used with the stringtranslation trait. But Maybe you have done it this way to stay in the same style as the rest of the code.
The config_pages.schema.yml should be updated. But I don't know if this information should not be by context plugin.
Double ;;
Comment #4
rodrigoaguileraThanks for taking the time to review :)
I'm not working in projects that use this module anymore.
Feel free to take over the patch.
Comment #5
hdnag commentedHi,
Here's a corrected patch.
Thanks for review.
Regards.
Comment #6
grimreaperHello,
Thanks for the new patch.
It is good for me.
Waiting for maintainer reply.
Comment #9
qwaygon commentedIncluded in 2.6, tnx guys
Comment #10
grimreaperHello,
Thanks to have merged this.
My 2 cents about credit attribution.
As rodrigoaguilera has made the first patch and as hdnag has only made the changed of my review, I think the commit author should have been rodrigoaguilera.
Or both rodrigoaguilera and hdnag, because if you want to give commit credits to several people, you can make empty commits.
And also with empty commits, no need to revert a commit for proper credit attribution.
Also when people tests patches and makes review (as I had done it in comment 3), you can add them in the commit message.
Comment #11
qwaygon commentedhello, @Grimreaper i just used commit message default generated by drupal org for credits, and revert trick was to keep link with the actual code lines as i dont know how can i alter commit message of commit that is already pushed to remote (without force push), anyway if you can explain it in PM would be great (so i can add you to credits without addint any new commits)
Comment #12
grimreaperHello Qwaygon,
Yes, once a commit is pushed on a release branch on Drupal.org, you can't modify it. Ok for the lines of codes I didn't thought about that or look into details on that. Thanks for the explaination.
I recently learned on an issue (https://www.drupal.org/project/menu_per_role/issues/3039205) that you can reattribute issue credits (not the commit credit) by posting a new comment. Unfortunately it does not appear on the comments.
At the bottom of the comment form, you have a "Credit & committing" fieldset where you can give proper credit attribution.
Even without committing, if you check the checkbox in front of people and then post the comment people should be creditted. And also that way you can change the default drupal.org commit message.
;)
I saw you asked for a PM message, but as there is currently no private info here, I prefer making a public comment, because as I am mentoring people during the Smile Drupal contribution tour, I can give examples on how to use the credit tools.
There is no offense here, that's absolutely not the goal. I hope you didn't took it in that way. I am only doing mentoring stuff that I think are important.
Regards and have a nice day :)
Comment #13
qwaygon commentedlike this?
Comment #14
grimreaperYep,
Now I see issue credit on the profiles of rodrigoaguilera, hdnag and myself.
Thanks!
You have removed yourself the issue credit (not the credit in commit). I don't know if it was intended.
Remember each time you post a new comment, it is its credit attribution that is used. :)