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
F3398212: D12021.id40172.diff
Sun, Dec 1, 9:48 PM
Unknown Object (File)
Fri, Nov 22, 9:37 PM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:06 AM
Unknown Object (File)
Oct 26 2024, 5:05 AM
Unknown Object (File)
Oct 26 2024, 5:01 AM
Unknown Object (File)
Oct 19 2024, 2:14 AM
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