Skip to content

Formalizing Data.json with fewer parameters #179

@ashishk1331

Description

@ashishk1331

Is your feature request related to a problem? Please describe.
In Data.json file, each user data is structured as

{
    "name": "Arpit Ghura", 
    "username": "arpitghura",
    "avatar": "https://github.com/arpitghura.png"
},

The avatar_url only requires the username as the filling parameter. The URL can be constructed using username only like,

   url = https://github.com/${ username }.png

Describe the solution you'd like
I would like to change the data schema to

{
     "name": "Arpit Ghura",
     "username": "arpitghura"
 }

This would reduce the code size and create fewer errors while adding details.
Also, a custom script to update the initial dataJSON file to adhere to the new data schema.
As well, adapt the serving code to process the avatar image using username only.

Describe alternatives you've considered
Leave the code as it is. As it works fine!

Additional context
I can help develop this feature. I do have a good knowledge of python (which I can use for that script) and I also know javascript, being a JAM-stack developer. Or I can only use Javascript to process all. Plus, I'm good at chores such as data manipulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions