Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
551 commits
Select commit Hold shift + click to select a range
547401c
add tdamm tags to the api serializer tests
CarsonDavis Dec 5, 2024
b001d04
Merge pull request #1103 from NASA-IMPACT/1093-write-tests-for-two-co…
CarsonDavis Dec 6, 2024
2a6e64e
Merge branch 'dev' into 1055-add-additional-workflow-statuses-on-cosm…
CarsonDavis Dec 6, 2024
a41faca
add initial status documentation
CarsonDavis Dec 6, 2024
b8bdc4c
add initial migration to add reindexing statuses
CarsonDavis Dec 6, 2024
ad82236
add migration logic to set statuses
CarsonDavis Dec 6, 2024
1f70b32
add initial frontend fixes
CarsonDavis Dec 6, 2024
55c25f6
to_delete column visible on url page
dhanur-sharma Dec 6, 2024
986f416
fix the display of the reindexing pane and annotate html file for cla…
CarsonDavis Dec 6, 2024
1d90663
refactor collection list to use column names instead of indices
CarsonDavis Dec 6, 2024
04ba82c
switch to text insertion instead of html in collection list
CarsonDavis Dec 6, 2024
11a366f
Merge pull request #1125 from NASA-IMPACT/1055-add-additional-workflo…
CarsonDavis Dec 6, 2024
18bdaa4
Merge pull request #1121 from NASA-IMPACT/3007-view-deleted-urls-unde…
CarsonDavis Dec 6, 2024
ee7229c
change worker count in new_collection_template
CarsonDavis Dec 6, 2024
1b71c2d
update worker count in default scraper
CarsonDavis Dec 6, 2024
2b811b6
add automatic batch size reduction to sinequa_api
CarsonDavis Dec 7, 2024
168eccc
Modifications1
Dec 9, 2024
348a207
Modifications2
Dec 9, 2024
5ee9087
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 9, 2024
74e5130
Mod3
Dec 9, 2024
b1192e5
Mod4
Dec 9, 2024
2c0d361
add postgres to django dockerfile for better backup system
CarsonDavis Dec 9, 2024
97f756a
add initial commands for database restore and backup
CarsonDavis Dec 9, 2024
e59366a
refactor database_backup and include compression
CarsonDavis Dec 9, 2024
48c66b8
improve logic in get_backup_filename
CarsonDavis Dec 9, 2024
818158b
new
Dec 10, 2024
8416cc5
new
Dec 10, 2024
aa72027
Merge branch 'feature/add-github-actions' of https://github.com/NASA-…
Dec 10, 2024
07161d7
Merge branch 'dev' of https://github.com/NASA-IMPACT/COSMOS into feat…
Dec 10, 2024
97e7174
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 10, 2024
ce978c5
tst5
Dec 10, 2024
bc961ef
latest
Dec 10, 2024
bbb0d4a
refactor and add tests for database restores
CarsonDavis Dec 10, 2024
a9e63bb
add database backup and restore information to main readme
CarsonDavis Dec 10, 2024
c889c15
Merge pull request #1127 from NASA-IMPACT/1126-managepy-command-for-d…
CarsonDavis Dec 10, 2024
7cd8c4d
Updated database restore command
dhanur-sharma Dec 10, 2024
b65e278
remove count calculations defined as properties
bishwaspraveen Dec 10, 2024
69950af
code to calculate the URL counts within the admin
bishwaspraveen Dec 10, 2024
09d7438
update all backup docstrings and readme with clearer volume mount info
CarsonDavis Dec 10, 2024
626285d
Merge pull request #1131 from NASA-IMPACT/3055-optmize-the-retrieval-…
CarsonDavis Dec 10, 2024
febee1b
Merge pull request #1130 from NASA-IMPACT/database_import_bug_fixes
CarsonDavis Dec 10, 2024
e934a9c
refactor status change logic and add indexing complete status
CarsonDavis Dec 10, 2024
623834e
initial addition of frontend status change
CarsonDavis Dec 10, 2024
5ca98a4
shorten display names for reindexing statuses
CarsonDavis Dec 10, 2024
b5c1c42
fix modal bug and add workflow status
CarsonDavis Dec 11, 2024
8de43c7
register reindexing_status in the field tracker and add curation prom…
CarsonDavis Dec 11, 2024
a8a3378
rename readme to pattern overview
CarsonDavis Dec 11, 2024
4e288ac
add readme for status triggers
CarsonDavis Dec 11, 2024
9f9654f
add overview readme to link all the documentation
CarsonDavis Dec 11, 2024
5efa64d
add initial tests for workflow status triggers
CarsonDavis Dec 11, 2024
85574aa
update fulltext tests to break signals
CarsonDavis Dec 11, 2024
99cfb9f
Merge pull request #1134 from NASA-IMPACT/1133-refactor-indexing-stat…
CarsonDavis Dec 11, 2024
f231ba8
Updated dockerignore and gitignore
dhanur-sharma Dec 11, 2024
2ea0494
Fixes #1112
Dec 11, 2024
1cd038b
add ignores for more venvs and backup files
CarsonDavis Dec 11, 2024
2208bdc
Merge pull request #1135 from NASA-IMPACT/update-dockerignore-gitignore
CarsonDavis Dec 11, 2024
018c2b7
change production docker volume permissions
CarsonDavis Dec 11, 2024
178b5bc
add promotion tests for overlapping title patterns and title changes
CarsonDavis Dec 11, 2024
0b83d17
prevent promotion from copying id's over to curatedurls
CarsonDavis Dec 11, 2024
430a1c1
add additional promotion tests
CarsonDavis Dec 11, 2024
93392df
add clarification about pattern behavior to the lifecycle readme
CarsonDavis Dec 11, 2024
6b73771
Merge pull request #1140 from NASA-IMPACT/1139-resolve-id-conflict-wh…
bishwaspraveen Dec 11, 2024
5ad6f4c
add explanatory commentary to the lifecycle readme
CarsonDavis Dec 12, 2024
6f528b8
Updated title pane to Delta URLs
dhanur-sharma Dec 12, 2024
56c61f6
Merge pull request #1141 from NASA-IMPACT/fix-homepage-pane
CarsonDavis Dec 12, 2024
5f21ace
write a draft testing guide
CarsonDavis Dec 12, 2024
04071e9
change to an open link for testing doc
CarsonDavis Dec 12, 2024
a0a80e9
rename manual testing readme
CarsonDavis Dec 12, 2024
434c9b0
Filters fixed
dhanur-sharma Dec 13, 2024
eddad84
refactor readme for unapply logic
CarsonDavis Dec 13, 2024
6a52eaf
update promotion code to treat empty stings and null values as meanin…
CarsonDavis Dec 13, 2024
ec471b0
correct examples 5 and 6 in unapply logic readme
CarsonDavis Dec 13, 2024
393402c
update Field modifier unapply to handle pattern overlaps
CarsonDavis Dec 13, 2024
48e0ac9
add dedicated test suite for field modifier unapply
CarsonDavis Dec 13, 2024
cf86eee
add tests for title pattern unapply
CarsonDavis Dec 13, 2024
85a65d0
update unapply logic for title patterns to include overlapping patterns
CarsonDavis Dec 13, 2024
aef7cdb
Merge pull request #1146 from NASA-IMPACT/1142-test-field-modified-un…
CarsonDavis Dec 13, 2024
c316960
Merge pull request #1145 from NASA-IMPACT/1144-fix-url-page-filters
CarsonDavis Dec 13, 2024
0e33fe5
add new field to reindexing statuses
CarsonDavis Dec 13, 2024
6651bae
Merge pull request #1148 from NASA-IMPACT/1147-add-new-status-for-re-…
CarsonDavis Dec 13, 2024
5922d01
Add documentation for PairedFieldDescriptor implementation
Kirandawadi Dec 16, 2024
3c8b985
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 16, 2024
633cc15
Conditional anchor updated for 0 Delta URLs
dhanur-sharma Dec 16, 2024
3e828b2
Javascript updated
dhanur-sharma Dec 18, 2024
0064403
Updated collection.py
dhanur-sharma Dec 18, 2024
a081574
Removed console log statements
dhanur-sharma Dec 18, 2024
60b9afd
Merge pull request #1161 from NASA-IMPACT/1154-delta-urls-with-a-coun…
CarsonDavis Dec 18, 2024
a1e29f9
fixed paging on excludes and includes tabs
bishwaspraveen Dec 18, 2024
26a8f99
Merge pull request #1163 from NASA-IMPACT/1153-pagination-limited-to-…
CarsonDavis Dec 18, 2024
9acfb14
remove assignment of reindexing finished status in migration file
CarsonDavis Dec 18, 2024
6bc1767
Merge branch 'dev' of github.com:NASA-IMPACT/COSMOS into dev
CarsonDavis Dec 18, 2024
7fcf45a
change name to COSMOS
CarsonDavis Dec 18, 2024
c8cb5cc
change name from SDE Indexing Helper to COSMOS
CarsonDavis Dec 18, 2024
01b9a1e
remove SVG SDE Indexing Helper logo and replace with simple COSMOS text
CarsonDavis Dec 18, 2024
d8250ee
remove <br> blocking buttons
CarsonDavis Dec 18, 2024
de941ce
test adding long timeout to traefik
CarsonDavis Dec 18, 2024
fb7a809
simplify timeout handling in traefik
CarsonDavis Dec 18, 2024
094e6b0
try a timeout of 300s
CarsonDavis Dec 18, 2024
5164e40
add timeout to the services layer
CarsonDavis Dec 18, 2024
b44a303
create a dedicated section for serversTransport
CarsonDavis Dec 18, 2024
c4fadd0
move the timeout to the services section
CarsonDavis Dec 18, 2024
7f68c9e
revert timeouts in traefik
CarsonDavis Dec 18, 2024
31b82d7
add long timeout middleware
CarsonDavis Dec 18, 2024
884e2c2
use timeouts instead of forwarding timeouts
CarsonDavis Dec 18, 2024
a34e780
remove middleware timeouts and add transport timeouts
CarsonDavis Dec 18, 2024
30bfbc3
update the gunicorn timeout to match the traefik
CarsonDavis Dec 18, 2024
c84972e
temporarily increase timeout to 10 minutes
CarsonDavis Dec 18, 2024
21a921a
column addition work in progress
dhanur-sharma Dec 19, 2024
5bd6847
rename to api_tests to test_sinequa_api
CarsonDavis Dec 19, 2024
9a83b9d
rename test_apis to test_url_apis
CarsonDavis Dec 19, 2024
0ad2dc7
rename test_views to test_ej_api
CarsonDavis Dec 19, 2024
fcc70eb
Merge pull request #1162 from NASA-IMPACT/1150-status-button-color-ma…
CarsonDavis Dec 19, 2024
9ebdae5
Merge pull request #1160 from NASA-IMPACT/1159-add-documentation-for-…
CarsonDavis Dec 19, 2024
e51ce45
add release notes file
CarsonDavis Dec 19, 2024
8df561a
Merge branch 'dev' of github.com:NASA-IMPACT/COSMOS into dev
CarsonDavis Dec 19, 2024
c7e74b2
Allow individual URL inclusion to override multi-URL excludes
Kirandawadi Dec 19, 2024
456c763
Modify serializers
Kirandawadi Dec 19, 2024
f8c2329
correct the count of ej spreadsheet values
CarsonDavis Dec 19, 2024
7348a76
update the code for deleting duplicates and migrating collections
CarsonDavis Dec 20, 2024
4294dfd
Added affected curated urls count on url pattern pages
dhanur-sharma Dec 24, 2024
bb7dde7
Merge branch 'dev' of https://github.com/NASA-IMPACT/COSMOS into 3000…
dhanur-sharma Dec 24, 2024
4053928
Match type pattern input added
dhanur-sharma Dec 28, 2024
9f6ed26
HTML updated
dhanur-sharma Dec 28, 2024
9635cf3
Rectified curated url link condition
dhanur-sharma Dec 31, 2024
e632d74
Curated URL button CSS condition
dhanur-sharma Dec 31, 2024
5ac8432
Fixed count bug in views
dhanur-sharma Dec 31, 2024
b507e37
Merge pull request #1172 from NASA-IMPACT/1157-specify-pattern-match-…
CarsonDavis Jan 7, 2025
2660973
Merge pull request #1170 from NASA-IMPACT/3000-add-curated-urls-colum…
CarsonDavis Jan 7, 2025
909c9a6
Removed curated_url_count from DeltaURLSerializer
dhanur-sharma Jan 8, 2025
efd3fd6
Merge pull request #1169 from NASA-IMPACT/1116-add-a-column-to-displa…
bishwaspraveen Jan 8, 2025
4083d7d
Merge pull request #1136 from NASA-IMPACT/1112-uniform-handling-of-er…
bishwaspraveen Jan 8, 2025
99a72f4
Merge pull request #1167 from NASA-IMPACT/1156-update-exclude-checkma…
bishwaspraveen Jan 8, 2025
bba9e0e
changes1
Jan 10, 2025
3d6ae59
changes2
Jan 10, 2025
3cdadf3
changes3
Jan 10, 2025
af8aa3d
changes4
Jan 10, 2025
fa7180c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 10, 2025
aec1172
changes5
Jan 10, 2025
5b6b1bd
Merge branch 'feature/add-github-actions' of https://github.com/NASA-…
Jan 10, 2025
0fd2f49
changes6
Jan 10, 2025
3897f3f
changes6.1
Jan 10, 2025
c258803
6.3
Jan 10, 2025
6d0f670
Resolved merge conflicts
Jan 10, 2025
342f7dc
6.4
Jan 10, 2025
30a4354
6.6
Jan 10, 2025
a17e468
6.7
Jan 10, 2025
5ae4b43
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 10, 2025
0ab6854
6.8
Jan 10, 2025
d4d8886
Merge branch 'feature/add-github-actions' of https://github.com/NASA-…
Jan 10, 2025
bbe8794
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 10, 2025
094ea5e
made changes: removed unnecessary mentions and also ashish from it
bishwaspraveen Jan 22, 2025
7fdb624
removed @here mention
bishwaspraveen Jan 22, 2025
8392231
Commit-01
Jan 22, 2025
0002414
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2025
e9046c3
Commit2
Jan 22, 2025
10f7d79
Commit3
Jan 22, 2025
e0c7f94
reconfigured code to maintain slack ids in dict
bishwaspraveen Jan 24, 2025
66bf44d
removed unnecessary mentions
bishwaspraveen Jan 24, 2025
7db25dc
Update .github/workflows/run_full_test_suite.yml
CarsonDavis Jan 24, 2025
536c79d
Update .pre-commit-config.yaml
CarsonDavis Jan 24, 2025
96f3b17
Update bandit-config.yml
CarsonDavis Jan 24, 2025
2a92a48
remove extra github mock from test_workflow_status_triggers
CarsonDavis Jan 24, 2025
d5e9166
Merge pull request #1201 from NASA-IMPACT/1012-enforce-code-quality-a…
CarsonDavis Jan 24, 2025
befc54a
Merge branch 'dev' into feature/add-github-actions
CarsonDavis Jan 24, 2025
22bde3b
add back in saif's magic code
CarsonDavis Jan 24, 2025
76bc096
Update sde_collections/utils/slack_utils.py
CarsonDavis Jan 24, 2025
9263034
Update sde_collections/utils/slack_utils.py
CarsonDavis Jan 24, 2025
9318ab4
Merge pull request #1123 from NASA-IMPACT/feature/add-github-actions
CarsonDavis Jan 24, 2025
0d978d7
Merge branch 'dev' into 1177-notifications-update-slack-notification-…
CarsonDavis Jan 24, 2025
9ffb37c
Merge pull request #1200 from NASA-IMPACT/1177-notifications-update-s…
CarsonDavis Jan 24, 2025
0616fed
added a new model to create dropdwon options
bishwaspraveen Jan 29, 2025
0757d29
added a serializer for the dropdown options model
bishwaspraveen Jan 29, 2025
2fe6950
added a list view for the options
bishwaspraveen Jan 29, 2025
7ed7c69
added an endpoint for LRM to consume options
bishwaspraveen Jan 29, 2025
255ccbb
migration file
bishwaspraveen Jan 29, 2025
ed14ffb
slack notification format changed
bishwaspraveen Jan 29, 2025
27b0d9a
added tests for feedback and content curation request forms
bishwaspraveen Jan 29, 2025
b3a5291
Merge branch 'dev' into 1088-api-tests-for-token-verification-request…
CarsonDavis Jan 31, 2025
86b7dad
merge api_tests with test_sinequa_api
CarsonDavis Jan 31, 2025
af5e774
Merge pull request #1089 from NASA-IMPACT/1088-api-tests-for-token-ve…
CarsonDavis Jan 31, 2025
68bb9eb
serialzed and changed API structure to fit LRM requirements
bishwaspraveen Feb 5, 2025
4c85183
Add documentation for frontend testing methodologies
Kirandawadi Feb 6, 2025
464f8d1
Make doc enhancements
Kirandawadi Feb 6, 2025
cef4d38
HTML validator has been set at serializer level
bishwaspraveen Feb 6, 2025
a2c6cea
Add implementation steps
Kirandawadi Feb 6, 2025
8e8100b
Setup infra / Implement basic frontend test
Kirandawadi Feb 6, 2025
82cbf3e
Add few initial frontend tests
Kirandawadi Feb 6, 2025
c544c29
Issue_1001
Feb 7, 2025
4376c6a
add initial testing strategy document
CarsonDavis Feb 7, 2025
5979726
Issue
Feb 7, 2025
cf71691
update testing strategy document
CarsonDavis Feb 7, 2025
dd9e50e
add example of What Pipelines Does the Repo Have to the testing_strat…
CarsonDavis Feb 7, 2025
38697ce
testing_strategy_1
Feb 10, 2025
d3b7fd5
testing_strategy2
Feb 10, 2025
297641e
update serializer file with deleted email field
bishwaspraveen Feb 10, 2025
fa0b07d
Create CHANGELOG.md
CarsonDavis Feb 10, 2025
20b6127
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 10, 2025
b976bac
Merge pull request #1221 from NASA-IMPACT/CarsonDavis-patch-1
CarsonDavis Feb 10, 2025
b3e600a
Merge branch 'dev' into 1217-add-data-validation-to-the-feedback-form…
bishwaspraveen Feb 10, 2025
0ea9976
added change log to the PR
bishwaspraveen Feb 10, 2025
ee0afcc
Merge branch 'dev' into 960-notifications-add-a-dropdown-with-options…
bishwaspraveen Feb 10, 2025
f11ddc3
added change log with this PR
bishwaspraveen Feb 10, 2025
0c2719a
Merge branch 'dev' into 2889-serialize-the-tdamm-tags
bishwaspraveen Feb 10, 2025
97957f0
updated serializers
bishwaspraveen Feb 10, 2025
4b3436d
added change log file with PR
bishwaspraveen Feb 10, 2025
9e44e3a
Refactor test modules
Kirandawadi Feb 11, 2025
0bd8085
Merge branch 'dev' into 1192-finalize-the-infrastructure-for-frontend…
Kirandawadi Feb 11, 2025
efdba33
Add homepage features and pattern application tests
Kirandawadi Feb 11, 2025
99d223c
Merge branch 'dev' of https://github.com/NASA-IMPACT/COSMOS into 1001…
Feb 12, 2025
a1dd50e
Separation of coverage Report
Feb 12, 2025
f6b3d33
Separation of coverage Report_2
Feb 12, 2025
cddb39c
Separation of coverage Report_3
Feb 12, 2025
34ce092
Separation of coverage Report_4
Feb 12, 2025
5b8576f
Separation of coverage Report_latest
Feb 12, 2025
f304588
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 12, 2025
0c2c8c6
Separation of coverage Report_latest2
Feb 12, 2025
8ec9b8f
Merge branch '1001-tests-for-critical-functionalities' of https://git…
Feb 12, 2025
a0a1171
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 12, 2025
b78f4bf
Add searchpane tests
Kirandawadi Feb 15, 2025
92ab6cc
made serializer code dry
bishwaspraveen Feb 19, 2025
cf09271
Merge pull request #1220 from NASA-IMPACT/1001-tests-for-critical-fun…
dhanur-sharma Feb 19, 2025
d4c97ec
Merge branch 'dev' into 1217-add-data-validation-to-the-feedback-form…
bishwaspraveen Feb 19, 2025
395119c
modified seralizers
bishwaspraveen Feb 19, 2025
24fb7eb
Merge pull request #1218 from NASA-IMPACT/1217-add-data-validation-to…
bishwaspraveen Feb 19, 2025
f871ebb
Merge branch 'dev' into 1195-implement-unit-test-for-forms-on-the-fro…
dhanur-sharma Feb 19, 2025
73a2dbc
Update requirements/local.txt
dhanur-sharma Feb 19, 2025
8dd24ba
Merge pull request #1226 from NASA-IMPACT/1195-implement-unit-test-fo…
dhanur-sharma Feb 19, 2025
f6db0f9
Update feedback/models.py
dhanur-sharma Feb 19, 2025
f477c95
Merge branch 'dev' into 960-notifications-add-a-dropdown-with-options…
dhanur-sharma Feb 19, 2025
80fbef3
Merge pull request #1210 from NASA-IMPACT/960-notifications-add-a-dro…
dhanur-sharma Feb 19, 2025
f63ece7
Merge branch 'dev' into 2889-serialize-the-tdamm-tags
dhanur-sharma Feb 19, 2025
2f18832
Merge pull request #1215 from NASA-IMPACT/2889-serialize-the-tdamm-tags
dhanur-sharma Feb 19, 2025
c170afe
corrected column refernce in js file
bishwaspraveen Feb 20, 2025
2d7aa81
made changes on all the tables for consistency
bishwaspraveen Feb 21, 2025
d7c05e2
added achnage log
bishwaspraveen Feb 21, 2025
87134cc
Merge pull request #1230 from NASA-IMPACT/3227-bugfix-title-patterns-…
CarsonDavis Feb 21, 2025
36a7317
Update run_full_test_suite.yml
CarsonDavis Feb 21, 2025
83e8f73
Added changelog for Issue_1001
Feb 24, 2025
1f48c9d
Wait for at least one row to be present in the table
Kirandawadi Feb 24, 2025
333125d
Update Changelog.md
Kirandawadi Feb 24, 2025
e188725
Merge pull request #1237 from NASA-IMPACT/update-changelog-for-1192-a…
CarsonDavis Feb 25, 2025
9f98601
Merge branch 'dev' into CarsonDavis-patch-1
CarsonDavis Feb 25, 2025
0f97747
Merge pull request #1233 from NASA-IMPACT/CarsonDavis-patch-1
CarsonDavis Feb 25, 2025
c586ae1
Merge branch 'dev' into changelog-update-Issue-1001
CarsonDavis Feb 25, 2025
b6a349d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 25, 2025
46f5a75
Merge pull request #1234 from NASA-IMPACT/changelog-update-Issue-1001
CarsonDavis Feb 25, 2025
83ea4b5
Merge branch 'dev' into 1235-frontend-test-test_create_title_pattern-…
CarsonDavis Feb 25, 2025
c77892a
Merge pull request #1236 from NASA-IMPACT/1235-frontend-test-test_cre…
CarsonDavis Feb 25, 2025
90ae575
remove unused getParameterByName in delta_url_list.js
CarsonDavis Feb 25, 2025
111cdfa
Merge pull request #1239 from NASA-IMPACT/CarsonDavis-patch-1
CarsonDavis Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@
.pre-commit-config.yaml
.readthedocs.yml
.travis.yml
venv
.git

