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

Projections Update #30

Merged
merged 36 commits into from
Jan 12, 2017
Merged

Projections Update #30

merged 36 commits into from
Jan 12, 2017

Conversation

prolic
Copy link
Member

@prolic prolic commented Jan 7, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9678d9c on projections_update into ** on master**.

@prolic prolic changed the title [WIP] Projections update Projections Update Jan 7, 2017
@prolic
Copy link
Member Author

prolic commented Jan 7, 2017

/cc @basz @oqq @sandrokeil @bweston92 please review

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 879f2bb on projections_update into ** on master**.

* @var int
*/
private $eventCounter = 0;

Copy link
Member

Choose a reason for hiding this comment

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

$lockTimeoutMs and $eventCounter is never used!?


namespace Prooph\EventStore\PDO\Projection;

use PDO;
Copy link
Member

Choose a reason for hiding this comment

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

use PDO is never used. Please remove

Copy link
Member Author

Choose a reason for hiding this comment

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

it's used in the constructor

@sandrokeil
Copy link
Member

The parameter type description here \Prooph\EventStore\PDO\PDOStreamIterator::$currentItem is wrong. array|false and access with $this->currentItem->created_at?

@sandrokeil
Copy link
Member

Using always camel case looks better to me e.g. PDO -> Pdo or MySQL -> MySql. Because PDOEventStoreException is hard to read. What do you think?

@prolic
Copy link
Member Author

prolic commented Jan 9, 2017

@codeliner @sandrokeil @oqq about naming:

I am not sure about the last commit, the base class in PHP is PDO, not Pdo. Also Doctrine uses this f.e. https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySQL57Platform.php

@oqq
Copy link
Member

oqq commented Jan 9, 2017

There are several comments to change this in php code and also in doctrine. Especially in doctrine code, cuz the PDO prefix not fits to PSR-1.

I am for Pdo instead of PDO since 1 year for that PSR reasons and have used PDO before. But it´s a matter of taste, so no hard opinion from me.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e8bb194 on projections_update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 6371114 on projections_update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4710a1e on projections_update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2d57e0c on projections_update into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2d57e0c on projections_update into ** on master**.

@bweston92
Copy link
Member

Can it be explained why we are coupling a read model with the event store?

@prolic
Copy link
Member Author

prolic commented Jan 11, 2017

@bweston92 I don't get your question. The read model is a projection of the recorded events. So in order to create a readmodel, you have to get a stream of events and process it. Nothing else. The readmodel itself has no dependency on the event store. The projector needs to have knowledge about the event store and the read model, in order to create it.

@bweston92
Copy link
Member

@prolic sorry I just seen read model and projection key words in the event store.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 62c7a8f on projections_update into ** on master**.

@prolic prolic merged commit f672768 into master Jan 12, 2017
@prolic prolic deleted the projections_update branch January 12, 2017 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants