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 kavilla414@gmail.com

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

@kavilla kavilla requested a review from a team as a code owner March 3, 2022 21:31
@kavilla kavilla requested review from ananzh and tmarkley March 4, 2022 00:23
@kavilla kavilla force-pushed the avillk/plugin_http branch from 6b47705 to e0be5a5 Compare March 5, 2022 09:19
@kavilla kavilla requested a review from tmarkley March 5, 2022 09:37
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 <kavilla414@gmail.com>
@kavilla kavilla force-pushed the avillk/plugin_http branch from e0be5a5 to d728364 Compare March 7, 2022 22:28
@kavilla kavilla requested a review from ashwin-pc March 7, 2022 22:29
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 <kavilla414@gmail.com>
(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 <kavilla414@gmail.com>
(cherry picked from commit 9c82c52)

Co-authored-by: Kawika Avilla <kavilla414@gmail.com>
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 <markleyt@amazon.com>
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 <markleyt@amazon.com>
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 <markleyt@amazon.com>
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 <markleyt@amazon.com>
(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 <markleyt@amazon.com>
(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 <markleyt@amazon.com>
(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 <markleyt@amazon.com>
(cherry picked from commit 7aba935)

Co-authored-by: Tommy Markley <markleyt@amazon.com>
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