sourcefuse / sourcefuse/loopback4-microservice-catalog

UUID Column change the generation function

Open
#2,039 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
297
Forks
78
Avg merge
2d 3h
Merged PRs (30d)
4

Description

Is your feature request related to a problem? Please describe.
Currently we use md5() to generate the uuid column, but since it is not completly safe to use it
suggest to use https://www.postgresql.org/docs/current/functions-uuid.html

Also the identity columns should also be changed

CREATE TABLE IF NOT EXISTS main.auth_clients (
	id                   integer  NOT NULL GENERATED BY DEFAULT AS IDENTITY,

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the schema or migration definitions for main.auth_clients and search for the current md5()-based UUID generation and identity-column declarations. Read the linked PostgreSQL UUID documentation first, then identify every affected definition; done means the UUID generation and requested identity columns consistently use the agreed PostgreSQL approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.