Skip to content

Addition to Author Information GUI - #187

Closed
v4hn wants to merge 3 commits into
moveit:indigo-develfrom
v4hn:indigo-message-about-author-information
Closed

v4hn wants to merge 3 commits into
moveit:indigo-develfrom
v4hn:indigo-message-about-author-information

Conversation

@v4hn

@v4hn v4hn commented Aug 29, 2016

Copy link
Copy Markdown
Contributor

@jan0e's code in #154 loads the author information from .setup_assistent .
This entails that when a user loads an existing config, they have to
re-enter their contact information over and over again until they also generate the
modified .setup_assistant file. This adds a message to tell them they should
do just that.

{
QMessageBox::warning( this, "Loading Project Without Author Information",
"The loaded configuration package does not include author information.\n"
"Make sure you regenerate the '.setup_assistant' and 'package.xml' files to add it.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When loading an existing package, package.xml might already contain valid author information. With this hint you suggest to overwrite this!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Tue, Aug 30, 2016 at 01:31:36AM -0700, Robert Haschke wrote:

When loading an existing package, package.xml might already contain valid author information. With this hint you suggest to overwrite this!

Yes. Many packages do not contain valid information in the package.xml and they are the reason for this whole author-information addition.
Do you have a suggestion how to improve the message?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very simple solution could be to regex-parse the package.xml for the old dummy author information and only issue this warning in that case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're welcome to implement this :)
I will not be around for the next one-and-a-half weeks.
In any case, we have to tell the user to regenerate .setup_assistant because they are not able to generate anything if they don't have author information stored in there.

However, we could rephrase the notice.

@v4hn

v4hn commented Sep 2, 2016

Copy link
Copy Markdown
Contributor Author

@rhaschke I changed the message.

{
if ( !create_new_package_ && config_data_->author_name_.empty() && config_data_->author_email_.empty() )
{
QMessageBox::warning( this, "Loading Project Without Author Information",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider renaming the window title to "Missing author information". The proposed one seems quite long for a window title.

@v4hn v4hn Sep 5, 2016 via email

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v4hn added 3 commits September 5, 2016 18:25
…ation

The author-information fields stay empty until the user regenerates .setup_assistant
to add the information there. This is unintuitive and should be explained.
This message tells the user to do that when loading a configuration without author information.
@v4hn
v4hn force-pushed the indigo-message-about-author-information branch from 534dd8b to 817198c Compare September 5, 2016 16:25
@rhaschke

rhaschke commented Sep 5, 2016

Copy link
Copy Markdown
Contributor

Thinking a little bit more about this PR, I came to the conclusion, that we shouldn't bother the user with even more warning messages, but instead fix the reason, why .setup_assistant file is not re-generated by default. The reason is that .setup_assistant file is by default disabled for re-generation, because it's file timestamp is more recent than the generation timestamp stored in the file. However, ignoring that fact, the file should always be written when the package is generated.
I filed v4hn#1 to do so.

@davetcoleman davetcoleman mentioned this pull request Sep 12, 2016
19 tasks done
@v4hn v4hn assigned rhaschke and unassigned v4hn Sep 13, 2016
@rhaschke

Copy link
Copy Markdown
Contributor

@v4hn What do you expect, I should do here? Shouldn't you merge v4hn#1? If you push your branch as a pr-* branch to ros-planning, we can more easily collaborate on finishing this.

@v4hn

v4hn commented Sep 15, 2016

Copy link
Copy Markdown
Contributor Author

On Wed, Sep 14, 2016 at 02:30:13PM -0700, Robert Haschke wrote:

@v4hn What do you expect, I should do here?
Shouldn't you merge v4hn#1?

I thought you would address the comments on v4hn#1 over there.
Because I couldn't assign that request to you (it's my fork), I assigned this one to you instead.

I could also file a new request with a pr- branch if you prefer that, but that would require a new request.

@rhaschke

Copy link
Copy Markdown
Contributor

Recreated in #221.

@rhaschke rhaschke closed this Sep 15, 2016
@davetcoleman davetcoleman added this to the Kinetic Release milestone Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants