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

[2.26.x] DDF-6386 Add support for source id and metacard type for csv metacard transforms #6387

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

glenhein
Copy link
Contributor

What does this PR do?

Downstream projects need to create CSV exports that include the source identifier and metacard type name. The current code only supports exporting data that is contained in a metacard attribute. However, the source identifier and metacard type name are stored separately from the attributes.

This PR also creates a constant in MetacardType for the string "metacard-type", which was being defined multiple times in DDF and in downstream projects.

Who is reviewing it?

@pklinef
@derekwilhelm

Select relevant component teams:

@codice/core-apis
@codice/data

Ask 2 committers to review/merge the PR and tag them here.

@Bdthomson
@jlcsmith

How should this be tested?

Build with a downstream project that provides a UI capable of creating a CSV export. The export should include the source id and metacard type. Make sure that the exported data includes the correct values for these fields.

Any background context you want to provide?

What are the relevant tickets?

Fixes: #6386

Screenshots

Checklist:

  • Documentation Updated
  • Update / Add Threat Dragon models
  • Update / Add Unit Tests
  • Update / Add Integration Tests

Notes on Review Process

Please see Notes on Review Process for further guidance on requirements for merging and abbreviated reviews.

Review Comment Legend:

  • ✏️ (Pencil) This comment is a nitpick or style suggestion, no action required for approval. This comment should provide a suggestion either as an in line code snippet or a gist.
  • ❓ (Question Mark) This comment is to gain a clearer understanding of design or code choices, clarification is required but action may not be necessary for approval.
  • ❗ (Exclamation Mark) This comment is critical and requires clarification or action before approval.

@jlcsmith jlcsmith changed the title DDF-6386 Add support for source id and metacard type for csv metacard transforms [2.26.x] DDF-6386 Add support for source id and metacard type for csv metacard transforms Oct 19, 2020
@jlcsmith jlcsmith added this to the 2.26.1 milestone Oct 19, 2020
@SmithJosh
Copy link
Contributor

SmithJosh commented Oct 27, 2020

Hero successful. Built this with DDF-UI and verified I could export as a CSV using the "Export as" link in the menu next to the metacard title in the inspector view (dropdown in the see screenshot), and that the CSV it generates includes the "source-id" field.

The CSV link in the actions tab did not work (on the left in the screenshot - it just creates an empty CSV), but I tested with 2.26.0 and it doesn't work there either, so that's a separate issue.

Screen Shot 2020-10-27 at 3 57 02 PM

@jlcsmith jlcsmith merged commit 130cafa into codice:2.26.x Nov 3, 2020
alexabird added a commit that referenced this pull request Sep 13, 2024
alexabird added a commit that referenced this pull request Sep 13, 2024
malmgrens4 added a commit that referenced this pull request Nov 7, 2024
Forward Ports

Provide better transform failure message 390db3f
#6771

DDF-6386 Add support for source id and metacard type for csv metacard transforms
367e426
#6387

Adds Gmd QueryResponseTransformer
89877a4
#6781

Use UTC dates when exporting metacards in CSV format
27ed601
#6501

Fix CSV transformer output when no columnOrder given
fef3cb1
#6653

Updated the CsvTransformer to remove attributes that have empty or null
fbb2b4d
#6738

Xlsx column filtering
0335485
#6747

updated RTF transformer formatting and now omits null attributes from
64f8e5d
#6744

fix npe in rtf
41fe113
#6750

Updated CSV and XLSX transformers to maintain the order specified in the columnOrder argument
506791d
#6757

Dynamic rtf
83bcf56
#6762

Fix multi-value exports for RTF
dd7bc91
#6767

---------

Co-authored-by: derekwilhelm <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants