Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

feat: convert functions to v4 #639

Merged
merged 4 commits into from
Nov 1, 2023
Merged

feat: convert functions to v4 #639

merged 4 commits into from
Nov 1, 2023

Conversation

pudkrong
Copy link
Contributor

@pudkrong pudkrong commented Oct 26, 2023

In response to the absence of the function.json file in programming model 4, we will now use the handler.ts file as the initial point for the Azure Function. This file will take on the responsibility of registering the function in Azure, following the modifications outlined in the package.json file, with particular attention to the main property. It's worth noting that during the packaging and deployment process, the file extension will be changed to handler.mjs

Ref: https://learn.microsoft.com/en-us/azure/azure-functions/functions-node-upgrade-v4?tabs=v4

agnssDeviceRequestsHandler/agnssDeviceRequestsHandler.ts Outdated Show resolved Hide resolved
agnssQueuedDeviceRequestsHandler/handler.ts Show resolved Hide resolved
package.json Show resolved Hide resolved
@pudkrong pudkrong temporarily deployed to ci October 30, 2023 11:17 — with GitHub Actions Inactive
@pudkrong pudkrong temporarily deployed to ci October 30, 2023 13:17 — with GitHub Actions Inactive
@pudkrong pudkrong temporarily deployed to ci October 31, 2023 13:20 — with GitHub Actions Inactive
@pudkrong pudkrong temporarily deployed to ci October 31, 2023 13:22 — with GitHub Actions Inactive
EventHub context has `triggerMetadata` property where contains event meta data values.
In the triggerMetadata property, there are 2 properties we are interested.

- `propertiesArray`
  - User properties of the event data that the user explicitly added during send operations
  - It presents as non-empty array
  - If user does not explicitly add, it will be empty object

    ```
    "propertiesArray: [
      {},
      {}
    ]
    ```

- `systemPropertiesArray`
  - It is always present
@pudkrong pudkrong temporarily deployed to ci October 31, 2023 15:49 — with GitHub Actions Inactive
@pudkrong pudkrong merged commit f45caf8 into saga Nov 1, 2023
3 checks passed
@pudkrong pudkrong deleted the upgrade-to-v4 branch November 1, 2023 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants