Skip to content

Commit

Permalink
[RND-623] initial matchup to MetaEd api-schema plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbanister committed Sep 22, 2023
1 parent aab3e45 commit 0f73541
Show file tree
Hide file tree
Showing 89 changed files with 148,120 additions and 1,752 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import {
AuthorizationStrategy,
DeleteRequest,
DeleteResult,
generateDocumentUuid,
DocumentUuid,
MeadowlarkId,
TraceId,
} from '@edfi/meadowlark-core';
import { DocumentUuid, MeadowlarkId, TraceId } from '@edfi/meadowlark-core/src/model/IdTypes';
import { generateDocumentUuid } from '@edfi/meadowlark-core/src/model/DocumentIdentity';
import { Client } from '@elastic/elasticsearch';
import { queryDocuments } from '../../src/repository/QueryElasticsearch';
import { afterDeleteDocumentById, afterUpsertDocument } from '../../src/repository/UpdateElasticsearch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ export interface MeadowlarkDocument extends MeadowlarkDocumentId {
createdBy: string;

/*
* Creation date as as Unix timestamp, or null if this is a document to be updated and we don't know the create time yet
* Creation date as a Unix timestamp, or null if this is a document to be updated and we don't know the create time yet
*/
createdAt: number | null;

/*
* Last modified date as as Unix timestamp.
* Last modified date as a Unix timestamp.
*/
lastModifiedAt: number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
UpsertRequest,
TraceId,
UpsertResult,
newFrontendRequestMiddleware,
newPathComponents,
} from '@edfi/meadowlark-core';
import { newFrontendRequestMiddleware } from '@edfi/meadowlark-core/src/handler/FrontendRequest';
import { newPathComponents } from '@edfi/meadowlark-core/src/model/PathComponents';
import { MongoClient } from 'mongodb';
import { getDocumentCollection, getNewClient } from '../../src/repository/Db';
import { rejectByOwnershipSecurity } from '../../src/repository/OwnershipSecurity';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
UpsertRequest,
TraceId,
UpsertResult,
newFrontendRequestMiddleware,
newPathComponents,
} from '@edfi/meadowlark-core';
import { newFrontendRequestMiddleware } from '@edfi/meadowlark-core/src/handler/FrontendRequest';
import { newPathComponents } from '@edfi/meadowlark-core/src/model/PathComponents';
import { MongoClient } from 'mongodb';
import { getDocumentCollection, getNewClient } from '../../src/repository/Db';
import { securityMiddleware } from '../../src/security/SecurityMiddleware';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.

import { FrontendRequest, FrontendResponse, newFrontendRequest, newFrontendResponseSuccess } from '@edfi/meadowlark-core';
import { newFrontendRequestMiddleware } from '@edfi/meadowlark-core/src/handler/FrontendRequest';
import { newPathComponents } from '@edfi/meadowlark-core/src/model/PathComponents';
import {
FrontendRequest,
FrontendResponse,
newFrontendRequest,
newFrontendResponseSuccess,
newFrontendRequestMiddleware,
newPathComponents,
} from '@edfi/meadowlark-core';
import { securityMiddleware } from '../../src/security/SecurityMiddleware';
import * as OwnershipSecurity from '../../src/repository/OwnershipSecurity';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import {
AuthorizationStrategy,
DeleteRequest,
DeleteResult,
DocumentUuid,
MeadowlarkId,
TraceId,
generateDocumentUuid,
} from '@edfi/meadowlark-core';
import { DocumentUuid, MeadowlarkId, TraceId } from '@edfi/meadowlark-core/src/model/IdTypes';
import { generateDocumentUuid } from '@edfi/meadowlark-core/src/model/DocumentIdentity';
import { Client } from '@opensearch-project/opensearch/.';
import { queryDocuments } from '../../src/repository/QueryOpensearch';
import { afterDeleteDocumentById, afterUpsertDocument } from '../../src/repository/UpdateOpensearch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import {
DocumentUuid,
UpsertRequest,
TraceId,
newFrontendRequestMiddleware,
newPathComponents
} from '@edfi/meadowlark-core';
import { newFrontendRequestMiddleware } from '@edfi/meadowlark-core/src/handler/FrontendRequest';
import { newPathComponents } from '@edfi/meadowlark-core/src/model/PathComponents';
import type { PoolClient } from 'pg';
import { getSharedClient, resetSharedClient } from '../../src/repository/Db';
import { deleteAll } from './TestHelper';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
DocumentUuid,
UpsertRequest,
TraceId,
newFrontendRequestMiddleware,
newPathComponents,
} from '@edfi/meadowlark-core';
import { newFrontendRequestMiddleware } from '@edfi/meadowlark-core/src/handler/FrontendRequest';
import { newPathComponents } from '@edfi/meadowlark-core/src/model/PathComponents';
import type { PoolClient } from 'pg';
import { resetSharedClient, getSharedClient } from '../../src/repository/Db';
import { securityMiddleware } from '../../src/security/SecurityMiddleware';
Expand Down
Loading

0 comments on commit 0f73541

Please sign in to comment.