Skip to content
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

Transporter 3.0.0 #725

Merged
merged 355 commits into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
355 commits
Select commit Hold shift + click to select a range
1536a71
npm update, theoretically nonbreaking
axoplasm Jul 28, 2022
3cdaf5c
Update package-lock.json
axoplasm Jul 28, 2022
52f11ae
Silence babel notices re: “loose”
axoplasm Jul 29, 2022
b98cca3
update nonbreaking vulnerabilities
axoplasm Aug 2, 2022
1504a29
update package.json to match lockfile
axoplasm Aug 2, 2022
5cac3bc
update to node-sass v7
axoplasm Aug 2, 2022
5978dd0
Fixed gaitids errors from the program admin lite
blakelong Aug 4, 2022
7a59e1f
Updated validation to check for any changes. Update to add modal laun…
Aug 4, 2022
89c4218
Fixed failing test case
blakelong Aug 4, 2022
8dba369
Added utility function to check for duplicate gaitids on IDAA
blakelong Aug 4, 2022
cba83f5
Merge branch 'transporter-3.0.0' into 2764-discrepancy_report
blakelong Aug 4, 2022
e2efa55
Updated Overview tab to static text. Update discrepancy report test c…
blakelong Aug 4, 2022
6d857ef
For mercycorps/TolaActivity#2770. Fixed GaitID errors from the progra…
blakelong Aug 5, 2022
bbffbba
Refactor modal code.
Aug 5, 2022
c78e8eb
Reverting code change.
Aug 5, 2022
ab36009
Merge branch 'transporter-3.0.0' into 2770-admin-light-profile-tab-up…
Aug 5, 2022
95c7554
Updated gait ids and fund code field spacing. Updated disabling field…
Aug 5, 2022
7c16a8a
For mercycorps/TolaActivity#2764 Discrepancy report updates
blakelong Aug 8, 2022
d814fc1
For mercycorps/TolaActivity#2810 Check for duplicate gaitids
blakelong Aug 8, 2022
dbad7ee
Merge branch 'transporter-3.0.0' into 2770-admin-light-profile-tab-up…
Aug 8, 2022
d2ae915
Refactor and updates comments.
Aug 8, 2022
8f73fe8
Update for making form not editable.
Aug 8, 2022
2544070
Added disabling form after submission to prevent button smashing.
Aug 8, 2022
432e051
Update to display outcome theme names only and not ids
Aug 8, 2022
ec3c3ea
Updated API update failure handling. Added a waiting class. Added sty…
Aug 9, 2022
39104a6
Merge pull request #638 from mercycorps/2770-admin-light-profile-tab-…
andrethomas6 Aug 9, 2022
2d285b1
Refactor code structure and updated validation and alert messages. Ad…
Aug 9, 2022
3823915
Merge branch 'transporter-3.0.0' into 2771-program-period-modal-new
Aug 9, 2022
7b630ad
Added email notification to country admins when dates are updated
blakelong Aug 10, 2022
dd485ae
For mercycorps/TolaActivity#2819 Country admin email notification
blakelong Aug 10, 2022
21f22b1
Change search_fields in ResultAdmin class (#644)
kbarkemeyer Aug 11, 2022
8edc5f6
For mercycorps/TolaActivity#2771, updated validation text and transla…
Aug 11, 2022
9506975
Clean up existing workflow admin
axoplasm Aug 11, 2022
9d26256
Clean up existing Indicator admin
axoplasm Aug 12, 2022
5cf0956
Merge pull request #645 from mercycorps/2771-program-period-modal-new
andrethomas6 Aug 12, 2022
accd4d4
IDAASector (note verbose_name change)
axoplasm Aug 16, 2022
3abf208
Program Discrepancy
axoplasm Aug 16, 2022
062f682
GAIT ID
axoplasm Aug 16, 2022
05165cb
Fundcode
axoplasm Aug 16, 2022
b900948
IDAA outcome theme
axoplasm Aug 16, 2022
217b261
register & clean up some stray models with lousy admin
axoplasm Aug 16, 2022
21c1288
Clean up Program model admin
axoplasm Aug 16, 2022
e0aa8d5
Return IDAA program name for discrepancies w/out program names
axoplasm Aug 16, 2022
761ac63
Pinned Reports and Level Tier admins
axoplasm Aug 17, 2022
1b008c7
Level Tier templates, misc tweaks
axoplasm Aug 17, 2022
9ae92bc
Bulk indicator import files
axoplasm Aug 17, 2022
b5be589
User Management Audit Log
axoplasm Aug 17, 2022
97aec48
2766 new program email notification (#646)
kbarkemeyer Aug 17, 2022
d250eea
removed catch for SMTPRecipientsRefused
blakelong Aug 17, 2022
80e9d3b
ProgramAuditLog
axoplasm Aug 17, 2022
b5f9438
For mercycorps/TolaActivity#2819 Removed catch for SMTPRecipientsRefused
blakelong Aug 17, 2022
a6c578e
ProgramAdminAuditLog
axoplasm Aug 17, 2022
06b4ed9
OrganizationAdminAuditLog
axoplasm Aug 17, 2022
3ea63b6
CountryAdminAuditLog and DisaggregationType
axoplasm Aug 17, 2022
6c20dde
Remove LandTypeAdmin
axoplasm Aug 17, 2022
9ed792c
Uncommented out the editable fields.
Aug 18, 2022
75c99e7
Fixed country page date picker.
Aug 18, 2022
e9df869
Merge pull request #649 from mercycorps/2771-program-period-modal-new
andrethomas6 Aug 18, 2022
a8d47e7
Added new tab to discrepancy report for duplicate IDAA programs
blakelong Aug 18, 2022
f8744e8
For mercycorps/TolaActivity#2764 Added tab Duplicate IDAA Programs to…
blakelong Aug 18, 2022
f947d81
Merge pull request #648 from mercycorps/2822-django-admin-tables
axoplasm Aug 18, 2022
625316e
ResultsAdmin
axoplasm Aug 18, 2022
751d2ff
Updated fields for the ProgramAdminSerializer
blakelong Aug 18, 2022
ca57a7d
Merge branch 'transporter-3.0.0' into 2820-editable-program-admin-light
Aug 19, 2022
89bfe9e
Add pc indicator to test programs (#652)
kbarkemeyer Aug 22, 2022
0be6c2f
Fix for resolved idaa discrepancies
blakelong Aug 22, 2022
c0819a6
Fix for fund codes displaying as PK value on change log
blakelong Aug 22, 2022
0a479e0
Merge pull request #653 from mercycorps/program-upload-create-and-fun…
blakelong Aug 22, 2022
01ebcf2
Merge pull request #651 from mercycorps/2825-indicator-results-admin
axoplasm Aug 23, 2022
bd1c43d
For mercycorps/TolaActivity#2820 Updated fields for the ProgramAdminS…
blakelong Aug 24, 2022
a5715dc
Allowed numpad decimal to be entered for number fields
blakelong Aug 24, 2022
977adcf
Fix for countries and sectors incorrectly showing as updated in statu…
blakelong Aug 25, 2022
f988aff
Update create_qa_programs to reflect program model changes (#658)
kbarkemeyer Aug 25, 2022
4d5b771
Added idaa_sectors and idaa_outcome_themes to program_page_context en…
blakelong Aug 25, 2022
9db3ca1
For mercycorps/TolaActivity#2792 Fix for countries and sectors incorr…
blakelong Aug 25, 2022
182479f
For mercycorps/TolaActivity#2820 Added idaa_sectors and idaa_outcome_…
blakelong Aug 26, 2022
ec335c2
Added list of created and updated programs to IDAA upload report
blakelong Aug 26, 2022
f35e644
For mercycorps/TolaActivity#2823 Added list of created and updated pr…
blakelong Aug 29, 2022
4b9a5d7
added external_program_id to ProgramAdminSerializer
blakelong Aug 30, 2022
9486220
external_program_id formerrors
blakelong Aug 30, 2022
d26adb6
For mercycorps/TolaActivity#2770 added external_program_id to Program…
blakelong Aug 30, 2022
a527856
Updated required fields and labels, max char lengths. Gait row update…
Aug 30, 2022
e969e98
Merge transporter-3.0.0
Aug 30, 2022
04b709c
Merge transporter-3.1.0 and fix conflict and errors.
Aug 30, 2022
b7b9745
For mercycorps/TolaActivity#2770, display none for null idaa program …
Aug 30, 2022
7e33bed
fixed typo for updated_programs
blakelong Aug 31, 2022
f39bc12
added idaa_sectors to program profile page. Updated sector filters to…
blakelong Aug 31, 2022
b18dcbd
added donor and donor_dept to idaa_logged_fields
blakelong Aug 31, 2022
3d5836b
install django-admin-autocomplete-filter
axoplasm Aug 31, 2022
1b78093
Autocomplete filters for results
axoplasm Aug 31, 2022
f181a09
Autocomplete (and other) filters for Indicators
axoplasm Aug 31, 2022
232a2db
Autocomplete (and other) filters for Level Tier
axoplasm Aug 31, 2022
5eaab6d
Autocomplete filter for Level
axoplasm Aug 31, 2022
9390c3c
Merge branch 'transporter-3.0.0' into 2822-django-admin-tables
axoplasm Aug 31, 2022
40ceb0c
Autocomplete fields & list filters for Periodic targets
axoplasm Aug 31, 2022
189be8b
autocomplete fields & list filters for Program Objectives
axoplasm Aug 31, 2022
4ce497f
autocomplete list filter for Fund Code
axoplasm Aug 31, 2022
9670b18
autocomplete list filter for GAIT ID
axoplasm Aug 31, 2022
3d8607f
sector filter for Program admin
axoplasm Aug 31, 2022
f6887a7
Update list filters for audit log admin
axoplasm Aug 31, 2022
20cbbd3
Date hierarchy filters for audit log admin screens
axoplasm Aug 31, 2022
64bd7aa
Merge pull request #663 from mercycorps/2770-update-program-id
andrethomas6 Sep 1, 2022
7245f63
resetting the user form now resets the organization field
blakelong Sep 6, 2022
7cfb646
For mercycorps/TolaActivity#1445 resetting the user form now resets t…
blakelong Sep 6, 2022
86a8ae8
For mercycorps/TolaActivity#2823 Fixed typo for updated programs
blakelong Sep 6, 2022
cad77db
For mercycorps/TolaActivity#2770 Added IDAASectors to program page pr…
blakelong Sep 6, 2022
3c76529
For mercycorps/TolaActivity#2772 Added donor and donor_dept to idaa_l…
blakelong Sep 6, 2022
8b07f12
resolved merge conflict between transporter-3.0.0 and 3.1.0
blakelong Sep 7, 2022
38ea4df
Add “cancel changes” button to CSO
axoplasm Sep 7, 2022
e09a956
Merge pull request #672 from mercycorps/transporter-3.1.0
axoplasm Sep 8, 2022
820a0de
Merge pull request #667 from mercycorps/2822-django-admin-tables
axoplasm Sep 8, 2022
e89fcad
mismatching countries and multiple program matches now update
blakelong Sep 12, 2022
ed8aa8f
Installed React datepicker and added it for the start date.
Sep 13, 2022
8cabebb
For mercycorps/TolaActivity#2767 mismatching countries and multiple p…
blakelong Sep 13, 2022
7ff9810
Added additional logging to the upload IDAA programs command
blakelong Sep 13, 2022
fe9073d
Merge branch 'transporter-3.0.0' into 2842-program-upload-logging
blakelong Sep 13, 2022
e76e2b9
For mercycorps/TolaActivity#2842 Additional logging to the upload IDA…
blakelong Sep 14, 2022
1dc93bc
For mercycorps/TolaActivity#2870 Allow numpad decimal key for number …
blakelong Sep 14, 2022
4c42870
For mercycorps/TolaActivity#2771, fixed typo for the read only serial…
Sep 14, 2022
e3f0b58
both reset buttons read “Cancel changes”
axoplasm Sep 14, 2022
b8f2b86
Merge pull request #673 from mercycorps/1447-reset-button-for-csos
axoplasm Sep 15, 2022
1366b5b
Merge pull request #634 from mercycorps/2673-upgrade-js-redux
axoplasm Sep 15, 2022
623b8a5
removed legacy api calls to Gait when a program is saved from the admin
blakelong Sep 16, 2022
4c55224
Merge pull request #677 from mercycorps/2771-program-period-modal-new
andrethomas6 Sep 16, 2022
f1b6acb
Add style sheet for the react datepicker. added the end date. Added a…
Sep 19, 2022
c25ff8d
Fix PC Count datepicker by using the elements id instead of class.
Sep 19, 2022
c6c3784
Merge pull request #679 from mercycorps/pc-count-result-datepicker-fix
andrethomas6 Sep 19, 2022
7c60dd0
For mercycorps/TolaActivity#2770, Updated logic for creating donor an…
Sep 19, 2022
c013b2a
Merge pull request #680 from mercycorps/2770-admin-light-profile-tab-…
andrethomas6 Sep 19, 2022
56b03fc
Merged transporter-3.0.0
Sep 19, 2022
5264dfd
removed legacy api calls to Gait when a program is saved from the admin
blakelong Sep 20, 2022
588b9e3
one idaa to many tola programs will not update program name
blakelong Sep 20, 2022
abc177b
2821 update create qa programs (#681)
kbarkemeyer Sep 20, 2022
b704b44
delete fundcode if deleted in idaa
blakelong Sep 20, 2022
6beaafe
valid_tracking_dates now checks the range from the first and last of …
blakelong Sep 20, 2022
80a4e26
prevent multiple_program discrepancies from having other discrepancies
blakelong Sep 20, 2022
b671ce7
fixed issue where not all discrepancies are captured
blakelong Sep 20, 2022
7b4e7bd
updated text on discrepancy report
blakelong Sep 20, 2022
99bf035
updated test cases
blakelong Sep 20, 2022
e822c2c
fixed error when writing an invalid idaa program to the log
blakelong Sep 20, 2022
b31c146
skipped test cases
blakelong Sep 20, 2022
d86b2bc
Fixes issues related to updating an existing program
blakelong Sep 20, 2022
f695ec8
Xanadu management command (#683)
kbarkemeyer Sep 27, 2022
4d1f841
Auto-create missing countries in TolaData
blakelong Sep 27, 2022
5dab33f
search on indicator name
axoplasm Sep 27, 2022
bb59064
For mercycorps/TolaActivity#2876 Auto-create new countries in TolaData
blakelong Sep 27, 2022
509144e
Merge pull request #685 from mercycorps/2878-periodic-target-search-e…
axoplasm Sep 27, 2022
323b89f
fixed issue where sectors and outcome themes are deleted from the DB
blakelong Sep 28, 2022
b2df99b
For mercycorps/TolaActivity#2767 fixed issue where sectors and outcom…
blakelong Sep 28, 2022
0cb3cb5
Remove drilldown filters from audit log admin lists
axoplasm Sep 28, 2022
1f5981a
Change/edit date fields are read-only in workflow app
axoplasm Sep 28, 2022
53511ad
Change/edit date fields are read-only in indicators app
axoplasm Sep 28, 2022
ca9028f
change/edit fields read-only in proxy admin models
axoplasm Sep 28, 2022
189ab3f
pinned report creation date field is read-only
axoplasm Sep 28, 2022
0099224
Merge pull request #688 from mercycorps/2880-audit-log-drilldown-filter
axoplasm Sep 28, 2022
feca42e
For mercycorps/TolaActivity#2841 unique IDAASectors and OutcomeThemes…
kbarkemeyer Sep 28, 2022
dd656dd
Merge pull request #689 from mercycorps/2879-change-edit-dates
axoplasm Sep 29, 2022
58b8f2e
Management command to alias all country admin emails
blakelong Sep 29, 2022
3876ec5
legacy program fields are readonly
axoplasm Sep 29, 2022
1abad0f
organize program detail into fieldsets
axoplasm Sep 29, 2022
90270d6
show fundcodes, donors; autocomplete tolauser
axoplasm Sep 29, 2022
2b89c70
GAIT ID as inline form on program
axoplasm Sep 29, 2022
eb55e5d
(remove read-only GAIT fields)
axoplasm Sep 29, 2022
7281b09
Some program fields now required in django admin
axoplasm Sep 29, 2022
fbd710d
fixed server error on django admin program discrepancy page
blakelong Sep 29, 2022
2824d59
Add verbose names (plural) (#690)
kbarkemeyer Sep 29, 2022
c97195d
fixed server error on django admin program discrepancy page
blakelong Sep 29, 2022
42928bc
Remove discrepancies for IDAA programs switched from funded to not fu…
blakelong Sep 30, 2022
39a2b4d
Save program_upload and sharepoint_info logs at LOGFILE directory
blakelong Sep 30, 2022
ac38782
GAIT ID inline reads better stacked
axoplasm Oct 2, 2022
42c5f34
Log removing old sectors. Translations for IDAA changes history log
blakelong Oct 3, 2022
386a402
Moved command to tola directory. Alias user emails
blakelong Oct 3, 2022
8222fc0
Updated test case for alias user emails
blakelong Oct 3, 2022
61f3c62
Management command to alias all user emails
blakelong Oct 3, 2022
698a30c
2821 update create qa programs (#697)
kbarkemeyer Oct 3, 2022
0517f80
Merge pull request #694 from mercycorps/2875-program-admin-detail
axoplasm Oct 4, 2022
0df106f
remove fundcodes from the tola program
blakelong Oct 4, 2022
5b4e81d
convert idaa fundcodes to int
blakelong Oct 4, 2022
08a6f6c
Added/updated react datepicker, updated fund code field for multiple …
Oct 4, 2022
007b4e5
Merge branch 'transporter-3.0.0' into 2820-editable-program-admin-light
Oct 4, 2022
c5a39ae
Remove fundcodes from the tola program. For mercycorps/TolaActivity#2767
blakelong Oct 4, 2022
469cfa0
Return outcometheme id only (#699)
kbarkemeyer Oct 4, 2022
8573dc4
Save program_upload and sharepoint_info logs at LOGFILE directory
blakelong Oct 4, 2022
c1dbfe9
Remove discrepancies for IDAA programs switched from funded to not fu…
blakelong Oct 4, 2022
824bc2e
Log removing old sectors. Translations for IDAA changes in the histor…
blakelong Oct 4, 2022
9fda50d
Fixed issue where program name changes were logged twice
blakelong Oct 5, 2022
054156c
Fixed issue where program name changes were logged twice
blakelong Oct 5, 2022
a78253f
Added front end validation for required fields and gaitids.
Oct 6, 2022
dfbe66d
GaitID.fund_code() returns a list of related fundcodes
axoplasm Oct 6, 2022
acab064
Merge branch 'transporter-3.0.0' into 2820-editable-program-admin-light
Oct 6, 2022
7b6ff6c
donor, donor_dept are optional (WIP)
axoplasm Oct 6, 2022
b97e9d4
migrations for verbose names in PR #690
axoplasm Oct 6, 2022
17e0c60
Added a dash between donor and donor dept in profile tab.
Oct 6, 2022
40677d7
Merge pull request #702 from mercycorps/2770-update-donor-dept
andrethomas6 Oct 6, 2022
eb9bc91
Merge pull request #701 from mercycorps/654-verbose-name-migrations
axoplasm Oct 6, 2022
d18fb48
Merge branch 'transporter-3.0.0' into 2886-gaitid-form
axoplasm Oct 6, 2022
2aa7099
Migrations for optional GAIT ID fields
axoplasm Oct 6, 2022
70321ba
Seperate donor and donor_dept with a dash in history log
blakelong Oct 6, 2022
05008a2
Separate donor and donor_dept with a dash in the history log
blakelong Oct 6, 2022
fd9ca8f
Change max_length for IDAAOutcomeTheme.name to 255 (#704)
kbarkemeyer Oct 6, 2022
f7ddc64
translations for the country created history log
blakelong Oct 7, 2022
1adce56
Inline fundcode field
axoplasm Oct 7, 2022
49c3c10
translations for the country created history log
blakelong Oct 10, 2022
b63474c
fund_codes list in inline GaitIDAdmin (program edit)
axoplasm Oct 10, 2022
b0e3046
(tuples for consistency)
axoplasm Oct 10, 2022
a9cabd8
Merge pull request #706 from mercycorps/2886-gaitid-form
axoplasm Oct 10, 2022
6de1497
Merge branch 'master' into merge-main-transporter-3.0.0
blakelong Oct 11, 2022
44df446
fixed pc result update test case
blakelong Oct 11, 2022
82dda04
Merge main branch into transporter
blakelong Oct 11, 2022
aaa1344
Remove line breaks from program name. Prevent NoneType: None log
blakelong Oct 12, 2022
7a3c58e
Merge branch 'transporter-3.0.0' into 2842-program-upload-logging-fix
blakelong Oct 12, 2022
fd25fab
2884 allow empty fields programadmin serializer (#708)
kbarkemeyer Oct 12, 2022
f36c1a4
Updates to the program upload logging
blakelong Oct 12, 2022
fc84917
2884 allow empty fields programadmin serializer (#711)
kbarkemeyer Oct 12, 2022
ada1e72
Change fundcode for QA programs (#712)
kbarkemeyer Oct 13, 2022
ef28463
Added validation for all fields with error messages and field highlig…
Oct 13, 2022
0456657
Merged Transporter-3.0.0
Oct 13, 2022
311f9c6
Update save and update functions. Restructured component props. Added…
Oct 17, 2022
f4f465a
Removed console logs
Oct 17, 2022
6391ab4
Updated translations and fixed the update fund code logic.
Oct 17, 2022
530d554
Update to fix the fund code update function with field name.
Oct 17, 2022
f32c096
For mercycorps/TolaActivity#2820, refactured profile page code, updat…
Oct 17, 2022
ec52fb1
Remove (empty) from migrations (#714)
kbarkemeyer Oct 18, 2022
bdd953e
Fixed validation for required fields null values and updated start an…
Oct 18, 2022
091e7bf
Fixed translations on program admin lite history log
blakelong Oct 18, 2022
41b19f2
Fixed translations on program admin lite history log
blakelong Oct 19, 2022
43bc01e
updated deps for bootstrap-multiselect
axoplasm Oct 19, 2022
461b9b6
Update translations.
Oct 19, 2022
517d205
Update react multiselect to give invalid fields a red border and appl…
Oct 19, 2022
ad37cf0
Merge pull request #713 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 19, 2022
f492995
Fixed formatting for super admin updated dates email
blakelong Oct 20, 2022
92ea593
Removed React Datepicker and added old datepicker for start and end d…
Oct 20, 2022
6b1f9dc
Merge pull request #717 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 21, 2022
ac93173
Update add program button conditional logic.
Oct 21, 2022
316c64f
Merge pull request #718 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 21, 2022
1181082
Added a function to alpa sort the selected options for country, outco…
Oct 21, 2022
70fbad8
Added dev2 to editable list.
Oct 21, 2022
c16b25a
Update editable logic
Oct 21, 2022
53259a1
Merge pull request #719 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 21, 2022
227dd84
Update datepicker min max dates.
Oct 21, 2022
f7a9fdc
Merge pull request #720 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 21, 2022
12568e5
Fixed formatting for super admin updated dates email
blakelong Oct 24, 2022
4c0eb9f
Fixed duplicate gait id error handling to prevent submission.
Oct 24, 2022
c50f433
Update addErrorMessage to include making form invalid.
Oct 24, 2022
a077431
Merge pull request #721 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 24, 2022
300daf2
Update to fix translating funding status.
Oct 25, 2022
47a2051
Merge pull request #722 from mercycorps/2820-editable-program-admin-l…
andrethomas6 Oct 25, 2022
e6adfa7
Update README (#723)
kbarkemeyer Oct 27, 2022
f5c70d7
Moved email notification outside discrepancy report scope
blakelong Nov 1, 2022
21504cb
Moved email notification outside discrepancy report scope
blakelong Nov 1, 2022
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
100 changes: 61 additions & 39 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,65 +1,87 @@
# OS generated files
####################
.DS_Store

# Log files
###########
*.log
login.log.*
*.pot
*.pyc
# Python bytecode:
*.py[co]

# Packaging files:
*.egg*
error.log

# Editor temp files:
# Editor configuration & temp files
###################################
.idea/
.vscode/
.nova/
*.swp
*.swo
*~
.eslintrc.yml

# SQLite3 database files:
*.db
# Python Temp files
###################
*.py[co]
*.pyc
__pycache__

# Logs:
*.log
# Python packages
#################
*.egg* # unused?

#allvritualenv
# Local database
################
*.db

# Virtual environments
######################
.env/
venv/
venv-ta/
.vagrant # unused?

# Non-production config & secrets
#################################
conf
conf/awstats.conf

#Misc.
.idea/
.vscode/
.DS_Store
media/
client_secrets.json
tola/settings/local_secret.py
*.crt
*.key
error.log
*.secret
settings.secret.yml
assets/
templates/links.html
coverage_html
.coverage
coverage/
tola/settings/test_local.py
log_convert_lop_to_numeric
*.key
*.secret
*.crt

# SASS Source Map
*.css.map
# Django collected static files
###############################
media/

# node modules
# Frontend assets
#################
node_modules

*.css.map
webpack-stats-local.json
webpack-stats-vagrant.json
.vagrant
site.retry
.eslintrc.yml
requirements.txt
htmlcov
webpack-stats-vagrant.json # unused?

# ingore temp files in bulk import dir, which will always start with yyyymmdd
# temp files in bulk import dir, which will always start with yyyymmdd
######################################################################
indicators/bulk_import_files/[0-9]*

# Are we sure we want to ignore these?
######################################
requirements.txt

# Probably related to automated tests we no longer use
######################################################
coverage_html
.coverage
coverage/
htmlcov

# ??? #
#######
assets/
templates/links.html
log_convert_lop_to_numeric
site.retry # ansible?

23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $ mysql --version

At the Terminal command line, run the following commands to install:
```bash
$ brew install python@3
$ brew install python@3.8
$ brew install mysql@5.7
```

Expand All @@ -62,15 +62,34 @@ export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib"
export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include"
```

For __macOS with ARM chip__ add this instead:
```text
export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"
export LIBRARY_PATH="/opt/homebrew/opt/openssl@1.1/lib/:$LIBRARY_PATH"
export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"
export PATH="/opt/homebrew/opt/mysql-client@5.7/bin:$PATH"
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client@5.7/lib/pkgconfig"

export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export LDFLAGS="-L/opt/homebrew/opt/mysql@5.7/lib"
export CPPFLAGS="-I/opt/homebrew/opt/mysql@5.7/include"
```

Back at the command line:
```bash
$ source ~/.bash_profile # if using bash, e.g on MacOS 10.14 or older
$ source ~/.zshrc # if using zsh, e.g. on MacOS 10.15 or newer
$ brew install mysql-client
$ brew install mysql-client
$ brew install py2cairo pango
$ pip3 install virtualenv
```

For __macOS ARM chip__ add this instead you might have to specify the mysql_client version:
```bash
$ brew install mysql-client@5.7
```

You should now also start the mysql server:
```bash
brew services start mysql@5.7
Expand Down
12 changes: 12 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-property-in-object",
{
"loose": true
}
]
],
"env": {
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with python 3.8
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile dev-requirements.in
Expand Down
9 changes: 9 additions & 0 deletions factories/indicators_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Result,
ExternalService,
ReportingFrequency,
IDAAOutcomeTheme,
Indicator,
IndicatorType,
Level,
Expand Down Expand Up @@ -383,3 +384,11 @@ class Meta:

name = Faker('text')
is_active = True


class IDAAOutcomeThemeFactory(DjangoModelFactory):
class Meta:
model = IDAAOutcomeTheme

name = Sequence(lambda n: f'IDAAOutcometheme {n}')
is_active = True
27 changes: 25 additions & 2 deletions factories/workflow_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from factories.django_models import UserFactory, UserOnlyFactory
from workflow.models import (
Country,
IDAASector,
Organization,
ProfileType,
Sector,
Expand All @@ -28,6 +29,8 @@
Program,
CountryAccess,
ProgramAccess,
IDAASector,
GaitID,
PROGRAM_ROLE_CHOICES,
COUNTRY_ROLE_CHOICES
)
Expand Down Expand Up @@ -123,10 +126,18 @@ def password(obj, create, extracted, **kwargs):
obj.user.save()


class GaitIDFactory(DjangoModelFactory):

class Meta:
model = GaitID
django_get_or_create = ('gaitid',)

gaitid = Sequence(lambda n: "%0030d" % n)


class ProgramFactory(DjangoModelFactory):
class Meta:
model = Program
django_get_or_create = ('gaitid',)

class Params:
active = True
Expand All @@ -138,7 +149,7 @@ class Params:
)

name = 'Health and Survival for Syrians in Affected Regions'
gaitid = Sequence(lambda n: "%0030d" % n)
gaitid = RelatedFactory(GaitIDFactory, factory_related_name='program')
country = RelatedFactory(CountryFactory, country='United States', code='US')
funding_status = LazyAttribute(lambda o: "funded" if o.active else "Inactive")
_using_results_framework = Program.RF_ALWAYS
Expand Down Expand Up @@ -177,11 +188,16 @@ class Params:
age = False

name = Faker('company')
gaitid = RelatedFactory(GaitIDFactory, factory_related_name='program')
funding_status = LazyAttribute(lambda o: "Funded" if o.active else "Inactive")
_using_results_framework = LazyAttribute(
lambda o: Program.RF_ALWAYS if o.migrated is None else Program.MIGRATED if o.migrated else Program.NOT_MIGRATED
)

@post_generation
def gaitid(self, create, extracted, **kwargs):
GaitIDFactory(gaitid='123456', program=self)

@lazy_attribute
def reporting_period_start(self):
year = datetime.date.today().year
Expand Down Expand Up @@ -341,6 +357,13 @@ class Meta:
sector = Sequence(lambda n: 'Sector {0}'.format(n))


class IDAASectorFactory(DjangoModelFactory):
class Meta:
model = IDAASector

sector = Sequence(lambda n: f'Sector {n}')


class ProfileType(DjangoModelFactory):
class Meta:
model = ProfileType
Expand Down
Loading