-
Notifications
You must be signed in to change notification settings - Fork 10
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
AAP-15464: Enable Opt-Out Telemetry (the UI/UX to enable) #718
Conversation
c34be83
to
2d338ea
Compare
since |
I've changed things around a little so that |
@manstis cool, thanks for clarifying, i will adjust the tests accordingly |
@manstis just a quick though... should we default the opt-out to |
@manstis another thought - for the |
Hi @romartin
That's a fair point; we could hide the new field for non-administrators. Let's see what @robinbobbitt thinks. |
Oh right!! Makes sense, sorry for the confusion 👍 |
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.
Hey @manstis ! Looks great, nice work, as usually :)
Just asked for a couple of Qs, but in general, looks great, it deserves approval :)
@goneri I've added you for review simply because I have now added a FK between the (new) |
Running
|
@romartin @robinbobbitt @goneri The UI design has been finalised by UX. See https://issues.redhat.com/browse/AAP-18631 I however propose this PR gets merged and I iterate on the UI implementation. |
I built a fresh container to include your updated requirements and I get the following error:
|
I just retried with last CI build of the container:
And I'm facing the very same error :sad_meow:. There is something off. |
Ah, cool. I had to run it separately as I'm set up quite differently. Thanks! |
96e9346
to
648d590
Compare
@goneri I could replicate the issue locally 😃 There was a missing I've added the missing file and re-tested locally. All good now. Great find. Thank-you. |
Jira Issue: https://issues.redhat.com/browse/AAP-15464
Description
This PR adds the ability for Admin Users to Opt In/Out of the collection of additional Telemetry data for an Organisation.
This is delivered with:
The UI design was of my own choosing. I have asked UX to review/comment/improve but it is probably sufficient for now and we can iterate on a design as and when it is provided.
/me
endpoint.The feature can be enabled/disabled with the
ADMIN_PORTAL_TELEMETRY_OPT_ENABLED
environment variable. When running in development it is always included. When enabled the UI shows the "Telemetry" navigation item, new REST endpoints exist and the/api/v0/me
endpoint returns additional data.It is not possible to conditionally compile the Open API Definition and as such the new endpoints are publicised but may be inaccessible.
Testing
You can test the UI with the "Development Admin Portal" or "in full".
Steps to test using "Development Admin Portal"
cd ./ansible_wisdom_console_react
npm install
(assuming you have not done this previously)npm run start
Steps to test "in full"
make admin-portal-bundle
make start-backends
make create-application
ansible-wisdom-server
in your usual way (e.g.make run-server
)/api/v0/me
endpoint.Scenarios tested
/api/v0/me
endpoint works as expected.Production deployment
This is but a part of the larger Organisational Telemetry Opt In/Out feature.
ADMIN_PORTAL_TELEMETRY_OPT_ENABLED=False
inmain.settings.production.py
and hence the feature is effectively disabled.This PR adds
Organization
as a optional foreign key constraint onUser
too.