Repository navigation
Require author information in gui - #154
Conversation
It is now verified that a non-whitespace author name and a valid email adress (checked via regex) was entered in the author information screen. If at least one is missing the user is informed that these are required and it is not possible to complete the assistant.
The author name and email are now stored in the .setup_assistant file and are loaded when an existing configuration is edited.
Before the labels and textboxes where equally aligned on the entire screen. Now there are aligned to the top of the screen. Also the label for the authors name was asking for the name of the MoveIt! configuration.
|
Ideally we would parse the package.xml so that we don't have the possibility of the two storage locations (.setup_assistant) getting out of sync. It could be the case that someone changes it manually and the SA would overwrite it the next time it was run |
| // Top Header Area ------------------------------------------------ | ||
|
|
||
| HeaderWidget *header = new HeaderWidget( "Author Information", | ||
| "Specify contact information of the author and initial maintainer of the generated package. catkin requires valid details in the package's package.xml", |
|
overall looks good! |
|
I believe I'm at fault for all the syntactic issues @davetcoleman just pointed out. Otherwise the request (and the approach) looks fine to me. @davetcoleman the current proposal adds only I (and I believe many users) consider the setup assistant as an initial config generator, not as the only way to update the config. So I would expect that people run the generator only once and afterwards only update individual files in the config by selecting them in the last tab of the wizard. |
That's indeed true. All other information (with the exception of srdf) in the config files is overwritten too. Why not handle author information in a similar fashion, i.e. no need to parse package.xml. |
| QString testEmail = QString::fromStdString(config_data_->author_email_); | ||
| if( ! mailRegex.exactMatch(testEmail) ) | ||
| { | ||
| dependencies << "<b>No valid email adress added</b>"; |
|
Could you please add a missing +1. |
Great point, +1 after addressing comments |
- Line too long - Moved bracket to new line - Fixed typos adress and E-Mail - Added missing return true - Added missing space before comment
* adds a widget to query the contact details of the author * validate author name and author email (non-whitespace name + valid email format) * store and load author name and email in .setup_assistant
* adds a widget to query the contact details of the author * validate author name and author email (non-whitespace name + valid email format) * store and load author name and email in .setup_assistant
|
cherry-picked to J/K. |
This is the follow up of this PR. I used filter-branch to restructure the old repo and cherry picked the commits afterwards.
This is a extension to the work of @v4hn who has included a widget which asks for the author's name and email adress. Following features have been implemented (as suggested by #16):