loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

[Release] 🚀 4.0 GA 🚀

Open bajtos opened this issue 8 years ago • 31 comments

This is a high-level issue keeping track of the ~~upcoming~~ release LoopBack 4.0 GA.

Release Date

LoopBack 4.0 GA was released in October 2018, read more in the Announcement blog post.

We have reset the version number back to 1.0.0 for all LoopBack 4 packages.

For example, instead of [email protected], there are three new packages in the @loopback scope:

Overview

LB4 positioning: a next-gen framework for building API servers. Primary target audience: developers building modern/open APIs exposing existing (legacy) assets. LoopBack's role is to serve as a glue tier.

Stories to drive the functional scope

A front page of a major retail e-shop. Components:

  • user profile (from a database)
  • shopping cart (stored in a distributed in-memory cache, e.g. Redis)
  • product recommendation (fetched from a SOAP/REST service connected to AI)
  • order history (data related to user profile, stored in a database).

A user sign-up (registration), where the client app is submitting new model data.

Scope

See the current list of stories we are considering as a candidate for GA release here: https://github.com/strongloop/loopback-next/labels/Core-GA

LB4 website #817

  • ~~Add static site generator https://github.com/strongloop/v4.loopback.io/issues/14~~
  • ~~Add resources page https://github.com/strongloop/v4.loopback.io/issues/26~~
  • ~~Add contribute page https://github.com/strongloop/v4.loopback.io/issues/27~~

Model Relations #1421

Support "Order history" component in the front-page story.

  • [x] BelongsTo #1361
  • ~~HasOne #1422~~

Stretch goals:

  • ~~CLI tooling #1359~~

Integration with REST / SOAP services #1460

Support "product recommendation" component in the front-page story

  • [x] Boot - load services automatically from files #1439

Stretch goals:

  • [ ] CLI tooling - #1312
  • ~~Strongly typed integration - spike #1070~~

Validation and coercion at REST layer #1456

Support "new user sign up" story. Interesting cases: the provided email address must be unique and also a valid email per RFC spec.

  • [x] Validate and coerce most OpenAPI parameter/data types
  • [x] Validate (and coerce?) complex request bodies as described by JSON Schema subset supported by OpenAPI.

Extension infrastructure #1034

For GA, do a spike story to confirm feasibility of each of the following extension use cases:

  • ~~Custom booters - #1461~~
  • ~~Custom authorization strategies/providers - #1462~~
  • ~~Custom validators and serializers/deserializers for REST layer - #1463~~
  • ~~How to apply environment-specific operational configuration (e.g. configure datasources from environment variables, use a faster but less-secure hashing algorithm in dev/test) - #1464~~

Benchmarking and performance

The work depends on validations, but it should be done early to give us room to make improvements (low-hanging fruits).

  • [x] Performance benchmark #534

Cloud Native Experience #1459

Utilize external tooling and document the steps to enable cloud deployment.

  • [x] IBM Cloud #1446

Stretch goals:

  • ~~Spike: Integrate IBM Cloud Yeoman generator with LoopBack #1455~~

Usability Improvements

Scope to be defined on an on-going basis using existing GitHub issues pushed out of DP2/DP3 releases.

e-commerce demo scenario #1476

  • [x] user profile (from a database) #1480
  • [x] product recommendation (fetched from a SOAP/REST service connected to AI) #1482
  • [x] order history (data related to user profile, stored in a database). #1483
  • [x] shopping cart (stored in a distributed in-memory cache, e.g. Redis) #1481 (stretch goal)

Nice to have (stretch goals)

  • ~~Built-in API explorer #559~~
  • [x] KeyValue repository #1447 - Support "shopping cart" component from the front page story.

Out of scope

  • More relations #1450
  • More benchmarking #1451
  • Futher REST layer improvements #1452
  • Production deployment/logging/monitoring #1054
  • GraphQL support
  • Plain JavaScript experience #560
  • Lifecycle (start/stop) #1039 (We need start/stop for database connections and other connectors that hold resources.)
  • Authentication. The reference Passport-based implementation shown in @loopback/authentication is a proof that LB4 design is flexible enough to allow app developers to build their own authentication plugin/extension. Post-GA: make @loopback/authentication the recommended module for dealing with authentication.
  • Authorization #538
  • Extension points and interfaces for authentication and authorization #1035
  • Extension: Logging #1037
  • Migration from LB3 #453

bajtos avatar Jun 21 '18 11:06 bajtos

The below announcement is still showing on the LB4 home page, I wonder if that isn't a mistake.

"Important: LoopBack 4 is the next step in the evolution of LoopBack. It is still in early development and is not yet released"

larsm11 avatar Oct 17 '18 18:10 larsm11

@larsm11 , thanks for bringing it up. I've updated the docs in PR https://github.com/strongloop/loopback-next/pull/1859. It now needs to be refreshed on loopback.io.

dhmlau avatar Oct 17 '18 19:10 dhmlau

@dhmlau it seems #1859 was accepted before 4.0 GA tag was released.

image

tioback avatar Nov 08 '18 12:11 tioback

@tioback , thanks for checking. It's possible that the PR had merged before that. For the docs content in loopback-next repo, we need to release @loopback/docs in order to be sync to loopback.io.

dhmlau avatar Nov 08 '18 18:11 dhmlau

@dhmlau just to be sure: was v4 released or not? If it was, would you or someone else be able to create and publish tag? If it wasn't, should this ticket be reopened?

tioback avatar Nov 08 '18 19:11 tioback

@tioback sorry for the confusion. v4 was released, but since we have changed package names as part of the rewrite, the new packages use 1.x.y versions. For example, @loopback/core is at 1.0.1 right now.

Could you suggest where should we capture this information to save future readers from this confusion?

bajtos avatar Nov 09 '18 16:11 bajtos

Hi, @bajtos . No need for apologies, let's settle for a tag 🤣

Perhaps the announcement note about v4 release, a new column right at the LTS table might be a good place.

Jokes aside, I do believe a tag at the master branch named something like "loopback-4.0.0-GA" at the commit which released v4 would be of great help.

tioback avatar Nov 09 '18 18:11 tioback

@tioback thanks for the suggestion. I'll take a look at improving the announcement blog post. Until that happens, I have edited the issue description at the top to make it clear that LoopBack 4.0 GA was released and package versions were reset to 1.0.0. I hope it will help new people coming across this issue in the future.

bajtos avatar Nov 26 '18 10:11 bajtos

I am reluctant to use a custom tag like loopback-4.0.0-GA because I don't really what would be the use of it. I mean developers should install the latest version published to npmjs, not the version tagged as GA.

bajtos avatar Nov 26 '18 10:11 bajtos

Well, tagging isn't only for running, but also for cloning, or just knowing exactly what commit is the release related to.

I agree with you that people should install the latest version when developing, however, for production scenarios, it is a good practice to use a fixed tag or version.

tioback avatar Nov 27 '18 02:11 tioback

FWIW, the announcement blog post was updated, see https://strongloop.com/strongblog/loopback-4-ga#new-module-names

Well, tagging isn't only for running, but also for cloning, or just knowing exactly what commit is the release related to.

I see. Well, we do have a git tag for each release of each of our module, see https://github.com/strongloop/loopback-next/releases.

I agree with you that people should install the latest version when developing, however, for production scenarios, it is a good practice to use a fixed tag or version.

AFAIK, this is solved by npm shrinkwrap. IT does not depend on specific git tags and locks versions for all project dependencies, not only LoopBack packages.

Let's end the discussion here at this point please. If there is anything else to discuss, then please open new GitHub issues.

bajtos avatar Nov 27 '18 14:11 bajtos