WIP: feat: remove defaults function #1313
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#1313
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen:feature/remove-defaults-function-from-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: remove defaults functionto WIP: feat: remove defaults functionHi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://1313-featureremove-defaults-function-from-models--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
@ -8,2 +4,2 @@
}
}
newEmail = ''
passwort = ''
Wow. I think that parameter isn't even used like that - should be
password
https://try.vikunja.io/api/v1/docs#tag/user/paths/~1user~1settings~1email/postIs fixed by #1540
Well that failed more than I expected :D
253017d0dd
to200851259a
@konrad I realized that what I want to achieve with this branch seems easier possible by annotating them with JSDOC:
What do you think?
If that works well, it could be a good way to solve it.
The long-term goal should be moving everything over to typescript though, not sure if using annotations would mean twice the effort?
This seems to work.
I tried it in #1536
The cool think is that it's not as strict as ts for the input values (when you create the model). This makes it easier to transition, because else you would need to format a lot of date before creating the class.
In the longterm we should find a solution similar to that.
Even though verbose this really makes things easier.
Closing this.
My plan is now:
This seems to be the easiest way forward.
It's easy to convert from TSDOC to ts.