-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
Conversation
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 |
|
||
private logger: Logger; | ||
|
||
constructor(db: Knex, customContextFields, getLogger: LogProvider) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
- Reducing calls needed for frontend to 1 instead of the current 6 fixes: #789
* feat: add ui-bootstrap endpoint - Reducing calls needed for frontend to 1 instead of the current 6 fixes: #789
* refactor: preserve white-space in constraint values * refactor: deduplicate constraint values
fixes: #789