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

Handle legacy SC CLI options #232

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexh-sauce
Copy link
Contributor

  • Add new fields for SC5 options
  • Add a warning if the old config options are still used
  • Fail if both styles of config options are set

This depends on changes in saucelabs/ci-sauce#312


if (optionsValue) {
isDeprecated = true;
deprecationText = "Legacy SC4 CLI commands are deprecated. Please update to SC5 style CLI flags."
Copy link

@amckenzie132 amckenzie132 Jan 15, 2025

Choose a reason for hiding this comment

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

Use field names, something like:
"Sauce Connect Legacy Options" is deprecated. Please use "Sauce Connect Options".

<f:entry title="${%Sauce Connect Options}" field="sauceConnectOptions">
<hr/>
<div id="validationMessage" style="color: red;"></div>
<div id="deprecationMessage" style="color: orange;"></div>

Choose a reason for hiding this comment

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

Is it possible to have the deprecation message right above the Sauce Connect Legacy Options text box?

@@ -10,9 +10,9 @@
<select name="restEndpoint">
<option value="https://saucelabs.com/" selected="${instance.restEndpoint.equals('https://saucelabs.com/') ? 'true' : null}">US</option>
<option value="https://eu-central-1.saucelabs.com/" selected="${instance.restEndpoint.equals('https://eu-central-1.saucelabs.com/') ? 'true' : null}">EU</option>
<option value="https://us-east-1.saucelabs.com/" selected="${instance.restEndpoint.equals('https://us-east-1.saucelabs.com/') ? 'true' : null}">US_EAST</option>
<option value="https://us-east-1.saucelabs.com/" selected="${instance.restEndpoint.equals('https://us-east-1.saucelabs.com/') ? 'true' : null}">US_EAST 1 (deprecated)</option>

Choose a reason for hiding this comment

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

I wonder if deprecated notice fits it well. We might support it in the future, right?

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.

3 participants