sheltertechsf / sheltertech-go Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Add the GET /categories/counts to GO
We don't have a technical specification, so part of this task is to also figure out which endpoints we need and how they should be implemented.
See https://docs.google.com/document/d/1XsgVEfRH9zn4XMQlhtqgfhaJAoL8TV8F6yNlLFa2MA4/edit#bookmark=id.qedtweia4g1e for the high level feature requirement, and https://www.figma.com/file/XUttHGa1csIpbSiurbYmjo/Case-Worker?type=design&node-id=7168-4476&mode=design&t=hcGEvgxPwD4YO79c-0 for the Figma Designs.
The main UI interactions are being able to create new bookmarks, create new folders, and reordering bookmarks within folders.
Migrate POST /categories to GO
Migrate PATCH /categories/id to GO
Acceptance: Route to Update a Bookmark for User
Design notes: feature requirements
Notes:
Migrate PUT /categories/id to GO
Acceptance: Route to delete a folder associated with the current user
Design notes: feature requirements
Notes:
Open Question:
Swagger doc or equivalent to ruby’s no matched route feature
MigratemDELETE /categories/id to GO
Figure out how to model this in the DB and how to create an API for it as well
We can use Github Actions for this like we do with the Rails API repo
There is a mostly done implementation in the repo currently. We should do these things:
Route Definitions
Rails: https://github.com/ShelterTechSF/askdarcel-api/blob/master/config/routes.rb#L7-L13
Go: https://github.com/ShelterTechSF/sheltertech-go/blob/main/cmd/sheltertech-go/main.go#L30-L33
Couple examples here: https://github.com/ShelterTechSF/sheltertech-go/blob/main/cmd/sheltertech-go/integration_test.go
They do require having the DB from the Rails repo running, we may need to chat about that setup.
Migrate GET /categories/hierarchy to GO
This endpoint queries the 'categories' table and where top_level=true, a nested query to the 'category-relationships' table finds child categories. The response body is an object with the "categories" prefix, followed by an array of empty slices for categories with no children, and sub-arrays of child objects if they exist, ordered (optionally) by rank.
Acceptance: Create a new bookmark for a given resource
Design notes: feature requirements
Notes:
Single test context instead of one per test case
Use an in memory DB under the test context
Acceptance: Route to Update a Folder's name and order for a User
Design notes: feature requirements
Notes:
Acceptance: Route to create a folder with name and next priority order for the current user
Design notes: feature requirements
Notes:
Add categories:{} to the categories API response so it matches the Ruby API
Acceptance: Delete a current bookmark for a user
Design notes: feature requirements
Notes:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.