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

Area API + getDoc without markdown contents #75

Merged
merged 20 commits into from
Mar 29, 2024
Merged

Area API + getDoc without markdown contents #75

merged 20 commits into from
Mar 29, 2024

Conversation

KeveenWong
Copy link
Contributor

Completed area API and getDoc to get metadata of contents.

Copy link
Contributor

@armintalaie armintalaie left a comment

Choose a reason for hiding this comment

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

Hi @KeveenWong,

good work! it needs some fixing before merging in main.
It has been deployed though so it e.g. getAreas - however it's not ready imo

i've left comments but in general:

  • updating sql tables to follow naming conventions (and consequently the db.ts type definitions)
  • input restrictions on area and doc name (refer to the comment)
  • area api should be fully functional (CRUD Area, CRUD Doc (in db terms not s3))
  • number of doc removal/change

Note on SQL scripts:

To make changes to sql tables don't redo the whole script again. Use Alter. Create new files that alter the tables to your liking since deployed can't undo.

When you run db:up it will only run sql scripts with timestamps after its last execution
so make sure your .sql files are in Unix seconds. i noticed you had appended a wiki suffix to it.

(for local dev remember to rename db name to whatever you use)


Once done with these make sure you run
npm run lint to see if there are linting issues
and npm run format to format the code

and as always test locally

lib/wiki.stack.ts Outdated Show resolved Hide resolved
resources/database/migrations/1710395365.sql Outdated Show resolved Hide resolved
resources/database/migrations/1710395365.sql Outdated Show resolved Hide resolved
resources/database/migrations/1710395365.sql Outdated Show resolved Hide resolved
resources/database/migrations/1710395365.sql Outdated Show resolved Hide resolved
src/wiki/putdoc.ts Outdated Show resolved Hide resolved
src/wiki/deletedoc.ts Outdated Show resolved Hide resolved
src/wiki/putdoc.ts Outdated Show resolved Hide resolved
@armintalaie
Copy link
Contributor

@KeveenWong how are we doing on this?

@armintalaie armintalaie self-requested a review March 29, 2024 09:32
@armintalaie armintalaie merged commit 484e645 into main Mar 29, 2024
4 of 5 checks passed
@armintalaie armintalaie deleted the wikidatabase branch March 29, 2024 09:33
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