# ignore local python environments
venv
.venv

# prevent large backup files from being copied into the image
/backups
*.sql
*.gz
14 changes: 12 additions & 2 deletions .envs/.local/.django
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ SINEQUA_CONFIGS_REPO_WEBAPP_PR_BRANCH='dummy_branch'
# Slack Webhook
# ------------------------------------------------------------------------------
SLACK_WEBHOOK_URL=''
LRM_USER=''
LRM_PASSWORD=''

#Server Credentials
#--------------------------------------------------------------------------------
LRM_DEV_USER=''
LRM_DEV_PASSWORD=''
XLI_USER=''
XLI_PASSWORD=''
LRM_QA_USER=''
LRM_QA_PASSWORD=''

#Server Tokens
#--------------------------------------------------------------------------------
LRM_DEV_TOKEN=''
XLI_TOKEN=''
44 changes: 44 additions & 0 deletions .github/workflows/run_full_test_suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Django Test Suite on PR

on:
pull_request:
branches:
- dev
paths-ignore:
- '**/*.md'

jobs:
run-tests:
runs-on: ubuntu-latest

services:
docker:
image: docker:24.0.5
options: --privileged
ports:
- 5432:5432

steps:
- name: Check out merged code
uses: actions/checkout@v2

- name: Set up Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

