Skip to content

Commit

Permalink
Merge branch 'main' into staging-merge
Browse files Browse the repository at this point in the history
Signed-off-by: Spyros <[email protected]>
  • Loading branch information
northdpole authored Oct 28, 2023
2 parents 9c6ce1f + b4d4882 commit c4cddae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ e2e:
export FLASK_CONFIG=development
flask run&
sleep 5

yarn test:e2e
killall yarn
killall flask
Expand All @@ -38,7 +37,6 @@ test:
[ -d "./venv" ] && . ./venv/bin/activate
export FLASK_APP=$(CURDIR)/cre.py
flask test

cover:
. ./venv/bin/activate && FLASK_APP=cre.py FLASK_CONFIG=testing flask test --cover

Expand Down
16 changes: 0 additions & 16 deletions application/frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,3 @@ export interface PaginatedResponse {
standards: Document[];
total_pages: number;
}

interface GapAnalysisPathSegment {
start: Document;
end: Document;
relationship: string;
}

interface GapAnalysisPath {
end: Document;
path: GapAnalysisPathSegment[];
}

export interface GapAnalysisPathStart {
start: Document;
paths: Record<string, GapAnalysisPath>;
}
1 change: 1 addition & 0 deletions application/tests/web_main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,4 @@ def test_gap_analysis_weak_links_response(self, db_mock) -> None:
)
self.assertEqual(200, response.status_code)
self.assertEqual(expected, json.loads(response.data))

4 changes: 2 additions & 2 deletions application/web/web_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from rq import Worker, Queue, Connection, job, exceptions

from application import cache
from application.database import db
from application.defs import cre_defs as defs
from application.defs import osib_defs as odefs
Expand Down Expand Up @@ -83,7 +82,6 @@ def neo4j_not_running_rejection():

@app.route("/rest/v1/id/<creid>", methods=["GET"])
@app.route("/rest/v1/name/<crename>", methods=["GET"])
@cache.cached(timeout=50)
def find_cre(creid: str = None, crename: str = None) -> Any: # refer
database = db.Node_collection()
include_only = request.args.getlist("include_only")
Expand Down Expand Up @@ -421,6 +419,8 @@ def find_root_cres() -> Any:

@app.errorhandler(404)
def page_not_found(e) -> Any:
from pprint import pprint

return "Resource Not found", 404


Expand Down

0 comments on commit c4cddae

Please sign in to comment.