googleworkspace / apps-script-samples

Apps Script samples for Google Workspace products.
https://developers.google.com/apps-script
Apache License 2.0
4.49k stars 1.83k forks source link

Incorrect File Name(s) (Missing 's') #405

Open dev2sec opened 1 year ago

dev2sec commented 1 year ago

Summary

TimeZone settings (& other attributes/dependencies) for some of the sub-packages or sub-modules for the apps-script-samples does not load properly due to improperly names manifest files.

operating-system@build-machine:~/Documents$ find . -type f -name 'appscript.json' 2>/dev/null

./apps-script-samples-main/solutions/automations/folder-creation/appscript.json ./apps-script-samples-main/slides/SpeakerNotesScript/appscript.json

TODO Fix the file name(s) for these two Apps Script initialization JSON files (i.e. appsscript.json not appscript.json)!:

CAVEAT: It is realized that these files might be intentionally misspelled as a means to ignore the sub-project or sub-module while keeping version control on the files, but perhaps there is a better way to accomplish such exclusions while maintaining referential integrity.

Expected Behavior

Import of the sub-packages should reflect the proper time zones and/or other dependencies when loaded into Google Workspace's Apps Script editor.

Sample URL: https://developers.google.com/drive/v2/reference/files/insert Description: Instructions for importing modules and/or projects into Apps Script for use with Google Workspace.

Actual Behavior

Import of the sub-packages does not reflect the proper time zones and/or other dependencies (e.g. included libraries) when loaded into Google Workspace's Apps Script editor.

Steps to Reproduce the Problem

  1. Traverse the source tree with your preferred tool(s).
  2. Determine the location of all files named appscript.json
  3. Rename the file(s) appsscript.json in the respective directories
  4. Import the files into the Apps Script environment within Google Workspaces
  5. Ensure that the Apps Script editor recognizes the file name(s) appropriately and applies the appropriate configuration to the subprojects.

NOTE: File name(s) should have 3 "p" characters & 3 "s" characters