-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FIlterSet and InstrumentFilterSet models #72
Open
nvolgenau
wants to merge
18
commits into
dev
Choose a base branch
from
feature/specific_filter_sets
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a691c53
helm: add/increase runcadencestrategies resource constraints
jashan-lco f8a0c85
Merge pull request #65 from LCOGT/jashan-lco-patch-2
jashan-lco de1939f
change helm chart api version to v2
jashan-lco 803c047
pin tomtoolkit to last known working version
jashan-lco 56fe093
pin django dependencies to last known working versions
jashan-lco debacf0
incr resources (2x memory, et al): OOMErrors in updatestatus pod
phycodurus 391217b
bump tomtoolkit to version with updated Target/BaseTarget models
phycodurus 87b6ce3
not sure where that typo came from...
phycodurus 5b83c54
tomtoolkit 2.19 needes more recent djangorestframework
phycodurus 778d2e0
fix the requirements.txt finally (tested locally)
phycodurus 3e65be3
Merge pull request #70 from LCOGT/dev
nvolgenau 3e962d9
Update tomtoolkit to 2.19.6
nvolgenau 38322ec
Register FilterSet and InstrumentFilterSet
nvolgenau df77519
Add FilterSet and InstrumentFilterSet models
nvolgenau 2fe577f
Add FilterSet and InstrumentFilterSet
nvolgenau 75b5b61
Add def update_observation_filterset with call to get_last_instrument…
nvolgenau 10a61d7
clean-up variable names, print statements
nvolgenau dd257fc
clean-up variable names, print statements
nvolgenau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from django.contrib import admin | ||
from .models import Filter, Instrument, InstrumentFilter | ||
from .models import Filter, FilterSet, Instrument, InstrumentFilterSet | ||
|
||
# Register your models here | ||
admin.site.register(Filter) | ||
admin.site.register(FilterSet) | ||
admin.site.register(Instrument) | ||
admin.site.register(InstrumentFilter) | ||
#admin.site.register(InstrumentFilter) | ||
admin.site.register(InstrumentFilterSet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
calibrations/migrations/0004_filterset_instrumentfilterset.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.2.10 on 2024-10-23 22:47 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('calibrations', '0003_filter_instrument_instrumentfilter'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='FilterSet', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('filter_set_code', models.ManyToManyField(to='calibrations.filter')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='InstrumentFilterSet', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('max_age', models.IntegerField(default=5)), | ||
('filter_set', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='calibrations.filterset')), | ||
('instrument', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='calibrations.instrument')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
apiVersion: v2 | ||
appVersion: "1.0" | ||
description: A Helm chart for Kubernetes | ||
name: calibration-tom | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the linter will choke on this: you can pip install flake8 and run it on your repo before you make your commits like this:
flake8 calibration_tom* --exclude=*/migrations/* --max-line-length=120