Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
The Drupal 8 version of this module currently has no README file included in the download. Please add one.
Thanks!
Frederick
Comments
Comment #2
ioana apetri CreditAttribution: ioana apetri at OPTASY commentedI am working on this.
Comment #3
ioana apetri CreditAttribution: ioana apetri at OPTASY commentedHere is the readme file. Please review thanks!
Comment #4
frederickjh@yo30 Good Work!
Comment #5
frederickjh@yo30 I think that the information for Drupal 8 from the project page should be added too.
It may need some clear up and additions.
Greetings!
Frederick
Comment #6
volkswagenchickI only briefly looked at this patch, and it needs some work.
Here are some nitpicks
Lines should break at 80 characters
This list should not have commas at the end of each item
Should include links to maintainers and supporting organizations.
Comment #7
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedHere is the updated Patch and interdiff. Kindly provide the link for supporting organizations so that I can update and provide the updated patch.
Fixed comments mentioned in #6
Comment #8
volkswagenchickYou should be able to find the link for supporting organization on the project page :)
line breaks should be at 80 characters
This is a D7 link :)
Line breaks should be at 80 charcaters
Couple more nitpicks. Marking as needs work. Thanks for your work here!
Comment #9
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedHere is the updated patch and interdiff.
Comment #10
volkswagenchickLooks good. Marking as needs work.
This is a link for installing themes.
The link for installation is:
https://www.drupal.org/node/1897420
Comment #11
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedHere is the updated patcha and interdiff as per comment #10
Comment #12
volkswagenchickLooks good - links, spelling , formatting all look good. All nitpicks were addressed. Patch applied using simplytest.me
Marking RTBC.
Comment #13
manuel.adanThere are some misspellings:
There is a 1 space indentation in all lines except the first header.
Anyway, it does not really provide much helpful information for site builders.
Comment #14
amruth7349 CreditAttribution: amruth7349 commentedI added a README.txt file to the Field validation module as shown in 'https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...' .
Comment #15
manuel.adanContributed code should be provided as patch file. Please, take a look to https://www.drupal.org/patch
Comment #16
amruth7349 CreditAttribution: amruth7349 commentedI provided the code as patch file . I am a beginner, so I don't know that code should be provided as patch file . Please go through the file and review it.
Comment #17
frederickjhHi @amruth7349 !
I have reviewed the file you attached and it is not a patch. The link provide in the previous comment was most likely not much help to you, as you have admitted you are new.
Please see the Advanced patch contributor guide. It has instructions that will help you start at the beginning. The other documentation linked assumes that you already have cloned this module's git repository, and made your changes to it so that you could then make a patch. This documentation does not make that assumption.
Just adding a .patch to the end of the file does not make a file a patch. You may need to learn git too as that is the version control system that is used by Drupal developers. freecodecamp.org has a nice guide to git that you might find helpful.
Comment #18
amruth7349 CreditAttribution: amruth7349 commentedI read the instructions from Advanced patch contributor guide. Here is my updated patch file. Please have a look at it and review it. Thanks @ frederickjh for your suggestions.
Comment #19
frederickjh@amruth7349 you are getting closer as that is a patch file but it is not correct. It applies cleanly but does not add the README.txt file to the project.
Your patch is backwards your file should be an addition, which should be marked with a plus at the beginning of the line for your new file and for all the lines of that file (see the patch I attached). In your patch they are all minus signs (-) meaning that they will be removed.
Also the file name is wrong. This issue is to add a README.txt to the project but in your patch the file it is diffing against is called field_validation-addingreadmefile-2870663-17
I could tell you to try again, but I think that the best is to walk you through what I did to take your README.txt that you posted above to make it into a patch. If you are going to submit code to the Drupal project at least until the switch to using Gitlab is finished you will need to learn how to make patches.
First I cloned the projects git repository. You can find a link near the bottom of ever project page in the right hand sidebar to the project's code repository.
You can find the URI for the repository at the botom of the repository page, where it says clone.
Open a terminal and clone this repository. Change to the directory and add your README.txt file.
Now that the file has been added we can check the
git status
and check that the file has been added and that we are on the correct branch of the project (We already are. If we weren't we should have usedgit checkout branchname
before changing any code to switch branches).Now add the new file and commit it.
Now make the patch.
$ git diff -M origin/8.x-1.x > field_validation-Add_README.txt_to_Drupal_8_branch-2870663-19.patch
I would highly recommend that you try to do this yourself as if there are changes that are needed and you need to submit a new patch you will be ready.
One tip that the advanced Drupal patching guide does not have, if you have to submit a new patch instead of adding a new commit you can update your previous commit. First use
git add filename
to add the changed files then usegit commit --amend
. This will open the previous commit message in a text editor. If it does not need any changes just close it to finish the commit. After that you can make your new patch.I have attached the patch that I made using this process. I have not yet looked at the text of the file but will do so next.
Comment #20
frederickjh@amruth7349
This line in the 7.x version adds more information as to where the developer can find the UI for this module. "This module adds an extra tab to each field instance, allowing you to specify validation rules for your field instances."
The link on line 51 has nothing to do with installation of a module.
Comment #21
amruth7349 CreditAttribution: amruth7349 commentedThank you @frederickjh for your detailed explanation. You have made it easy to understand. I tried again as you did. I changed the link in line 51. This is the new patch file. Please go through it again and tell me if there are any changes to be made.
Comment #22
frederickjh@amruth7349 This look good and the patch applies correctly. Good job!
Can the modules' maintainer(s) please now review the README.txt to see if there are any corrections or additions they would like to make?
I think I would make one more addition of the information that is in the Drupal 8 section of the projects home page. That way all the information is in the README.txt too. Point number 3 from that, the list of currently included field validations, you have already included. Not sure what the best title for this section should be. Maybe Developer Notes
Comment #23
manuel.adanThank's @frederickjh and @amruth7349 for your contribution. I found some points to review:
Some spelling error, missed space after "." and extra space at line end.
The 8.x branch has not dependencies on third-party modules, it depends only on the field module provided by core.
About the ruleset naming, I think that configuration way corresponds to earlier versions and it is no longer valid. The configuration is made entirely by the UI. The main page of the module must be updated as well.
Comment #24
amruth7349 CreditAttribution: amruth7349 commentedI uploaded new patch file. I corrected spelling mistakes and other errors. Added Developer Notes as said by @frederickjh . Changed requirements and configuration. But I'm not sure with these changes. Please review it and verify the changes made.
Comment #25
frederickjh@amruth7349 Now that you are resubmitting the patch it is helpful to also include an interdiff so others can quickly see what you changed from the first patch. See the Creating an interdiff guide on how to do this.
Comment #26
frederickjhThese lines all have trailing white space (spaces or tabs) that should be removed.
Comment #27
amruth7349 CreditAttribution: amruth7349 commentedI removed trailing spaces and created an interdiff file. interdiff.txt is uploaded in file information table as interdiff_21-27.txt .
Comment #28
amruth7349 CreditAttribution: amruth7349 commentedHere is interdiff.txt
Comment #29
amruth7349 CreditAttribution: amruth7349 commentedHere is interdiff.txt
Comment #30
amruth7349 CreditAttribution: amruth7349 commentedComment #31
frederickjhLine 85 still has one space on it.
Also for the interdiff to be useful you need to upload it too. Like in comments 7, 9, and 11 above.
Comment #32
amruth7349 CreditAttribution: amruth7349 commentedComment #33
amruth7349 CreditAttribution: amruth7349 commentedHere is my interdiff.txt.
Comment #34
amruth7349 CreditAttribution: amruth7349 commentedNew patch after removing trailing space from 85 line and I have already uploaded interdiff.txt that i have created after this change.
Comment #35
frederickjh@amruth7349 Thanks for the interdiff. It made it so much easier to review the patch with Dreditor. Which by the way looks good.
Regarding the section that I suggested you should add and you did about the ruleset naming, it was called into question by @manuel.adan. He thinks that this may no longer be the case for the Drupal 8 version as this refers to an older version of the module.
It would be good if we could get a maintainer to give some input about the section about ruleset naming of the README.txt
Comment #36
manuel.adanComment #37
frederickjh@manuel.adan
Is there any documentation to expand this? Maybe a link to pertinent d.o documentation? This informs the user that there is the possibly to do this but I think more information is needed to avoid support requests asking the how question.
Comment #38
manuel.adanFor the moment, we can link the Plugin API. There is no documentation and it will take some time, I'm afraid.
Comment #39
frederickjhAdded a link to the Plugin API.
Comment #40
frederickjhSorry, first time using dorgflow. The interdiff is wrong. I need to redo it. It seems that dorgflow does not add new files when it commits when pulling the previous patches.
Comment #41
frederickjhSame patch this time with the correct interdiff.
Comment #42
manuel.adanIt finally looks fine for me, thank you ;)
Comment #44
manuel.adan