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

Fix worksheet count on dashboard when filtering by department #696

Merged
merged 3 commits into from
Feb 28, 2018
Merged

Fix worksheet count on dashboard when filtering by department #696

merged 3 commits into from
Feb 28, 2018

Conversation

juangallostra
Copy link
Contributor

Note: The functional modifications are in the files v01_02_004.py and worksheet_catalog.py. The changes in dashboard.py are only to follow PEP8 style guidelines.

Description of the issue/feature this PR addresses

When filtering by department the worksheet count that is shown in the dashboard doesn't get updated accordingly. This an effect of the real issue, which is that it is not possible to query the worksheets catalog by department UID since getDepartmentUIDs is not an index (KeywordIndex) of the catalog.

Current behavior before PR

Filtering by department isn't working with worksheets.

Desired behavior after PR is merged

  1. It is possible to filter worksheets by department.
  2. The worksheet count in the dashboard gets updated accordingly to the specified department filtering.

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Juan Gallostra added 2 commits February 27, 2018 13:36
This is to make filtering by department work with worksheets catalog.
Copy link
Contributor

@ramonski ramonski left a comment

Choose a reason for hiding this comment

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

Thanks Juan for PEP8'ing the dashboard! 👍

@ramonski ramonski merged commit 01c39a9 into senaite:master Feb 28, 2018
@juangallostra juangallostra deleted the worksheet-count-on-dashboard branch April 4, 2018 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants