Skip to content

fix: Apify: actor -> Actor, add @apify/consts, tracking headers #17396

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

drobnikj
Copy link

@drobnikj drobnikj commented Jul 2, 2025

WHY

Into the Apify integration, we add small stuff:

Updated actor -> Actor naming
Use some consts from shared packages
Add tracking header to better deng and track pipedream integration on Apify

Summary by CodeRabbit

  • Documentation
    • Corrected capitalization in documentation for Apify components.
  • Style
    • Added newline characters to the end of multiple component files for consistency.
  • Chores
    • Updated version numbers for several Apify actions and sources.
    • Added a new dependency and updated package version for Apify.
  • Refactor
    • Standardized usage of constants for webhook event types in Apify sources.
    • Updated user-facing descriptions to consistently capitalize "Actor".
    • Added a custom HTTP header for Apify integration.

@adolfo-pd adolfo-pd added the User submitted Submitted by a user label Jul 2, 2025
Copy link

vercel bot commented Jul 2, 2025

@drobnikj is attempting to deploy a commit to the Pipedreamers Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 3, 2025 7:08am

Copy link
Contributor

coderabbitai bot commented Jul 2, 2025

Walkthrough

This update primarily consists of minor formatting improvements, version bumps, and string capitalization corrections across multiple components. Several files now include a newline at the end, and various Apify-related files have updated version numbers, improved descriptions, and now use constants for event types. Additionally, a new dependency was added to the Apify package, and a custom HTTP header was introduced in the Apify app component.

Changes

