Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Scrub null json fields during harvesting #560

Closed
USDOJ-FSCP opened this issue May 10, 2018 · 3 comments
Closed

Scrub null json fields during harvesting #560

USDOJ-FSCP opened this issue May 10, 2018 · 3 comments

Comments

@USDOJ-FSCP
Copy link

At DOJ we are using a SharePoint solution that is not feature-rich when it comes to character level text processing. We are collecting code.json entries using an embedded forms feature in SharePoint, but we have limited ability to do anything that SharePoint doesn't provide some sort of plug in for. There is no readily available scripting tool within our reach to manage logic.

Because of that we have allocated a certain number of fields to various array values like keyword, language and so forth. So we have room on the UI for up to 5 keywords, and if a user only fills three of those blanks, the json file will have two null fields (,"") . This causes the harvester to post blank values, little null icons where the key words would be displayed. Its my thinking that a smarter harvester, one that discards null fields, would be a better investment than 10 - 15 improved json generating tools across the government that all will need to have logic that strips null fields.

@RicardoAReyes
Copy link
Contributor

RicardoAReyes commented May 10, 2018

Thank you @USDOJ-FSCP (Dave) for posting the request, the Code.gov engineering team will be evaluating it.

@froi please review the request.

@RicardoAReyes RicardoAReyes changed the title Scrub null json fields during haresting Scrub null json fields during harvesting May 10, 2018
@froi
Copy link
Contributor

froi commented May 10, 2018

Thanks for posting this feedback @USDOJ-FSCP.

This issue should live in GSA/code-gov-api. I've create the issue GSA/code-gov-api#220 to address this.

This issue will be closed.

CC: @RicardoAReyes @jcastle @DanielJDufour

@USDOJ-FSCP
Copy link
Author

USDOJ-FSCP commented May 11, 2018 via email

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

No branches or pull requests

5 participants