Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Cant add new relation to OP, need help or advice

Cant add new relation to OP, need help or advice

Added by Slava Garipov about 1 year ago

Hello there! I'm having trouble adding a new relation called 'start_follows' to OP. I've configured it to be equivalent to the 'follows' relation, but it's not working as expected. I have a record in db that relation is created, but here is the issue:

I have two tasks, 2454 and 2459(you can see at screenshot in Relations table). When I try to change the dates for task 2454, task 2459 also changes due to the OP's schedule dependency logic.
However, when I try to change the same dates for task 2459 in the same way, the schedule dependency does not find a 'to_id' of relation and task 2454 does not change.
I would greatly appreciate it if you could please take a look at this and provide me with some advice, maybe I missed something?
(dont know, maybe I need some migration to rebuild Node or something else...)

UPD: I have tried this migration, but it doesn't seem to help

def change
    Migration::MigrationUtils::TypedDag.configure
end

UPD2: PLEASE CHECK https://github.com/opf/typed_dag/issues/44 to see attachments

typed_dag.rb:

Снимок экрана 2024-04-03 в 14 07 34

relation.rb:

Снимок экрана 2024-04-03 в 14 07 52

Снимок экрана 2024-04-03 в 14 08 17

relations table:

Снимок экрана 2024-04-03 в 14 08 45


Loading...