galaxyproject / galaxyproject/cloudlaunch

Rename slug to id?

Open
#111 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
42
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Some primary keys use slug and others use id, which makes writing client code difficult, since you have to know in advanced whether an object is using slug or id. Since it doesn't matter whether the pk is a slug or not as it's autogenerated from the name anyway, it seems better to rename everything to ID.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by identifying every model and client-facing API object that uses slug or id, then determine the migration and compatibility scope. Done means primary-key naming is consistent without breaking existing client code.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend-api-design
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.