-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Clean up "Best Practices with LoopBack 4" #1094
Comments
+1 to renaming the section. I also agree that the tutorial should be revamped. |
Good point @shimks 👍 I think "building API with code" and "building API with existing OpenAPI spec" (short for top-down) are two approaches based on different user scenarios, but the approaches themselves are on the same level, they don't take a precedence on each other. Given the name "best practice", we can treat the "defining APIs by resources" as the best practice for top-down approach, especially when you have existing OpenAPI spec. But it would be better to clarify, for users who build an app from scratch, it's on their choice to take the top-down approach or not. Another concern from me is our monorepo doesn't provide many help to simplify organizing/joining spec fragments, so
|
+1 to just shelving this page in it's entirety. The page is a challenge to maintain and takes up resources that should be used to reach MVP. Keeping this page up-to-date with frequent changes to the code base will continue taking up resources. I would agree that the page be renamed (Design First Approach) and a warning added. If the team agrees, I would suggest just dropping the page entirely from the side bar and we can re-visit the page to re-write or update it once we have a final stable release. |
My thoughts as the original author of "Best Practices with LoopBack 4": I agree that some parts are specific to design-first approach, I don't mind moving them out of sight. However, there are parts that are still highly relevant:
Please note that Testing your application is referring to some of these best practices too, extra care must be taken to avoid broken links. |
@bajtos I agree that those pages, or at least their contents, should be kept.
|
Additionally, I think this issue be broken down into two separate PRs:
|
For pages that end up being shelved, we just need to remove them from the sidebar IMO and don't actually need to rename the page / file. If someone has a direct link, they can read the page still. Once the page is re-worked, it can be added to the sidebar again. |
I am proposing to add "Defining your testing strategy" as a top-level entry under "Best practices" section in the left sidebar, and then remove the other pages from the sidebar as proposed by @virkt25. I think "Testing your application" should be nested under "Best practices" in the sidebar too. |
In my view, these two pages have different goals and should be preserved both.
|
+1 to @bajtos proposal for a new "Best Practices" section that houses "Defining your testing strategy" and "Testing your application" while other pages are removed from the side bar till LB4 is more stable and those pages can be updated. |
Best Practices with LoopBack 4
should be renamedBest Practices with LoopBack 4
Best Practices with LoopBack 4
I've been reviewing docs for
Best Practices with LoopBack 4
as a part of #988 and had a couple of concerns about the whole section in context to the current timeline of the framework.I have a problem with this part of the docs in general. Currently, the section goes in depth on building an application using the top-down approach, which is not supported atm. Since the section itself is more or less a tutorial on an outdated codebase and preaches itself as the 'best practice', I personally think whole section should be renamed and shelved until we come back to supporting top-down approach. I've arrived at this decision after wanting to use the latest
openapi-v3
package for our best practices, and noticing that it doesn't fully support top-down approach.Here's what I'd like to propose:
Best-practices-with-Loopback-4.md
to something else; as long as it doesn't have the words 'best practices' in it, I'm happyAcceptance Criteria
Best practices with Loopback 4
to beBest Practices
in Docs & Sidebar - see docs: rename Best Practices page & sidebar section #1417Define the API using code-first approach
under this sectionDefining your Testing Strategy
under this sectionTesting your Application
under this section (see doc: list Testing guides under Best Practices #1276)Defining the API using design-first approach
from sidebarTesting the api
under this section from sidebar as wellimplementing Features
from sidebarPreparing the API for consumption
from sidebar.shelved.md
suffix so we know in future the page was shelved and it's not having it in the sidebar is not an oversight.The text was updated successfully, but these errors were encountered: