Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Bug] OpenChallenges Data spreadsheet automated code does not work for everyone #2101

Closed tschaffter closed 11 months ago

tschaffter commented 12 months ago

Is there an existing issue for this?

What product(s) are you seeing the problem on?

OpenChallenges

Current behavior

I added the name of a new challenge. The ID was successfully generated but not the slug. The slug used to be automatically generate for me in the past.

image

~Interestingly, the fields createdAt and updatedAt have been successfully populated, which was not the case for me in the past.~

UPDATE: I realize that the createdAt and updatedAt are from Aug. 25 so they have not been generated by me today.

I opened the Apps Script tool as suggested by @vpchung and ran the script Code.gs, which generated the following error:

image

Expected behavior

The cell in the column slug should be automatically generated when entering a value in the column name.

Anything else?

I'm signed in with my Sage Google account.

Commit ID

No response

Are you developing inside the dev container?

Code of Conduct

tschaffter commented 12 months ago

Now the field slug is automatically generated for 4 additional challenges, but this time the values in the fields createdAt and updatedAt are not generated. 🙃

tschaffter commented 11 months ago

The issue was that the value of a read-only cell for a given user could not be set using a function or script. The solution was to give me write access to the cells that were not being updated automatically.