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

Setup documentation files #23

Merged
merged 4 commits into from
Nov 30, 2023
Merged

Setup documentation files #23

merged 4 commits into from
Nov 30, 2023

Conversation

lezzago
Copy link
Member

@lezzago lezzago commented Nov 30, 2023

Description

Setup documentation files such as the README, GETTING_STARTED_GUIDE, and DEVELOPER_GUIDE.
Additionally the MAINTAINERS and CODEOWNERS files have been added.

Issues Resolved

N/A

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.

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
]
}
```
7. Create a model group with an example below (reference doc) and note the model group id.
Copy link
Member

Choose a reason for hiding this comment

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

Is there supposed to be a documentation reference linked where it says reference doc?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

this is going into main branch and has instructions to clone & build, where would the code be?

Comment on lines 67 to 79
- `yarn run cypress open`

- Opens the Cypress test runner.

- `yarn run cypress run`

- Runs all Cypress tests headlessly in the Electron browser.

To run the Cypress tests, you must have both OpenSearch and OpenSearch-Dashboards running with the ML Commons plugin.

If you are running Cypress tests with OpenSearch-Dashboards development server, pass these 2 options to `yarn start`:
1. `--no-base-path`: opt out the BasePathProxy.
1. `--no-watch`: make sure your server has not restarted.
Copy link
Member

Choose a reason for hiding this comment

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

we haven't added cypress yet, and i think all plugins should use functional test repo instead of cypress tests inside each plugin repo so this won't work?


There are unit/stubbed integration tests and Cypress e2e/integration tests.

- `yarn test:jest`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- `yarn test:jest`
- `yarn test`


1. Download OpenSearch for the version that matches the [OpenSearch Dashboard version specified in package.json](./package.json#L9).
1. Download and install the appropriate [OpenSearch ML Commons plugin](https://github.com/opensearch-project/ml-commons).
1Download the OpenSearch-Dashboards source code for the [version specified in package.json](./package.json#L9) you want to set up.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
1Download the OpenSearch-Dashboards source code for the [version specified in package.json](./package.json#L9) you want to set up.
1. Download the OpenSearch-Dashboards source code for the [version specified in package.json](./package.json) you want to set up.

This codebase uses Prettier as our code formatter. All new code that is added has to be reformatted using the Prettier version listed in `package.json`. In order to keep consistent formatting across the project developers should only use the prettier CLI to reformat their code using the following command:

```
yarn prettier --write <relative file path>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
yarn prettier --write <relative file path>
yarn lint --fix

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
3. Get log error info: Use to get information of logs with errors if the question contains an OpenSearch log index.
4. Search Alerting Monitors By Index: Use this tool to search alerting monitors by index name in the OpenSearch cluster.
5. Get All Alerts: Use this tool to search all alerts triggered in the OpenSearch cluster.
6. Get ticket information: Use this tool to find tickets in the system with incidents that are relevant to a question about error causes.
Copy link
Member

Choose a reason for hiding this comment

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

@sejli i remember you changed this to work with documentations vector store, do you have the text/wording? it might be better than having the ticket tool here

MAINTAINERS.md Outdated
| Ashish Agrawal | [lezzago](https://github.com/lezzago) | Amazon |
| Joshua Li | [joshuali925](https://github.com/joshuali925) | Amazon |
| Anirudha Jadhav | [anirudha](https://github.com/anirudha) | Amazon |
| Sean Li | [sejli](https://github.com/sejli) | Amazon |
Copy link
Member

@ruanyl ruanyl Nov 30, 2023

Choose a reason for hiding this comment

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

Could you add Yulong Ruan, Su Zhou, Tianyu Gao, Hailong Cui, Lin Wang to the maintainers list? These will be the main maintainers of chatbot UX and agent framework integration.

cc @SuZhou-Joe @xluo-aws @raintygao @wanglam @Hailong-am

@@ -0,0 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @lezzago @joshuali925 @anirudha @sejli
Copy link
Member

Choose a reason for hiding this comment

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

I see a warning:

Unknown owner on line 2: make sure @sejli exists and has write access to the repository
…ezzago @joshuali925 @anirudha @sejli

Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
@kavilla
Copy link
Member

kavilla commented Nov 30, 2023

i added a setup script #30 that I've been using. Would that be helpful?

@lezzago lezzago merged commit 62c2e78 into opensearch-project:main Nov 30, 2023
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.

5 participants