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

wiki: rename Sequence to DefaultSequence

Open bajtos opened this issue 9 years ago • 3 comments

At the moment, wiki pages contains reference to Sequence class. This does not exist in the current implementation, we have two different entities instead:

  • SequenceHandler defines the interface required by our REST layer. This allows applications to build custom sequences not inheriting from our default implementation.
  • DefaultSequence provides a default implementation that uses findRoute, invoke, etc. to handle incoming requests.

We need to review all wiki pages and replace Sequence with DefaultSequence or SequenceHandler as appropriate.

bajtos avatar Jul 27 '17 09:07 bajtos

@bajtos Updated the wiki to fix examples that references Sequence:

  • https://github.com/strongloop/loopback-next/wiki/Sequence
  • https://github.com/strongloop/loopback-next/wiki/Routing
  • https://github.com/strongloop/loopback-next/wiki/Context
  • https://github.com/strongloop/loopback-next/wiki/Sequence-(Advanced)

Those are the only pages where I found Sequence relevant. Please let me know if anything else needs to be updated.

ssh24 avatar Jul 31 '17 19:07 ssh24

@ssh24 thanks.

https://github.com/strongloop/loopback-next/wiki/Sequence

class MySequence extends SequenceHandler

SequenceHandler is an interface (which is used with implements keyword, not extends). However, the code example needs properties from DefaultSequence. Same comment applies to most other code snippets on this page. I fixed them all.

bajtos avatar Aug 01 '17 07:08 bajtos

I reviewed and fixed other pages that you have referred to, @ssh24. I am closing this issue as done.

bajtos avatar Aug 01 '17 07:08 bajtos