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

feat: add ui-bootstrap endpoint #790

Merged
merged 3 commits into from
Apr 20, 2021
Merged

feat: add ui-bootstrap endpoint #790

merged 3 commits into from
Apr 20, 2021

Conversation

chriswk
Copy link
Contributor

@chriswk chriswk commented Apr 19, 2021

  • Reducing calls needed for frontend to 1 instead of the current 6

fixes: #789

@chriswk
Copy link
Contributor Author

chriswk commented Apr 19, 2021

We should really discuss the types I've added to the services/stores and which ones we're exposing, I've done the minimum to make this work for now, but am prepared to add the extra elbow grease to pave the way for a smoother development experience further down the line.

Also, for now had to add a @ts-ignore annotation to the call to our req.user since express Request does not expose a user field. I was trying to add a custom-request.d.ts file to add the definition for the user field but couldn't figure out where to put the file to make tsc pick it up


private logger: Logger;

constructor(db: Knex, customContextFields, getLogger: LogProvider) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should be the type of customContextFields here?

Copy link
Member

Choose a reason for hiding this comment

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

we should just remove these in v4. not needed when we have a proper API.

this.db = db;
this.logger = getLogger('project-store.js');
}

fieldToRow(data) {
fieldToRow(data): IProjectInsert {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What's the type of data? Bit surprised that typescript didn't warn me that data was untyped here.

@coveralls
Copy link

coveralls commented Apr 19, 2021

Coverage Status

Coverage decreased (-0.1%) to 94.095% when pulling 52cf61e on ui-bootstrap into 332f1c4 on master.

Christopher Kolstad added 3 commits April 20, 2021 11:56
@chriswk chriswk merged commit 4246bae into master Apr 20, 2021
@chriswk chriswk deleted the ui-bootstrap branch April 20, 2021 10:32
ivarconr pushed a commit that referenced this pull request Apr 20, 2021
* feat: add ui-bootstrap endpoint

- Reducing calls needed for frontend to 1 instead of the current 6

fixes: #789
Tymek pushed a commit that referenced this pull request Aug 26, 2022
* refactor: preserve white-space in constraint values

* refactor: deduplicate constraint values
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.

Add ui-bootstrap endpoint
3 participants