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

Cherry Pick DYN-1476: AllowRankReductionAttribute on Zero Touch Properties (#9542) #9549

Merged
merged 2 commits into from
Mar 8, 2019

Conversation

scottmitchell
Copy link
Collaborator

@scottmitchell scottmitchell commented Mar 7, 2019

  • update

  • Brought truncated search results and full query search out from behind debug menu. Deleted debug menu items.

  • Added CheckForRankReductionAttribute() method to FFIMemberInfo

  • Cleaned up CheckForRankReductionAttribute

  • Added AllowRankReductionAttribute tests

  • Comments. Change method name.

  • Update tests, method name

  • Corrected test names

  • Fixed annoying diff

Purpose

Cherry Pick this PR to 2.2.0

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning, and are documented in the API Changes document.

Reviewers

FYIs

DynamoDS#9542)

* update

* Brought truncated search results and full query search out from behind debug menu. Deleted debug menu items.

* Added CheckForRankReductionAttribute() method to FFIMemberInfo

* Cleaned up CheckForRankReductionAttribute

* Added AllowRankReductionAttribute tests

* Comments. Change method name.

* Update tests, method name

* Corrected test names

* Fixed annoying diff
@QilongTang
Copy link
Contributor

LGTM 👍

@QilongTang QilongTang added the LGTM Looks good to me label Mar 7, 2019
@mjkkirschner
Copy link
Member

lets wait on this until we resolve the failing test / question about where to use this attribute.

@mjkkirschner mjkkirschner added DNM Do not merge. For PRs. and removed LGTM Looks good to me labels Mar 7, 2019
@aparajit-pratap
Copy link
Contributor

aparajit-pratap commented Mar 8, 2019

@scottmitchell please update this test:

as the Values property of a Dictionary has the AllowRankReduction attribute.

@mjkkirschner
Copy link
Member

mjkkirschner commented Mar 8, 2019

@aparajit-pratap - @scottmitchell and I wanted to talk to you first - and see what you thought about

  1. why that attribute was used here in the first place and
  2. will it potentially break people's graphs
  3. is it worth deferring until later? (3.0) to preserve current behavior. (ie, we remove the attribute to keep values working as it is today)

@aparajit-pratap
Copy link
Contributor

@mjkkirschner I'm okay with removing the attribute from the Values property altogether, especially because its name indicates its plural and it therefore should be okay for users to expect that it will always return a list, even if it is a list of a single value.

@scottmitchell
Copy link
Collaborator Author

@mjkkirschner @aparajit-pratap Sounds good, I'll create a PR removing the attribute from Dictionary.Values, and I'll add a TODO to look at adding this for 3.0

@mjkkirschner
Copy link
Member

so we can close this?

@scottmitchell
Copy link
Collaborator Author

@mjkkirschner Yeah we can close this. I wasn't sure if it was better to change this PR or just close it and make a new one.

@scottmitchell
Copy link
Collaborator Author

Or wait.. Do you mean merge this one? And then we'll cherry pick the follow up PR also?

@mjkkirschner
Copy link
Member

no I meant close this PR without merging and then on the 2.2 branch all we need to do is cherry pick the other change right?

@mjkkirschner
Copy link
Member

either is fine I guess. your call.

@scottmitchell
Copy link
Collaborator Author

Ok that makes sense. Closing this one.

@aparajit-pratap
Copy link
Contributor

aparajit-pratap commented Mar 8, 2019

Wait, I'm confused. Why has this been closed? I thought this fix was planned for 2.2 also.

@scottmitchell scottmitchell reopened this Mar 8, 2019
@QilongTang
Copy link
Contributor

@mjkkirschner @aparajit-pratap @scottmitchell Sorry for the confusion but we only need to cherry-pick one more change into this PR and we are done. I think it makes best sense to do both changes from master in a single PR to 2.2.0

…amoDS#9550)

* update

* Brought truncated search results and full query search out from behind debug menu. Deleted debug menu items.

* Removed AllowRankReduction from Dictionary.Values. Added TODO
@scottmitchell
Copy link
Collaborator Author

@QilongTang @mjkkirschner @aparajit-pratap Both PRs are cherry picked. I'll merge once the checks complete.

@QilongTang
Copy link
Contributor

@scottmitchell Glad it worked!

@scottmitchell scottmitchell merged commit 655b116 into DynamoDS:RC2.2.0_master Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM Do not merge. For PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants