Skip to content

Renaming v2 - #1025

Open
sarasoko wants to merge 19 commits into
devfrom
renaming_v2
Open

Renaming v2#1025
sarasoko wants to merge 19 commits into
devfrom
renaming_v2

Conversation

@sarasoko

@sarasoko sarasoko commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

branch for renaming scripts

Please make suggestions if you don't like how I classified the numbering of the servers to correspond with the back end scripts (01-07 and 08 reserved for bed unit inventory)

I made a few name changes that weren't exclusively server scripts:

01_get_Export.R -> 01_get_export.R
05_DataQuality.R -> 05_data_quality.R
06_PDDE_Checker.R -> 06_PDDE_checker.R
helper_functions.R -> functions_00_helper.R
system_performance_functions.R -> functions_07_system_performance.R

To clean up the organization I would additionally suggest that we

  • move 'hardcodes.R' into 'global.R' (or functionalize into functions_00_helper.R)
  • move 'eva_chart_colors.R' into 'global.R' (or functionalize into functions_00_helper.R)
  • rename or eliminate (by moving into another script) 'detect_invalid_values.R' ( I couldn't find where this gets run but it's not functionalized)
  • move 'demo.zip' into 'tests' folder (with other test zip files)
  • move 'system_pptx_template.pptx' into 'www' folder (with other downloadable content like the glossary and excel download template)
  • maybe rename 'tab_instructions.R' but not sure to what since it's front end. This could also be moved into global.R

Sara Sokolinski added 4 commits July 6, 2026 14:34
- for merging, leave out client_level_export_server.R which didn't get recognized as a file renaming and instead added a new file and deleted the old one
- this time it properly recognized this rename instead of adding the new file and deleting the old file
- resolve conflicts in those files and add renaming of additional files that get called from 'server'
-- system_exits_server.R -> server_07.4_system_exits.R
-- syse_types_server.R -> server_07.4.1_syse_types.R
-- syse_time_server.R -> server_07.4.2_syse_time.R
-- syse_subpop_server.R -> server_07.4.3_syse_subpop.R
-- syse_phd_server.R -> server_07.4.4_syse_phd.R

- Additionally rename functipn scripts
-- system_performance_functions -> functions_07_system_performance.R
-- helper_functions.R -> functions_00_helper.R

- and rename how they are called in 'server' and 'global'
@sarasoko

sarasoko commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author
  • move 'hardcodes.R' into 'global.R' (or functionalize into functions_00_helper.R)
  • move 'eva_chart_colors.R' into 'global.R' (or functionalize into functions_00_helper.R)
  • more scripts rather than condensing
  • directory 'utilities'
  • rename or eliminate (by moving into another script) 'detect_invalid_values.R' ( I couldn't find where this gets run but it's not functionalized)
  • Alex to rename in his branch
  • move 'demo.zip' into 'tests' folder (with other test zip files)
  • not just a 'test' so rather move to new 'utilities' folder
  • move 'system_pptx_template.pptx' into 'www' folder (with other downloadable content like the glossary and excel download template)
  • www is a common rshiny path method
  • maybe rename 'tab_instructions.R' but not sure to what since it's front end. This could also be moved into global.R
  • directory 'utilities'

Sara Sokolinski added 8 commits July 10, 2026 14:14
move the powerpoint template into the 'www' subdirectory
…ere()' to get subdirectory paths in new folders 'utilities' and 'rcode'
…ed counterpart!

Merge branch 'dev' into renaming_v2
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
update server_01_upload
- to remove logToConsole which I added during troubleshooting
- add more sections in function 'process_upload'
- uncomment out the browser() line on errors in the mirai call (process_upload)
…est_datasets.R'

update filepath to power point template in 'functions_07_system_performance.R'
This branch shouldn't have any changes except renaming things and updating the filepaths
changes were mapped to the proper renamed/moved file

Merge branch 'dev' into renaming_v2
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@mlfurman3

Copy link
Copy Markdown
Collaborator

@sarasoko A few suggested edits, but open to others' thoughts on these:

  • Can we just source all of the util subfolder scripts at once in global.R?
  • I would switch the order of server_07_... scripts to match this hierarchy and order them in same way as tabs from left to right:
    • System Overview: server_07.1_system_overview.R
      • system status: server_07.1.1_system_status.R
      • system inflow/outflow: server_07.1.2_system_inflow_outflow.R
      • system composition: server_07.1.3_system_composition_server.R
    • System Exits: server_07.2_system_exits.R
      • exits by type: server_07.2.1_syse_types.R
      • exits by year: server_07.2.2_syse_time.R
      • exits by subpop: server_07.2.3_syse_subpop.R
      • ph demographics: server_07.2.4_syse_phd.R

Sara Sokolinski added 7 commits July 16, 2026 12:41
all changes seem properly mapped to the renamed/moved files

Merge branch 'dev' into renaming_v2
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
# functions_00_helper.R -> helper_functions.R
- moved from `rcode` to `util`

# functions_07_system_performance.R -> server_07.0_system_performance.R

# renumber server_07 scripts according to Marschall's suggestion
# functions_00_helper.R -> helper_functions.R
- moved from `rcode` to `util`

# functions_07_system_performance.R -> server_07.0_system_performance.R

# renumber server_07 scripts according to Marschall's suggestion

Code Changes

# global.R
- source all files ending in .R or .r from the `util` folder
- in the mirai section, update loading helper_functions to new name and location

# server.R
- update server renaming and order
- remove unnecessary sourcing helper functions (this was misc added when trying to troubleshoot issues in mirai sourcing)
- update name and location of helper_functions.r
# 07_system_overview.R -> 07_system_performance.R
# server_06.1_client_level_export.R -> server_07.0_system_performance_export.R
# server_06_client_counts.R -> server_06_project_dashboard.R

# server.R & server_01_upload.R
- update names of scripts being sourced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants