Skip to content
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

[Meta] Motion Forward: motion identifier not shown and Error thrown in console #3605

Closed
1 of 2 tasks
MSoeb opened this issue Apr 25, 2024 · 12 comments · Fixed by #4024
Closed
1 of 2 tasks

[Meta] Motion Forward: motion identifier not shown and Error thrown in console #3605

MSoeb opened this issue Apr 25, 2024 · 12 comments · Fixed by #4024
Assignees
Labels
Milestone

Comments

@MSoeb
Copy link

MSoeb commented Apr 25, 2024

Description:
When opening a forwarded motion from the original motion, the motion identifier is displayed incorrectly in the target event. Instead of "Motion 03", for example, "Motion not found" is displayed.

At the same time, an error message appears in the console. I cannot say whether this is the cause or whether another error is occurring at the same time.

target meeting with wrong motion identifier:
image

error message after forwarding:
image

Reproduction:
0. Activate motion forwarding in two committees and create a meeting in each one

  1. open console to see Error when it is thrown
  2. open meeting A
  3. open motions > workflow > > complex workflow > allow forwarding in state approved
  4. open motions > create a motion with workflow complex and as submitter "Test".
  5. change status of the motion to approved and forward the motion to meeting B
  6. now open the target meeting by clicking on "Motion forwarded to" link
  7. Error is thrown and title is wrong

What should happen:

@MSoeb MSoeb added the bug label Apr 25, 2024
@MSoeb MSoeb added this to the 4.2 milestone Apr 25, 2024
@Elblinator
Copy link
Member

If I click on the link to move to the origin/forwarded meeting then I can reproduce the Error

I can not reproduce the first bug

I'll make a Meta Issue out of this and edit the description accordingly

@Elblinator Elblinator changed the title Motion Forward: motion identifier not shown [Meta] Motion Forward: motion identifier not shown and Error thrown in console Apr 30, 2024
@reiterl reiterl assigned reiterl and unassigned reiterl May 16, 2024
@reiterl
Copy link
Member

reiterl commented May 17, 2024

After the steps clicking on forward/origin shows the "not found" in Motion header. I don't see an error here.

@reiterl
Copy link
Member

reiterl commented May 17, 2024

The motion-detail header needs a motion.number. I looked at the two subscriptions, MOTION_ADDITIONAL_DETAIL_SUBSCRIPTION and MOTION_DETAIL_SUBSCRIPTION. They both don't include the number field. But adding it here doesn't solve the problem. Mmh.

I see sometimes an motion is null error. This happens, if motion-meta-data getSubscriptions no motion is found for the motion.id. I can suppress the error with a filter not null. But I think, sth is broken here.

@reiterl
Copy link
Member

reiterl commented May 17, 2024

Stop here for now.

@Elblinator
Copy link
Member

I cannot reproduce the 'Motion not found' part
Please clarify the reproduction

@MSoeb
Copy link
Author

MSoeb commented May 28, 2024

I've tried to reproduce it, but it works fine in the current OS version 4.1.9.

Because of this, I've changed the issue text. The issue can now be closed after the second part of it is fixed and merged.

@MSoeb MSoeb removed the needs info label May 28, 2024
@Elblinator Elblinator self-assigned this Jun 25, 2024
@Elblinator
Copy link
Member

The first bug from the meta issue is still relevant I could reproduce it once
I forwarded the motion and navigated vis the link to the forwarded motion white fast (maybe something was still loading)

@Elblinator Elblinator removed their assignment Jun 28, 2024
@MSoeb
Copy link
Author

MSoeb commented Jul 1, 2024

I agree with you. Tried it again. I can reproduce it with one motion in our test environment, but it doesn't occur with every motion. Not sure, what exactly caused the title loading bug.

@Elblinator
Copy link
Member

the get errorMessage() in the detail-view.component.ts returns the string ("Motion not found") if the motion.number is not loaded while trying to access it
After this error was thrown once, the title never gets changed again

@Elblinator
Copy link
Member

I could reproduce the bug rather reliably in a productive instance as follows:

  1. allow committee A to forward to committee B
  2. forward one motion
  3. stay in meeting A
  4. hover with the mouse ovwer the link for meeting B
  5. reload the page with F5
  6. press the link very fast until you navigated to the other meeting
  7. The title is wrong now

I cannot reproduce it reliably in a dev environment ( autoupdateOnSharedWorker: true or false) tested in chromium

@MSoeb MSoeb added the needs investigation The cause for a bug is not clear enough, so it has to be investigated for some time label Aug 6, 2024
@bastianjoel
Copy link
Member

I think I found the cause of this while working on #4023.

In MotionDetailViewComponent the hasLoaded subject does not get reset properly in some cases on meeting change. It might be that this is more reliable reproducible when switching between three meetings via forwarded motion links while staying on the motion detail page.

The cause could be that on motion switch the active meeting subscription gets unsubscribed too early.

We should check if #4024 fixes this after it is finished.

@bastianjoel
Copy link
Member

e4895ef fixes this.

While this change is a bit off form the motion refactoring it does not work with current main because of other bugs within the motion component I will address in #4024

@bastianjoel bastianjoel removed the needs investigation The cause for a bug is not clear enough, so it has to be investigated for some time label Aug 15, 2024
@bastianjoel bastianjoel self-assigned this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants