Skip to content
5 changes: 4 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
const Configuration = {
extends: ["@commitlint/config-angular"],
rules: {
"scope-empty": [2, "never"],
Expand All @@ -12,5 +12,8 @@ export default {
"subject-full-stop": [0],
"type-case": [0],
"type-empty": [0],
"type-enum": [2, "always", ["feat", "fix", "perf"]],
},
}

export default Configuration
6 changes: 3 additions & 3 deletions src/opengeodeweb_microservice/database/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class Data(Base):
geode_object: Mapped[str] = mapped_column(String, nullable=False)
viewer_object: Mapped[str] = mapped_column(String, nullable=False)

native_file_name: Mapped[str | None] = mapped_column(String, nullable=True)
viewable_file_name: Mapped[str | None] = mapped_column(String, nullable=True)
native_file: Mapped[str | None] = mapped_column(String, nullable=True)
viewable_file: Mapped[str | None] = mapped_column(String, nullable=True)

light_viewable: Mapped[str | None] = mapped_column(String, nullable=True)
light_viewable_file: Mapped[str | None] = mapped_column(String, nullable=True)
input_file: Mapped[str | None] = mapped_column(String, nullable=True)
additional_files: Mapped[list[str] | None] = mapped_column(JSON, nullable=True)

Expand Down
4 changes: 3 additions & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def test_data_crud_operations(clean_database):
def test_data_with_additional_files(clean_database):
files = ["file1.txt", "file2.txt"]
data = Data.create(
geode_object="test_files", viewer_object="test_viewer", additional_files=files
geode_object="test_files",
viewer_object="test_viewer",
additional_files=files,
)
assert data.id is not None
assert isinstance(data.id, str)
Expand Down