Buttons in Custom Block Wrapper for 'code-block' passed to blockRenderMap cannot be clicked

Do you want to request a feature or report a bug?
Buttons in Custom Block Wrapper for 'code-block' passed to blockRenderMap cannot be clicked
What is the current behavior?
Buttons in Custom Block Wrapper passed to blockRenderMap cannot be clicked
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started:
class CodeBlock extends React.Component {
  render() {
    return (
      <pre
        className="public-DraftStyleDefault-pre"
        data-offset-key={this.props["data-offset-key"]}
      >
        <button
          label={'Copy'}
          onClick={() => {console.log('clicked')}}
        />
        {this.props.children}
      </pre>
    );
  }
}

const blockRenderMap = Map({
  'code-block': {
    // element is used during paste or html conversion to auto match your component;
    // it is also retained as part of this.props.children and not stripped out
    element: 'code',
    wrapper: <CodeBlock />
  },
});

<Editor
  readOnly={true}
  blockRenderMap={blockRenderMap}
/>

What is the expected behavior?
Buttons should be clickable
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.10

Thanks for the report. Can you provide a link to a jsfiddle with a simple repro?
Off the top of my head, I can't think of a reason this would fail, especially with the editor set to readOnly.

Working on a fiddle to reproduce this bug, since the code sample above is pretty close to a repro fiddle. https://jsfiddle.net/m6z0xn4r/236/
Just need to get some code blocks into the initial editor state. Going to come back to that. But for now not sure either way if this works.

Hi people, sorry I forgot to update. I managed to find the cause of the issue. I am using highlight.js to hightlight the component on mount and that seemed to have messed up buttons. Didn't look into why. But once I removed the highlight function call. The buttons are clickable again.

// element is used during paste or html conversion to auto match your component;
                // it is also retained as part of this.props.children and not stripped out

// element is used during paste or html conversion to auto match your component;
                // it is also retained as part of this.props.children and not stripped out


AB#9947 Upgrade PA-App to Angular v9 + Ionic v5

Reminder/Note-to-self:
We need to rebase these branches on top of the latest version of everything on the master-branch.


Allow custom test function for storyshots

Currently, storyshots does two things: (a) it sets up a Jest test for each story, and (b) it defines the body of that test to be a vanilla snapshot test.
However, there are different things you may want to do in step (b), for instance:

