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

Add tags and tickets fields to get cases request #5564

Merged

Conversation

metroid-samus
Copy link
Contributor

No description provided.

@metroid-samus metroid-samus added the enhancement New feature or request label Dec 3, 2024
@metroid-samus metroid-samus marked this pull request as ready for review December 3, 2024 21:13
@kevgliss
Copy link
Contributor

kevgliss commented Dec 3, 2024

hmm, I don't think we want to do it this way. When include is supported:

We create a special result set using:

We should figure out a way to support nested objects via that function such that additionally nested fields can be gathered as well.

This would also solve the problem across the incident, case and task apis.

Lmk if you want to pair on that approach, it's been a long time since I looked at that code and it's sort of magical.

@metroid-samus metroid-samus merged commit ad45c42 into master Dec 12, 2024
8 checks passed
@metroid-samus metroid-samus deleted the enhancement/include-case-tag-ticket-fields-in-get-cases branch December 12, 2024 18:07
metroid-samus added a commit that referenced this pull request Dec 12, 2024
* Add tags and tickets fields to get cases request

* Attempt to move include parameter in GET requests to Cases into database service.

* Adding tests

* Adding tests

* Add tags and ticket fields back to CaseReadMinimal

* Switch test from Incident to Case.

* remove duplicates

* Fix unused variable assignment

* Fixing tests

---------

Co-authored-by: kevgliss <[email protected]>
Co-authored-by: Kevin Glisson <[email protected]>
metroid-samus added a commit that referenced this pull request Dec 16, 2024
* Allow export of tag fields for Incidents and Cases.

* Add tags and tickets fields to get cases request (#5564)

* Add tags and tickets fields to get cases request

* Attempt to move include parameter in GET requests to Cases into database service.

* Adding tests

* Adding tests

* Add tags and ticket fields back to CaseReadMinimal

* Switch test from Incident to Case.

* remove duplicates

* Fix unused variable assignment

* Fixing tests

---------

Co-authored-by: kevgliss <[email protected]>
Co-authored-by: Kevin Glisson <[email protected]>

* Export tags as tag_type.name/tag.name

* Preview case tag column as 'tag_type.name/tag.name'

---------

Co-authored-by: kevgliss <[email protected]>
Co-authored-by: Kevin Glisson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants