Skip to main content

Week 2

(June, 09, 2023)

Attendees

Update

Added code to populate data from JSON file to the database:

  • added automigration capability
  • added CLI arguments for database connection
  • database can be populated with json file etc

Discussions

  • Shaheem suggested to discuss it with Anupam and Gaurav for License Candidate file.
    • For now we will use License database of license.
  • If the data in database is not same as that in json file we will migrate it from json file. For ths we have RF flag in fossology, this flag refers if the data is from UI or from json.
  • Marydone is field for candidate license flag.

General

  • Do we want plain log or structured log?
    • We need keep structured, as structured are easy to parse to extend we can start putting logs.
  • Use fatalf for error format instead of panic.
  • Create Signed commit

Conclusion and Future Plan

  • Get endpoints to be done.

      GET METHOD:  /api/licenses      // get all licenses 
    GET METHOD: /api/license/:shortname // get licenses by shortname
  • Evaluate both fuzzy search and fulltext in PostgreSQL.