Is it possible to change a readonly js to be editted?

Hi! So I’m having problems with using the reddit “New-links-by-user.js” as there is a little flaw in how they’re searching through the posts by new but not accounting for pinned posts at all so the trigger gets caught in a loop as it searches for new posts above a pinned post (which always gets aggregated to the top) is it possible to either change the read only js provided in the configuration or provide a loophole to skip through X amount of posts…?

@louietran0 Currently you can’t modify code marked as “read-only” in an event source using the Pipedream UI, but you can edit that code locally and deploy an event source with your changes. Would you be open to submitting a pull request to our GitHub repo with the change you believe should work? I’d love to update the core code so we fix it for all users. I can walk you through how this works.

The code for this event source is hosted on our GitHub repo, and you’ll find the code for Reddit here. You can clone this repo, create a new branch, and use our CLI to run this source on local code. This quickstart walks you through how that works, using pd dev (the CLI command that allows you to deploy code for testing).

Let me know if you’d be open to this, and I’m happy to help support you in any way!

I’d be happy to try to fix it, although it will take me a bit to handle the learning curve as I’m still a little ‘green’ overall to javascript. It will take me a while to understand each bit and how to handle the received data but I have found that there is within the received dataset a section marked “pinned” with a boolean value so I will either see how to implement that within the params and tinker around a bit!

No worries, we are happy to help support you in any way. If it’s easier to chat synchronously, we have a #contribute Slack channel where we discuss contributions on our public Slack workspace.