- name: Build the Docker environment
run: docker-compose -f local.yml build

- name: Run test suite
env:
DJANGO_ENV: test
run: docker-compose -f local.yml run --rm django bash ./init.sh

- name: Generate Coverage Report
env:
DJANGO_ENV: test
run: docker-compose -f local.yml run --rm django bash -c "coverage report"

- name: Cleanup
run: docker-compose -f local.yml down --volumes
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ config_generation/config.py
# Model's inference files
Document_Classifier_inference/model.pt

# Database backup
backup.json

# Prod backup
prod_backup-20240423.json
# Ignore Database Backup files
/backups
*.sql
*.gz
53 changes: 41 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,77 @@ default_stages: [commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-merge-conflict
- id: debug-statements

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
args: ["--config=setup.cfg"]
additional_dependencies: [flake8-isort]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.0
rev: v1.11.2
hooks:
- id: mypy
args: ["--strict"]
# ignoring everything for now
exclude: .
additional_dependencies: [django-stubs, celery, django-environ, django-extensions, django-crispy-forms,
crispy-bootstrap5, django-allauth, django-celery-beat, djangorestframework, djangorestframework-datatables,
django-debug-toolbar, psycopg2-binary, python-slugify, xmltodict, PyGithub, boto3, scrapy, types-requests]
exclude: "."
additional_dependencies:
- django-stubs
- celery
- django-environ
- django-extensions
- django-crispy-forms
- crispy-bootstrap5
- django-allauth
- django-celery-beat
- djangorestframework
- djangorestframework-datatables
- django-debug-toolbar
- psycopg2-binary
- python-slugify
- xmltodict
- PyGithub
- boto3
- scrapy
- types-requests

- repo: https://github.com/PyCQA/bandit
rev: '1.7.0'
hooks:
- id: bandit
args: ['-r', '--configfile=bandit-config.yml']

- repo: https://github.com/zricethezav/gitleaks
rev: 'v8.0.4'
hooks:
- id: gitleaks
args: ['--config=gitleaks-config.toml']



# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:
autoupdate_schedule: weekly
skip: []
Expand Down
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
## Overview
These are not the release notes, which can be found https://github.com/NASA-IMPACT/COSMOS/releases. Instead, this is a changelog that developers use to log key changes to the codebase with each pull request.

## What to Include
For each PR made, an entry should be added to this changelog. It should contain
- a brief description of the deliverable of the feature or bugfix
- exact listing of key changes such as:
- API endpoint modified
- frontend components added
- model updates
- deployment changes needed on the servers
- etc.

## Changelog
- 2889-serialize-the-tdamm-tags
- Description: Have TDAMM serialzed in a specific way and exposed via the Curated URLs API to be consumed into SDE Test/Prod
- Changes:
- Changed `get_tdamm_tag` method in the `CuratedURLAPISerializer` to process the TDAMM tags and pass them to the API endpoint

- 960-notifications-add-a-dropdown-with-options-on-the-feedback-form
- Description: Generate an API endpoint and publish all the dropdown options necessary as a list for LRM to consume it.
- Changes:
- Created a new model `FeedbackFormDropdown`
- Added the migration file
- Added the `dropdown_option` field to the `Feedback` model
- Updated the slack notification structure by adding the dropdown option text
- Created a new serializer called `FeedbackFormDropdownSerializer`
- Added a new API endpoint `feedback-form-dropdown-options-api/` where the list is going to be accesible
- Added a list view called `FeedbackFormDropdownListView`
- Added tests

- 1217-add-data-validation-to-the-feedback-form-api-to-restrict-html-content
- Description: The feedback form API does not currently have any form of data validation on the backend which makes it easy for the user with the endpoint to send in data with html tags. We need to have a validation scheme on the backend to protect this from happening.
- Changes:
- Defined a class `HTMLFreeCharField` which inherits `serializers.CharField`
- Used regex to catch any HTML content comming in as an input to form fields
- Called this class within the serializer for necessary fields

- 3227-bugfix-title-patterns-selecting-multi-url-pattern-does-nothing
- 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.
- Changes:
- In `title_patterns_table` definition, corrected the column reference
- Made `match_pattern_type` searchable
- 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`

- 1001-tests-for-critical-functionalities
- Description: Critical functionalities have been identified and listed, and critical areas lacking tests listed
- Changes:
- Integrated coverage.py as an indicative tool in the workflow for automated coverage reports on PRs, with separate display from test results.
- 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.

- 1192-finalize-the-infrastructure-for-frontend-testing
- Description: Set up comprehensive frontend testing infrastructure using Selenium WebDriver with Chrome, establishing a foundation for automated UI testing.
- Changes:
- Added Selenium testing dependency to `requirements/local.txt`
- Updated Dockerfile to support Chrome and ChromeDriver
- Created BaseTestCase and AuthenticationMixin for reusable test components
- Implemented core authentication test suite

- 1195-implement-unit-test-for-forms-on-the-frontend
- Description: Implemented comprehensive frontend test suite covering authentication, collection management, search functionality, and pattern application forms.
- Changes:
- Added tests for authentication flows
- Implemented collection display and data table tests
- Added universal search functionality tests
- Created search pane filter tests
- Added pattern application form tests with validation checks
63 changes: 63 additions & 0 deletions CODE_STANDARDS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Coding Standards and Conventions for COSMOS

## Overview
To maintain high-quality code and ensure consistency across the entire COSMOS project, we have established coding standards and conventions. This document outlines the key standards and practices that all contributors are expected to follow. Adhering to these guidelines helps us to achieve a codebase that appears as if it were written by a single entity, regardless of the number of contributors.

## Coding Standards

### Formatting Standards
- **Line Length**: Maximum of 120 characters per line to ensure readability across various environments.
- **Code Formatting**: Utilize tools like Black for Python code to ensure consistent formatting across the entire codebase.
- **Import Ordering**: Follow a consistent import order:
- Standard library imports.
- Third-party imports.
- Application-specific imports.

### Naming Conventions
- **Variables and Functions**: Use `snake_case`.
- **Classes and Exceptions**: Use `CamelCase`.
- **Constants**: Use `UPPER_CASE`.

### Commenting
- Inline comments should be used sparingly and only when necessary to explain "why" something is done, not "what" is done.
- All public methods, classes, and modules should include docstrings that follow the [Google style guide](https://google.github.io/styleguide/pyguide.html).

### Error Handling
- Explicit is better than implicit. Raise exceptions rather than returning None or any error codes.
- Use custom exceptions over generic exceptions when possible to make error handling more predictive.

## Tool Configurations and Pre-commit Hooks

To automate and enforce these standards, the following tools are configured with pre-commit hooks in our development process:

### Pre-commit Hooks Setup

To ensure that these tools are run automatically on every commit, contributors must set up pre-commit hooks locally. Run the following commands to install and configure pre-commit hooks:

```bash
pip install pre-commit
pre-commit install
pre-commit run --all-files
```

The following pre-commit hooks are configured:

- trailing-whitespace, end-of-file-fixer, check-yaml, check-merge-conflict, debug-statements: Checks for common formatting issues.
- pyupgrade: Automatically upgrades syntax for newer versions of the language.
- black: Formats Python code to ensure consistent styling.
- isort: Sorts imports alphabetically and automatically separated into sections.
- flake8: Lints code to catch styling errors and potential bugs.
- mypy: Checks type annotations to catch potential bugs.
- bandit: Scans code for common security issues.
- gitleaks: Prevents secrets from being committed to the repository.
- hadolint: Lints Dockerfiles to ensure best practices and common conventions are followed.

## Continuous Integration (CI)
When a commit is pushed to a branch that is part of a Pull Request, our Continuous Integration (CI) pipeline automatically runs specified tools to check code quality, style, security and other standards. If these checks fail, the PR cannot be merged until all issues are resolved.

## Quality Standards Enforcement
- PRs must pass all checks from the configured pre-commit hooks and CI pipeline to be eligible for merging.
- Code reviews additionally focus on logical errors and code quality beyond what automated tools can detect.

## Conclusion
By adhering to these standards and utilizing the tools set up, we maintain the high quality and consistency of our codebase, making it easier for developers to collaborate effectively.
69 changes: 69 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Thank you for your interest in contributing to COSMOS! We welcome contributions and appreciate your help in making this project better. Please follow the guidelines below to ensure a smooth contribution process.

## Pull Requests

### Prerequisites

- **GitHub CLI (`gh`)**: Make sure you have the GitHub CLI installed. If not, you can install it from [GitHub CLI installation page](https://cli.github.com/).

### 1. **Create an Issue on the Repo**

1. **Navigate to Your Repository**:

```bash
$ cd path/to/your/repository
```

2. **Create an Issue**:
Use the `gh issue create` command to create a new issue.

```bash
$ gh issue create --title "Issue Title" --body "Description of the issue"
```

After running this command, you’ll get an issue number in the output. Note this number as it will be used to create a branch.


### 2. **Create a Branch for the Issue**

1. **Create a Branch**:
Use the `gh` CLI to create a branch associated with the issue. The `gh` CLI can automatically create a branch for you based on the issue number. In this case, the `<issue_number>` is 989.

```bash
$ gh issue develop -c 989
github.com/NASA-IMPACT/COSMOS/tree/989-make-coding-syntax-consistent
From https://github.com/NASA-IMPACT/COSMOS
* [new branch] 989-make-coding-syntax-consistent -> origin/989-make-coding-syntax-consistent

```

This command creates a new branch named `<issue_number>-issue` and switches to it. This branch will be used to work on the issue.

2. **Make Your Changes and Push:**
Edit files, add code, or make any changes needed to address the issue. Commit your changes and push the branch to the remote repository.

```bash
git add .
git commit -m "Fixes issue #<issue_number>"
git push origin <issue_number>-issue
```


### 3. **Create a Pull Request**

1. **Create the Pull Request**:
After pushing the branch, create a pull request using the `gh pr create` command:

```bash
gh pr create --base dev --head <issue_number>-issue --title "Title of the Pull Request" --body "Description of the changes"
```

- **`-base`**: The base branch you want to merge your changes into (`dev` in our case)
- **`-head`**: The branch that contains your changes (e.g., `<issue_number>-issue`).
- **`-title`**: The title of the pull request.
- **`-body`**: The description or body of the pull request.

This command will create a pull request from your branch into the base branch specified.

2. **Review and Merge**:
Once the pull request is created, we will review it on GitHub and merge it if everything looks good. If any changes are required, we might ask you to make adjustments before the merge.
Loading