Skip to content

Commit

Permalink
Move all TODOs to issues we can track separately
Browse files Browse the repository at this point in the history
  • Loading branch information
ecooper committed Dec 18, 2024
1 parent ec4f267 commit d034358
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function buildYargs(argvInput) {
.filter((key) => previousWord === key)
.pop();

// TODO: this doesn't handle aliasing, and it needs to
// This doesn't handle aliasing, and it needs to
if (
currentWord === "--profile" ||
currentWordFlag === "profile" ||
Expand Down
1 change: 0 additions & 1 deletion src/commands/shell.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ async function shellCommand(argv) {
prompt: `${argv.database || ""}> `,
ignoreUndefined: true,
preview: argv.apiVersion !== "10",
// TODO: integrate with fql-analyzer for completions
completer: argv.apiVersion === "10" ? () => [] : undefined,
output: container.resolve("stdoutStream"),
input: container.resolve("stdinStream"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib/auth/accountKeys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class AccountKeys {
async getOrRefreshKey() {
if (this.keySource === "credentials-file") {
const key = this.keyStore.get();
// TODO: track ttl for account and refresh keys

if (!key) {
this.logger.debug(
"Found account key, but it is expired. Refreshing...",
Expand Down
1 change: 0 additions & 1 deletion src/lib/auth/credentials.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export class Credentials {
this.accountKeys.keyStore.save({
accountKey,
refreshToken,
// TODO: set expiration
});
this.accountKeys.key = accountKey;
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib/fauna-account-client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ export class FaunaAccountClient {
* @returns {Promise<{accountKey: string, refreshToken: string}>} - The session information.
* @throws {Error} - Throws an error if there is an issue during session retrieval.
*/

// TODO: get/set expiration details
static async getSession(accessToken) {
const makeAccountRequest = container.resolve("makeAccountRequest");
try {
Expand All @@ -149,7 +147,6 @@ export class FaunaAccountClient {
}
}

// TODO: get/set expiration details
/**
* Uses refreshToken to get a new accountKey and refreshToken.
* @param {*} refreshToken
Expand Down
1 change: 0 additions & 1 deletion src/lib/middleware.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export function fixPaths(argv) {
}

export function checkForUpdates(argv) {
// TODO: figure out upgrade path for SEA installations
if (isSea()) return argv;

const __filename = fileURLToPath(import.meta.url);
Expand Down
1 change: 0 additions & 1 deletion test/schema/commit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ describe("schema commit", function () {
});

it("errors if the schema is not in a ready state", async function () {
// TODO: what are the valid statuses? !none, !ready results in this case
fetch.onCall(0).resolves(f({ status: "building", diff: diff }));

const [error] = await tryToCatch(() =>
Expand Down

0 comments on commit d034358

Please sign in to comment.