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

Relations #143

Merged
merged 12 commits into from
Feb 5, 2015
Merged

Relations #143

merged 12 commits into from
Feb 5, 2015

Conversation

GrandLTU
Copy link
Contributor

@GrandLTU GrandLTU commented Feb 4, 2015

closes #106

@GrandLTU GrandLTU added the qa label Feb 4, 2015
@@ -1,6 +1,5 @@
parameters:
# Sql relations classes
ongr_connections.sql_relations.simple_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\SimpleSqlRelation
ongr_connections.sql_relations.composed_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\ComposedSqlRelation
ongr_connections.sql_relations.sql_relation.class: ONGR\ConnectionsBundle\Sync\Extractor\Relation\SqlRelation
Copy link
Contributor

Choose a reason for hiding this comment

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

sql_relations.sql_relation ? we can do better than that :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What would you suggest?

Copy link
Contributor

Choose a reason for hiding this comment

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

sql_relations.general_relation
sql_relations.relation
.. maybe somebody has even better ideas

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's try to break away from sql_relations in general. What is the function of a sql_relations.sql_relation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ongr_connections.sql_relations.sql_relation.class is used by relations example https://github.com/ongr-io/ConnectionsBundle/pull/143/files#diff-0ecea2bd068f83cc8f0d36e45f499f83R33

Copy link
Contributor

Choose a reason for hiding this comment

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

After a bit of discussion we (@GrandLTU and myself) have decided that the most fitting name would be extraction_descriptor, since it is a descriptive class used by extractor to extract relevant data (an extraction). What used to be an relation collection would subsequently become extraction collection or simply extractions. What is your opinion about this, @trylika?

@GrandLTU GrandLTU added go and removed qa labels Feb 5, 2015
@GrandLTU GrandLTU self-assigned this Feb 5, 2015
@GrandLTU GrandLTU added qa and removed go labels Feb 5, 2015
@@ -17,7 +17,7 @@
/**
* Helper base class for adding MySQL parameters to the given definition.
*/
abstract class AbstractMySqlPass
abstract class AbstractExtractorDescriptorPass
Copy link
Contributor

Choose a reason for hiding this comment

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

okay, not to nitpick, but maybe AbstractExtractionDescriptorPass?

Descriptors
===========

Sql descriptors are special classes that tell extractor which fields/tables to watch for changes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Extraction descriptors ... :)

} elseif (empty($statements)) {
throw new \LogicException(
'Missing relations or no document type set in descriptor "'
. $descriptor->getName() . '"'
Copy link
Contributor

Choose a reason for hiding this comment

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

awsum

mindaugasbarysas pushed a commit that referenced this pull request Feb 5, 2015
@mindaugasbarysas mindaugasbarysas merged commit 64364eb into ongr-archive:master Feb 5, 2015
@GrandLTU GrandLTU deleted the relations branch February 9, 2015 09:46
@GrandLTU GrandLTU removed their assignment Nov 16, 2015
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.

Refactor Simple/Composed relations
3 participants