fix: removing extra check for Terms and conditions acceptance#1274
fix: removing extra check for Terms and conditions acceptance#1274
Conversation
|
Is there a supporting issue with the reason for this change? If this is merged, the user will simply be given a 403 forbidden error with no steps guiding them to complete the T&Cs? |
|
Please ignore for the moment |
|
Comming back to this. I wanted to see how we can detect this specific error from the server. With different services now offering different terms and conditions this becomes more and more convoluted. @pmuir proposal was to keep different terms keys outside CLI which is great idea but considering how little value IMHO we getting from checking terms upfront for Kafka I think we might just remove it and provide better message from backend to support it. Another idea would be to have API on the backend to verify if user can create Kafka instance - checking some elements like limits, terms and conditions etc. This is probably not going to happen due to work required in backend so close to milestone |
|
Yeah, I'm really unhappy about a backwards step in usability that is caused by stripping this out. A meta api to check all conditions is possibly a good idea. Can you propose this @wtrocki |
Yes, but upon reading the discussions about this, we can actually be more flexible with the following flow:
This still is not possible currently without the AMS SDK integration, as the backend does not return the specific information about the T&Cs - i.e. the URL to them.
We usually don't want to print out the error message from the API directly, however I think in this case it could be okay, so long as the messaging is clear and makes sense to the user. It would also mean we could proceed with the suggested flow above. |
This works well for the direct invocation of the command with paramters, but for the wizard flow it's still much better to check the preconditions up front. |
|
I was actually thinking about this in a wizard flow - we still have the values the user had submitted. $ rhoas kafka create
? Name: enda-dev
? Cloud Provider: aws
? Cloud Region: eu-west-1
Please agree to the terms and conditions etc etc: https://terms-and-conditions.com.
Press enter to submit again...
Agreed, this solution was a middle ground to decoupling the CLI and T&Cs event code, but also saving the user from having to reenter their data, as would be the case if we simply removed the pre-check. A metadata API or YAML file would mean the existing flow could stay. |
For me, this is not something I would see as a problem considering how much complexity of reading metadata for each service, updating it, documenting for developers etc. Service registry creation is now broken so it will be good if we decide short and long term plan For me short term plan would be to remove terms and condition checks and match errors returned to backend with predefined i18n messages containing specific terms URL per service. Any opinions? |
|
I really like what @craicoverflow is suggesting. It resolves UX problem and minimizes complexity at the same time so we can do it right now |
|
I've already expressed my opinion. This is a dreadful approach. |
|
superseded by #1276 |
No description provided.