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

DH-4724/adding support for db level instructions #185

Merged
merged 11 commits into from
Sep 27, 2023

Conversation

MohammadrezaPourreza
Copy link
Contributor

No description provided.

@@ -19,6 +19,13 @@ def __init__(self, system: System):
"ssh_settings": None,
}
]
self.memory["instructions"] = [
{
"_id": "64dfa0e103f5134086f7090c",
Copy link
Contributor

Choose a reason for hiding this comment

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

I see we are adding an instruction but are we testing the 4 new instruction endpoints?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aazo11 we basically don't test the instructions, all of the pytests that we have are only empty classes, almost for all of the classes

dataherald/api/fastapi.py Outdated Show resolved Hide resolved
dataherald/api/fastapi.py Outdated Show resolved Hide resolved
README.md Outdated

```
curl -X 'GET' \
'<host>/api/v1/instructions?page=1&limit=10' \
Copy link
Contributor

Choose a reason for hiding this comment

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

you can set db_connection_id here '/api/v1/instructions?page=1&limit=10&db_connection_id=12312312'

.. code-block:: rst

curl -X 'GET' \
'<host>/api/v1/instructions?page=1&limit=10' \
Copy link
Contributor

Choose a reason for hiding this comment

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

Set db_connection_id as query param

@MohammadrezaPourreza MohammadrezaPourreza merged commit 0e5bce2 into main Sep 27, 2023
@MohammadrezaPourreza MohammadrezaPourreza deleted the DH-4724/adding_support_for_instructions branch September 27, 2023 21:16
DishenWang2023 pushed a commit that referenced this pull request May 7, 2024
* DH-4724/adding support for db level instructions

* DH-4724/chanign the database tests

* DH-4724/changing the find_all() function

* DH-4724/changing the tests

* DH-4724/adding find_by method to instructionRepo

* DH-4724/reformat

* DH-4724/add paginating to the db

* DH-4724/reformat with black

* DH-4724/updating the endpoints to be RESTfull

* DH-4724/reformat with black

* DH-4724/changing the docs
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