You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+159Lines changed: 159 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,24 @@ For each PR made, an entry should be added to this changelog. It should contain
12
12
- etc.
13
13
14
14
## Changelog
15
+
16
+
- 1209-bug-fix-document-type-creator-form
17
+
- Description: The dropdown on the pattern creation form needs to be set as multi as the default option since this is why the doc type creator form is used for the majority of multi-URL pattern creations. This should be applied to doc types, division types, and titles as well.
18
+
- Changes:
19
+
- Set the default value for `match_pattern_type` in `BaseMatchPattern` class is set to `2`
20
+
- Changed `test_create_simple_exclude_pattern` test within `TestDeltaExcludePatternBasics`
21
+
- Changed `test_create_division_pattern` and `test_create_document_type_pattern_single` within `TestFieldModifierPatternBasics`
- Description: The original automation set up to generate the scrapers and indexers automatically based on a collection workflow status change needed to be updated to more accurately reflect the curation workflow. It would also be good to generate the jobs during this process to streamline the same.
25
+
- Changes:
26
+
- Updated function nomenclature. Scrapers are Sinequa connector configurations that are used to scrape all the URLs prior to curation. Indexers are Sienqua connector configurations that are used to scrape the URLs post to curation, which would be used to index content on production. Jobs are used to trigger the connectors which are included as parts of joblists.
27
+
- Parameterized the convert_template_to_job method to include the job_source to streamline the value added to the `<Collection>` tag in the job XML.
28
+
- Updated the fields that are pertinenet to transfer from a scraper to an indexer. Also added a third level of XML processing to facilitate the same.
29
+
- scraper_template.xml and indexer_template.xml now contains the templates used for the respective configuration generation.
30
+
- Deleted the redundant webcrawler_initial_crawl.xml file.
31
+
- Added and updated tests on workflow status triggers.
32
+
15
33
- 2889-serialize-the-tdamm-tags
16
34
- Description: Have TDAMM serialzed in a specific way and exposed via the Curated URLs API to be consumed into SDE Test/Prod
17
35
- Changes:
@@ -35,3 +53,144 @@ For each PR made, an entry should be added to this changelog. It should contain
35
53
- Defined a class `HTMLFreeCharField` which inherits `serializers.CharField`
36
54
- Used regex to catch any HTML content comming in as an input to form fields
37
55
- Called this class within the serializer for necessary fields
- Description: When URLs of a given collection are imported into COSMOS, a Slack notification is sent. This notification includes the name of the collection imported,count of the existing curated URLs, total URLs count as per the server, URLs successfully imported from the server, delta URLs identified and delta URLs marked for deletion.
64
+
- Changes:
65
+
- The get_full_texts() function in sde_collections/sinequa_api.py is updated to yeild total_count along with rows.
66
+
- fetch_and_replace_full_text() function in sde_collections/tasks.py captures the total_server_count and triggers send_detailed_import_notification().
67
+
- Added a function send_detailed_import_notification() in sde_collections/utils/slack_utils.py to structure the notification to be sent.
68
+
- Updated the associated tests effected due to inclusion of this functionality.
- Description: Upon selecting a document type on any individual URL, the page refreshes and returns to the top. This is not necessarily a bug but an inconvenience, especially when working at the bottom of the page. Fix the JS code.
72
+
- Changes:
73
+
- Added a constant `scrollPosition` within `postDocumentTypePatterns` to store the y coordinate postion on the page
74
+
- Modified the ajax relaod to navigate to this position upon posting/saving the document type changes.
- Description: When selecting options from the match pattern type filter, the system does not filter the results as expected. Instead of displaying only the chosen variety of patterns, it continues to show all patterns.
78
+
- Changes:
79
+
- In `title_patterns_table` definition, corrected the column reference
80
+
- Made `match_pattern_type` searchable
81
+
- Corrected the column references and made code consistent on all the other tables, i.e., `exclude_patterns_table`, `include_patterns_table`, `division_patterns_table` and `document_type_patterns_table`
82
+
83
+
- 1190-add-tests-for-job-generation-pipeline
84
+
- Description: Tests have been added to enhance coverage for the config and job creation pipeline, alongside comprehensive tests for XML processing.
85
+
- Changes:
86
+
- Added config_generation/tests/test_config_generation_pipeline.py which tests the config and job generation pipeline, ensuring all components interact correctly
87
+
- config_generation/tests/test_db_to_xml.py is updated to include comprehensive tests for XML Processing
88
+
89
+
- 1001-tests-for-critical-functionalities
90
+
- Description: Critical functionalities have been identified and listed, and critical areas lacking tests listed
91
+
- Changes:
92
+
- Integrated coverage.py as an indicative tool in the workflow for automated coverage reports on PRs, with separate display from test results.
93
+
- Introduced docs/architecture-decisions/testing_strategy.md, which includes the coverage report, lists critical areas, and specifically identifies those critical areas that are untested or under-tested.
- Description: Set up comprehensive frontend testing infrastructure using Selenium WebDriver with Chrome, establishing a foundation for automated UI testing.
97
+
- Changes:
98
+
- Added Selenium testing dependency to `requirements/local.txt`
99
+
- Updated Dockerfile to support Chrome and ChromeDriver
100
+
- Created BaseTestCase and AuthenticationMixin for reusable test components
- Description: In the Document Type Pattern Form, if the user does not select a Document Type while filling out the form, an appropriate error message is displayed.
132
+
- Changes:
133
+
- Added a JavaScript validation check on form submission to ensure the document type (stored in a hidden input) is not empty.
134
+
- Display an error message and prevent form submission if the field is empty.
- Description: Fixed incorrect sorting behavior in Collections table where sorting by Curated URLs column was not working as expected.
148
+
- Changes:
149
+
- Added `data-order` attribute to URL count columns for proper numeric sorting
150
+
- Updated SearchPane comparisons to use `@data-order` values instead of string-based loose equality checks to ensure correct numeric filtering
151
+
152
+
- 1182-ml-classification-queue
153
+
- Description: The inference API will be providing confidence levels to the classification results to COSMOS. We require a robust job processing mechanism to batch URLs based on the load the API can handle, and track every individual job sent to the API and ultimately evaluate the status of jobs tied to each collection based on the results retrieved. This also needs to take the translation of the classification labels from the API to the tags used internally within COSMOS.
154
+
- Changes:
155
+
- New environment values have been created called `INFERENCE_API_URL` and `TDAMM_CLASSIFICATION_THRESHOLD` set in base settings.
156
+
- New models added:
157
+
- ModelVersion: Tracking system for multiple versions of classification models with API identifiers
158
+
- InferenceJob: Manages inference jobs for collections of URLs with a specific model version
159
+
- ExternalJob: Represents a batched job sent to the inference API, with multiple ExternalJobs per InferenceJob
160
+
- Status Tracking: Enum classes for job status tracking (queued, pending, completed, failed, cancelled, etc.)
161
+
- BatchProcessor: Handles batching of URLs for efficient API processing
162
+
- Text Length Management: Smart batching based on total text length with configurable maximum (default 10,000 chars)
163
+
- Oversized Text Handling: Automatic truncation of URLs that exceed maximum batch size
164
+
- Iterator Management: Safe handling of QuerySet iterators including proper cleanup
165
+
- InferenceAPIClient: Handles direct interaction with the Inference API
166
+
- Model Management: Loading, unloading, and status checking for models
167
+
- Job Submission: Support for batch submission with proper error handling
168
+
- Retry Logic: Robust retry mechanisms for model loading operations
169
+
- Health Checking: API health verification before operations
170
+
- ClassificationThresholdProcessor: A class to handle the class-based thresholding of classification results
171
+
- Separte classmethods for tdamm and division classifiers
172
+
- Config file to handle the thresholds for each class
173
+
- Celery Integration: Scheduled processing of inference job queue with configurable interval, executes `process_inference_job_queue`
174
+
- Time-Based Execution: Configured to run during off-hours on weekdays (6pm-7am) and all the time on weekends
175
+
- Concurrency and Safety:
176
+
- AdvisoryLock: Utility class for managing Postgres advisory locks
177
+
- Transaction Management: Context managers for safe lock acquisition and release
178
+
- ID Generation: Hash-based lock ID generation from string names
179
+
- Updated TDAMMTags to remove redundant tags (MMA_M_EM, MMA_O_BI, MMA_O_BH, MMA_O_N) and add a missing one (MMA_S_FBOT). Also updated the enum value for the NOT_TDAMM tag.
180
+
- Classification results coming in from the inference API will need to be translated to the TDAMMTags model we have, and that is handled by the `map_classification_to_tdamm_tags` in the `classification_utils` that will contain any relevant utilities for subsequent classifiers
181
+
- The collections that will be run through the pipeline are limited to the following right now:
182
+
- imagine_the_universe
183
+
- physics_of_the_cosmos
184
+
- stsci_space_telescope_science_institute
185
+
- Once the front end has been updated to allow for tag edits, all astrophysics collections will be marked to be run through the pipeline
186
+
187
+
- 1298-csv-export-command-for-urls
188
+
- Description: Added a new Django management command to export URLs (DumpUrl, DeltaUrl, or CuratedUrl) to CSV files for analysis or backup purposes. The command allows filtering by collection and provides configurable export options.
189
+
- Changes:
190
+
- Created a new management command `export_urls_to_csv.py` to extract URL data to CSV format
191
+
- Implemented options to filter exports by model type and specific collections
192
+
- Added support for excluding full text content with the `--full_text` flag to reduce file size
193
+
- Included proper handling for paired fields (tdamm_tag_manual, tdamm_tag_ml)
194
+
- Added automatic creation of a dedicated `csv_exports` directory for storing export files
195
+
- Implemented batched processing to efficiently handle large datasets
196
+
- Added progress reporting during export operations
0 commit comments