-
Notifications
You must be signed in to change notification settings - Fork 4
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
DIGIT Team Group + Kibana + Queries #2861
Conversation
- Updated frontend to allow digit access to admin and kibana
- Update test - Add fixture
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2861 +/- ##
===========================================
- Coverage 93.50% 93.47% -0.04%
===========================================
Files 268 269 +1
Lines 6190 6219 +29
Branches 528 530 +2
===========================================
+ Hits 5788 5813 +25
- Misses 309 313 +4
Partials 93 93
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
tdrs-backend/tdpservice/users/migrations/0040_digit_team_permissions.py
Outdated
Show resolved
Hide resolved
tdrs-backend/tdpservice/users/migrations/0040_digit_team_permissions.py
Outdated
Show resolved
Hide resolved
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.
need to rename the migration file
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!
'OFA System Admin', | ||
'ACF OCIO', | ||
'OFA Admin', | ||
'DIGIT Team', |
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.
this enables the Admin
tab on the frontend if the user has DIGIT Team
as a role - this is a little weird when the user does not have superuser or staff privileges (though i think that problem pre-exists the digit team role specifically) - just want to clarify if digit team members are expected to have admin privileges
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.
They are expected to have Admin privileges in the same vain as ACF OCIO
. The digit team can only see a very small subset of the entire admin console. Specifically, datafiles, datafile summary, and parser errors. I can double check with Alex if she wants all three or strictly just datafiles.
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.
Just re-read the requirements of the file, and the team needs to see the parsed data (duh haha) so I am going to add view permission for that also.
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.
minor suggestion, otherwise looking good!
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.
@elipe17 below is a summary of testing results. test notes here
Summary
- digit group successfully added
- digit group does have access to kibana endpoint
- the kibana dev tools console queries, as documented in the markdown, isnt working properly. I know that you mentioned that there is an issue with the
fields
. In the meantime, we did confirm during our sync that KQL queries from the dashboard worked as expected. - cloud.gov upgraded ES version to 7.10 today, and im curious if this will give us the CSV export capability we'd like to have, and if there is a limit on the number of records that would be returned. our queries to the legacy db, for example, can return upwards of 600K records.
- related, how do we specify in the query that we only want the most recent version of records only? Is this the default?
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.
@elipe17 approving this since ACs are met. 🚀 In response to my testing notes, I'm including takeaways from our sync below.
#2908 can be used to track follow-on work to facilitate OFA's access to parsed data.
@elipe17 below is a summary of testing results. test notes here
Summary
- digit group successfully added
✔️
- digit group does have access to kibana endpoint
✔️
- the kibana dev tools console queries, as documented in the markdown, isnt working properly. I know that you mentioned that there is an issue with the
fields
. In the meantime, we did confirm during our sync that KQL queries from the dashboard worked as expected.
- cloud.gov upgraded ES version to 7.10 today, and im curious if this will give us the CSV export capability we'd like to have, and if there is a limit on the number of records that would be returned. our queries to the legacy db, for example, can return upwards of 600K records.
- related, how do we specify in the query that we only want the most recent version of records only? Is this the default?
created_at
value for the latest file and include it in the query. we should be able to make a dashboard that contains info about the latest datafile's records, if OFA would find this useful.
Summary of Changes
Pull request closes As OFA tech lead, I need a new permissions group for OFA data analysts #1441
How to Test
REACT_APP_DEV_KIBANA
from the frontend.env
fileBYPASS_KIBANA_AUTH=True
in the backend.env
DIGIT Team
checkis_staff
OFA_to_Kibana_Queries_with_Export.md
Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
/admin/data_files/*
Elastisearchpostgres dbDeliverable 2: Tested Code
CodeCov Report
comment in PR)CodeCov Report
comment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjolly
andttran-hub
using Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):