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

Add processes endpoint #30

Merged
merged 12 commits into from Aug 30, 2021
Merged

Add processes endpoint #30

merged 12 commits into from Aug 30, 2021

Conversation

NinadBhat
Copy link
Collaborator

No description provided.

@NinadBhat NinadBhat marked this pull request as draft July 23, 2021 12:17
Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

hi @NinadBhat , fine to continue along these lines

if you have any specific questions let us know

_orm_entity = orm.ProcessNode

id: Optional[int] = Field(description="Unique id (pk)")
uuid: Optional[UUID] = Field(description="Unique uuid")
Copy link
Member

Choose a reason for hiding this comment

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

UUID stands for "universally unique identifier", i.e. "unique" is already part of the abbreviation

@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
"""Declaration of FastAPI application."""
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
"""Declaration of FastAPI application."""
"""Declaration of FastAPI router for processes."""

conftest.py Outdated
@@ -53,6 +55,44 @@ def default_computers():
return [comp_1.id, comp_2.id]


@pytest.fixture(scope="function")
def default_process():
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
def default_process():
def example_processes():

conftest.py Outdated
@@ -53,6 +55,44 @@ def default_computers():
return [comp_1.id, comp_2.id]


@pytest.fixture(scope="function")
def default_process():
"""Populate database with some process"""
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
"""Populate database with some process"""
"""Populate database with some processes"""

@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2021

Codecov Report

Merging #30 (e2f7c35) into master (ac6e812) will increase coverage by 0.47%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   93.06%   93.53%   +0.47%     
==========================================
  Files          26       27       +1     
  Lines         879      944      +65     
==========================================
+ Hits          818      883      +65     
  Misses         61       61              
Flag Coverage Δ
pytests 93.53% <100.00%> (+0.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiida_restapi/main.py 100.00% <100.00%> (ø)
aiida_restapi/models.py 98.10% <100.00%> (+0.24%) ⬆️
aiida_restapi/routers/process.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac6e812...e2f7c35. Read the comment docs.

@NinadBhat NinadBhat marked this pull request as ready for review August 9, 2021 08:28
@@ -58,6 +58,7 @@ repos:
- passlib
- pytest~=3.6,<5.0.0
- sphinx<4
- importlib_metadata~=4.6.1
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
- importlib_metadata~=4.6.1
- importlib_metadata~=4.3

to be inline with aiidateam/aiida-core#5058

and in setup.json

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chrisjsewell I have made the changes

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

Looks good thanks 😄

@ltalirz ltalirz merged commit ee6a656 into aiidateam:master Aug 30, 2021
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.

None yet

4 participants