Skip to content

Commit 65444de

Browse files
authored
Merge pull request #16 from Geode-solutions/geode-objects-redesign
fix(Api): harmonize args across ecosystem
2 parents f05a3e1 + a536394 commit 65444de

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

commitlint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default {
1+
const Configuration = {
22
extends: ["@commitlint/config-angular"],
33
rules: {
44
"scope-empty": [2, "never"],
@@ -12,5 +12,8 @@ export default {
1212
"subject-full-stop": [0],
1313
"type-case": [0],
1414
"type-empty": [0],
15+
"type-enum": [2, "always", ["feat", "fix", "perf"]],
1516
},
1617
}
18+
19+
export default Configuration

src/opengeodeweb_microservice/database/data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ class Data(Base):
1414
geode_object: Mapped[str] = mapped_column(String, nullable=False)
1515
viewer_object: Mapped[str] = mapped_column(String, nullable=False)
1616

17-
native_file_name: Mapped[str | None] = mapped_column(String, nullable=True)
18-
viewable_file_name: Mapped[str | None] = mapped_column(String, nullable=True)
17+
native_file: Mapped[str | None] = mapped_column(String, nullable=True)
18+
viewable_file: Mapped[str | None] = mapped_column(String, nullable=True)
1919

20-
light_viewable: Mapped[str | None] = mapped_column(String, nullable=True)
20+
light_viewable_file: Mapped[str | None] = mapped_column(String, nullable=True)
2121
input_file: Mapped[str | None] = mapped_column(String, nullable=True)
2222
additional_files: Mapped[list[str] | None] = mapped_column(JSON, nullable=True)
2323

tests/test_database.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def test_data_crud_operations(clean_database):
2525
def test_data_with_additional_files(clean_database):
2626
files = ["file1.txt", "file2.txt"]
2727
data = Data.create(
28-
geode_object="test_files", viewer_object="test_viewer", additional_files=files
28+
geode_object="test_files",
29+
viewer_object="test_viewer",
30+
additional_files=files,
2931
)
3032
assert data.id is not None
3133
assert isinstance(data.id, str)

0 commit comments

Comments
 (0)