-
Notifications
You must be signed in to change notification settings - Fork 5
Advanced collection filters #895
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c21b949
feat: method to pass advanced collection filters to the backend
mihow 30a2e0f
feat: generic method for validating integers in form
mihow a44ef60
feat: allow filtering collections by event/session
mihow 9c1a5ad
feat: allow filtering collections by research station ID
mihow a3e47b6
fix: streamline label casing
annavik 5d33718
copy: steamline language
annavik 42d99a8
Allow the api data to override the defaults
mihow 5a30267
Merge branch 'main' into feat/advanced-collection-filters-2
mihow f410098
Merge branch 'main' into feat/advanced-collection-filters-2
mihow 6f1aa1a
Merge branch 'main' of github.com:RolnickLab/antenna into feat/advanc…
mihow e6277a6
Merge branch 'feat/advanced-collection-filters-2' of github.com:Rolni…
mihow 5e78a8a
feat: clean up form, remove research station field
mihow b2a7679
fix: update default sampling method for collections
mihow e55fa3a
fix: update default sampling method for collections
mihow 846957f
fix: duplicate keys
mihow 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 hidden or 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
33 changes: 33 additions & 0 deletions
33
ami/main/migrations/0063_alter_sourceimagecollection_method.py
This file contains hidden or 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,33 @@ | ||
# Generated by Django 4.2.10 on 2025-07-24 21:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("main", "0062_project_feature_flags"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="sourceimagecollection", | ||
name="method", | ||
field=models.CharField( | ||
choices=[ | ||
("full", "full"), | ||
("random", "random"), | ||
("stratified_random", "stratified_random"), | ||
("interval", "interval"), | ||
("manual", "manual"), | ||
("starred", "starred"), | ||
("random_from_each_event", "random_from_each_event"), | ||
("last_and_random_from_each_event", "last_and_random_from_each_event"), | ||
("greatest_file_size_from_each_event", "greatest_file_size_from_each_event"), | ||
("detections_only", "detections_only"), | ||
("common_combined", "common_combined"), | ||
], | ||
default="full", | ||
max_length=255, | ||
), | ||
), | ||
] |
This file contains hidden or 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 hidden or 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 hidden or 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,2 +1,2 @@ | ||
// Only some sampling methods are editable from the UI | ||
export const SERVER_SAMPLING_METHODS = ['interval', 'random', 'full'] | ||
export const SERVER_SAMPLING_METHODS = ['full', 'interval', 'random'] |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.