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: ACNA-1634 - Replace Developer Terms of Service text with help text and Developer Console url #566

Merged
merged 3 commits into from
Aug 23, 2022

Conversation

amulyakashyap09
Copy link
Contributor

Description

Developer Terms of Service - revert the feature partially, in that when detecting that new Dev Terms are available and not accepted, we output some help text with something to this effect, and error exit:
You have not accepted the Developer Terms for your org XYZ. Please visit https://developer.adobe.com/console/home, select your XYZ org, and accept the terms.

I tried to have a direct url to an org, there doesn't seem to be one, just the home screen.

We delegate the acceptance to the Developer Console.

Related Issue

ACNA-1634

Motivation and Context

The link must always be shown for legal reasons.

How Has This Been Tested?

  • This has been tested locally
  • Unit tests are passing
  • No change in coverage

Screenshots (if appropriate):

Screenshot 2022-08-23 at 1 39 27 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Aug 23, 2022

Codecov Report

Merging #566 (4ac00c0) into master (9bfd9f2) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #566   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           50        50           
  Lines         2607      2608    +1     
  Branches       473       473           
=========================================
+ Hits          2607      2608    +1     
Impacted Files Coverage Δ
src/commands/app/init.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shazron shazron changed the title ACNA-1634 | Replace Developer Terms of Service text with help text and Developer Console url fix: ACNA-1634 - Replace Developer Terms of Service text with help text and Developer Console url Aug 23, 2022
@@ -18,6 +18,7 @@ const chalk = require('chalk')
// const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:init', { provider: 'debug' })
const { Flags } = require('@oclif/core')
const generators = require('@adobe/generator-aio-app')
const hyperlinker = require('hyperlinker')
Copy link
Member

Choose a reason for hiding this comment

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

since we are already including @oclif/core, why not use CliUx.ux.url? So we don't need another dependency.
https://github.com/oclif/core/tree/main/src/cli-ux

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @shazron ,

  • oclif hyperlink functionality CliUx.ux.url seems to be broken, It returns promise back
  • Unable to use it with template-literals .. It is not working despite many efforts
  • And oclif has underlying same package hyperlink for CliUx.ux.url functionalilty.

Thanks,

Copy link
Member

Choose a reason for hiding this comment

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

Looks like CliUx.ux.url does not return the "hyperlinked" text, but modifies the text stream directly. Let's not waste any more time on this and use hyperlink, your original plan

@@ -18,6 +18,7 @@ const chalk = require('chalk')
// const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:init', { provider: 'debug' })
const { Flags } = require('@oclif/core')
const generators = require('@adobe/generator-aio-app')
const hyperlinker = require('hyperlinker')
Copy link
Member

Choose a reason for hiding this comment

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

Looks like CliUx.ux.url does not return the "hyperlinked" text, but modifies the text stream directly. Let's not waste any more time on this and use hyperlink, your original plan

@amulyakashyap09 amulyakashyap09 merged commit 8e43e17 into master Aug 23, 2022
@shazron shazron deleted the ACNA-1634-hyperlink-support branch August 25, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants