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

Update wins Google Apps Script to format wins json feed #4035

Closed
14 of 15 tasks
Tracked by #4134 ...
roslynwythe opened this issue Feb 24, 2023 · 6 comments · Fixed by #6205
Closed
14 of 15 tasks
Tracked by #4134 ...

Update wins Google Apps Script to format wins json feed #4035

roslynwythe opened this issue Feb 24, 2023 · 6 comments · Fixed by #6205
Assignees
Labels
Complexity: Medium P-Feature: Wins Page https://www.hackforla.org/wins/ role: back end/devOps Tasks for back-end developers size: 1pt Can be done in 4-6 hours time sensitive Needs to be worked on by a particular timeframe

Comments

@roslynwythe
Copy link
Member

roslynwythe commented Feb 24, 2023

Dependency

Overview

Currently the wins JSON feed contains no line breaks or spaces separating elements and so it is difficult to review Pull Requests for wins data updates. By formatting the JSON with each submission on a separate line and with use of spaces to indent, readability will be improved and JSON feeds could be compared more efficiently.

Action Items

  • Request VIEW access to the Wins Form Admin Guide Doc, the Wins-form (Response) Sheet, and gh-requests Doc from the dev lead
  • Read the Wins Form Admin Guide to understand the flow of wins data.
  • This issue will require modification of the code within the Wins-form (responses) sheet, but you will require a test environment that includes copies of Wins-form (Responses) and gh-requests. It will also be necessary to setup a test environment in your GitHub repository. Follow instructions in the comment in the Hfla Google Apps Script Development Guide1 and Testing WINS in a test repository2
  • Once you have made copies of the required documents, let the dev lead know that access can be ended.
  • In the Google Apps Script module Code.gs in the project WinsFormResponse, which is bound to Wins-form (Responses) Sheet, update main() to format the _wins-data.json feed, either using options built into the JSON.stringify method, or a different method. Required features are:
    • Line Breaks separating array items (where each array item represents the data for a contributor)
    • Line Break with spaces indenting properties within each array item
  • Test the code by running main() in debug mode. A new pull request "Update wins-data.json via Google Apps Script" should be appear in your test repository. Examine the json data and if it looks good, merge into your repository test branch and examine the resulting Wins page.
  • Add/commit Code.js and create a pull request as usual
  • In the pull request, provide links to the "Update wins-data.json via Google Apps Script" Pull Request and also the Wins page (both in your repository), for the convenience of reviewers.
  • Contact a dev lead to discuss review/demonstration

Dev Lead

  • Remove VIEW access to all protected documents

Resources/Instructions

Footnotes

  1. Hfla Google Apps Script Development Guide - draft

  2. Testing WINS in a test repository

@roslynwythe roslynwythe added the Draft Issue is still in the process of being created label Feb 24, 2023
@github-actions github-actions bot added Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing labels Feb 24, 2023
@roslynwythe roslynwythe added Complexity: Medium P-Feature: Wins Page https://www.hackforla.org/wins/ role: back end/devOps Tasks for back-end developers and removed Complexity: Missing labels Feb 24, 2023
@roslynwythe roslynwythe changed the title Draft: Update wins Google App Script to format wins json feed Update wins Google App Script to format wins json feed Feb 24, 2023
@roslynwythe roslynwythe changed the title Update wins Google App Script to format wins json feed Update wins Google Apps Script to format wins json feed Feb 24, 2023
@roslynwythe roslynwythe removed role missing Feature Missing This label means that the issue needs to be linked to a precise feature label. Draft Issue is still in the process of being created labels Feb 24, 2023
@ExperimentsInHonesty ExperimentsInHonesty added this to the 08. Team workflow milestone Mar 5, 2023
@ExperimentsInHonesty ExperimentsInHonesty added the Dependency An issue is blocking the completion or starting of another issue label Mar 21, 2023
@ExperimentsInHonesty ExperimentsInHonesty added ready for dev lead Issues that tech leads or merge team members need to follow up on and removed Dependency An issue is blocking the completion or starting of another issue labels Nov 20, 2023
@ExperimentsInHonesty

This comment was marked as resolved.

@roslynwythe roslynwythe added size: 1pt Can be done in 4-6 hours and removed ready for dev lead Issues that tech leads or merge team members need to follow up on size: missing labels Nov 21, 2023
@roslynwythe

This comment was marked as outdated.

@djbradleyii djbradleyii added the Dependency An issue is blocking the completion or starting of another issue label Nov 21, 2023
@roslynwythe

This comment was marked as resolved.

@roslynwythe
Copy link
Member Author

roslynwythe commented Dec 14, 2023

@ExperimentsInHonesty For security reasons, I did not provide links to the Google Apps Scripts. The dev lead will know where they are.

@roslynwythe roslynwythe added time sensitive Needs to be worked on by a particular timeframe Ready for Prioritization and removed Dependency An issue is blocking the completion or starting of another issue labels Dec 14, 2023
@Jung-GunSong Jung-GunSong self-assigned this Jan 19, 2024
Copy link

Hi @Jung-GunSong, thank you for taking up this issue! Hfla appreciates you :)

Do let fellow developers know about your:-
i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?)
ii. ETA: (When do you expect this issue to be completed?)

You're awesome!

P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)

@Jung-GunSong
Copy link
Member

i. From today, 1/24/24 to next week, 1/31/24.

ii. Likely by next week (unsure because some guidance might be needed to set up the test environment).

As always, let me know if there's anything else I can help with!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Medium P-Feature: Wins Page https://www.hackforla.org/wins/ role: back end/devOps Tasks for back-end developers size: 1pt Can be done in 4-6 hours time sensitive Needs to be worked on by a particular timeframe
Projects
Development

Successfully merging a pull request may close this issue.

4 participants