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 web resource #119

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

Entity web resource #119

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

Comments

@jhou-pro
Copy link
Contributor

The lifecycle for entities on entity masters (and other views) includes several actions which should be implemented both at Web UI level and server side level. These entity actions include:

  1. Retrieve / refresh
  2. Validate (Entity validation web resource #106)
  3. Save (modified or new)
  4. Delete

The items 1, 3 and 4 at the server side should be implemented as the Entity Web Resource and the item 2 -- as the Entity Validation Web Resource. Web UI component tg-entity-master should incorporate items 1, 3 and 4 at the client level and it should incorporate tg-entity-validator (with item 2) as its inner implementation detail (see #106).

It is crucial to perform smart validation as part of the saving process. Please note that validation is not needed in case when it was already done previously (as part of validation after the editor commit action) and there should be no UI blocking for the user.

It is worthwhile to mention that custom Entity Producer and custom Entity Fetch Strategy should be used for all entity related resources (#106, #115, #119) as it was discussed. It ensures consistency and reuse of that concepts across all entity resources.

@jhou-pro jhou-pro self-assigned this Jan 12, 2015
@jhou-pro jhou-pro added this to the v1.3 milestone Jan 12, 2015
@01es
Copy link
Member

01es commented Jan 12, 2015

The following HTTP methods should be supported:

  • GET -- request to obtain a existing entity by ID (Entity Fetch Strategy should be used here); in case of missing ID, the request should return a new entity (created using Entity Producer).
  • PUT -- request to save a new entity.
  • POST -- request to update an existing entity.
  • DELETE -- a request to delete an existing entity.

jhou-pro added a commit that referenced this issue Jan 19, 2015
… interaction logic between Web UI and server. It includes server resources (EntityResource with entity retrieval) and (EntityValidationResource with entity modification / validation) and UI web components tg-entity-master and tg-entity-validator. Implemented full-featured testing server with which all Web UI tests interact.
jhou-pro added a commit that referenced this issue Jan 21, 2015
…inition and lifecycle of that properties inside tg-entity-master.
jhou-pro added a commit that referenced this issue Feb 2, 2015
jhou-pro added a commit that referenced this issue Feb 5, 2015
jhou-pro added a commit that referenced this issue Feb 5, 2015
…d is used istead of 'null' for entityid attribute.
jhou-pro added a commit that referenced this issue Feb 5, 2015
jhou-pro added a commit that referenced this issue Feb 5, 2015
…rocesses (validation, saving) after the user has changed the entity in the master. Reused it in saving process -- disregard saving for not modified entity (but invoke validation). Implemented simultaneous save exception throwing with appropriate message to the developer (about the need of blocking).
jhou-pro added a commit that referenced this issue Feb 5, 2015
01es added a commit that referenced this issue Feb 6, 2015
Issue #106 (additionally #119 #118 #120 and the part of #115)
@jhou-pro
Copy link
Contributor Author

jhou-pro commented Feb 6, 2015

This issue is considered to be implemented as part of Issue-#106 branch and has been merged into develop branch.

All necessary functionality has been implemented including tg-entity-master client side counter-part for master lifecycle.

Note (TODO): please make save action Web UI tests workable without repopulating db every time.

@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

2 participants