Skip to content

Sasview database#106

Draft
summerhenson wants to merge 1148 commits into
refactor_24from
sasview-database
Draft

Sasview database#106
summerhenson wants to merge 1148 commits into
refactor_24from
sasview-database

Conversation

@summerhenson

Copy link
Copy Markdown

Database backend in progress.

@krzywon krzywon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my inline comments, a few general notes:

  • I said this in the meeting, but wanted to reiterate it - good use of atomic commits with specific commit messages
  • Some python formatting would be useful. Running everything through ruff could be worthwhile.
  • Relative imports can be fragile, but mostly when trying to run a python file directly. That isn't easy with Django, so it's not that huge an issue, but wanted to mention it.
  • Another thing we discussed at today's meeting, but wanted to mention again, is user auth and request.user clashes. Many of the checks don't ensure the authenticated user is the data owner.

Overall, a good start to the project. I'll try to make comments every week, or as updates are made.

Comment thread sasdata/fair_database/data/views.py Outdated
Comment thread sasdata/fair_database/data/tests.py Outdated
@summerhenson summerhenson force-pushed the sasview-database branch 2 times, most recently from 6503450 to c0c7fa0 Compare March 19, 2025 20:21
Comment thread .github/workflows/test-fair-database.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread .pre-commit-config.yaml
Comment on lines +10 to +14
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
files: "sasdata/fair_database/.*"
- id: ruff-format
files: "sasdata/fair_database/.*"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread sasdata/fair_database/fair_database/permissions.py Outdated
Comment thread sasdata/fair_database/user_app/tests.py
Comment thread sasdata/quantities/_units_base.py Outdated
Comment thread sasdata/quantities/quantity.py Outdated
Comment thread sasdata/quantities/quantity.py Outdated
Comment thread sasdata/fair_database/data/test/test_datafile.py Outdated
Comment thread sasdata/fair_database/data/models.py Outdated
Comment thread sasdata/fair_database/data/models.py Outdated
Comment thread sasdata/fair_database/data/models.py
Comment thread sasdata/fair_database/data/models.py Outdated

@krzywon krzywon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more nitpicking 😉

Comment thread sasdata/fair_database/data/models.py Outdated
Comment thread sasdata/fair_database/data/models.py Outdated
Comment thread sasdata/fair_database/data/models.py
Comment thread sasdata/fair_database/data/models.py
Comment thread sasdata/fair_database/data/models.py
Comment thread sasdata/fair_database/data/models.py
Comment thread sasdata/fair_database/user_app/tests.py Outdated
Comment thread sasdata/fair_database/fair_database/permissions.py Outdated
@backmari

Copy link
Copy Markdown

If there are no more planned changes to the models, maybe we should delete the migrations and create new initial migrations based on the current state of the models. It definitely made sense to keep all intermediate migrations while the models were being developed, but this is probably a good place to start fresh.

@DrPaulSharp DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from a16b0a6 to e27d0cc Compare August 11, 2025 15:43
@DrPaulSharp DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from d4683bd to 3df6e01 Compare November 7, 2025 17:52
@DrPaulSharp DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from b32dbfe to 6f3b4af Compare December 9, 2025 12:24

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No quality gates enabled for this code.

See analysis details in CodeScene

Absence of Expected Change Pattern

  • sasdata/sasdata/dataloader/readers/danse_reader.py is usually changed with: sasdata/sasdata/dataloader/readers/tiff_reader.py

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@krzywon

krzywon commented Mar 13, 2026

Copy link
Copy Markdown
Collaborator

The latest rebase now has this changing many files in refactor_24 that weren't there before. This is not mergeable in its current state, but I'll get it over the line during the hackathon next week.

@DrPaulSharp DrPaulSharp force-pushed the refactor_24 branch 3 times, most recently from 90413d7 to dd691e0 Compare May 18, 2026 17:07
@krzywon krzywon mentioned this pull request Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants