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

Merge JSON saving into main #104

Merged
merged 36 commits into from Feb 21, 2022
Merged

Merge JSON saving into main #104

merged 36 commits into from Feb 21, 2022

Commits on Jul 8, 2021

  1. JSONsaver : lay down initia setup of jsonsaver

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 8, 2021
    Copy the full SHA
    2d6415b View commit details
    Browse the repository at this point in the history
  2. jsonSaver : saved other licenses to json

    - parsed other licenses from spdx.Doxument2_2 to json
    - tests pending
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 8, 2021
    Copy the full SHA
    45a2a52 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Jsonsaver : Saved document annotations from struct to json

    - Saved annoations on the root document from struct to json
    - unit tests pending
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 9, 2021
    Copy the full SHA
    5704209 View commit details
    Browse the repository at this point in the history
  2. JsonSaver : saved document describes from spdx struct to json

    - Saved document describes from spdxStruct to json
    - unit tests pending from this section
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 9, 2021
    Copy the full SHA
    9d1037e View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Jsonsaver : saved packages and relationships from spdx to json

    - saved packages from spdx struct to json
    - saved relationships froms spdx struct to json
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 10, 2021
    Copy the full SHA
    9787338 View commit details
    Browse the repository at this point in the history
  2. Jsonsaver : save files from spdx strict to json

    - parsed files information from struct to json
    - unckaged files spdx map altered (find a fix around it )
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 10, 2021
    Copy the full SHA
    9922fe7 View commit details
    Browse the repository at this point in the history
  3. jsonsaver : Save snippets from spdx struct to json

    - save snippets information from spdx struct to json
    - unit tests for render function pending
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 10, 2021
    Copy the full SHA
    91fb849 View commit details
    Browse the repository at this point in the history
  4. jsonsaver : Parse Reviews from spdx struct to json

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 10, 2021
    Copy the full SHA
    625fa97 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. JsonSaver : Write bytes to io.Writer while saving json

    - Write bytes from bytes.buffer to io.Writer while parsing json
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 14, 2021
    Copy the full SHA
    f14c07d View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Jsonsaver : Fix tag names fro reverse compatibility

    - Parse a jsonsaved file using jsonloader and fixx the bugs discovered
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 15, 2021
    Copy the full SHA
    cab3ae1 View commit details
    Browse the repository at this point in the history
  2. Jsonparser : fix bug while parsiing creators

    - Don't remove () suffix while parsing creator person and organization
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 15, 2021
    Copy the full SHA
    4012229 View commit details
    Browse the repository at this point in the history
  3. Jsonsaver : Fix return types of relationship parser

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 15, 2021
    Copy the full SHA
    7aab873 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Jsonsaver : Simplify json saving without maintaining the order

    - Unnecessary functioanlity of maintinging the order of properyies removed
    - usage of map[string]interafce{} introduced
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 16, 2021
    Copy the full SHA
    08fb06a View commit details
    Browse the repository at this point in the history
  2. Examples : Write desxription of jsonsaver in the Readme

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 16, 2021
    Copy the full SHA
    8d5f3f5 View commit details
    Browse the repository at this point in the history
  3. Examples : Write description of jsonsaver example in readme

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 16, 2021
    Copy the full SHA
    d47d0c2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #92 from specter25/jsonparser1

    [GSoC'21] Pr:5 . Complete the JSON saver
    swinslow committed Jul 16, 2021
    Copy the full SHA
    668152c View commit details
    Browse the repository at this point in the history
  5. Jsonsaver : minor fixes regarding code semantics

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 16, 2021
    Copy the full SHA
    f64669f View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Jsonsaver : creation info unit tests written

    - Unit Tests fro creation info function
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 20, 2021
    Copy the full SHA
    7616a1e View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Jsonsaver : Write unit tests for all render functions

    - Write units tests for render functions for snippets ,packages , files , reviews , relationships ,annotations
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 21, 2021
    Copy the full SHA
    8176ed5 View commit details
    Browse the repository at this point in the history
  2. Jsonsaver : Fix checksum unit tests in case of files and packages

    - Checksums algorithm had to be parsed to string from spdx.ChecksumAlgorithm
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 21, 2021
    Copy the full SHA
    6995a8a View commit details
    Browse the repository at this point in the history
  3. jsonsaver : increase test coverage

    - added test to renderfile function
    - added tests to renderrelationships function
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 21, 2021
    Copy the full SHA
    81c9631 View commit details
    Browse the repository at this point in the history
  4. Jsonsaver : increase test coverage

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 21, 2021
    Copy the full SHA
    1896bb6 View commit details
    Browse the repository at this point in the history
  5. Jsonsaver : add complete saver test

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 21, 2021
    Copy the full SHA
    2d2902a View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    3ac2221 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2021

  1. Jsonsaver : add complete functionslity tests

    - Check whether an entire spdx document is saved correctly or not
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 24, 2021
    Copy the full SHA
    de2a8c9 View commit details
    Browse the repository at this point in the history
  2. Jsonsaver : Package level tests added

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 24, 2021
    Copy the full SHA
    81c7677 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. JsonParser : increase test coverage of files, creationinfo and annota…

    …tions
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Jul 27, 2021
    Copy the full SHA
    1a9690f View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2021

  1. Examples : add example of jsonloader and remove existing conversion e…

    …xamples
    
    - bug fixes in json saver done as well
    - test covereage of jsonparser increased
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 6, 2021
    Copy the full SHA
    1bc87f7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #94 from specter25/jsonparser1

    [GSoC'21] Pr:6 . JSON saver tests
    swinslow committed Aug 6, 2021
    Copy the full SHA
    25bc95b View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2021

  1. Jsonsaver : maintain order while converting maps to json arrays

    - bug fix : sort maos keys and then range over keys instead of maps
    - to maintain order while savings properties as maps
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 10, 2021
    Copy the full SHA
    dbd63ea View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. JsonParser : JsonParser test coverage increased

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 13, 2021
    Copy the full SHA
    f679856 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #97 from specter25/jsonparser1

    [GSoC'21] Pr:7 . JSON saver bug fix
    swinslow committed Aug 13, 2021
    Copy the full SHA
    0faf540 View commit details
    Browse the repository at this point in the history
  3. Jsonsaver : order maintained while parsing snippets

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 13, 2021
    Copy the full SHA
    87a00cd View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2021

  1. Jsonsaver : Create a temporary storage for files instead of modifying…

    … original document
    
    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 15, 2021
    Copy the full SHA
    e26f08d View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Docs : Add docs for jsonparser and jsonsaver

    Signed-off-by: Ujjwal Agarwal <ujjwalcoding012@gmail.com>
    specter25 committed Aug 16, 2021
    Copy the full SHA
    9afa5fe View commit details
    Browse the repository at this point in the history
  2. Merge pull request #98 from specter25/jsonparser1

    [GSoC'21] Pr:8 . JSON saver bug fixes and Documentation enhancements
    swinslow committed Aug 16, 2021
    Copy the full SHA
    1d27f44 View commit details
    Browse the repository at this point in the history