Simply render the story, and ensure it doesn't throw an exception (https://github.com/storybooks/storybook/pull/917, https://github.com/storybooks/storybook/issues/547, https://github.com/storybooks/storybook/issues/1032)
Shallow render the story, and snapshot it (https://github.com/storybooks/storybook/issues/995)
Pass options to the rendering, especially createNodeMock (https://github.com/storybooks/storybook/issues/876, https://github.com/storybooks/storybook/issues/881, https://github.com/storybooks/storyshots/pull/98)

This issue proposes allowing configuring the body of the test (although keeping the current as the default). First proposed here: https://github.com/storybooks/storybook/pull/917#issue-222724618
There is a question of how to best implement this. The simplest thing is simply an option to initStoryshots:
initStoryshots({
  test(story) {
    // make assertions (doesn't return anything).
  }
});

@theinterned made a suggestion around lifecycle methods here -- can you provide a bit more detail about how that might be used?
In terms of implementing the use cases above, I would suggest we export "test bodies" that do the standard things from storyshots. So you could do
import initStoryshots, { shallowSnapshot } from 'storyshots';

initStoryshots({ test: shallowSnapshot });

I implemented my suggestion in #1035, but we can do something else still.

There is a question of how to best implement this.

@tmeasday maybe extract step b into an own package? And storyshots addon can be used on top of it. Other addons can be build too (like #1032 or else)

@rogovdm do you mean to extract this file into its own package?

Is this done @tmeasday

Yes, that is what I meant by the merge label @ndelangen

Released with v3!


FormatGoogleCalendar not working

I downloaded the files https://www.milanlund.com/blog/javascript-library-google-calendar and everything works. I substitute my calendar url and api and I get a blank screen. Put back Milan's calendar url and it works again.  I have tried various combinations of calendar url, client ID and api key. I even tried the service account.
Any ideas?
Thanks

Hi @huttee,
Could you please share your calendarUrl so I can check the situation by myself?

Hi,
Below is all the relevant information to my calendar. Using your code, my goal is to retrieve the events like this site I came across.
Client ID
160090504394-s4m0rein6cn72fmbv5g3vmmgnnibtmu3.apps.googleusercontent.com
Client Secret
xKb7btSaKpnC4lWZ5udMX1Wz
Source:
<EMAIL_ADDRESS><EMAIL_ADDRESS>service account
<EMAIL_ADDRESS>client ID (service account)
103765809527942905988
Thanks for your help.
Fulton
-----Original Message-----
From: Milan Lund<EMAIL_ADDRESS>To: MilanLund/FormatGoogleCalendar<EMAIL_ADDRESS>Cc: huttee<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Sent: Thu, Sep 28, 2017 5:59 am
Subject: Re: [MilanLund/FormatGoogleCalendar] FormatGoogleCalendar not working (#25)
Hi @huttee,
Could you please share your calendarUrl so I can check the situation by myself?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi @huttee,
Thanks a lot for the information. If you read my post here: https://www.milanlund.com/blog/javascript-library-google-calendar
there is a format for the calendarUrl you should follow: https://www.googleapis.com/calendar/v3/calendars/{calendarid}/events?key={Your Public API Key}
In your case:

{calendarid} is<EMAIL_ADDRESS>{Your Public API Key} is none of the information you've provided. You need to go to https://console.developers.google.com, create or select your project there, enable APIs in general, enable Calendar API and obtain your API key. You should be able to get it here:

I have composed a demo for you: http://www.kacurak.com/formatgooglecalendar/huttee.html
The demo uses my API key. For your site use your own!
Please note that I added the &maxResults=2500 parameter to the caledarUrl to show as many events as possible. Read more about the url parameters for Google Calendar: https://developers.google.com/google-apps/calendar/v3/reference/events/list

Hey Milan,
Your screenshot below API Key did the trick. To get that screen I had to click on the dropdown arrow where it says "create credential". Always thought the client secret was same as api.  Once I was able to get the correct API, it works.
Thanks a lot for your help.
Huttee
-----Original Message-----
From: Milan Lund<EMAIL_ADDRESS>To: MilanLund/FormatGoogleCalendar<EMAIL_ADDRESS>Cc: huttee<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Sent: Fri, Sep 29, 2017 5:39 am
Subject: Re: [MilanLund/FormatGoogleCalendar] FormatGoogleCalendar not working (#25)
Hi @huttee,
Thanks a lot for the information. If you read my post here: https://www.milanlund.com/blog/javascript-library-google-calendar
there is a format for the calendarUrl you should follow: https://www.googleapis.com/calendar/v3/calendars/{calendarid}/events?key={Your Public API Key}
In your case:
{calendarid} is<EMAIL_ADDRESS>{Your Public API Key} is none of the information you've provided. You need to go to https://console.developers.google.com, create or select your project there, enable APIs in general, enable Calendar API and obtain your API key. You should be able to get it here:
I have composed a demo for you: http://www.kacurak.com/formatgooglecalendar/huttee.html
The demo uses my API key. For your site use your own!
Please note that I added the &maxResults=2500 parameter to the caledarUrl to show as many events as possible. Read more about the url parameters for Google Calendar: https://developers.google.com/google-apps/calendar/v3/reference/events/list
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Remove upgrade path for old session format

This removes an upgrade path that migrated the old serialization format to the new one introduced. This was introduced in c22d755 (#2300) 3 years ago and should no longer be needed.

It'd be nice to have an entry in the changelog for that, would you mind adding it? Thanks!

@carlosantoniodasilva Not at all. Didn't add one since there wasn't one in c22d755.

@carlosantoniodasilva Added. Hope the changelog entry fits the style...

@fphilipe Thank for your contribution. We planning to ship it after 4.0.0 release.

@fphilipe can you please move the CHANGELOG.md entry from the 4.0.0rc2 section to the Unreleased version? Thanks!

@lucasmazza 😊 oops, sorry for that! Done 😉

@fphilipe This PR has some conflicts, could you please rebase it?

Done. Conflict only in changelog.


[improve][broker]: DelayedDeliveryTracker init and addMessage

Motivation
improve perf

we not need add lock when MsgMetadata.hasDeliverAtTime return false.
use double check lock to init DelayedDeliveryTracker and InMemoryDelayedDeliveryTracker#addMessage add synchronized to ensure thread safe

Modifications

PersistentDispatcherMultipleConsumers.java use double check lock init DelayedDeliveryTracker
PersistentDispatcherMultipleConsumers.java not lock when msgMetadata.hasDeliverAtTime return false
InMemoryDelayedDeliveryTracker.java addMessage method add lock to ensure thread safe

Verifying this change

[ ] Make sure that the change passes the CI checks.

This change is already covered by existing tests：org.apache.pulsar.broker.delayed.InMemoryDeliveryTrackerTest.
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation
Check the box below or label this PR directly.
Need to update docs?

[ ] doc-required
(Your PR needs to update docs and you will update later)

[x] doc-not-needed
(Please explain why)

[ ] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

modify Motivation

@Guohaozai, Do you have time to deal with this PR?


Meross MPD100

I’am sorry to bother you but as beginners using Hoobs I don’t know what I doing wrong using your plugin. The plugins do not detect my only one Meross device. Outdoor dimmer plug
MPD100.
Any recommendations?

Hi @jDanCo the plugin should already work with this model.
Can you get the logs from hoobs for this plugin and paste here what it shows?

Closing as no response


Question about .dat files

Sorry for making this an 'issue'. I'm not sure how to ask this question otherwise.
I am learning RubyMotion by creating a simple application. I'd like the application will include a pre-populated offline database and show the data in a simple table view. When you show the deserialize_from_file(file.dat) method in the examples, is it possible to create that .dat file beforehand that is pre-populated and include it with the application? If so, what could you use to create / manage that file?
Thanks for your help, and sorry again for making this an 'issue'.

No problem about the issue. If you want to ask it on the forum, be sure to tag me, @sxross in the post.
In answer to your question, the data files are created by using NSCoding::encodeWithCoder, and then persisted to the device. So the file is not guaranteed to be textual. A better way to handle it is on initialization in AppDelegate, do something like this:
# ProMotion used here.
class AppDelegate < PM::Delegate

  status_bar true, animation: :fade

  def on_load(app, options)
    seed if Pet.count == 0
    open PetScreen.new(nav_bar: true)
    # open HomeScreen.new(nav_bar: true)
  end

  def seed
    fluffy = Pet.create(name: 'Fluffy', species: 'Cat', breed: 'Heinz 57')
    rover  = Pet.create(name: 'Rover', species: 'Dog', breed: 'Boxer')
    basil  = Pet.create(name: 'Basil', species: 'Cat', breed: 'Persian')
    fluffy.foods << Food.create('smelly cat food')
    fluffy.save
  end
end


Stop using finalizers if not extrictly needed

Fixes #314

This PR fixes #314 in the sense that elemental-operator can be uninstalled and reinstalled without causing weird effects neither leaving any resource managed by the elemental-operator behind.
However under some circumstances this is still likely to lead to states which are hard to recover from without redeploying nodes and similar procedures. As an example, if the elemental-operator is uninstalled when having a deployed elemental cluster this causes the cluster to enter in updating state and causes the machine pool to enter in failed stated (as it is linked to a machineinventory and machineinventoryselector that are no longer available). I doubt this can be cleanly solved without redeploying the cluster. As it is not possible to regenerate equivalent machineinventory for the already existing node, as this is tied to a registry end point that was also destroyed.
In short, helm uninstall works and a follow up helm install works too, however for a proper uninstall the admin should first delete any elemental cluster and/or any other related rancher resource.


How does the cache expire? Is it possible to check if a cached image has changed?

I find PINRemoteImage a great and stable library, and I really thank you guys for such a great work!
There's just one thing I can't seem to figure out, and I promise I'll dig down into the source code to figure it out, but meanwhile, I'd like to ask if this functionality is actually supported.
( I did some googling about it and crunched your past issues, and even if I found some similar questions, I didn't manage to find something that was answering my question).
Sometimes, even if URL of the image remains the same, the Image on the backend changes. I'm wondering if PINRemoteImage checks http cache headers to understand if the image has expired. As far  as I've understood it seems that, as long as the url key is cached by PINCache, the cached image is retrieved from the disk and the manager doesn't try any download, is this correct?
If so, is there a way to workaround it? Like by setting cache expiration or forcing a header check and redownloading?

@dev-mush you're right, this is not currently supported by PINRemoteImage. There's currently a pull request attempting to implement TTL on PINCache, that could help. Looking at headers would certainly be a good option as well, the downloading of images is done in PINDataTaskOperation if you want to take a look on what it would take to add support.

@dev-mush TTL is now supported on PINCache, does this resolve your issue?

Closing this out since I haven't heard back.


Ability to hide 'json' code when viewer clicks 'inspect'

Thanks for the help on customizing Grafana -- i'm trying to figure out how to keep users with 'view' authority from viewing the dashboard json, which can be viewed using panel > inspect.  Thanks for the good info!

@jboyd170 Glad it helped! You can remove the JSON tab from Inspect, but users can still see the returned dashboard JSON in the Network requests.
There is no way to hide dashboard JSON in the Grafana frontend architecture. It requires server-side rendering.


Make anchors in docs conformant to HTML5

One of the two options to fix "Links from summary to detail don't work in API docs."
I wanted to get some discussion on this first, but it's dead quiet, so here are the pull requests.
See commit message for details.

:+1: for this solution.

Thanks!!


await inside OnInitAsync causes the browser to hang

Similar to #1242 but I can consistently reproduce and it happens on the simplest Component. No Layout involved. Happened on 0.6.0 and kept happening after I upgraded to 0.7.0.
It is a very strange behavior which points to some mishandling of asynchronous actions inside OnInitAsync.
Version that behaves as expected
The code below fails as expected. A System.NullReferenceException is shown in the browser console.
@page "/"

    @foreach (var item in Items)
    {

@item

    }

@functions {
    protected IEnumerable<string> Items { get; set; }
}

Result: Uncaught (in promise) Error: System.NullReferenceException: Object reference not set to an instance of an object.
Version that works as expected
@page "/"

    @foreach (var item in Items)
    {

@item

    }

@functions {
    protected override async Task OnInitAsync()
    {
        await Task.CompletedTask;
        Items = new[] { "item1" };
    }

    protected IEnumerable<string> Items { get; set; }
}

Result: item1 is shown on the screen.
Version that unexpectedly hangs up
@page "/"

    @foreach (var item in Items)
    {

@item

    }

@functions {
    protected override async Task OnInitAsync()
    {
        await Task.Delay(1); // This line is the only difference
        Items = new[] { "item1" };
    }

    protected IEnumerable<string> Items { get; set; }
}

Result: An exception is shown in the console, but from that point on the browser becomes unresponsive and I need to close the tab and re-run the Blazor application.
Uncaught (in promise) Error: System.NullReferenceException: Object reference not set to an instance of an object.

You have to understand that await in async method means "if the task is not completed temporarily suspend execution of this function and return to the caller (in this case Blazor runtime)". Blazor calls your OnInitAsync method and renders your page first time immediately after first suspension. Then it renders your page again when your method finishes. Run this code and watch the screen. Then comment first await, uncomment await Task.CompletedTask; and note the difference.
@page "/"

    @if (Items == null)
    {

List not initialized yet.

    }
    else
    {
        @foreach (var item in Items)
        {

@item

        }
    }

@functions {
    List<int> Items { get; set; }

    protected override async Task OnInitAsync()
    {
        await Task.Delay(1000);
        //await Task.CompletedTask;
        Items = new List<int>();
        Items.Add(1);
        await Task.Delay(1000);
        Items.Add(2);
        await Task.Delay(1000);
        Items.Add(3);
    }
}

#1412 about the same thing

try instantiate a new instance of Items first
@functions {
    List<int> Items { get; set; }

    protected override void OnInit()
    {
        Items = new List<int>();
    }

    protected override async Task OnInitAsync()
    {
        await Task.Delay(1000);
        Items.Add(1);
        await Task.Delay(1000);
        Items.Add(2);
        await Task.Delay(1000);
        Items.Add(3);
    }
}

@thewebchameleon your solution is based on some Blazor implementation detail and if you really want to create a new List instance before the page is rendered the first time you can simply move this line above the first await. You can also do this:
List<int> Items { get; set; } = new List<int>();

Both solutions are in my opinion much better than a new function override.
The most important fact to remember is: each time Blazor calls your async method your page can be rendered two times and your rendering code have to be prepared for this. This is true not only in OnInitAsync but also in all other async methods, for example in button's onclick event.
Second important fact: your async method has to have Task return type not void. Otherwise you page will not be rendered second time.

Thank you all for your quick response. I was wondering if this behavior was by-design but it looked bad enough that I thought it wasn't. Finding #1242 didn't help either.
Is there any chance you could include this explanation in the documentation. I went through a lot and couldn't find a single mention of this behavior, plus all the examples I could find are simplistic and don't attempt to load data asynchronously which is realistic and what I was trying to do:

Blazor calls your OnInitAsync method and renders your page first time immediately after first suspension. Then it renders your page again when your method finishes

Keep up the great work. Blazor is an amazing idea!


fix: fix npm script in window

Summary
fix #4798  starter template's npm script is not work well  in windows.

Test Plan

Require Documentation?

[x] No
[ ] Yes, the corresponding rspack-website PR is __

@daydayhappychao Thanks for your PR. I've reopen and updated it based on the latest changes.


Unable to download 1080p

auto- 1080p shows up but in udemy-dl it shows 720p only

@Z3ro13 that is because its not mp4 but hls stream, i already have considered this as future enhancement. so i m closing this issue.


[feature] Prevent/highlight derived relationships option

I often find it helpful to avoid modelling directly with derived relationships. It's good when learning the language and also avoids some of the rather odd (but legal) relationships that can be used.
For those of us that want to model with 'strict' core metamodel relationships only it would be great to have one or more of the following selectable options:

disable non-core relationships from the magic connector and disallow direct creation of non-core relationships
automatically highlight any non-core relationships in the view (by colour?)
automatically highlight any element in the model tree that has a non-core relationship, similar to the way that elements which don't appear on views are highlighted
for any given non-core relationship, suggest the chain of elements and core relationships it could be replaced by

Yes, a good feature. One to add to the list.


What is the sample granularity of PCM when I set time interval to sample to 1s?

The command I run : pcm 1 -nc  -i=10 -csv=test.log
I set the interval to sample performance counters to 1s with command as shown above. What confused me is that the output in test.log shows that  domain TIME(ticks) is 3000 ( Frequence of CPU is 3.0GHz).
Timestamps at the first column shows that samples are obeying 1s interval behavior.
But the domain TIME(Ticks) shows 3000, which means that the time it takes is 3000 clockticks ( = 1us).
Why timestamps can't be consistent when the TIME domain?

other users wanted the metric expressed in "time stamp cycles" (TSC). TSC is well established time measure. But I agree it also makes sense to add TIME(ms) metric. Is this what you want?

According to the wiki PCM Column Names Decoder Ring, TIME(ticks) here means Number of invariant clockticks.
As I set time interval as 1s, there should be 3G ticks during per interval where 1ticks ~ 0.33ns. So the value I expect on the domain TME(ticks) is 3e9. But it shows 3e3 to me. This is what really confuses me.

ok, I see @twillhal the documentation should mention the miliions multiplier.

So the value of TIME(ticks) should be multiplied by 1 million? Or the domain should be changed to TIME(1e6 ticks)?

My proposal would be to fix the documentation by mentioning the multiplier.

Should the value of INST be multiplied by 1million as well? In my experiment, the number of instructions is far blow my desired value.


Question: How to add excerpts to posts?

Since you don't have Issues section, could you please answer here?
I've tried inserting page.excerpt to different parts of layouts, but they aren't shown. Could you help me?

First, page.excerpt is supported by Hexo.
Second, please show me code.
Last, please send me mail<EMAIL_ADDRESS>


X-Auth-UserId header should be cleared before attempting authentication

Should note in the documentation or the examples that it is safer to clear the X-Auth-UserId header before trying to authenticate the request, something like:
location /secure {
      access_by_lua '
        ngx.req.clear_header("X-Auth-UserId")
        local jwt = require("nginx-jwt")
        jwt.auth()
      ';
}

Also noticed that the header is being set on the response not the request, shouldn't it be the other way around? So that backends get the authenticated subject. Currently, we have this in our nginx-jwt.lua:
-- write the X-Auth-UserId header
-- ngx.header["X-Auth-UserId"] = jwt_obj.payload.sub
ngx.req.set_header("X-Auth-UserId", jwt_obj.payload.sub)

@hkarim: The X-Auth-UserId response header emitted by the nginx-jwt script is not really intended to be consumed by the backing service. Per the docs (end of the Usage section) it's really just a convenience feature so you can see the ID of the user who authenticated in the response.  If you're concerned about this being a security issue, perhaps we can make the rendering of this field optional.
One of the primary use cases of the nginx-jwt script is to provide a security layer for existing backends that can't be modified, or at least not very easily. Nginx makes it easy to layer something like this on. However, I think there is also a class of use cases where the backend could make use of some data being passed in. It sounds like you're in that camp where you have a backend that can be modified such that claims within the JWT can passed to it. I think you're approach of passing additional request headers to the backing service is very appropriate in this case, especially if that's what your backend can consume. Not everyone using this library has that luxury.
Finally, regarding your opening question about clearing the X-Auth-UserId on its way to the backing service. For the reasons I've given, unless your backend is expecting this header to be sent, this shouldn't be an issue. It certainly shouldn't effect the header being written back out on the response to the external caller.

@hkarim +1 for adding X-Auth-UserId for the backend, I have this exact line in my version of nginx-jwt:
ngx.req.set_header("X-Auth-UserId", jwt_obj.payload.sub)

@twistedstream I was writing a PR for this then noticed @platinummonkey mentioned in https://github.com/auth0/nginx-jwt/pull/46 that he already has a PR lined up for this exact fix, he's just waiting for his previous PR to be merged.

I'm not sure what's going on over at auth0 preventing responsiveness, but I decided to fork nginx-jwt over here: https://github.com/platinummonkey/nginx-jwt  I'm currently merging in a number of these issue fixes, and will be setting up CI as well.

+1 to both of @hkarim's points

You can use this module - https://github.com/tarachandverma/nginx-openidc which clears the header before authentication.


Coverage: "‘__pyx_tstate’ may be used uninitialized in this function"

When compiling PyArrow with -X linetrace=true and CYTHON_TRACE=1, I get the following compilation warnings with gcc 4.9.4:
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp: In function ‘PyObject* PyInit_lib()’:
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:130938:82: warning: ‘__pyx_tstate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       if (__Pyx_GetException(&__pyx_t_21, &__pyx_t_20, &__pyx_t_22) < 0) __PYX_ERR(12, 26, __pyx_L18_except_error)
                                                                                ^
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:130850:20: note: ‘__pyx_tstate’ was declared here
     __Pyx_PyThreadState_declare
                    ^
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:130307:93: warning: ‘__pyx_tstate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     __pyx_t_3 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError);
                                                                                ^
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:130224:20: note: ‘__pyx_tstate’ was declared here
     __Pyx_PyThreadState_declare
                    ^
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:129038:82: warning: ‘__pyx_tstate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       if (__Pyx_GetException(&__pyx_t_22, &__pyx_t_21, &__pyx_t_20) < 0) __PYX_ERR(1, 195, __pyx_L4_except_error)
                                                                                ^
/home/antoine/arrow/python/build/temp.linux-x86_64-3.6/lib.cpp:128901:20: note: ‘__pyx_tstate’ was declared here
     __Pyx_PyThreadState_declare
                    ^

Marking as a duplicate of #2274.


All files

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: pradeepnbhat sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[SOLVED] Bot Crashes Every 60 Seconds

I am hosting my mod mail bot on Heroku and it will crash every 60 seconds or so and it will say this,
2019-03-12T00:49:30.389492+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-03-12T00:49:30.389492+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-03-12T00:49:30.457073+00:00 heroku[web.1]: Process exited with status 137
^(this is in heroku logs by the way)^

See issue #74 for some discussion around hosting on heroku (specifically this comment: https://github.com/Dragory/modmailbot/issues/74#issuecomment-386603942). Issue #237 has a potential solution as well.

I put npm -Dserver.port=$PORT start into a Procfile file in github and then transferred it over to Heroku, but the bot still crashes after ~60 seconds and still says:
2019-03-12T00:49:30.389492+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
I NEED HELP!

Solution: don't use heroku. This bot is made for a vps or pc with ports open, able to write to disk etc. There's a python mod mail bot that's made specifically for heroku but I recommend this bot mostly. Unless you wanna use the heroku one, you need to get another hosting.

I fixed it, and I can confirm, Heroku hosting works fine

watchudo


chore: make CI / node mandatory again

This is a change request
Problem
After PR https://github.com/waku-org/js-waku/pull/1566 CI/node step is not mandatory but we keep an agreement not to merge stuff while it is failing.
We need to make it mandatory by default.
Proposed Solutions
It happens due to other repos re-using js-waku interop tests. Maybe using another way to enable such reusability will fix the issue. Or just return the required check later on.

@fryorcraken enabled setting again


Registers with intr attribute and bothedge and negedge not reseting properly

From open-register-design-tool created by kdloe: Juniper/open-register-design-tool#61
We are testing two of the interrupt register types with (bothedge intr) and (negedge intr) and we are seeing that the X's at reset are not cleared out. The posedge and level are functioning properly.
Sample RDL:
reg negintr_t {
    name = "Reg negedge intr";
    desc = "A register with negedge intr";
         default hw = na; // Ordt have as na
        default sw = rw;
    field {
        name = "negedge_intr check";
        desc = "checking that the negedge intr works";
        negedge intr;
        woclr;
    } interrupt = 1'b0;
};

reg bothintr_t {
    name = "Reg bothedge intr";
    desc = "A register with bothedge intr";
         default hw = na; // Ordt have as na
        default sw = rw;
    field {
        name = "bothedge_intr check";
        desc = "checking that the bothedge intr works";
        bothedge intr;
        woclr;
    } interrupt = 1'b0;
};

attr_negintr_t           negintr;
attr_bothintr_t          bothintr;

Sample generated Code
//------- combinatorial assigns for bothintr
always_comb begin
reg_bothintr_interrupt_next = rg_bothintr_interrupt;
l2h_bothintr_intr_o = 1'b0;
intr_bothintr_clear = 1'b0;
reg_bothintr_interrupt_next = ((h2l_bothintr_interrupt_intr ^ intr_bothintr_interrupt_previntr) | rg_bothintr_interrupt);
l2h_bothintr_intr_o = l2h_bothintr_intr_o | (rg_bothintr_interrupt);
intr_bothintr_clear = intr_bothintr_clear | (intr_bothintr_interrupt_delay & ~rg_bothintr_interrupt);
l2h_bothintr_intr_o = l2h_bothintr_intr_o & ~intr_bothintr_clear;
if (d2l_bothintr_we) reg_bothintr_interrupt_next = (reg_bothintr_interrupt_next & ~d2l_bothintr_w [0] );
end
//------- reg assigns for bothintr
always_ff @ (posedge clk or negedge sig_ordtreg_rst_n) begin
if (! sig_ordtreg_rst_n) begin
rg_bothintr_interrupt <= #1 1'b0;
end
else begin
rg_bothintr_interrupt <= #1  reg_bothintr_interrupt_next;
intr_bothintr_interrupt_previntr <= #1 h2l_bothintr_interrupt_intr;
intr_bothintr_interrupt_delay <= #1 rg_bothintr_interrupt;
end
end
//------- combinatorial assigns for negintr
always_comb begin
reg_negintr_interrupt_next = rg_negintr_interrupt;
l2h_negintr_intr_o = 1'b0;
intr_negintr_clear = 1'b0;
reg_negintr_interrupt_next = ((intr_negintr_interrupt_previntr & ~h2l_negintr_interrupt_intr) | rg_negintr_interrupt);
l2h_negintr_intr_o = l2h_negintr_intr_o | (rg_negintr_interrupt);
intr_negintr_clear = intr_negintr_clear | (intr_negintr_interrupt_delay & ~rg_negintr_interrupt);
l2h_negintr_intr_o = l2h_negintr_intr_o & ~intr_negintr_clear;
if (d2l_negintr_we) reg_negintr_interrupt_next = (reg_negintr_interrupt_next & ~d2l_negintr_w [0] );
end
//------- reg assigns for negintr
always_ff @ (posedge clk or negedge sig_ordtreg_rst_n) begin
if (! sig_ordtreg_rst_n) begin
rg_negintr_interrupt <= #1 1'b0;
end
else begin
rg_negintr_interrupt <= #1  reg_negintr_interrupt_next;
intr_negintr_interrupt_previntr <= #1 h2l_negintr_interrupt_intr;
intr_negintr_interrupt_delay <= #1 rg_negintr_interrupt;
end
end

Try release 190524.01.

Please provide additional info for recreating this issue.  Added your code to the rdl_intr_01 test and didn't see any problems with the edge intrs (see test/basic_tests/rdl_intr_01).  If you generate rtl and testbench for this test using rdl/parms, you can simulate the  simple test.

closed per confirmation in Juniper repo


cm.foldOption is not a function

Whenever i open the site i get this error

So far i've googled around but i only found one similar issue and it didn't help me.
I have also minified the code but no results
#index.html

    <title>WebSim</title>

    <link rel="stylesheet" href="lib/codemirror.css">
    <link rel="stylesheet" href="lib/fold/foldgutter.css">

    <script src="lib/codemirror.js"></script>

    <script src="lib/fold/foldcode.js"></script>
    <script src="lib/fold/foldgutter.js"></script>
    <script src="lib/fold/brace-fold.js"></script>
    <script src="lib/fold/xml-fold.js"></script>
    <script src="lib/fold/markdown-fold.js"></script>
    <script src="lib/fold/comment-fold.js"></script>
</head>
<body>
    <textarea id="codemirror"></textarea>
    <script src="index.js" charset="utf-8"></script>
</body>

#index.js
let editor = CodeMirror.fromTextArea(document.getElementById("codemirror"), {
mode: "javascript",
lineNumbers: true,
lineWrapping: true,
extraKeys: {"Ctrl-Q": function(cm){ cm.foldCode(cm.getCursor()); }},
foldGutter: true,
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
});
I do not see any problem with the code but i'm probably wrong.
I think i might be missign a file import but i can't find anything about that.

I fixed it, i didnt find the actual problem but instead executed the functions on a workign codemirror page where i got the values i needed
minSize = 0;
func = function(cm, start) {
var helpers = cm.getHelpers(start, "fold");
for (var i = 0; i < helpers.length; i++) {
var cur = helpers[i](cm, start);
if (cur) return cur;
}
}


Franz does a complete reload every now and then

Will be either using a tab in Franz or focused on another window and the blue loading screen will come up. All services are reloaded.
Expected Behavior
Franz should only reload when I select View > Reload Franz
Current Behavior
Franz reloads on its own at random intervals
Context
Actively using Franz or working in another application. I have 12 services in Franz
Your Environment

Franz Version used: 5.0.0-beta.16.762
Operating System and version: macOS 10.13.3

I'm facing a similar problem.
My current behaviour is erratic - on startup, apparently when trying to load the WhatsApp service, Franz will restart in a loop. I have to quite Franz and restart it several times before the problem goes away, but eventually the problem will appear again without any specific input from me.
I run 4 services in Franz - WhatsApp, FB Messenger, Slack (1 account), Telegram
Franz version 5.0.0-beta.16 (5.0.0-beta.16.762)
macOS 10.13.3 (17D102)


4.7-Preview Update LG docs, samples

Fixes #1791
Proposed Changes

Updated all samples to latest preview package
Updated LG docs to include new capabilities and features
Added new sample to demonstrate multi-lingual LG

Also, we should update this doc https://github.com/microsoft/BotBuilder-Samples/tree/master/experimental/common-expression-language#variables to reflect the ‘@' notation
’

@tomlm can you review this one as well?


Remove SMS support for Steam, update info

Apparently I was wrong with #1201. I think the note is still correct, though, so instead of removing it I updated it.

Thanks for the update, @Efreak! Looks good to me :+1:


Accent color description is incorrect

In several places, the document claims that the Accent color is used as the background for the outline image.  In fact, it seems that the Accent color is used as the background for the Color image.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 0f94a488-d636-92b3-21eb-c88744c8f272
Version Independent ID: 7b3413f4-9ade-accf-5cb2-83fead11a32a
Content: Manifest schema reference - Teams
Content Source: msteams-platform/resources/schema/manifest-schema.md
Service: msteams
GitHub Login: @surbhigupta
Microsoft Alias: lajanuar

@et01267 - Thanks a lot for bringing this up.
Hi @surbhigupta12 - Could you please help here to update the doc accordingly?
accentColor
Required—HTML Hex color code
A color to use and as a background for your color icons.
The value must be a valid HTML color code starting with '#', for example #4464ee.


Implement GetMutationsStream

Also change the API from /v1/epochs/{epoch}:stream  to /v1/epochs:stream in the service protos
Related to https://github.com/google/keytransparency/issues/59

Closing this in favour of #59


Docker run throws error no space left error for /data/db

Getting Below error when run the docker
docker run -d -p 3000:27017 --name m1 --net mongo-net mongo mongod
2016-11-25T08:56:26.387+0000 I STORAGE  [initandlisten] error creating journal dir /data/db/journal boost::filesystem::create_directory: No space left on device: "/data/db/journal"
2016-11-25T08:56:26.387+0000 I STORAGE  [initandlisten] exception in initAndListen std::exception: boost::filesystem::create_directory: No space left on device: "/data/db/journal", terminating
2016-11-25T08:56:26.388+0000 I CONTROL  [initandlisten] dbexit:  rc: 100

I didn't face the issue when mount a volume to /data/db
ocker run -d -p 3000:27017 -v /Users/user/work/m1:/data/db --name m1 --net mongo-net mongo mongod
Look like it has something to do with docker image

I would guess that you are on a Mac using "Docker for Mac".  I think that the VM provisioned by docker does not have enough space and so mounting you host's directory gave it the space that it needed.

@yosifkit thats right. I could clean up some space  by deleting unused docker instances and this error gone away

Also works if added: --smallfiles
In compose you can use:
command: mongod --smallfiles

What I've also seen on Docker for Mac is that the available disk space can be exhausted by too many local images. Removing unused images can help then.

docker volume prune is worked on this error message.

I faced the same issue and solved it on Mac, by going to the settings for Docker Desktop and increasing the allocated Resources.


Patching of custom security attribute is failing with error TypeError: Encountered an unknown type during serialization <class 'dict'>

Environment

Python Version 3.10
kiota-serialization-json version: microsoft-kiota-serialization-json   1.1.0
OS: amazonlinux:2

Stack trace (if available)
[2024-03-10 14:25:30,457 #80] INFO: HTTP Request: GET https://graph.microsoft.com/v1.0/servicePrincipals?$top=1&$filter=startswith%28displayName%2C%20%27core-stg6-user-app%27%29&$count=true&$orderby=displayName "HTTP/2 200 OK"
[2024-03-10 14:25:31,855 #80] INFO: HTTP Request: GET https://graph.microsoft.com/v1.0/servicePrincipals/806a7c55-cbc0-4399-81f5-6df0a73c98a8?$select=customSecurityAttributes "HTTP/2 200 OK"
CustomSecurityAttributeValue(additional_data={'recoverbyok'<EMAIL_ADDRESS>'#microsoft.graph.customSecurityAttributeValue'<EMAIL_ADDRESS>'#Collection(String)', 'readonly': ['stg6-a-9000632-927f4b', 'stg6-a-9000617-3d2e13', 'stg6-a-9000618-9d0710', 'stg6-a-9000620-501d69', 'stg6-a-9000621-3a48cb', 'stg6-a-9000638-ae6e32']}}, odata_type=None)
Patch dict CustomSecurityAttributeValue(additional_data={'recoverbyok'<EMAIL_ADDRESS>'#microsoft.graph.customSecurityAttributeValue'<EMAIL_ADDRESS>'#Collection(String)', 'readonly': ['stg6-a-9000632-927f4b', 'stg6-a-9000617-3d2e13', 'stg6-a-9000618-9d0710', 'stg6-a-9000620-501d69', 'stg6-a-9000621-3a48cb', 'stg6-a-9000638-ae6e32', 'stg6-a-9000641-74553d']}}, odata_type=None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/cloud_accessors/common/exception/exception_handler.py", line 59, in azure_exception_handler
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/cloud_accessors/identity_access_manager/azure/identity_access_manager.py", line 111, in add_value_to_service_principal_custom_security_attribute
    self._patch_service_principal_custom_security_attributes(
  File "/usr/local/lib/python3.10/site-packages/cloud_accessors/identity_access_manager/azure/identity_access_manager.py", line 65, in _patch_service_principal_custom_security_attributes
    self._event_loop.run_until_complete(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.10/site-packages/msgraph/generated/service_principals/item/service_principal_item_request_builder.py", line 108, in patch
    request_info = self.to_patch_request_information(
  File "/usr/local/lib/python3.10/site-packages/msgraph/generated/service_principals/item/service_principal_item_request_builder.py", line 173, in to_patch_request_information
    request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
  File "/usr/local/lib/python3.10/site-packages/kiota_abstractions/request_information.py", line 179, in set_content_from_parsable
    writer.write_object_value(None, values)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 285, in write_object_value
    self._serialize_value(temp_writer, value)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 462, in _serialize_value
    value.serialize(temp_writer)
  File "/usr/local/lib/python3.10/site-packages/msgraph/generated/models/service_principal.py", line 289, in serialize
    writer.write_object_value("customSecurityAttributes", self.custom_security_attributes)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 285, in write_object_value
    self._serialize_value(temp_writer, value)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 462, in _serialize_value
    value.serialize(temp_writer)
  File "/usr/local/lib/python3.10/site-packages/msgraph/generated/models/custom_security_attribute_value.py", line 47, in serialize
    writer.write_additional_data_value(self.additional_data)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 330, in write_additional_data_value
    self.write_any_value(key, val)
  File "/usr/local/lib/python3.10/site-packages/kiota_serialization_json/json_serialization_writer.py", line 451, in write_any_value
    raise TypeError(
TypeError: Encountered an unknown type during serialization <class 'dict'>                     with key recoverbyok

Describe the bug
Patching of custom security attribute is failing with above traceback
The input for pathing is
CustomSecurityAttributeValue(additional_data={'recoverbyok'<EMAIL_ADDRESS>'#microsoft.graph.customSecurityAttributeValue'<EMAIL_ADDRESS>'#Collection(String)', 'readonly': ['stg6-a-9000632-927f4b', 'stg6-a-9000617-3d2e13', 'stg6-a-9000618-9d0710', 'stg6-a-9000620-501d69', 'stg6-a-9000621-3a48cb', 'stg6-a-9000638-ae6e32', 'stg6-a-9000641-74553d']}}, odata_type=None)

To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should work as it worked under version 1.0.1
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Affected by this as well

From a rapid investigation, this is related to this kiota issue: https://github.com/microsoft/kiota-serialization-json-python/issues/248
The serialize method of PlannerAssignments (and other similar classes like PlannerChecklistItems call write_additional_data_value which is the problematic function.
    def write_additional_data_value(self, value: Dict[str, Any]) -> None:
        """Writes the specified additional data to the stream.
        Args:
            value (Dict[str, Any]): he additional data to be written.
        """
        if isinstance(value, dict):
            for key, val in value.items():
                self.write_any_value(key, val)

That method takes the additional data, loops through the keys and sends them to write_any_value. In this case, the key would be the unique ID of the assigned person and the value would be a dict that contains the @odata.type and associated parameters.
However, the write_any_value doesn't have a isinstance(value, dict) check and therefore fails. Any call to write_additional_data_value would therefore cause this issue.
Even if we fix the parsing issue, we encounter another problem because the @odata_type attribute is never translated to @odata.type.


Galai library doesn't seem to work

Hi,
I'm trying to use the galai quickstart prompt. This is what I'm running:
import galai as gal

model = gal.load_model("standard")
model.generate("Scaled dot product attention:\n\n\\[")
# Scaled dot product attention:\n\n\\[ \\displaystyle\\text{Attention}(Q,K,V)=\\text{softmax}(\\frac{QK^{T}}{\\sqrt{d_{k}}}%\n)V \\]

However, I'm getting TypeError: 'type' object is not subscriptable

Hi @saptarshi059, I cannot reproduce this. Can you try with galai==1.1.1? If it's still broken can you paste in the full stack trace?

Based on the stack trace from #59 the issue should be fixed with galai==1.1.2. It didn't fail for me as I was testing it on python 3.9.

@mkardas Thank you for the solution from #59 ... I upgraded accelerate and it now works!


connections leak in postgresql scaler with scaledJob

Report
I used a ScaledJob with an postgresql to scale job based on tables entries inside postgresql
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
  name: ai-studio
spec:
  jobTargetRef:
    parallelism: 1
    completions: 1
    activeDeadlineSeconds: 86400
    template:
      spec:
        containers:
          - name: ai-studio
            image: python
            imagePullPolicy: IfNotPresent
            env:
              - name: POSTGRESQL_DSN
                value: postgresql://{{ $.Values.global.postgresql.auth.username }}:{{ $.Values.global.postgresql.auth.password }}@{{ $.Release.Name }}-postgresql.{{ $.Release.Namespace }}.svc/{{ $.Values.global.postgresql.auth.database }}?sslmode=disable
            command:
              - /bin/bash
              - -c
              - >-
                pip3 install -r /app/requirements.txt && python3 /app/main.py
            volumeMounts:
              - name: app
                mountPath: /app/
        volumes:
          - name: app
            configMap:
              name: ai-studio-code
        restartPolicy: Never
    backoffLimit: 0

  pollingInterval: 5                          # Optional. Default: 30 seconds
  minReplicaCount: 0                          # Optional. Default: 0
  maxReplicaCount: 100                        # Optional. Default: 100

  rollout:
    strategy: gradual
    propagationPolicy: foreground

  triggers:
    - type: postgresql
      metadata:
        connectionFromEnv: POSTGRESQL_DSN
        query: "SELECT COUNT(*)::decimal FROM jobs WHERE state='queued'"
        targetQueryValue: "0"

On my local environment, pollingInterval is set to 5.
Expected Behavior
No connection leaks
Actual Behavior
KEDA opens a connection each 5 seconds and does not close it
# SELECT COUNT(*), state, query FROM pg_stat_activity GROUP BY state, query;
 count | state  |                                   query
-------+--------+----------------------------------------------------------------------------
     1 | active | SELECT COUNT(*), state, query FROM pg_stat_activity GROUP BY state, query;
    78 | idle   | SELECT COUNT(*)::decimal FROM jobs WHERE state='queued'
     5 |        |
(3 rows)

Steps to Reproduce the Problem

Setup a postgresql database
Setup a ScaledJob (may use the example from above)
Wait until connection limit is reached

Logs from KEDA operator
22-12-13T17:28:56Z	INFO	scaleexecutor	Scaling Jobs	{"scaledJob.Name": "ai-studio", "scaledJob.Namespace": "ai-studio-demo", "Number of running Jobs": 0}
2022-12-13T17:28:56Z	INFO	scaleexecutor	Scaling Jobs	{"scaledJob.Name": "ai-studio", "scaledJob.Namespace": "ai-studio-demo", "Number of pending Jobs ": 0}
2022-12-13T17:29:01Z	ERROR	postgresql_scaler	Found error pinging postgreSQL: pq: remaining connection slots are reserved for non-replication superuser connections	{"type": "ScaledJob", "namespace": "ai-studio-demo", "name": "ai-studio", "error": "pq: remaining connection slots are reserved for non-replication superuser connections"}
github.com/kedacore/keda/v2/pkg/scalers.getConnection
	/workspace/pkg/scalers/postgresql_scaler.go:154
github.com/kedacore/keda/v2/pkg/scalers.NewPostgreSQLScaler
	/workspace/pkg/scalers/postgresql_scaler.go:48
github.com/kedacore/keda/v2/pkg/scaling.buildScaler
	/workspace/pkg/scaling/scale_handler.go:656
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).buildScalers.func1
	/workspace/pkg/scaling/scale_handler.go:532
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).buildScalers
	/workspace/pkg/scaling/scale_handler.go:536
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).performGetScalersCache
	/workspace/pkg/scaling/scale_handler.go:266
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScalersCache
	/workspace/pkg/scaling/scale_handler.go:190
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).checkScalers
	/workspace/pkg/scaling/scale_handler.go:341
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).startScaleLoop
	/workspace/pkg/scaling/scale_handler.go:162

KEDA Version
2.9.0
Kubernetes Version
1.25
Platform
Other
Scaler Details
Postgresql
Anything else?
Slack: https://kubernetes.slack.com/archives/CKZJ36A5D/p1670952481987269

it seems like a regression in 2.9.0. 2.8.1 does not have this issue
postgres=# SELECT COUNT(*), state, query FROM pg_stat_activity GROUP BY state, query;
 count | state  |                                   query
-------+--------+----------------------------------------------------------------------------
     1 | active | SELECT COUNT(*), state, query FROM pg_stat_activity GROUP BY state, query;
     1 | idle   | SELECT COUNT(*)::decimal FROM jobs WHERE state='queued'
     5 |        |
(3 rows)

Thanks for reporting, seems like the scalers cache is not properly handled for ScaledJobs.