Skip to content

Conversation

@shimks
Copy link
Contributor

@shimks shimks commented Jun 11, 2018

fixes #1355

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please annotate DefaultCrudRepository as implements ExecutableRepository.

@bajtos
Copy link
Member

bajtos commented Jun 12, 2018

I think this pull request needs an approval from @raymondfeng before it can be landed.

@shimks shimks force-pushed the repository/move-execute-out branch from eade1c9 to 14a312c Compare June 12, 2018 16:49
export interface Repository<T extends Model> {
export interface Repository<T extends Model> {}

export interface ExecutableRepository<T extends Model> extends Repository<T> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The git compare is weird, it should show the entire new interface instead of the declaration part only.
@shimks Do we still need the execute function in https://github.com/strongloop/loopback-next/blob/14a312c91639769111c829b07b37fa9e13b4bf4f/packages/repository/src/repositories/repository.ts#L333?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to @bajtos, DefaultCrudRepository should extend from an executable repository, so I guess we still do :p

@shimks shimks force-pushed the repository/move-execute-out branch 2 times, most recently from 5009a5b to 0699a8f Compare June 14, 2018 14:23
@shimks shimks force-pushed the repository/move-execute-out branch from 0699a8f to 9b6607c Compare June 14, 2018 16:32
@shimks shimks merged commit 1c2cfc4 into master Jun 14, 2018
@shimks shimks deleted the repository/move-execute-out branch June 14, 2018 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relation refactoring: Remove execute function out of Repository interface

5 participants