docs icon indicating copy to clipboard operation
docs copied to clipboard

Update error code Python script

Open keerlu opened this issue 2 years ago • 1 comments

Currently we have this Python script that pulls in error codes from the prisma-engines repo and formats them for our Error Reference page.

At a minimum it would be nice to have a forked version of this script that is nicely commented with informative variable names, so it's easy to read and maintain.

There was also some discussion in this old PR (which I never finished, oops) about some information that is currently missing from the script and getting manually added, so if this is also easy to automate it would be good to include it.

Relevant old discussion: https://prisma-company.slack.com/archives/C5Z9TH6N9/p1646209993731929 Some instructions on running the script here

keerlu avatar Aug 11 '22 14:08 keerlu

Yay for code comments. ;-)

tanberry avatar Aug 11 '22 14:08 tanberry

Can we tweak the script to make it pull in PDP error codes, which are in private repo.

tanberry avatar Oct 19 '22 14:10 tanberry

https://github.com/prisma/docs-tools/pull/41

ObamaTheLlama114 avatar Nov 01 '22 15:11 ObamaTheLlama114

The error code script has been rewritten. Closing this issue.

ObamaTheLlama114 avatar Dec 05 '22 15:12 ObamaTheLlama114