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

[Plugins] update default url for installing plugins #1316

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Mar 3, 2022

Description

Update old and invalid reference to custom plugins within
the OpenSearch Project.

Note: At the time that this is committed there is no gurantee
that the latest build is the build that was select as the
final build.

Signed-off-by: Kawika Avilla [email protected]

Issues Resolved

#1038

Check List

  • New functionality includes testing.
    • All tests pass
      • yarn test:jest
      • yarn test:jest_integration
      • yarn test:ftr
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

Update old and invalid reference to custom plugins within
the OpenSearch Project.

Note: At the time that this is committed there is no gurantee
that the latest build is the build that was select as the
final build.

Issue resolved:
opensearch-project#1038

Signed-off-by: Kawika Avilla <[email protected]>
Copy link
Member

@ashwin-pc ashwin-pc left a comment

Choose a reason for hiding this comment

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

LGTM!

return [plugin, generatePluginUrl(version, plugin)];
}

function generatePluginUrl(version, plugin) {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: This could have just been in generateUrls since that function doesn't do anything anymore 😂

Copy link
Member

Choose a reason for hiding this comment

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

I think there is one called generateUrls (line 42) right?

Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

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

LGTM

return [plugin, generatePluginUrl(version, plugin)];
}

function generatePluginUrl(version, plugin) {
Copy link
Member

Choose a reason for hiding this comment

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

I think there is one called generateUrls (line 42) right?

@kavilla kavilla merged commit 9c82c52 into opensearch-project:main Mar 8, 2022
@kavilla kavilla deleted the avillk/plugin_http branch March 8, 2022 18:55
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 8, 2022
Update old and invalid reference to custom plugins within
the OpenSearch Project.

Note: At the time that this is committed there is no gurantee
that the latest build is the build that was select as the
final build.

Issue resolved:
#1038

Signed-off-by: Kawika Avilla <[email protected]>
(cherry picked from commit 9c82c52)
ananzh pushed a commit that referenced this pull request Mar 8, 2022
Update old and invalid reference to custom plugins within
the OpenSearch Project.

Note: At the time that this is committed there is no gurantee
that the latest build is the build that was select as the
final build.

Issue resolved:
#1038

Signed-off-by: Kawika Avilla <[email protected]>
(cherry picked from commit 9c82c52)

Co-authored-by: Kawika Avilla <[email protected]>
Comment on lines +41 to +42
const ORIGINAL_PLATFORM = process.platform;
const ORIGINAL_ARCHITECTURE = process.arch;
Copy link
Contributor

Choose a reason for hiding this comment

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

This causes tests to be inconsistent depending on which platform/architecture you're running them from.

Copy link
Contributor

Choose a reason for hiding this comment

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

My snapshots were updated on my arm64 machine and then they failed in GitHub Actions: https://github.com/opensearch-project/OpenSearch-Dashboards/runs/5548019026?check_suite_focus=true

Copy link
Contributor

Choose a reason for hiding this comment

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

Going to submit a PR to fix this now.

Copy link
Contributor

Choose a reason for hiding this comment

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

tmarkley pushed a commit to tmarkley/OpenSearch-Dashboards that referenced this pull request Mar 15, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in opensearch-project#1316.

Signed-off-by: Tommy Markley <[email protected]>
tmarkley pushed a commit to tmarkley/OpenSearch-Dashboards that referenced this pull request Mar 17, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in opensearch-project#1316.

Signed-off-by: Tommy Markley <[email protected]>
kavilla pushed a commit that referenced this pull request Mar 23, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in #1316.

Signed-off-by: Tommy Markley <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 23, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in #1316.

Signed-off-by: Tommy Markley <[email protected]>
(cherry picked from commit 7aba935)
tmarkley pushed a commit that referenced this pull request Mar 23, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in #1316.

Signed-off-by: Tommy Markley <[email protected]>
(cherry picked from commit 7aba935)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 28, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in #1316.

Signed-off-by: Tommy Markley <[email protected]>
(cherry picked from commit 7aba935)
ananzh pushed a commit that referenced this pull request Apr 28, 2022
* The tests assumed that the platform/architecture combo the tests were
  run from was always linux/x64.
* Introduced in #1316.

Signed-off-by: Tommy Markley <[email protected]>
(cherry picked from commit 7aba935)

Co-authored-by: Tommy Markley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants