Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Code Quality Improvements #11

Merged
merged 10 commits into from
Nov 12, 2015
Merged

Code Quality Improvements #11

merged 10 commits into from
Nov 12, 2015

Conversation

gsomoza
Copy link
Owner

@gsomoza gsomoza commented Nov 12, 2015

Added

  • [BC-Break] TimelineFactoryInterface
  • MigrationBusInterface

Changed

  • Improved DocBlock type-hints on some classes.
  • [BC-Break] AbstractTimeline's signature changed to accept MigrationBusInterface
  • [BC-Break] Refactor Version into two types: Version (with properties "id" & "migrated") and LinkedVersion (extends Version and adds the "migration" property).
  • [BC-Break] Tightened up RepositoryInterface, StorageInterface and related classes even more and simplified some of their code.

Removed

  • [BC-Break] Removed ComparatorAwareInterface, its trait, its test, and updated AbstractRepository to not use it (the comparator is now a constructor parameter for that class).

@gsomoza gsomoza force-pushed the code-quality branch 4 times, most recently from 78361aa to c1bbf6f Compare November 12, 2015 10:55
@gsomoza gsomoza mentioned this pull request Nov 12, 2015
@gsomoza gsomoza force-pushed the code-quality branch 9 times, most recently from 83c6c21 to 9085a50 Compare November 12, 2015 20:01
- Made MigrationBus class final and made it implement MigrationBusInterface
- Changed AbstractTimeline signature to use MigrationBusInterface
- Version (base) will have the id and status only, plus a withMigration() function that will return a new instance of the same version data but with the specified migration and with a new class type of "LinkedVersion".
- LinkedVersion (inherits from Version) will indicate a version that has been linked to a migrtion.
- Add accompanying LinkedVersionInterface
- Refactor all code and tests to accomodate these changes
- Also refactored a few other of its internal methods.
- Refactored MigrationComparator and NamespacesAwareComparator
@gsomoza gsomoza force-pushed the code-quality branch 3 times, most recently from 0d5bf3f to 3adab27 Compare November 12, 2015 20:27
…ated classes even more and simplified some of their code.
gsomoza added a commit that referenced this pull request Nov 12, 2015
@gsomoza gsomoza merged commit c026e67 into master Nov 12, 2015
@gsomoza gsomoza deleted the code-quality branch November 12, 2015 21:05
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant