mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Correct spelling mistakes
This commit is contained in:
@@ -453,7 +453,7 @@ export class ActionHistoryImpl implements ActionHistory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches the most recent action row from the history, orderd with earlier actions first.
|
||||
* Fetches the most recent action row from the history, ordered with earlier actions first.
|
||||
* If `maxActions` is supplied, at most that number of actions are returned.
|
||||
*/
|
||||
private async _getRecentActionRows(maxActions: number|undefined,
|
||||
|
||||
@@ -19,7 +19,7 @@ import values = require('lodash/values');
|
||||
const MAXIMUM_INLINE_ROWS = 10;
|
||||
|
||||
/**
|
||||
* Options when producing an action sumary.
|
||||
* Options when producing an action summary.
|
||||
*/
|
||||
export interface ActionSummaryOptions {
|
||||
maximumInlineRows?: number; // Overrides the maximum number of rows in a
|
||||
@@ -309,7 +309,7 @@ function renameAndDelete<T>(entries: {[name: string]: T}, dead: Set<string>,
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply planned name changes to a pair of entries, and return a merged entry encorporating
|
||||
* Apply planned name changes to a pair of entries, and return a merged entry incorporating
|
||||
* their composition.
|
||||
*
|
||||
* @param names: the planned name changes as calculated by planNameMerge()
|
||||
|
||||
@@ -349,7 +349,7 @@ export class ActiveDocImport {
|
||||
hiddenTableId: createdTableId, // TODO: rename thing?
|
||||
uploadFileIndex,
|
||||
origTableName,
|
||||
transformSectionRef, // TODO: this shouldnt always be needed, and we only get it if genimporttransform
|
||||
transformSectionRef, // TODO: this shouldn't always be needed, and we only get it if genimporttransform
|
||||
destTableId
|
||||
});
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ export function assertAccess(
|
||||
}
|
||||
|
||||
/**
|
||||
* Pull out headers to pass along to a proxied service. Focussed primarily on
|
||||
* Pull out headers to pass along to a proxied service. Focused primarily on
|
||||
* authentication.
|
||||
*/
|
||||
export function getTransitiveHeaders(req: Request): {[key: string]: string} {
|
||||
|
||||
@@ -129,7 +129,7 @@ export function linkOrgWithEmail(session: SessionObj, email: string, org: string
|
||||
*
|
||||
* This is a view of the session object, for a single organization (the "scope").
|
||||
*
|
||||
* Local caching is disabled in an enviroment where there is a home server (or we are
|
||||
* Local caching is disabled in an environment where there is a home server (or we are
|
||||
* the home server). In hosted Grist, per-instance caching would be a problem.
|
||||
*
|
||||
* We retain local caching for situations with a single server - especially electron.
|
||||
|
||||
@@ -51,7 +51,7 @@ class GristDocAPIImpl implements GristDocAPI {
|
||||
/**
|
||||
* DocPluginManager manages plugins for a document.
|
||||
*
|
||||
* DocPluginManager instanciates asynchronously. Wait for the `ready` to resolve before using any
|
||||
* DocPluginManager instantiates asynchronously. Wait for the `ready` to resolve before using any
|
||||
* plugin.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -85,7 +85,7 @@ export class DocSnapshotPruner {
|
||||
* steady state).
|
||||
*
|
||||
* The list of versions (with metadata) for a document is itself stored in S3. This isn't
|
||||
* ideal since we cannnot simply append a new version to the list without rewriting it in full.
|
||||
* ideal since we cannot simply append a new version to the list without rewriting it in full.
|
||||
* But the alternatives have more serious problems, and this way folds quite well into the
|
||||
* existing pruning setup.
|
||||
* - Storing in db would mean we'd need sharding sooner than otherwise
|
||||
|
||||
@@ -678,7 +678,7 @@ export class DocStorage implements ISQLiteDB {
|
||||
*/
|
||||
public _initDB(): Promise<void> {
|
||||
// Set options for speed across multiple OSes/Filesystems.
|
||||
// WAL is fast and safe (guarantees consistency accross crashes), but has disadvantages
|
||||
// WAL is fast and safe (guarantees consistency across crashes), but has disadvantages
|
||||
// including generating unwanted extra files that can be tricky to deal with in renaming, etc
|
||||
// the options for WAL are commented out
|
||||
// Setting synchronous to OFF is the fastest method, but is not as safe, and could lead to
|
||||
|
||||
@@ -57,7 +57,7 @@ export interface IDocWorkerMap extends IPermitStores, IElectionStore, IChecksumS
|
||||
setWorkerAvailability(workerId: string, available: boolean): Promise<void>;
|
||||
|
||||
// Releases doc from worker, freeing it to be assigned elsewhere.
|
||||
// Assigments should only be released for workers that are now unavailable.
|
||||
// Assignments should only be released for workers that are now unavailable.
|
||||
releaseAssignment(workerId: string, docId: string): Promise<void>;
|
||||
|
||||
// Get all assignments for a worker. Should only be queried for a worker that
|
||||
|
||||
@@ -134,7 +134,7 @@ export function expandQuery(iquery: ServerQuery, docData: DocData, onDemandFormu
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a query that relates two homogenous tables sharing a common set of columns,
|
||||
* Build a query that relates two homogeneous tables sharing a common set of columns,
|
||||
* returning rows that exist in both tables (if they have differences), and rows from
|
||||
* `leftTableId` that don't exist in `rightTableId`.
|
||||
*
|
||||
|
||||
@@ -208,7 +208,7 @@ export class ChecksummedExternalStorage implements ExternalStorage {
|
||||
|
||||
/**
|
||||
* We may want to download material from one key and henceforth treat it as another
|
||||
* key (specifically for forking a document). Since this class crossreferences the
|
||||
* key (specifically for forking a document). Since this class cross-references the
|
||||
* key in the external store with other consistent stores, it needs to know we are
|
||||
* doing that. So we add a downloadTo variant that takes before and after keys.
|
||||
*/
|
||||
|
||||
@@ -1070,7 +1070,7 @@ export class FlexServer implements GristServer {
|
||||
const scope = addPermit(getScope(mreq), this._dbManager.getSupportUserId(), {org: orgDomain});
|
||||
const query = await this._dbManager.getOrg(scope, orgDomain);
|
||||
const org = this._dbManager.unwrapQueryResult(query);
|
||||
// This page isn't availabe for personal site.
|
||||
// This page isn't available for personal site.
|
||||
if (org.owner) {
|
||||
return this._sendAppPage(req, resp, {path: 'error.html', status: 404, config: {errPage: 'not-found'}});
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ export class GranularAccess implements GranularAccessForBundle {
|
||||
|
||||
/**
|
||||
* Check whether an ActionGroup can be sent to the client. TODO: in future, we'll want
|
||||
* to filter acceptible parts of ActionGroup, rather than denying entirely.
|
||||
* to filter acceptable parts of ActionGroup, rather than denying entirely.
|
||||
*/
|
||||
public async allowActionGroup(docSession: OptDocSession, actionGroup: ActionGroup): Promise<boolean> {
|
||||
return this.canReadEverything(docSession);
|
||||
|
||||
@@ -19,7 +19,7 @@ export class HostedMetadataManager {
|
||||
// Callback for next opportunity to push changes.
|
||||
private _timeout: any = null;
|
||||
|
||||
// Mantains the update Promise to wait on it if the class is closing.
|
||||
// Maintains the update Promise to wait on it if the class is closing.
|
||||
private _push: Promise<any>|null;
|
||||
|
||||
/**
|
||||
@@ -65,7 +65,7 @@ export class HostedMetadataManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Push all metadata updates to the databse.
|
||||
* Push all metadata updates to the database.
|
||||
*/
|
||||
private _update(): void {
|
||||
if (this._push) { return; }
|
||||
|
||||
@@ -350,7 +350,7 @@ const spawners = {
|
||||
* - GRIST_SANDBOX_FLAVOR: should be one of the spawners (pynbox, unsandboxed, docker,
|
||||
* gvisor, macSandboxExec)
|
||||
* - GRIST_SANDBOX: a program or image name to run as the sandbox. Not needed for
|
||||
* pynbox (it is either built in or not avaiable). For unsandboxed, should be an
|
||||
* pynbox (it is either built in or not available). For unsandboxed, should be an
|
||||
* absolute path to python within a virtualenv with all requirements installed.
|
||||
* For docker, it should be `grist-docker-sandbox` (an image built via makefile
|
||||
* in `sandbox/docker`) or a derived image. For gvisor, it should be the full path
|
||||
@@ -743,7 +743,7 @@ function getWrappingEnv(options: ISandboxOptions) {
|
||||
* structure on the host rather than remapping, we can simplify nesting
|
||||
* wrappers, or cases where remapping isn't possible. It does leak the names
|
||||
* of the host directories though, and there could be silly complications if the
|
||||
* directories have spaces or other idiosyncracies. When committing to a sandbox
|
||||
* directories have spaces or other idiosyncrasies. When committing to a sandbox
|
||||
* technology, for stand-alone Grist, it would be worth rethinking this.
|
||||
*/
|
||||
function getAbsolutePaths(options: ISandboxOptions) {
|
||||
|
||||
@@ -66,7 +66,7 @@ export class PluginManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-load plugins (litterally re-run `loadPlugins`).
|
||||
* Re-load plugins (literally re-run `loadPlugins`).
|
||||
*/
|
||||
// TODO: it's not clear right now what we do on reload. Do we deactivate plugins that were removed
|
||||
// from the fs? Do we update plugins that have changed on the fs ?
|
||||
|
||||
@@ -114,7 +114,7 @@ export type DBFunc = (db: SQLiteDB) => Promise<void>;
|
||||
export enum OpenMode {
|
||||
OPEN_CREATE, // Open DB or create if doesn't exist (the default mode for sqlite3 module)
|
||||
OPEN_EXISTING, // Open DB or fail if doesn't exist
|
||||
OPEN_READONLY, // Open DB in read-only mode or fail if doens't exist.
|
||||
OPEN_READONLY, // Open DB in read-only mode or fail if doesn't exist.
|
||||
CREATE_EXCL, // Create new DB or fail if it already exists.
|
||||
}
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ export class SamlConfig {
|
||||
if (state.action === 'login') {
|
||||
const samlUser = samlResponse.user;
|
||||
if (!samlUser || !samlUser.name_id) {
|
||||
log.warn(`SamlConfig: bad SAML reponse: ${JSON.stringify(samlUser)}`);
|
||||
log.warn(`SamlConfig: bad SAML response: ${JSON.stringify(samlUser)}`);
|
||||
throw new Error("Invalid user info in SAML response");
|
||||
}
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ export class Sharing {
|
||||
isModification: sandboxActionBundle.stored.length > 0
|
||||
};
|
||||
} finally {
|
||||
// Make sure the bundle is marked as complete, even if some miscellaneous error occured.
|
||||
// Make sure the bundle is marked as complete, even if some miscellaneous error occurred.
|
||||
await accessControl.finishedBundle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,8 +74,8 @@ exports.createNumbered = createNumbered;
|
||||
/**
|
||||
* An easier-to-use alternative to createNumbered. Pass in a template string containing the
|
||||
* special token "{NUM}". It will first call creator() with "{NUM}" removed, then with "{NUM}"
|
||||
* replcaced by "-2", "-3", etc, until creator() succeeds, and will return the value for which it
|
||||
* suceeded.
|
||||
* replaced by "-2", "-3", etc, until creator() succeeds, and will return the value for which it
|
||||
* succeeded.
|
||||
*/
|
||||
function createNumberedTemplate(template, creator) {
|
||||
const [prefix, suffix] = template.split("{NUM}");
|
||||
|
||||
Reference in New Issue
Block a user