-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Todo Tutorial Feedback -- Issues, Comments, Challenges #1206
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
Comments
This is some good feedback 👌 |
@virkt25 Could you update this task with an appropriate acceptance criteria? At first glance, this issue seems like it'll pan out to be a spike to see how the feedback could be addressed, but what do you think? |
I agree that we need to work things out to have a set of acceptance criteria. However, I don't think there's a need for a spike, rather than fixing things up. |
No Spikes. I'll take an attempt at creating a Todo List (get it) for the tasks with some criteria. |
Adding some issues in the LB4 todo tutorial https://loopback.io/doc/en/lb4/todo-tutorial-repository.html
In the controller page and code: The return type for the method is Promise boolean:
gives an error at compile and runtime times. The correct return type for the method is Promise void :
|
@fjanon thank you for the feedback! Would you mind contributing the proposed changes yourself? See DEVELOPING.md and contrib guide to get started. |
Closing as resolved. |
Description / Steps to reproduce / Feature proposal
As part of #729 I sat down with a user with no prior LoopBack experience (but a developer) and had him go through what is currently known as
example-getting-started
(pending rename toexample-todo
) Tutorial. I made notes during this process and gathered the following feedback from the user.Node 9 CLI issues after global install -- Test lb4 CLI on Node 10 #1296
Why do I need to create a class? -- [CLI] Do not prompt for Application Class name #1297
What is loopbackBuild? -- Description of Options -- loopbackBuild / mocha #1298
Enable mocha -- Description of Options -- loopbackBuild / mocha #1298
Looking for views … coming from react background … -- Default folder for serving static files #1468
Missed the Next Step … Make Next Step a heading instead of Navigation -- This will be addressed via new LB4 Site Tutorial Page
Renamed
index.ts
tomodel.ts
since all folders haveindex.ts
in them [CLI] Generatingindex.ts
in each models/repositories/controllers automatically #1127Skipped legacy juggler bridge step since he doesn’t know what that is and said “I could care less” Enhance developer experience in persistence story #1237
Added export to
index.ts
first but that led to a warning in VSCode that module doesn’t exist. [CLI] Generatingindex.ts
in each models/repositories/controllers automatically #1127Under Model section … what is Repository? Entity? Etc? To-do tutorial: Include one-liner LB4 concept definition #1444
For Datasource section, expected
config
directory to exist already. Update Todo tutorial to load datasources via loopback boot #1440config
folder.Repositories folder [CLI] Generating
index.ts
in each models/repositories/controllers automatically #1127index.ts
… also created it asrepositories.ts
Doesn’t mention to go to /swagger-ui
Try it out
section showsAPI Explorer
with the link. From my understanding, this is fixed.Redirect to loopback.io isn’t intuitive (link to API Explorer in Docs)
localhost:3000/swagger-ui
Missing id field in GET/todo/id (so id=undefined) resulted in a 500 but should’ve been 4XX (Bad request). Same result with any invalid
id
field. This should be aBad Request
. -- Incorrect response codes for invalid HTTP calls #1469Id shows up in all “try it out” options as 0 but it is ignored in various calls including Create -- [API Explorer] Fields shown but ignored #1470
Can you patch the ID?
Response for PATCH / PUT is
true
instead of JSON as one would expect -- [REST] Consistent response format for PATCH/PUT #1471Was able to delete id=2 when it doesn’t exist. Returned a success message. -- [REST] DELETE with invalid ID is successful #1472
Feels like an architecture that scales well but a lot of new concepts -- To-do tutorial: Include one-liner LB4 concept definition #1444
Be nice to add the tutorial to todomvc-- This is for front-end frameworks, not backend frameworks such as LoopBackcc: @strongloop/lb-next-dev I think we should work on addressing some of these areas of concerns with the next release (after DP2).
The text was updated successfully, but these errors were encountered: