Git Product home page Git Product logo

Comments (4)

nikitastupin avatar nikitastupin commented on June 15, 2024

Hi @sickcodes,

I think this is a great idea! I also suggest to:

  • To do so on every PR so the program-list.json is always sorted and de-duplicated. For example, we can add a workflow that checks for this.
  • To de-duplicate entries based on "policy_url". Now we have quite a lot of duplicates (e.g. for Google VRP) and I can't find a reason why.

from diodb.

nikitastupin avatar nikitastupin commented on June 15, 2024
  • To make a helper script that adds an entry to the program-list.json. Alike the npm init command (in a sense of interactive questionnaire). I think this will be useful for those who contribute for the first time to abstract away formatting issues from them and make contributing experience more smooth. The other way to achieve this is to add a git hook that will format before the commit automatically. I can help with this.

from diodb.

sickcodes avatar sickcodes commented on June 15, 2024

Hi @sickcodes,

I think this is a great idea! I also suggest to:

  • To do so on every PR so the program-list.json is always sorted and de-duplicated. For example, we can add a workflow that checks for this.

  • To de-duplicate entries based on "policy_url". Now we have quite a lot of duplicates (e.g. for Google VRP) and I can't find a reason why.

Workflow sounds good, but I do like the idea of having users de duplicate it themselves :)

Definitely can't de-dupe based on policy URL as multiple companies will have the same security "drop off point," and all blanks would disappear.

@yesnet0 has mentioned in the past program name is key (if I recall correctly)

It's also easy to de-dupe alphabetically for obvious reasons (eg. character case differences etc)

Instead of a git hook, I would go for a unit test of barebones alpine with jq to sort using the command in title.

Since maintainers can edit the forks, it reminds the pull requester to dedupe themselves, but collaborators can subsequently edit that individual's fork before commit, rather than automatically, just in case it creates errors.

However I do like the idea, and a little git hook sounds awesome.

apk add jq
jq -s '.[] | unique_by(.program_name)' < program-list.json > program-list.json.tmp
mv program-list.json.tmp program-list.json

That solves both Python scripts

from diodb.

nikitastupin avatar nikitastupin commented on June 15, 2024

I do like the idea of having users de duplicate it themselves :)

Me too because automatic de-duplication may lead to entry losses or other types of corruption.

Definitely can't de-dupe based on policy URL as multiple companies will have the same security "drop off point," and all blanks would disappear.

Makes sense, thank you!

from diodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.