This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
feat: add in-source-config detection to listFunctions #899
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
211ee9c
feat: schedule property to listFunctions result
netlify-team-account-1 73250bc
feat: include schedule in listFunctionsFiles and fix remaining tests
netlify-team-account-1 9c83190
feat: run ISC on listFunctions
netlify-team-account-1 11e7c92
chore: add test for isc + listFunctionsFiles
netlify-team-account-1 f6166ce
feat: add rough implementation of listFunction
netlify-team-account-1 0129364
refactor: only parse one file for listFunction
netlify-team-account-1 5ab9dbe
refactor: use same runtime order across implementations
netlify-team-account-1 3c99d77
refactor: extract fscache comment
netlify-team-account-1 3362178
feat: add getFunctionAtPath implementation to other runtimes
netlify-team-account-1 402c013
refactor: conform node runtime to types
netlify-team-account-1 15c1cad
refactor: only parse ISC conditionally
netlify-team-account-1 4048c42
refactor: rename parameter
netlify-team-account-1 902e25d
refactor: rename to findFunctionInPath
netlify-team-account-1 6c4f1a5
fix: please prettier
netlify-team-account-1 981c855
chore: make comment more precise
netlify-team-account-1 daabd03
chore: add comment about ISC condition
netlify-team-account-1 076be1d
Merge branch 'main' into isc-on-listfunctions
netlify-team-account-1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[dust] Currently, this type only differs from
FunctionSource
in that it also includes ISC. Are you thinking it may be used in the future for other things? If we introduce new options tolistFunctions
, would that not be under a different conditional check thanparseISC
? And if so, do you think this should be called something likeFunctionSourceWithISC
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
AugmentedFunctionSource
type is really the input type togetListedFunction
. it'sFunctionSource
+ whatever may need to be added to assemble the return value oflistFunctions
andlistFunction
. If there was a new flag, let's sayenablePartyMode
, then we can extendAugmentedFunctionSource
to have anpartyModeResult?: Parteyyy
property, andgetListedFunction
could use that to assemble the return value.