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

As part of the metadata page provide the urls for the relationship fields #388

Closed
1 of 3 tasks
Tracked by #23 ...
jon-nfc opened this issue Nov 11, 2024 · 1 comment · Fixed by #392
Closed
1 of 3 tasks
Tracked by #23 ...

As part of the metadata page provide the urls for the relationship fields #388

jon-nfc opened this issue Nov 11, 2024 · 1 comment · Fixed by #392
Assignees
Labels
task::feature Adds functionality type::task Issue Type

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Nov 11, 2024

the metadata (HTTP/OPTIONS) returns the field meta for creating the fields. However for model relationships there is no information.

Details

Add to the metadata a urls section that is the query point for the related model.

Implementation should be added to the model wherein it has a property that returns the url for lookup and the url for self.

Update: as part of the meta fields, the values already exist in the field object. these have been added to the meta field as choices.

As part of an items metadata, add the return URL. this url will be used within the interface for when a user clicks cancel or as the success url for PATCH/POST request the user will be taken to

Tasks

  • [ ] Add property to ALL models that returns the models lookup url (ViewSet-list)
  • [ ] Add property to ALL models that returns an individual models url (ViewSet-detail)
  • Add cancel/return url with key name of return_url
    Refactor ALL models to have a get_url function #366 blocking as the model url will be used.

Requirements

Links

@jon-nfc jon-nfc added type::task Issue Type task::feature Adds functionality labels Nov 11, 2024
@jon-nfc jon-nfc added this to the v1.4 - UI / API Refactor milestone Nov 11, 2024
@jon-nfc jon-nfc moved this to Planning in Centurion ERP Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
@jon-nfc jon-nfc moved this from In progress to Done in Centurion ERP Nov 25, 2024
@jon-nfc jon-nfc linked a pull request Nov 25, 2024 that will close this issue
7 tasks
jon-nfc added a commit that referenced this issue Nov 27, 2024
@jon-nfc
Copy link
Member Author

jon-nfc commented Nov 28, 2024

closing as v1.4 is about to be released with this fixes.

@jon-nfc jon-nfc closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task::feature Adds functionality type::task Issue Type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant