Skip to content

Conversation

sqrrrl
Copy link
Member

@sqrrrl sqrrrl commented Apr 27, 2022

Updates 3P packages to current versions and removes node-fiber. Node-fiber is no longer supported and is considered obsolete, and also causes node 16+ to crash. Rewrites a few tests + mocks to no longer depend on it.

Unfortunate side effect is the tests for locking aren't testing thread safety any more. It might be possible in the future to recreate apps script semantics via worker threads. For now, this relaxes the tests so builds aren't locked in to old versions of node.

sqrrrl and others added 25 commits April 27, 2022 10:54
…t is be marked obsolete and crashes node 16+. Rewrites tests dependent on it
Add StackOverflow sample
Use the `setParam` method of the OAuth2 library to add parameters. Cleaner code!
* fix refresh token expiry lost during refresh * add failing test * revert previous changes to go with a different approach * stab at expires at variables * fix test and typo * fix typo * clean up code for easier review, minimize changes, follow previus patterns * add missing var * fix canRefresh logic * add setExpiresAt tests * remove extra comment * add tests and fix typo in logic Co-authored-by: Steve Bazyl <sbazyl@google.com>
* chore: Created local '.github/workflows/lint.yml' from remote 'sync-files/defaults/.github/workflows/lint.yml' * chore: Created local '.github/workflows/test.yml' from remote 'sync-files/defaults/.github/workflows/test.yml' * chore: Created local '.github/CODEOWNERS' from remote 'sync-files/defaults/.github/CODEOWNERS' * chore: Created local '.github/sync-repo-settings.yaml' from remote 'sync-files/defaults/.github/sync-repo-settings.yaml' * chore: Created local '.github/workflows/automation.yml' from remote 'sync-files/defaults/.github/workflows/automation.yml' * chore: Created local 'SECURITY.md' from remote 'SECURITY.md'
…ync-files/defaults/.github/workflows/automation.yml' (#383)
…ync-files/defaults/.github/workflows/automation.yml' (#385)
* chore: Synced local '.github/sync-repo-settings.yaml' with remote 'sync-files/defaults/.github/sync-repo-settings.yaml' * chore: Synced local '.github/workflows/automation.yml' with remote 'sync-files/defaults/.github/workflows/automation.yml'
@sqrrrl sqrrrl requested a review from a team as a code owner August 2, 2022 17:33
@sqrrrl sqrrrl requested a review from vinay-google August 2, 2022 17:33
chrisirhc and others added 3 commits August 2, 2022 11:38
* fix refresh token expiry lost during refresh * add failing test * revert previous changes to go with a different approach * stab at expires at variables * fix test and typo * fix typo * clean up code for easier review, minimize changes, follow previus patterns * add missing var * fix canRefresh logic * add setExpiresAt tests * remove extra comment * add tests and fix typo in logic Co-authored-by: Steve Bazyl <sbazyl@google.com>
@jpoehnelt
Copy link
Member

Might need to rebase on main branch

chrisirhc and others added 8 commits August 2, 2022 11:46
* fix refresh token expiry lost during refresh * add failing test * revert previous changes to go with a different approach * stab at expires at variables * fix test and typo * fix typo * clean up code for easier review, minimize changes, follow previus patterns * add missing var * fix canRefresh logic * add setExpiresAt tests * remove extra comment * add tests and fix typo in logic Co-authored-by: Steve Bazyl <sbazyl@google.com>
…379) Previously, the getService method was public in most of the samples, letting any user of any sample application execute the method using google.script.run to exfiltrate the OAuth Client ID and Secret from the server. Now, these methods are made private by appending an _ to their names, preventing this issue.
* Add sample for Onshape * Make getService private
* fix refresh token expiry lost during refresh * add failing test * revert previous changes to go with a different approach * stab at expires at variables * fix test and typo * fix typo * clean up code for easier review, minimize changes, follow previus patterns * add missing var * fix canRefresh logic * add setExpiresAt tests * remove extra comment * add tests and fix typo in logic Co-authored-by: Steve Bazyl <sbazyl@google.com>
* fix refresh token expiry lost during refresh * add failing test * revert previous changes to go with a different approach * stab at expires at variables * fix test and typo * fix typo * clean up code for easier review, minimize changes, follow previus patterns * add missing var * fix canRefresh logic * add setExpiresAt tests * remove extra comment * add tests and fix typo in logic Co-authored-by: Steve Bazyl <sbazyl@google.com>
@sqrrrl
Copy link
Member Author

sqrrrl commented Aug 2, 2022

Yeah, was trying to rebase locally but just got into a weird state. Reapplied the original changes in a new branch in #390.

@sqrrrl sqrrrl closed this Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

7 participants