Giter Site home page Giter Site logo

Comments (19)

mickmister avatar mickmister commented on August 29, 2024 2

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.

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024 1

@maisnamraju ,I also had issues replicating same.

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

from mattermost-plugin-agenda.

sanjaydemansol avatar sanjaydemansol commented on August 29, 2024 1

@catalintomai sure, we will write.

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024 1

@mickmister @hanzei I am taking over this one.

from mattermost-plugin-agenda.

maisnamraju avatar maisnamraju commented on August 29, 2024

@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.

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024

@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

from mattermost-plugin-agenda.

mickmister avatar mickmister commented on August 29, 2024

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"?

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024

@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.

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024

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

from mattermost-plugin-agenda.

mickmister avatar mickmister commented on August 29, 2024

@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

from mattermost-plugin-agenda.

mickmister avatar mickmister commented on August 29, 2024

@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

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024

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

from mattermost-plugin-agenda.

sanjaydemansol avatar sanjaydemansol commented on August 29, 2024

@maisnamraju ,I also had issues replicating same.

from mattermost-plugin-agenda.

maisnamrajusingh avatar maisnamrajusingh commented on August 29, 2024

@mickmister looks like we can close this.

from mattermost-plugin-agenda.

mickmister avatar mickmister commented on August 29, 2024

@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

from mattermost-plugin-agenda.

sanjaydemansol avatar sanjaydemansol commented on August 29, 2024

@dipak-demansol any thoughts about this one?

from mattermost-plugin-agenda.

dipak-demansol avatar dipak-demansol commented on August 29, 2024

@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

from mattermost-plugin-agenda.

mickmister avatar mickmister commented on August 29, 2024

@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.

from mattermost-plugin-agenda.

catalintomai avatar catalintomai commented on August 29, 2024

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

from mattermost-plugin-agenda.

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.