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

Entity Fetch Strategy #120

Closed
jhou-pro opened this issue Jan 27, 2015 · 2 comments
Closed

Entity Fetch Strategy #120

jhou-pro opened this issue Jan 27, 2015 · 2 comments
Assignees
Milestone

Comments

@jhou-pro
Copy link
Contributor

The fetch strategies for the entities are crucial for almost all parts of user interface and domain-driven processes of TG application. Entity Fetch Strategy defines the fullness of objects to be operated with and to be represented in different UI components.

It is very important to understand that only small set of entity tree branches are required to make it operational.

  1. entity master -- requires a fetch strategy only to show a set of properties in entity master UI components (reuse in Entity web resource #119);
  2. entity validation -- requires a fetch strategy to make validation possible based on inter-property dependencies (reuse in Entity validation web resource #106);
  3. entity autocompleters -- requires fetch strategies for entity-typed properties to show the results of autocompletion (reuse in Autocompleter Web Resource #115);
  4. entity queries -- requires a fetch strategy to construct synthesized entity etc.
  5. entity grid inspector -- requires a fetch strategy to show table view of entities.

As it was disscussed it will be very convenient for end-application developer to provide some sort of default aggregated fetch strategy that will be suited in most cases and will provide single point of reference. But it also will be nice if the fetch strategy for different cases could be easily extended from the aggregated one using convenient API.

@jhou-pro jhou-pro self-assigned this Jan 27, 2015
@jhou-pro jhou-pro added this to the v1.3 milestone Jan 27, 2015
@jhou-pro
Copy link
Contributor Author

As part of implementation details:

  1. New entity creation process (including via Entity Producer) should also take into account the fetch strategy for the entity. It will provide the consistency across Entity Resource and Entity Validation Resource results. In particular, it will provide the developer with more safety for Strict Proxy errors and will reduce the amount for the JSON data to be exchanged between the server and the client [potentially minor].
  2. The place for the Entity Fetch Strategy declaration should be as convenient as possible and, as discussed, can be the part of companion object (even without special Guice bindings) and with some minimalistic default implementation.
  3. Entity Fetch Strategy should be able to generate automatically its correspondent fetch<T> model.
  4. The EFS building API should be developer-friendly and should follow dot-notated syntax of fetch<T> class.
  5. To be continued...

jhou-pro added a commit that referenced this issue Jan 30, 2015
jhou-pro added a commit that referenced this issue Feb 2, 2015
…ct and reused it for entity resources and entity producer.
@jhou-pro
Copy link
Contributor Author

jhou-pro commented Feb 2, 2015

This issue is considered to be implemented as part of Issue-106 branch. All additional improvements and API extensions should be captured as a separate issues.

jhou-pro added a commit that referenced this issue Feb 5, 2015
…to IFetchProvider) not to conflict with existing EQL fetch model naming.
01es added a commit that referenced this issue Feb 6, 2015
Issue #106 (additionally #119 #118 #120 and the part of #115)
@jhou-pro jhou-pro closed this as completed Feb 6, 2015
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

No branches or pull requests

1 participant