Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only update report name in group reports menu when editing a report #4824

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

h-kataria
Copy link
Contributor

@h-kataria h-kataria commented Oct 24, 2018

Only update report name for user's group menu when editing an existing report. Since report are saved by name in user's group record for menus, updating report name while copying a report was causing an issue of showing incorrect reports in user created custom folders. Newly added and copied reports by default get added into My Company/Custom folder.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1632847

Only update report name for user's group menu when editing an existing report. Since report are saved by name in user's group record for menus, updating report name while copying a report was causing an issue of showing incorrect reports in user created custom folders. Newly added and copied reports by default get added into My Company/Custom folder.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641771
@miq-bot
Copy link
Member

miq-bot commented Oct 24, 2018

Checked commit h-kataria@fc669af with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@h-kataria h-kataria requested review from lgalis and removed request for skateman October 24, 2018 19:37
Copy link
Contributor

@lgalis lgalis left a comment

Choose a reason for hiding this comment

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

Verified in the UI that when the report is copied, a new report is added.
The name is updated on edit.

@mzazrivec mzazrivec added this to the Sprint 98 Ending Nov 5, 2018 milestone Oct 25, 2018
@mzazrivec mzazrivec merged commit c0034b9 into ManageIQ:master Oct 25, 2018
simaishi pushed a commit that referenced this pull request Oct 25, 2018
Only update report name in group reports menu when editing a report

(cherry picked from commit c0034b9)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1632847
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 0a544f669647637033b9da80c84d8302636db0f3
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Oct 25 12:08:31 2018 +0200

    Merge pull request #4824 from h-kataria/fix_copying_of_report
    
    Only update report name in group reports menu when editing a report
    
    (cherry picked from commit c0034b914089ccdf8eead1906283cd28e4e25ba2)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1632847

simaishi pushed a commit that referenced this pull request Nov 5, 2018
Only update report name in group reports menu when editing a report

(cherry picked from commit c0034b9)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641771
@simaishi
Copy link
Contributor

simaishi commented Nov 5, 2018

Gaprindashvili backport details:

$ git log -1
commit 0e644ab3961ab4e76c5bae2cea19c88ea302cc2b
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Oct 25 12:08:31 2018 +0200

    Merge pull request #4824 from h-kataria/fix_copying_of_report
    
    Only update report name in group reports menu when editing a report
    
    (cherry picked from commit c0034b914089ccdf8eead1906283cd28e4e25ba2)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641771

@h-kataria h-kataria deleted the fix_copying_of_report branch November 6, 2018 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants