Skip to content

Commit ebed591

Browse files
committed
(PPS-710): update 'gdcdatamodel' to 'gen3datamodel'
1 parent 3d282f7 commit ebed591

File tree

7 files changed

+23
-14
lines changed

7 files changed

+23
-14
lines changed

.secrets.baseline

+11-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,16 @@
123123
"filename": "bin/settings.py",
124124
"hashed_secret": "347cd9c53ff77d41a7b22aa56c7b4efaf54658e3",
125125
"is_verified": false,
126-
"line_number": 46
126+
"line_number": 44
127+
}
128+
],
129+
"bin/setup_psqlgraph.py": [
130+
{
131+
"type": "Secret Keyword",
132+
"filename": "bin/setup_psqlgraph.py",
133+
"hashed_secret": "afc848c316af1a89d49826c5ae9d00ed769415f3",
134+
"is_verified": false,
135+
"line_number": 14
127136
}
128137
],
129138
"peregrine/blueprints/coremetadata.py": [
@@ -273,5 +282,5 @@
273282
}
274283
]
275284
},
276-
"generated_at": "2023-11-01T14:27:13Z"
285+
"generated_at": "2024-08-13T14:46:27Z"
277286
}

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

+3-3
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

@@ -11,7 +11,7 @@ def try_drop_test_data(user, password, database, root_user="postgres", host=""):
1111

1212
engine = create_engine(
1313
"postgres://{user}:{pwd}@{host}/postgres".format(
14-
user=root_user, pwd=password, host=host
14+
user=root_user, pwd="postgres", host=host
1515
)
1616
)
1717

@@ -46,7 +46,7 @@ def setup_database(
4646

4747
engine = create_engine(
4848
"postgres://{user}:{pwd}@{host}/postgres".format(
49-
user=root_user, pwd=password, host=host
49+
user=root_user, pwd="postgres", host=host
5050
)
5151
)
5252
conn = engine.connect()

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):

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

0 commit comments

Comments
 (0)