Skip to content

Add the belongs to association - #47

Open
xiangge wants to merge 7 commits into
product-definition-center:masterfrom
xiangge:associations
Open

Add the belongs to association#47
xiangge wants to merge 7 commits into
product-definition-center:masterfrom
xiangge:associations

Conversation

@xiangge

@xiangge xiangge commented Jan 5, 2018

Copy link
Copy Markdown

Add the belongs to association.
As this our ruby gem is just used for selecting data. So not add the new/build association part.

Use can add the association in the class codes and also add a foreign_key method with the foreign key attribute return.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.6%) to 97.337% when pulling e4f60d6 on xiangge:associations into f06a9be on product-definition-center:master.

@coveralls

coveralls commented Jan 5, 2018

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.6%) to 97.343% when pulling c2553a1 on xiangge:associations into f06a9be on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.6%) to 97.343% when pulling fbde578 on xiangge:associations into f06a9be on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling fcd5ac4 on xiangge:associations into ** on product-definition-center:master**.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling 7107949 on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling fd6adfc on xiangge:associations into 7db33f4 on product-definition-center:master.

Comment thread lib/pdc/resource/rest_api.rb.latest Outdated
@@ -0,0 +1,40 @@
module PDC::Resource

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is this latest file for?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Put fake file, sorry about that.

Comment thread examples/local_pdc_dev.rb
ap releases

released_files = PDC::V1::ReleasedFile.all!.to_a
ap releases

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This change is not relevant to belongs_to.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Aha, the latest change was merged in another patch, after roll back the previous changes in this pr, the codes came to old one, will change back.

Comment thread .rubocop.yml Outdated
Exclude:
- lib/pdc/config.rb

Metrics/ModuleLength:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this changing the ordering?
If so, we can make it in another patch.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is just for resolving the conflict, thanks for reminding that, will change back

@simozhan simozhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will continue review in detail.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling fe48dd8 on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling 0f49881 on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling 0f49881 on xiangge:associations into 7db33f4 on product-definition-center:master.

@xiangge
xiangge force-pushed the associations branch 4 times, most recently from 4667fe3 to 0717ecb Compare January 15, 2018 08:37
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling 0717ecb on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling 0717ecb on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling f8c54cf on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling f8c54cf on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling f8c54cf on xiangge:associations into 7db33f4 on product-definition-center:master.

@xiangge

xiangge commented Jan 15, 2018

Copy link
Copy Markdown
Author

Sorry for commit several time after your comments, correct several time about the blank line and space in ".rubocop.yml"

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling f8c54cf on xiangge:associations into 7db33f4 on product-definition-center:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.256% when pulling f8c54cf on xiangge:associations into 7db33f4 on product-definition-center:master.

@simonbaird

Copy link
Copy Markdown

Sorry for the slow review. It seems like it would better to squash this down into a few commits since the later commits seem like fixups and design changes. Do you want to try cleaning up the history and repushing? This should make review easier also.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 98.261% when pulling 68c950d on xiangge:associations into 7db33f4 on product-definition-center:master.

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.

5 participants