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

Remove type reference from (by) option #311

Merged
merged 35 commits into from
Feb 8, 2019
Merged

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Feb 4, 2019

This PR simplifies the way enrichment types are defined:

  1. Now an enriched type can be only referenced from the (enrichment_for) option.
  2. Referencing a type for a qualified field reference from the (by) option is no longer allowed. (See Drop support of nested enrichments and FQN (by) option #310.)

Other notable changes:

  • FieldContext moved to the code.proto package.
  • FieldContext methods were renamed avoiding the get prefix.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Feb 4, 2019
@codecov
Copy link

codecov bot commented Feb 4, 2019

Codecov Report

Merging #311 into master will increase coverage by 0.51%.
The diff coverage is 85.1%.

@@             Coverage Diff              @@
##             master     #311      +/-   ##
============================================
+ Coverage     74.23%   74.75%   +0.51%     
+ Complexity     2387     2376      -11     
============================================
  Files           387      386       -1     
  Lines          9945     9843     -102     
  Branches        606      590      -16     
============================================
- Hits           7383     7358      -25     
+ Misses         2401     2323      -78     
- Partials        161      162       +1

@SpineEventEngine SpineEventEngine deleted a comment Feb 5, 2019
…-in-by

# Conflicts:
#	base/src/main/java/io/spine/code/proto/FieldOption.java
#	base/src/main/java/io/spine/validate/FieldValidatingOption.java
#	base/src/main/java/io/spine/validate/FieldValidator.java
#	base/src/main/java/io/spine/validate/MaxConstraint.java
#	base/src/main/java/io/spine/validate/MinConstraint.java
…-in-by

# Conflicts:
#	base/src/main/java/io/spine/validate/NumericFieldConstraint.java
Also: simplify method names
@SpineEventEngine SpineEventEngine deleted a comment Feb 6, 2019
@alexander-yevsyukov
Copy link
Contributor Author

@armiol, @yuri-sergiichuk, PTAL.

@alexander-yevsyukov alexander-yevsyukov merged commit a1bfec5 into master Feb 8, 2019
@alexander-yevsyukov alexander-yevsyukov deleted the no-wildcard-in-by branch February 8, 2019 19:03
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.

2 participants