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

[RFR] Refactor View.fields #384

Merged
merged 8 commits into from
Apr 8, 2015
Merged

[RFR] Refactor View.fields #384

merged 8 commits into from
Apr 8, 2015

Conversation

ThieryMichel
Copy link
Contributor

  • Make view.fields return an array instead of a literal
  • Prepare to remove Field.order method by using it only in View.fields
  • add deprecation warning

@jpetitcolas
Copy link
Contributor

Can you also update changelog and README to show depreciations?

var field = view.fields()[fieldName];
if (field.name() in restEntry) {
values[fieldName] = field.getMappedValue(restEntry[field.name()], restEntry);
// var values = restEntry;
Copy link
Member

Choose a reason for hiding this comment

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

Debug spotted

@fzaninotto
Copy link
Member

Great job, this really simplifies fields handling, it's much more intuitive.

fzaninotto added a commit that referenced this pull request Apr 8, 2015
@fzaninotto fzaninotto merged commit 5efd203 into master Apr 8, 2015
@fzaninotto fzaninotto deleted the fields_array branch April 8, 2015 06:54
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto
Copy link
Member

How about fieldsUtils? Is it still required?

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.

3 participants