Skip to content

add schema as data to database; #139

Merged
vishpillai123 merged 37 commits into
stagingfrom
develop
Jul 25, 2025
Merged

add schema as data to database; #139
vishpillai123 merged 37 commits into
stagingfrom
develop

Conversation

@Mesh-ach
Copy link
Copy Markdown
Contributor

@Mesh-ach Mesh-ach commented Jul 21, 2025

changes

context

questions


@Mesh-ach Mesh-ach marked this pull request as ready for review July 21, 2025 18:13
@Mesh-ach Mesh-ach requested a review from vishpillai123 July 21, 2025 18:56
Copy link
Copy Markdown
Collaborator

@vishpillai123 vishpillai123 left a comment

Choose a reason for hiding this comment

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

Overall, looks good though I had a few comments on the type checks and potential unit tests we can add. Dev URL will help a lot with testing / development I think.

Comment thread src/webapp/database.py Outdated


class FileTable(Base):
class FileTable(Base): # type: ignore
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Throughout this PR, I noticed that there are a lot of type checks that are being ignored. Why is that?

Type checks can be annoying so I get it, but I think best practice is just to resolve them since they can be important in catching bugs / runtime exceptions. Doing some quick research, it looks like you can use from sqlalchemy.orm import DeclarativeBase with SQLAlchemy 2.0+ instead of declarative_base(), which could help with the type errors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah I tried that it's not working, also these are codes from google fellows, whenever i make a tiny little change it raises the errors again, I need to specify a new version of sqlalchemy for it to go away, that's why is set it to ignore

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah type check errors can be really persistent and annoying. Do you mind if I give a shot at resolving them? I can pull down your branch and take a look at VS code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah that's totally fine

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ok I think I got it for the most part, so I'll hit approve. We still are ignoring types in the unit test, but I think it's ok since it's just a unit test.

Comment thread src/webapp/database.py
Comment thread src/webapp/gcsutil.py
@vishpillai123 vishpillai123 merged commit 93fb931 into staging Jul 25, 2025
10 checks passed
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.

2 participants