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

Replace hardcoded entityUris in dialogs with templated links #977

Closed
1 of 5 tasks
carlobeltrame opened this issue Feb 16, 2021 · 4 comments · Fixed by #5168
Closed
1 of 5 tasks

Replace hardcoded entityUris in dialogs with templated links #977

carlobeltrame opened this issue Feb 16, 2021 · 4 comments · Fixed by #5168

Comments

@carlobeltrame
Copy link
Member

carlobeltrame commented Feb 16, 2021

In files:

  • DialogMaterialItemCreate.vue -> /material-items
  • DialogActivityCreate.vue -> /activities
  • DialogCategoryCreate.vue -> /categories
  • DialogMaterialListCreate.vue -> /material-items
  • DialogPeriodCreate.vue -> /periods

The URIs can be retrieved from the API as follows: this.api.href(this.api.get(), 'materialItems').then(uri => { this.entityUri = uri }).
If the root api endpoint does not have some of them already, they can be added in the method apiAction() in IndexController.php.

@feigenmann
Copy link
Collaborator

would takle this

@carlobeltrame
Copy link
Member Author

Go for it

@carlobeltrame
Copy link
Member Author

carlobeltrame commented Jul 29, 2021

This ticket needs to be re-specified once we are up and running with API Platform. Right now the description is out of date.

@carlobeltrame
Copy link
Member Author

In the meantime, the API is fully-featured again, and this issue can be implemented, based on the issue description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants