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

Google Apps Script: Migrate Wins Data - Stop generation of AF file #2147

Open
14 of 15 tasks
Tracked by #2385 ...
Aveline-art opened this issue Aug 20, 2021 · 12 comments · Fixed by #7615
Open
14 of 15 tasks
Tracked by #2385 ...

Google Apps Script: Migrate Wins Data - Stop generation of AF file #2147

Aveline-art opened this issue Aug 20, 2021 · 12 comments · Fixed by #7615
Assignees
Labels
Complexity: Extra Large Draft Issue is still in the process of being created Feature: Google Apps Scripts Automation related to Google Apps Scripts 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

Comments

@Aveline-art
Copy link
Member

Aveline-art commented Aug 20, 2021

Dependency

Overview

As a developer, to turn the wins card into a reusable component, we must first be able to generate a wins-data.json file of a more specific format. This issue is part of a series that aims to migrate us to the more specific format. The file _wins-data.json now implements the new data format, and so the file wins-data.json can be removed.

Action Items

  • Follow sections 1-3 in the Wins Apps Script Development Process1. Note that in this issue you will be modifying both Apps Scripts wins-form-responses and gh-requests so setup will be required in both /google-apps-script/wins-form-responses and /google-apps-script/gh-requests
  • As described in section 3a and 3b, you will provide a dev lead with the google account you wish to use for testing, and request the dev lead to:
    • do not modify folder level access
    • share the Wins Form Admin Guide2 as VIEWER
    • share the Wins-form (Response)3 sheet as VIEWER
    • share the gh-requests doc as VIEWER
  • Continue following instructions in 3c and d. As described in 3d, you will have to make modifications to certain documents in the test folder.
    • It will not be necessary to restore any triggers, because you can execute main() in debug mode.
    • Since you will be running main() for testing, you must follow instructions in Testing WINS in a test repository
  • Continue following instructions through section 6 "Editing". As described in this section, editing can be done locally in an IDE or in the Google Drive cloud editor, and the clasp utility can be used to transfer code back and forth between the local worksation and the Google Drive as needed.
  • Go to the Google Apps Script which generates both the KVF and AF file.
  • Change any settings or code such that the AF version is no longer generated.
  • Refer to Section 7 "Testing" in the Hfla Google Apps Script Development Process Guide[^4] , 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, bring that branch down to your local workstation and and use Docker to examine the resulting Wins page, which should remain unchanged.
  • Refer to Section 8 "Completing an Issue" in the Hfla Google Apps Script Development Process Guide[^4] , for information about commiting Code.js and creating a pull request.
  • 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.
  • Release dependency on Google Apps Script: Migrate Wins Data - Delete AF file  #2148

Resources/Instructions

wins-page

KVF = is an array of objects
AF = is an array of arrays

Currently we have two json files for wins: _wins-data.json and wins-data.json. The former will henceforth be called KVF (for key-value file) and AF (for array file). AF is generated daily from a script on google while KVF appears to be an older, dysfunc version. The format in the KVF version, however, is much friendlier to formatting in liquid syntax. Therefore, we need to incrementally port our codebase to use the KVF version of the data and remove the AF version we currently use. This will be done in multiple steps:

  1. Have the apps script generate both AF and KVF version.
  2. Migrate all uses of AF to KVF.
  3. Have the apps script stop generating the AF version.
  4. Delete the AF version from our repo since it is now unused.

For this issue, we are doing step 3.

Footnotes

  1. Wins Apps Script Development Process

  2. Wins Form Admin Guide

  3. Wins-form (Response) Sheet

@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 size: missing labels Aug 20, 2021
@Aveline-art Aveline-art added Dependency An issue is blocking the completion or starting of another issue P-Feature: Wins Page https://www.hackforla.org/wins/ Complexity: Medium role: back end/devOps Tasks for back-end developers and removed Feature Missing This label means that the issue needs to be linked to a precise feature label. role missing size: missing labels Aug 20, 2021
@macho-catt macho-catt added Ready for Prioritization Complexity: Small Take this type of issues after the successful merge of your second good first issue and removed Dependency An issue is blocking the completion or starting of another issue Complexity: Medium labels Oct 26, 2021
@macho-catt macho-catt changed the title Migrate Wins Data: Stop generation of AF file Google Apps Script: Migrate Wins Data - Stop generation of AF file Nov 2, 2021
@macho-catt macho-catt added the Feature: Google Apps Scripts Automation related to Google Apps Scripts label Nov 21, 2021
@SAUMILDHANKAR SAUMILDHANKAR added the size: 1pt Can be done in 4-6 hours label Jun 18, 2022
@roslynwythe roslynwythe self-assigned this Nov 3, 2022
@github-actions

This comment was marked as outdated.

@roslynwythe

This comment was marked as outdated.

@github-actions github-actions bot added the Status: Updated No blockers and update is ready for review label Nov 4, 2022
@roslynwythe roslynwythe removed their assignment Nov 4, 2022
@roslynwythe

This comment was marked as outdated.

@HackforLABot

This comment was marked as outdated.

@ExperimentsInHonesty
Copy link
Member

@dcotelessa I have asked @roslynwythe to connect with you on this issue. We are having a little trouble with the instructions. That is keeping us from being able to release wins issues. I would like you to try to do this issue and write down (and possibly add screenshots) wherever you get stuck. Then you and @roslynwythe can get on a Zoom call, with you recording the session, so she can help you. Then, when you are done, you would rewatch the video and update the instructions on a new issue, which you also would create.

Please pick up this issue when you are done with the issue you are on now.

@ExperimentsInHonesty ExperimentsInHonesty removed the ready for merge team needs a senior review either to do some re writing or to approve it for ready for prioritization label Sep 17, 2024
@HackforLABot
Copy link
Contributor

Hi @dcotelessa, 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 :)

@ExperimentsInHonesty
Copy link
Member

ExperimentsInHonesty commented Sep 17, 2024

@ExperimentsInHonesty
Copy link
Member

@dcotelessa I understand that you have have been writing to @roslynwythe on Slack with the issues you are experiencing and providing suggestions on how she can update the documentation. That is not what I asked for. RW is working on so many different major initiatives here as our most senior dev. So my instructions were intended for you to take responsiblity for rewriting the instructions. Please re-read my original comment from 2024-09-16 #2147 (comment)

@dcotelessa I have asked @roslynwythe to connect with you on this issue. We are having a little trouble with the instructions. That is keeping us from being able to release wins issues. I would like you to try to do this issue and write down (and possibly add screenshots) wherever you get stuck. Then you and @roslynwythe can get on a Zoom call, with you recording the session, so she can help you. Then, when you are done, you would rewatch the video and update the instructions on a new issue, which you also would create.

@ExperimentsInHonesty
Copy link
Member

@dcotelessa Please take the instructions from this comment on your PR #7615 (comment) and add it to a comment on the new issue you are going to create to update the documentation

@ExperimentsInHonesty
Copy link
Member

@ExperimentsInHonesty
Copy link
Member

ExperimentsInHonesty commented Nov 6, 2024

@dcotelessa I realized this issue was closed because of the PR that was submitted, not because all the tasks are completed. See comments #2147 (comment) and #2147 (comment) which have not been done.

@dcotelessa Please take the instructions from this comment on your PR #7615 (comment) and add it to a comment on the new issue you are going to create to update the documentation

When you create the new issue, please put a link to it on @daras-cu 's wins ssue so that she can review it #2385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Extra Large Draft Issue is still in the process of being created Feature: Google Apps Scripts Automation related to Google Apps Scripts 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
Projects
Status: New Issue Approval
Development

Successfully merging a pull request may close this issue.

9 participants