Files/Paths Change Summary
components/*/*.app.mjs (adtraction, asters, bitget, explorium, joggai, mumble, neetoform, order_sender, pinghome, prepr_graphql, prodatakey, salesforge, sign_plus, themarketer, vincario, zenedu) Added a newline at end of file; no functional changes.
components/apify/actions/get-dataset-items/get-dataset-items.mjs
components/apify/actions/run-task-synchronously/run-task-synchronously.mjs
components/apify/actions/scrape-single-url/scrape-single-url.mjs
components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs
components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs
components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs
Incremented version numbers; no code or logic changes.
components/apify/actions/run-actor/run-actor.mjs
components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs
components/apify/README.md
Capitalized "Actor" in user-facing strings and documentation; incremented version.
components/apify/package.json Bumped package version to 0.2.2; added "@apify/consts" dependency.
components/apify/apify.app.mjs Capitalized "Actor" in property description; added custom HTTP header "x-apify-integration-platform": "pipedream" in _headers() method.
components/apify/sources/common/base.mjs Replaced event type string literals with constants from @apify/consts; added relevant import.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ApifyComponent
    participant ApifyAPI

    User->>ApifyComponent: Trigger action or event
    ApifyComponent->>ApifyAPI: Send request with custom headers
    ApifyAPI-->>ApifyComponent: Respond with data
    ApifyComponent-->>User: Return processed result
Loading

Poem

A hop, a skip, a trailing line,
New versions bloom, the headers shine.
Actors now with capital pride,
Constants guide the flows inside.
Dependencies grow, the garden’s neat—
With every change, our code’s complete!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/apify/apify.app.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 55335fe and 86ae286.

📒 Files selected for processing (1)
  • components/apify/apify.app.mjs (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • components/apify/apify.app.mjs
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@pipedream-component-development
Copy link
Collaborator

Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.

@drobnikj drobnikj changed the title Fix/update apify fix: Apify: actor -> Actor, add @apify/consts, tracking headers Jul 2, 2025
@pipedream-component-development
Copy link
Collaborator

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

@drobnikj
Copy link
Author

drobnikj commented Jul 2, 2025

We will probably have more changes in the Apify integration in the following weeks, let me know if PR like this are ok.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
components/apify/actions/get-dataset-items/get-dataset-items.mjs (1)

8-8: Confirm downstream consumers are ready for the version bump
Only the version string changed. Double-check that:

  1. components/apify/package.json lists this new action version (if you publish individual component versions).
  2. Any docs / CHANGELOG reference 0.0.3.

No code issues.

components/apify/actions/scrape-single-url/scrape-single-url.mjs (1)

8-8: Version updated without functional change – ensure semantic intent
The patch release (0.0.4) is fine for a non-breaking metadata tweak. Just verify the coordinated version bumps across all related components land in the registry at the same time to avoid mismatched dependency graphs.

components/apify/actions/run-task-synchronously/run-task-synchronously.mjs (1)

7-7: Keep CHANGELOG in sync
Same note as above—add an entry explaining the bump (even if it’s “internal consistency / tracking header rollout”) so consumers don’t wonder why they pulled a new patch with no code diff.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ea28f84 and 55335fe.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (27)
  • components/adtraction/adtraction.app.mjs (1 hunks)
  • components/apify/README.md (1 hunks)
  • components/apify/actions/get-dataset-items/get-dataset-items.mjs (1 hunks)
  • components/apify/actions/run-actor/run-actor.mjs (4 hunks)
  • components/apify/actions/run-task-synchronously/run-task-synchronously.mjs (1 hunks)
  • components/apify/actions/scrape-single-url/scrape-single-url.mjs (1 hunks)
  • components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs (1 hunks)
  • components/apify/apify.app.mjs (3 hunks)
  • components/apify/package.json (2 hunks)
  • components/apify/sources/common/base.mjs (3 hunks)
  • components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs (2 hunks)
  • components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs (1 hunks)
  • components/asters/asters.app.mjs (1 hunks)
  • components/bitget/bitget.app.mjs (1 hunks)
  • components/explorium/explorium.app.mjs (1 hunks)
  • components/joggai/joggai.app.mjs (1 hunks)
  • components/mumble/mumble.app.mjs (1 hunks)
  • components/neetoform/neetoform.app.mjs (1 hunks)
  • components/order_sender/order_sender.app.mjs (1 hunks)
  • components/pinghome/pinghome.app.mjs (1 hunks)
  • components/prepr_graphql/prepr_graphql.app.mjs (1 hunks)
  • components/prodatakey/prodatakey.app.mjs (1 hunks)
  • components/salesforge/salesforge.app.mjs (1 hunks)
  • components/sign_plus/sign_plus.app.mjs (1 hunks)
  • components/themarketer/themarketer.app.mjs (1 hunks)
  • components/vincario/vincario.app.mjs (1 hunks)
  • components/zenedu/zenedu.app.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
components/apify/package.json (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.
components/apify/actions/run-actor/run-actor.mjs (5)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/column-value-updated/column-value-updated.mjs:17-24
Timestamp: 2025-01-23T03:55:51.998Z
Learning: Alert props in Pipedream components are a special case that do not require a label property, and use the 'content' property as a replacement for description.
Learnt from: js07
PR: PipedreamHQ/pipedream#17375
File: components/zerobounce/actions/get-validation-results-file/get-validation-results-file.mjs:23-27
Timestamp: 2025-07-01T17:07:48.143Z
Learning: "dir" props in Pipedream components are hidden in the component form and not user-facing, so they don't require labels or descriptions for user clarity.
components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
components/apify/sources/common/base.mjs (4)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-10-08T15:33:38.240Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-07-24T02:06:47.016Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
🔇 Additional comments (34)
components/joggai/joggai.app.mjs (1)

11-11: Consistent newline addition – LGTM

Trailing newline aligns with POSIX/text-editor conventions and keeps diffs clean. No further action needed.

components/pinghome/pinghome.app.mjs (1)

11-11: Consistent newline addition – LGTM

Same harmless formatting tweak, improves diff clarity.

components/asters/asters.app.mjs (1)

11-11: Consistent newline addition – LGTM

No functional impact; keeps file endings uniform across repo.

components/neetoform/neetoform.app.mjs (1)

11-11: Consistent newline addition – LGTM

Matches formatting standards; nothing else to note.

components/zenedu/zenedu.app.mjs (1)

11-11: Consistent newline addition – LGTM

Uniform file ending maintained; no code changes required.

components/bitget/bitget.app.mjs (1)

11-12: Trailing newline added – no issues

Only a formatting touch; functionality stays unchanged.

components/prepr_graphql/prepr_graphql.app.mjs (1)

11-12: Trailing newline added – no issues

Purely stylistic; implementation is intact.

components/vincario/vincario.app.mjs (1)

11-12: Trailing newline added – no issues

LGTM; nothing else to address.

components/explorium/explorium.app.mjs (1)

11-12: Trailing newline added – no issues

No functional impact detected.

components/sign_plus/sign_plus.app.mjs (1)

11-12: Trailing newline added – no issues

Looks good; consistent formatting gain.

components/prodatakey/prodatakey.app.mjs (1)

11-12: Newline at EOF improves tooling compatibility

Adding a trailing newline silences common linters and aligns with POSIX text-file conventions. No further action needed.

components/mumble/mumble.app.mjs (1)

11-12: Consistent trailing newline retained

Same minor formatting fix as in sibling components—keeps diff noise low in future commits.

components/adtraction/adtraction.app.mjs (1)

11-12: Trailing newline addition acknowledged

No functional changes; helps maintain uniform file endings across the repo.

components/themarketer/themarketer.app.mjs (1)

11-12: EOF newline keeps linters happy

Nothing else to flag here.

components/salesforge/salesforge.app.mjs (1)

11-12: Formatting tweak accepted

Trailing newline is a harmless, beneficial style update.

components/order_sender/order_sender.app.mjs (1)

11-12: Consistent newline at EOF looks good

Adding the trailing newline maintains POSIX compliance and keeps formatting consistent across components.

components/apify/sources/new-finished-task-run-instant/new-finished-task-run-instant.mjs (1)

9-9: Patch version looks good
No functional deltas detected. 👍

components/apify/README.md (1)

9-9: Consistency win
Capitalizing “Actor” improves branding consistency. Nice catch.

components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs (1)

8-8: Version increment looks good.

The version bump from "0.0.3" to "0.0.4" is appropriate for this maintenance update and aligns with coordinated version increments across other Apify components.

components/apify/package.json (2)

3-3: Package version increment is appropriate.

The version bump from "0.2.1" to "0.2.2" correctly reflects the coordinated maintenance updates across Apify components.


16-16: Good addition of constants dependency.

Adding @apify/consts dependency supports the replacement of hardcoded webhook event type strings with constants, improving code maintainability and consistency.

components/apify/sources/new-finished-actor-run-instant/new-finished-actor-run-instant.mjs (3)

8-8: Good capitalization consistency improvement.

Capitalizing "actor" to "Actor" in the description improves branding consistency across user-facing strings.


9-9: Version increment is consistent.

The version bump from "0.0.3" to "0.0.4" aligns with coordinated updates across Apify components.


30-30: Consistent capitalization in summary message.

Capitalizing "Actor" in the summary message maintains consistency with the description and other user-facing strings.

components/apify/actions/run-actor/run-actor.mjs (5)

9-9: Excellent branding consistency in description.

Capitalizing "Actor" in the main description improves consistency with Apify's branding standards.


10-10: Version increment is properly coordinated.

The version bump from "0.0.3" to "0.0.4" aligns with the coordinated maintenance updates across Apify components.


33-33: Consistent capitalization in property description.

Capitalizing "Actor" in the runAsynchronously property description maintains consistency with other user-facing strings.


165-165: Proper capitalization in fallback description.

Capitalizing "Actor" in the properties fallback description ensures consistency across all user-facing text.


244-245: Consistent capitalization in summary messages.

Capitalizing "Actor" in both success summary messages maintains branding consistency and aligns with other user-facing strings throughout the component.

components/apify/apify.app.mjs (2)

53-53: Consistent branding improvement.

Capitalizing "Actor" in the userActorId description maintains consistency with the branding improvements made across other Apify components.


166-166: Excellent addition of tracking header.

Adding the "x-apify-integration-platform": "pipedream" header aligns perfectly with the PR objectives to enhance monitoring and tracking of the Pipedream integration on the Apify platform.

components/apify/sources/common/base.mjs (3)

1-1: LGTM! Good practice importing constants from shared package.

This import eliminates magic strings and aligns with the PR objective of using constants from shared packages for standardization.


19-22: Excellent refactoring to use constants instead of hardcoded strings.

Replacing the hardcoded event type strings with constants from @apify/consts provides several benefits:

  • Eliminates risk of typos in event type strings
  • Improves maintainability through centralized definitions
  • Provides better IDE support with autocompletion
  • Ensures consistency across the codebase

40-40: Good consistency using the TEST constant.

The use of WEBHOOK_EVENT_TYPES.TEST maintains consistency with the other event type constants used throughout the file.

Copy link

vercel bot commented Jul 3, 2025

Deployment failed with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@lcaresia lcaresia moved this from Ready for PR Review to Ready for QA in Component (Source and Action) Backlog Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User submitted Submitted by a user
Projects
Development

Successfully merging this pull request may close these issues.

4 participants