Giter VIP home page Giter VIP logo

Comments (11)

nealoke avatar nealoke commented on July 19, 2024 1

When trying to reschedule a job in the UI you will get a 404 indeed. Quite blocking :(

image

from agendash.

Nefsen402 avatar Nefsen402 commented on July 19, 2024

Hmm, it looks like anything both requeing or deleting jobs are affected. I drilled down into the issue, and it looks like the pkFactory is not a function anymore, but instead an object with an additional createPk function as a property. Agendash is assuming that pkFactory is a function and failing whenever it tries to modify or delete a job.

_id: { $in: jobIds.map((jobId) => collection.s.pkFactory(jobId)) },

_id: { $in: jobIds.map((jobId) => collection.s.pkFactory(jobId)) },

Here are the two references to the broken function.

Edit: I am having this issue with version 4.1.3 of Agenda which you mentioned was ok...
Edit again: No, I'm just jumping the gun, I was looking at package.json instead of package-lock.json. It indeed works on both versions you mentioned.

from agendash.

VadymKultenkoDarth avatar VadymKultenkoDarth commented on July 19, 2024

Same here error 404 not found.

TypeError: collection.s.pkFactory is not a function

from agendash.

ljacho avatar ljacho commented on July 19, 2024

It doesn't work

Hmm, it looks like anything both requeing or deleting jobs are affected. I drilled down into the issue, and it looks like the pkFactory is not a function anymore, but instead an object with an additional createPk function as a property. Agendash is assuming that pkFactory is a function and failing whenever it tries to modify or delete a job.

_id: { $in: jobIds.map((jobId) => collection.s.pkFactory(jobId)) },

_id: { $in: jobIds.map((jobId) => collection.s.pkFactory(jobId)) },

Here are the two references to the broken function.

Edit: I am having this issue with version 4.1.3 of Agenda which you mentioned was ok...
Edit again: No, I'm just jumping the gun, I was looking at package.json instead of package-lock.json. It indeed works on both versions you mentioned.

can you confirm it works for you with older versions please?

from agendash.

ljacho avatar ljacho commented on July 19, 2024

Agenda is using new mongodb driver now, see ObjectId

fix: #193

from agendash.

Shahor avatar Shahor commented on July 19, 2024

Is there anything planned to make this move forward?

from agendash.

Shahor avatar Shahor commented on July 19, 2024

@santiq Sorry for pinging you directly but you seem to be the most active contributor.
Can you help on this maybe?

from agendash.

GimpMaster avatar GimpMaster commented on July 19, 2024

Noticing this issue now. Following to see if it ever gets fixed. Otherwise Agendash is effectively a read-only tool now.

from agendash.

scottbasgaard avatar scottbasgaard commented on July 19, 2024

Same here.

from agendash.

VadymKultenkoDarth avatar VadymKultenkoDarth commented on July 19, 2024

from agendash.

koresar avatar koresar commented on July 19, 2024

Merged the PR. Expect v3.0.0 soon.

from agendash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.