openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Patrick Voelker <Patrick_Voelker@phoenix.com>
To: "OpenBMC (openbmc@lists.ozlabs.org)" <openbmc@lists.ozlabs.org>
Subject: Power state change watch in ControlStore.js
Date: Tue, 30 Mar 2021 00:10:59 +0000	[thread overview]
Message-ID: <6d8c43a4f7f04db58d6ce32c61bfe148@SCL-EXCHMB-13.phoenix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

I'm trying to debug an issue I'm having with checkForHostStatus in webui-vue/src/store/modules/Control/ControlStore.js.

I always seem to have to wait the full 5 minutes to see my power state change even though I know that it's happening on the server.  I'm not very familiar with vue so I'm not sure how to trace back the calls that would update state.global.hostStatus from the BMC.  There's no other usage of "state.global.*" in the webui so I'm not even sure if that syntax is correct.

As far as I can tell, the changes to the global hostStatus should happen in getHostStatus() in GlobalStore.js but I can't see where getHostStatus() is called for the watch in the context of the ServerPowerOperations page.

Any tips?

[-- Attachment #2: Type: text/html, Size: 797 bytes --]

                 reply	other threads:[~2021-03-30  0:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6d8c43a4f7f04db58d6ce32c61bfe148@SCL-EXCHMB-13.phoenix.com \
    --to=patrick_voelker@phoenix.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).