Page MenuHomePhabricator

[keyserver][nix] remove dbType from db-config.js
ClosedPublic

Authored by will on May 13 2024, 3:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 5:06 AM
Unknown Object (File)
Sat, Oct 26, 5:06 AM
Unknown Object (File)
Sat, Oct 26, 5:06 AM
Unknown Object (File)
Sat, Oct 26, 5:05 AM
Unknown Object (File)
Sat, Oct 26, 5:01 AM
Unknown Object (File)
Sat, Oct 19, 2:14 AM
Unknown Object (File)
Fri, Oct 18, 8:55 AM
Unknown Object (File)
Thu, Oct 17, 9:35 PM
Subscribers

Details

Reviewers
ashoat
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM508243212382: [keyserver][nix] remove dbType from db-config.js
Summary

This removes the usage of dbType from keyserver's db_config.js file. This is no longer necessary and we plan on upgrading from mariadb10.8 to 10.11.

There is a warning that we're supplying dbType as a mariadb configuration option that doesn't exist (as db-config.js now contains a field we don't use), but looks like devs can just manually remove dbType to remove this warning after this is landed

Test Plan

Ran keyserver after removing dbType and ensured it was working with iOS simulator

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.May 13 2024, 3:28 PM
will edited the test plan for this revision. (Show Details)
will edited the summary of this revision. (Show Details)
will requested review of this revision.May 13 2024, 3:44 PM

Let's remove the no-longer-useful spreads

keyserver/src/database/database.js
25 ↗(On Diff #40136)

There's no point to the spread on assignment here. This syntax is only useful if you're separating something else out

keyserver/src/database/db-config.js
33 ↗(On Diff #40136)

Don't need this new space imo

This revision is now accepted and ready to land.May 13 2024, 7:33 PM

Remove unnecessary spread syntax

will marked 2 inline comments as done.May 14 2024, 9:37 AM