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

If multiple meeting are configured, /agenda queue should pick nearest one #78

Open
hanzei opened this issue Jun 30, 2021 · 19 comments
Open
Labels
Help Wanted Community help wanted Type/Bug Something isn't working Up For Grabs Ready for help from the community. Removed when someone volunteers

Comments

@hanzei
Copy link
Contributor

hanzei commented Jun 30, 2021

Hi, I need to know if this is expected behavior , If we set multiple Meeting days and then we add item to queue by /agenda queue Mytask. It Adds task to Saturday instead of Thursday.(even if its Monday on time of executing this command)

Issue created from a Mattermost message by @sanjay_demansol.

@hanzei hanzei changed the title If multiple meeting are configured, /agenda queue should pick n If multiple meeting are configured, /agenda queue should pick nearest one Jun 30, 2021
@hanzei hanzei added Help Wanted Community help wanted Type/Bug Something isn't working labels Jun 30, 2021
@maisnamraju
Copy link

@hanzei I'm looking into this. At first I thought it was because of DST but it's not because the days as far apart.

@maisnamrajusingh
Copy link
Contributor

@hanzei I'm looking into this. At first I thought it was because of DST but it's not because the days as far apart.

@hanzei I tested this on multiple teams and it worked as expected. It moved to the next date in the settings. It easily gets confused though when you have multiple teams when you switch between multiple teams and move between their settings.
@mickmister sorry about this, but could you assign it to this account of mine that I am commenting from. I accidentally commented with my personal account

@mickmister
Copy link
Contributor

It easily gets confused though when you have multiple teams when you switch between multiple teams and move between their settings.

@maisnamrajusingh Isn't /agenda queue a command that is processed on the server, and the settings are per-channel right? What is getting confused when you switch between teams, and what do you mean by "switch"?

@maisnamrajusingh
Copy link
Contributor

@mickmister Sorry I meant switch between channels. For example user clicks on one channel sets the agenda and moves to another one that also has an agenda setting. I experienced this issue while testing as I was running the queue command on one channel whereas I had set the settings on another.

@maisnamrajusingh
Copy link
Contributor

@mickmister were you able to replicate this ? I think the issue is invalid.

@mickmister
Copy link
Contributor

mickmister commented Aug 26, 2021

@maisnamraju What are your test steps? Please format in this way:

  • Set up agenda settings with two or more days
  • ...

Expected:

Agenda item is queued for (whatever day happens to be closest)

Observed:

Agenda item is indeed queued for the expected day


You may need to test on different days of the week to see the behavior

@mickmister
Copy link
Contributor

@maisnamraju Also, based on the issue description, it looks like @sanjaydemansol is the one that originally reported the issue in Mattermost. Maybe he has more context to provide for you

@maisnamrajusingh
Copy link
Contributor

@sanjaydemansol can you test once again and see if the issue is replicated ?

@sanjaydemansol
Copy link
Contributor

@maisnamraju ,I also had issues replicating same.

@maisnamrajusingh
Copy link
Contributor

@maisnamraju ,I also had issues replicating same.

@sanjaydemansol do you mean you couldn't replicate it ? If thats the case we can close this.

@maisnamrajusingh
Copy link
Contributor

@mickmister looks like we can close this.

@mickmister
Copy link
Contributor

@DHaussermann Are you aware of the intended functionality when you don't supply the optional flag for the specific day you want to queue the item for? It seems there was undesired functionality of the plugin not queuing to the closest day, but now there is difficulty reproducing this issue. cc @sanjaydemansol @maisnamrajusingh

@sanjaydemansol
Copy link
Contributor

@dipak-demansol any thoughts about this one?

@dipak-demansol
Copy link

dipak-demansol commented Oct 19, 2021

@Hanze Your talking about this issue? (Pls see the video)

           by removing Sanjay code(From branch m-12 & mmt-12) i tested again and the same issue was Generated Again.

in this video when i created the Meeting for next week, it should be created for Monday but it created at Saturday.
https://user-images.githubusercontent.com/89907719/137910480-2130d639-cfc9-4a5c-8716-c7820a0d9f4c.mp4

@mickmister
Copy link
Contributor

@DHaussermann @hanzei @dipak-demansol @sanjaydemansol

I'm a bit confused about the status of this. I think we need to figure the current behavior of the plugin and document it so we can have a source of truth. Maybe we should have some unit tests to assert the current behavior.

@hanzei hanzei added the Triage label Nov 8, 2021
@catalintomai
Copy link

catalintomai commented Nov 8, 2021

@sanjaydemansol - can you/your team add unit tests to Michael's comment? Thanks.

@mickmister
Copy link
Contributor

Note that implementing unit tests will require mocking time.Now(), so any function we want to test will need to accept now *time.Time as a parameter, and we will be passing in hardcoded time values to assert different cases in the tests.

@sanjaydemansol
Copy link
Contributor

@catalintomai sure, we will write.

@maisnamrajusingh
Copy link
Contributor

maisnamrajusingh commented Mar 16, 2022

@mickmister @hanzei I am taking over this one.

@hanzei hanzei added Help Wanted Community help wanted Up For Grabs Ready for help from the community. Removed when someone volunteers and removed Hacktoberfest labels Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Community help wanted Type/Bug Something isn't working Up For Grabs Ready for help from the community. Removed when someone volunteers
Projects
None yet
Development

No branches or pull requests

8 participants