-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
[15.0][IMP] bi_view_editor
: Restrict access to non BI View Editor Manager users
#801
[15.0][IMP] bi_view_editor
: Restrict access to non BI View Editor Manager users
#801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too much files changed. Could you fix it ?
thanks !
@legalsylvain It's because I regenerated translations. The group name was added to the translation files. I can remove them. |
ebdc95a
to
4eadad5
Compare
@legalsylvain sorry, I forgot translations will be regenerated automatically, too much translations generated on projects recently 😄 |
@legalsylvain is this ok now? |
I don't use personaly this module. I prefer to have a point of view of the initial developers. |
4eadad5
to
a5612c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Right now all users can edit the views so, in order to avoid unexpected behaviors when the module is updated, I think a migration is needed to assign the new group to everyone; what do you think?
Not sure. It will generate errors, if base_user_role (other OCA module) is installed. |
Is this fixing a security issue? New installs should be aware of the module's behaviour, and it should be mentioned in the README; otherwise a normal user installing the module wouldn't be able to access the menu mentioned in the Usage section. |
@monen17 I think it's normal when some functionality of module changes/new feature appears.
|
acbfe97
to
4df35fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems legit. Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of #801 (review), everyone seeing the menu is a good compromise between not seeing anything and everyone being a view manager.
Here you have just a couple of notes, the only blocking comment is the fact that changes to the README are overwritten.
Also please fix the commits:
- Fix up the fixup! commit.
You probably did it to let me see the clean changes (thanks!) but the commit history is part of what has to be reviewed so I can't really approve a PR having a fixup! commit.
For the future, in my opinion you should always organize the commits as you want them to be merged. - The commit message is too long, see https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message
I suggest [IMP] bi_view_editor: Restrict access to BI View Editor Managers
Then you can write any explanation in the 2nd and following lines fo the message.
bi_view_editor/README.rst
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README file is overwritten by files in the readme folder, so those files should be edited instead (there is also a warning about it at the top of this file).
You can have a look at https://github.com/OCA/maintainer-tools#readme-generator for more details
bi_view_editor/README.rst
Outdated
@@ -76,6 +76,8 @@ Usage | |||
To graphically design your analysis data-set: | |||
|
|||
- From the Dashboards menu, select "Custom BI Views" | |||
- BI Views creation is restricted to admin users and members of "BI View Editor Manager" group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- BI Views creation is restricted to admin users and members of "BI View Editor Manager" group. | |
- BI Views creation is restricted to members of "BI View Editor Manager" group. |
bi_view_editor/README.rst
Outdated
@@ -88,6 +90,7 @@ To access the created BI View with a dedicated menu: | |||
|
|||
- If module Dashboard (board) is installed, the standard "Add to My Dashboard" | |||
functionality would be available | |||
- "Create a menu" is restricted to admin users and members of "BI View Editor Manager" group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "Create a menu" is restricted to admin users and members of "BI View Editor Manager" group. | |
- "Create a menu" is restricted to members of "BI View Editor Manager" group. |
4df35fa
to
fecc083
Compare
@monen17 thanks for the review, your suggestions are applied and PR is updated |
@monen17 @legalsylvain can we finish this PR review and merge? |
@HviorForgeFlow can you pls also pay attention on this PR? It's updated with @monen17 suggestions as maintainer and it will also be forwarded to v16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review 👍
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 776b468. Thanks a lot for contributing to OCA. ❤️ |
@yankinmax ready to be forward ported |
Forward-port changes from 15.0 OCA#801
Forward-port changes from 15.0 OCA#801
Forward-port changes from 15.0 OCA#801
Forward-port changes from 15.0 OCA#801
[MIG+IMP] bi_view_editor: Migration to v10 + enhancements * Add menu items creation feature * Added selection of fields of a tree view * Improved usability and strings made translatable * Avoid display duplicated nodes * Robustness * Updated Dutch translation * Avoid possible sql injection in bi_view_editor * Removed deprecated RegistryManager OCA Transbot updated translations from Transifex [MIG] bi_view_editor: Migration to 11.0 [FIX] bi_view_editor: Apostrophe + migration script Apostrophe in model name raised ValueError. Added needed migration script. Remove logger warnings during update all [FIX] Field widget, new readme + Make enabled in list view default true Drop bi views when uninstalling module [UPD] README.rst [UPD] Update bi_view_editor.pot [12.0][MIG] bi_view_editor Add extra functionalities Add LEFT JOIN capabilities Add sums and avg capabilities for tree views Robustness and code review Provide ER diagram view for table relations [UPD] Update bi_view_editor.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-12.0/reporting-engine-12.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-bi_view_editor/ bi_view_editor: window functions without ORDER BY clause do not have reliable behavior bi_view_editor: Better error message if the query is not correct pre-commit [13.0][MIG] bi_view_editor [14.0][MIG] bi_view_editor pre-commit [UPD] Update bi_view_editor.pot [UPD] README.rst bi_view_editor: add deb external dependencies Translated using Weblate (Italian) Currently translated at 18.6% (17 of 91 strings) Translation: reporting-engine-14.0/reporting-engine-14.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-bi_view_editor/it/ [IMP] bi_view_editor : black, isort, prettier [MIG] bi_view_editor: Migration to 15.0 [UPD] Update bi_view_editor.pot [UPD] README.rst [MIG] bi_view_editor: migration to 16.0 [UPD] Update bi_view_editor.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/ [IMP] bi_view_editor: Restrict access to BI View Editor Managers Forward-port changes from 15.0 OCA#801 [UPD] Update bi_view_editor.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/ Translated using Weblate (Spanish) Currently translated at 100.0% (91 of 91 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/es/ Translated using Weblate (Italian) Currently translated at 18.6% (17 of 91 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/it/ Translated using Weblate (Japanese) Currently translated at 53.8% (49 of 91 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/ja/ Translated using Weblate (Italian) Currently translated at 100.0% (91 of 91 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/it/ [UPD] Update bi_view_editor.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/ Translated using Weblate (Italian) Currently translated at 100.0% (92 of 92 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/it/ Translated using Weblate (Swedish) Currently translated at 100.0% (92 of 92 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-bi_view_editor Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-bi_view_editor/sv/ [IMP] bi_view_editor: pre-commit auto fixes [17.0][MIG] bi_view_editor: Migrate [17.0][MIG] bi_view_editor: Migrate
No description provided.