Skip to content
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

general: MainTitle as a pipe and test imports refactoring. #245

Merged
merged 1 commit into from
May 5, 2020

Conversation

zannkukai
Copy link
Contributor

@zannkukai zannkukai commented Apr 15, 2020

  • Refactoring MainTitleService as a pipe. It allows to use it more easely
    into components because we don't need to import the service and create
    a repetitive method in each component to get a document main title.
  • This commit also renamed the Checkin component test file according to
    component name (previously named Checkout).
  • Refactoring test 'spec.ts' files to limit imports and declarations.
    As main modules (AppModule and CirculationModules) already define
    many imports and declarations, use them into the 'spec.ts' file
    instead of a lot of single imports.
  • Refactor name of some private attributes adding a leading '_'.

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@zannkukai zannkukai self-assigned this Apr 15, 2020
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch 5 times, most recently from aceaca5 to fc8c7cf Compare April 15, 2020 15:30
@zannkukai zannkukai changed the base branch from dev to zan-US1297-subscriptions April 15, 2020 15:37
@zannkukai zannkukai marked this pull request as ready for review April 15, 2020 15:38
@zannkukai zannkukai changed the base branch from zan-US1297-subscriptions to dev April 15, 2020 15:38
@zannkukai zannkukai requested review from AoNoOokami and removed request for AoNoOokami April 21, 2020 07:00
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch 2 times, most recently from 8feca0d to 232e7bd Compare April 21, 2020 07:07
@jma
Copy link
Contributor

jma commented Apr 27, 2020

Can you use a spell checker for you commit messages?

Copy link
Contributor

@jma jma left a comment

Choose a reason for hiding this comment

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

Thanks for this job. Perhaps this can be interesting as it can simplify the tests:

@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from 232e7bd to 712145e Compare April 27, 2020 18:51
@zannkukai zannkukai changed the title document: refactoring main title service as a pipe general: MainTitle as a pipe and test imports refactoring. Apr 27, 2020
@zannkukai zannkukai requested a review from jma April 27, 2020 18:53
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from 712145e to ba44863 Compare April 28, 2020 06:44
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from ba44863 to 09120bb Compare April 28, 2020 10:06
@zannkukai zannkukai requested a review from jma April 28, 2020 10:56
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from 09120bb to 5268819 Compare April 30, 2020 15:17
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from 5268819 to 22fe130 Compare April 30, 2020 16:31
@zannkukai zannkukai requested a review from jma April 30, 2020 16:31
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch 2 times, most recently from abc1bf7 to 438678a Compare April 30, 2020 16:53
@iGormilhit iGormilhit self-requested a review May 4, 2020 05:12
Copy link
Contributor

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

I'm approving the commit message.

@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from 438678a to d86e367 Compare May 4, 2020 07:16
* Refactoring MainTitleService as a pipe. It allows to use it more easely
  into components because we don't need to import the service and create
  a repetitive method in each component to get a document main title.
* This commit also renamed the Checkin component test file according to
  component name (previously named Checkout).
* Refactoring test 'spec.ts' files to limit imports and declarations.
  As main modules (AppModule and CirculationModules) already define
  many imports and declarations, use them into the 'spec.ts' file
  instead of a lot of single imports.
* Refactor name of some private attributes adding a leading '_'.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai force-pushed the zan-#refactoring-main-title-pipe branch from d86e367 to d933474 Compare May 4, 2020 14:01
@zannkukai zannkukai merged commit 8bbb03a into rero:dev May 5, 2020
@zannkukai zannkukai deleted the zan-#refactoring-main-title-pipe branch May 5, 2020 07:57
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.

4 participants