Skip to content

Commit 5fe3a8c

Browse files
committed
Added some fixes for peregrine
1 parent ffed8dd commit 5fe3a8c

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

bin/setup_notifications.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
from sqlalchemy import create_engine
7-
from gdcdatamodel.models.notifications import Base
7+
from gen3datamodel.models.notifications import Base
88

99

1010
def setup(host, user, password, database):

bin/setup_psqlgraph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from sqlalchemy import create_engine
33
import logging
44

5-
from gdcdatamodel.models import *
5+
from gen3datamodel.models import *
66
from psqlgraph import create_all, Node, Edge
77

88

bin/setup_transactionlogs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import argparse
77
from sqlalchemy import create_engine
8-
from gdcdatamodel.models.submission import Base
8+
from gen3datamodel.models.submission import Base
99

1010

1111
def setup(host, user, password, database):

deployment/wsgi/wsgi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
sys.path.append("/var/www/peregrine/")
44
sys.path.append("/peregrine/")
5-
from peregrine.api import app as application
5+
from wsgi import app as application

peregrine/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def dictionary_init(app):
103103

104104
d = gdcdictionary.gdcdictionary
105105
dictionary.init(d)
106-
from gdcdatamodel import models as md
107-
from gdcdatamodel import validators as vd
106+
from gen3datamodel import models as md
107+
from gen3datamodel import validators as vd
108108

109109
datamodelutils.validators.init(vd)
110110
datamodelutils.models.init(md)

peregrine/models.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
"""
22
This module generalizes the data model used by the peregrine blueprint, and
33
must be initialized using another ``models`` module to set the attributes of
4-
this module. For example, using ``gdcdatamodel.models`` as the models:
4+
this module. For example, using ``gen3datamodel.models`` as the models:
55
66
.. code-block:: python
77
8-
peregrine.models.init(gdcdatamodel.models)
8+
peregrine.models.init(gen3datamodel.models)
99
1010
Then this module can be imported elsewhere in ``peregrine``:
1111
1212
.. code-block:: python
1313
1414
from peregrine import models
1515
16-
# This is effectively an alias of ``gdcdatamodel.models.Project``.
16+
# This is effectively an alias of ``gen3datamodel.models.Project``.
1717
models.Project
1818
"""
1919

peregrine/resources/submission/graphql/node.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
peregrine.resources.submission.graphql.node
44
----------------------------------
55
6-
Implements GraphQL queries for each gdcdatamodel.model node type
6+
Implements GraphQL queries for each gen3datamodel.model node type
77
using the Graphene GraphQL library
88
"""
99

@@ -424,7 +424,7 @@ def resolve_node(self, info, **args):
424424
425425
:returns:
426426
A list of graphene object classes (e.g. a Case query object
427-
(not a gdcdatamodel Case)).
427+
(not a gen3datamodel Case)).
428428
429429
"""
430430

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = [
1313
[tool.poetry.dependencies]
1414
python = ">=3.9,<3.10"
1515
authutils = {git = "https://git@github.com/uc-cdis/authutils.git", branch = "feat/jq-testing"}
16-
gen3datamodel = {git = "https://git@github.com/uc-cdis/gdcdatamodel.git", branch = "fix/fips-hashing"}
16+
gen3datamodel = {git = "https://git@github.com/uc-cdis/gen3datamodel.git", branch = "fix/fips-hashing"}
1717
datamodelutils = ">=1.0"
1818
defusedxml = ">=0.5"
1919
dictionaryutils = ">=3.4.10"

0 commit comments

Comments
 (0)