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

Adds linter rules for license and import. Fixes lint issues #319

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

ashwin-pc
Copy link
Member

Signed-off-by: Ashwin Pc ashwinpc@amazon.com

Description

Adds two eslint rules and fixes issues caught by the linter

  • eslint-plugin-header: To enforce license header
  • eslint-plugin-import: To error for import issues

Issues Resolved

Fixes linting issues

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ashwin-pc ashwin-pc requested a review from a team as a code owner October 6, 2022 07:17
Comment on lines 69 to 71
// cy.log('Deleting index with name: ' + indexName);
// cy.deleteIndex(indexName);
Copy link
Member Author

Choose a reason for hiding this comment

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

This should not break any test since indexName is actually not defined anywhere. I'm not sure how the tests were running for this to begin with.

Copy link
Collaborator

Choose a reason for hiding this comment

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

hey @ohltyler , do you have context for this test? it's weird that indexName is not defined

Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks! Did we want to add a lint github workflow?

@tianleh
Copy link
Member

tianleh commented Oct 6, 2022

LGTM! Thanks! Did we want to add a lint github workflow?

Great idea! Seems another good first issue.

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
@tianleh tianleh merged commit 317f156 into opensearch-project:main Oct 6, 2022
@ashwin-pc ashwin-pc deleted the visBuilder branch October 7, 2022 10:54
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-319-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 317f15665b900737565eff8c8b0b8534f47ddac1
# Push it to GitHub
git push --set-upstream origin backport/backport-319-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-319-to-2.x.

tianleh pushed a commit that referenced this pull request Oct 15, 2022
Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 317f156)
tianleh added a commit that referenced this pull request Oct 15, 2022
Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
(cherry picked from commit 317f156)

Co-authored-by: Ashwin P Chandran <ashwinpc1993@gmail.com>
jakubp-eliatra pushed a commit to sebastianmichalski/opensearch-dashboards-functional-test that referenced this pull request Mar 24, 2023
…roject#319)

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>

Signed-off-by: Ashwin Pc <ashwinpc@amazon.com>
Signed-off-by: Jakub Przybylski <jakub.przybylski@eliatra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants