Skip to content

Design architecture#6

Merged
ubyndr merged 13 commits intomainfrom
4-design-architecture
Apr 28, 2023
Merged

Design architecture#6
ubyndr merged 13 commits intomainfrom
4-design-architecture

Conversation

@ubyndr
Copy link
Copy Markdown
Collaborator

@ubyndr ubyndr commented Apr 20, 2023

Resolves #4

I have added classes and methods, and empty test classes.

I'm not 100% sure about the curie validation part, class hierarchy and static methods I've added. It would be nice to have a discussion.

@ubyndr ubyndr requested review from anitacaron and dosumis April 20, 2023 09:42
Copy link
Copy Markdown
Contributor

@dosumis dosumis left a comment

Choose a reason for hiding this comment

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

Looks great. Some small changes requested. Would like to get one or two more reviews @anitacaron @udp @hkir-dev would you have time to take a look? (this is to fulfill functional spec in #1 )

Comment thread src/pandasaurus/query.py Outdated
Comment thread src/pandasaurus/query.py Outdated
@dosumis
Copy link
Copy Markdown
Contributor

dosumis commented Apr 20, 2023

@udp - more concrete use-case here #3

Comment thread src/pandasaurus/query.py Outdated
@anitacaron
Copy link
Copy Markdown
Collaborator

Are we going to use poetry?

@dosumis
Copy link
Copy Markdown
Contributor

dosumis commented Apr 20, 2023

Are we going to use poetry?

@anitacaron - Seems reasonable, but maybe not needed on this PR - can you create a ticket & link to the details?

Comment thread src/pandasaurus/utils/query_utils.py Outdated
@@ -0,0 +1,71 @@
from ..config import default_config
from typing import List
from SPARQLWrapper import SPARQLWrapper, JSON
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider using OAK as a wrapper for querying UberGraph. There are some advantages - e.g. support for standard prefixes. @anitacaron can tell you more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Even thought I'm not sure how the prefix validation will be done, do we really need an excavator for a task that can be done with a small shovel?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know what you mean - but also thinking about potentially calling other OAK functions in future. I think worth discussing with @anitacaron.

@dosumis
Copy link
Copy Markdown
Contributor

dosumis commented Apr 20, 2023

Add requests.txt with dependencies at root

@anitacaron
Copy link
Copy Markdown
Collaborator

anitacaron commented Apr 20, 2023

Add requests.txt with dependencies at root

We're going to use poetry for this. #7

@ubyndr ubyndr requested a review from hkir-dev April 25, 2023 14:09
@hkir-dev
Copy link
Copy Markdown
Collaborator

In general project structure looks great.

Can we make automatic code coverage tests part of CI? Recently I tried Codecov. It's free for public repos. You can configure it to run as part of your CI github action (example action). It will automatically calculate the code coverage change for each pull request and make a comment (such as).

Also it would be wonderful if we can find similar apps for code style and quality checks.

Comment thread src/pandasaurus/query.py Outdated
@ubyndr ubyndr requested a review from dosumis April 26, 2023 19:02
@ubyndr
Copy link
Copy Markdown
Collaborator Author

ubyndr commented Apr 28, 2023

Can we make automatic code coverage tests part of CI?

I have created an issue for this, #8 .

@anitacaron
Copy link
Copy Markdown
Collaborator

Also it would be wonderful if we can find similar apps for code style and quality checks.

I'll set up poetry with flask8 and add GH Action to check each PR.

@anitacaron
Copy link
Copy Markdown
Collaborator

anitacaron commented Apr 28, 2023

@ubyndr, qc didn't pass 😬 let me know if you don't get the suggestion message.

Use poetry install to install the dependencies. And use poetry run before any command.

@ubyndr
Copy link
Copy Markdown
Collaborator Author

ubyndr commented Apr 28, 2023

@ubyndr, qc didn't pass 😬 let me know if you don't get the suggestion message.

Thanks for the commits, but I would prefer the qc and poetry additions in an other PR. It would be better, wouldn't it?

@anitacaron
Copy link
Copy Markdown
Collaborator

The sooner you can start using QC, the better. As you can see, the QC is already not passing.

@ubyndr
Copy link
Copy Markdown
Collaborator Author

ubyndr commented Apr 28, 2023

The sooner you can start using QC, the better. As you can see, the QC is already not passing.

Fair point, but it is not in the scope of #4 . I made some updates but ignoring F401 errors for now.

@ubyndr ubyndr merged commit 88c37c9 into main Apr 28, 2023
@ubyndr ubyndr deleted the 4-design-architecture branch April 28, 2023 15:27
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.

Design architecture

4 participants