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] Introduce DataStore and remove entries for ReferenceField #410

Merged
merged 8 commits into from
May 11, 2015

Conversation

jeromemacias
Copy link
Contributor

  • Create DataStore to sotre all entries related to views
  • Remove View.entries property
  • Move mapEntry(ies) from View
  • Remove Views created by code for references
  • Fix (and add ?) tests

Result of this refactoring:

  • RetrieveQueries does not deal anymore with Entry
  • DataStore now store all entries, references and filter values
  • mapEntry is now done by DataStore
  • routing.js now explicitly create and map entries
  • ReferenceField does not extend ChoiceField anymore

@jeromemacias jeromemacias changed the title [RFR] Introduce DataStore and remove entries for ReferenceField [WIP] Introduce DataStore and remove entries for ReferenceField Apr 27, 2015
@@ -17,7 +17,7 @@ define(function(require) {
}
function getWriteWidget() {
return '<ma-datagrid name="{{ field.getReferencedView().name() }}"' +
'entries="field.entries" ' +
'entries="::field.getReferencedView().getReferencesEntries()" ' +
Copy link
Member

Choose a reason for hiding this comment

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

not sure about the :: here

@fzaninotto
Copy link
Member

Could you add a checklist in the description to show what's left for RFR?

@jeromemacias jeromemacias force-pushed the introducing_datastore branch 3 times, most recently from 9ff7886 to ce1349c Compare April 28, 2015 16:23
@jeromemacias jeromemacias changed the title [WIP] Introduce DataStore and remove entries for ReferenceField [RFR] Introduce DataStore and remove entries for ReferenceField May 1, 2015
calls = [],
singleCallFilters,
identifiers,
reference,
referencedView,
entries,
datas,
Copy link
Contributor

Choose a reason for hiding this comment

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

data is already plural

manuquentin added a commit that referenced this pull request May 11, 2015
[RFR] Introduce DataStore and remove entries for ReferenceField
@manuquentin manuquentin merged commit 9ee522a into master May 11, 2015
@manuquentin manuquentin deleted the introducing_datastore branch May 11, 2015 10:15
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.

4 participants