Page MenuHomePhabricator

[alias-server] Move aliasConstants out of config and into constants dir
ClosedPublic

Authored by bytesofman on Jun 12 2023, 17:22.

Details

Summary

T3060

With the spec solidified, these aren't really adjustable parameters. Will be permanent for prod version of app.

Move to /constants/ now to reflect this

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
move-alias-constants
Lint
Lint Errors
SeverityLocationCodeMessage
Errorapps/alias-server/test/aliasTests.js:8ESLINTno-unused-vars
Errorapps/alias-server/test/chronikWsHandlerTests.js:7ESLINTno-unused-vars
Unit
No Test Coverage
Build Status
Buildable 24005
Build 47620: Build Diffalias-server-tests
Build 47619: arc lint + arc unit

Event Timeline

emack requested changes to this revision.EditedJun 13 2023, 00:15
emack added a subscriber: emack.

Even after npm i, I'm getting this when running npm test

image.png (310×868 px, 62 KB)

Should this be in package.json?

npm audit fix didn't fix this dependency either

This revision now requires changes to proceed.Jun 13 2023, 00:15

Even after npm i, I'm getting this when running npm test

image.png (310×868 px, 62 KB)

Should this be in package.json?

npm audit fix didn't fix this dependency either

what's your output from node --version ?

Also, please include the whole stack trace of the error as text

Even after npm i, I'm getting this when running npm test

image.png (310×868 px, 62 KB)

Should this be in package.json?

npm audit fix didn't fix this dependency either

what's your output from node --version ?

Also, please include the whole stack trace of the error as text

On further review, issue is prob that I created D14045 on master, so I probably created this one on top of that. Hence the dependencies would be different.

Fabien added inline comments.
apps/alias-server/constants/alias.js
33 ↗(On Diff #40765)

I thought this was no longer a thing ?

apps/alias-server/constants/alias.js
33 ↗(On Diff #40765)

it's been deprecated but I forgot to remove it from the constants

It's completed in the diff stacked onto this

This revision is now accepted and ready to land.Jun 14 2023, 21:01