getMeasuredHeight() is wrong?

I put a FlexboxLayout with layout_height set to wrap_content (and a bottom margin) in a RelativeLayout with a fixed height. When I filled the FlexboxLayout with items and called getMeasuredHeight() later it returned the same value as getHeight(), despite there being items that were past the end of its container (I should mention that the FlexboxLayout was set to invisible before the layout passes, in case that matters). It is my understanding that getMeasuredHeight() should return the height that the View would be if it weren't constrained by a container, so this result seems like a bug.

The values between getMeasuredHeight/Width and getHeight/Width don't have to be same as in explained in the documentation.
Also I believe you don't have to use the getMeasuredHeight/Width method in your app because it's used for the layout pass (done within the library).
So please use getHeight instead. If there is an issue in that method, please report an issue.

Hello,
To clarify, I said that getHeight() and getMeasuredHeight() were returning the same value when they should not have been, not that they should have been returning the same value. This is the issue I was trying to report. If the FlexboxLayout is set to wrap_content in a RelativeLayout that is set to a fixed height, and the FlexboxLayout contains enough items to exceed the fixed height of the RelativeLayout, it is my understanding that getMeasuredHeight() and getHeight() should return different values, but they are not.
My app needs to get the measured height of the FlexboxLayout in order to move/resize some sibling views, since cyclic dependencies would arise if attempting to use only RelativeLayout layout parameters.
To work around this issue, I have resorted to measuring the size of each line and dividers and summing them up, but a fix for getMeasuredHeight() would be better.

Hi,

If the FlexboxLayout is set to wrap_content in a RelativeLayout that is set to a fixed height, and the FlexboxLayout contains enough items to exceed the fixed height of the RelativeLayout, it is my understanding that getMeasuredHeight() and getHeight() should return different values,

Actually this is not correct.
Even if the length of the FlexboxLayout is set to wrap_content and the parent RelativeLayout has a fixed height, it doesn't mean the getMesuredHeight and getHeight should return the different values.
Again, I think getMeasuredHeight is not meant to be used for outside of the view itself.
Please consider another approach.

Sorry to disagree, but from the documentation you linked:

The first pair is known as measured width and measured height. These dimensions define how big a view wants to be within its parent (see Layout for more details.) The measured dimensions can be obtained by calling getMeasuredWidth() and getMeasuredHeight().

A natural follow up question is, what exactly does "wants to be" mean? The answer is found by following the link to the Layout section. In the case of layout_height being set to wrap_content:

WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding).

(emphasis mine)
So according to this, if the content would make its own container bigger than its container's container (which in my case has a fixed height), getMeasuredHeight() should return a number bigger than the number returned by getHeight().
Granted, the documentation for getMeasuredHeightAndState(), which getMeasuredHeight() references, does say:

This should be used during measurement and layout calculations only. Use getHeight() to see how wide a view is after layout.

In my specific case I am actually trying to get the measured height of the view during layout (in OnGlobalLayoutListener.OnGlobalLayout()). The above documentation seems to indicate that getMeasuredHeight() should return the height the view wants to be regardless of its container's size at this point in time. Many stack overflow answers recommend this method for getting this measurement, for any view in general. If this is wrong as you say, then I suppose that the View documentation needs updating, but I find it more likely that FlexboxLayout has this implemented incorrectly. Please reconsider your closing of this issue.

Ok so could you share the example xml of this?

FlexboxLayout is set to wrap_content in a RelativeLayout that is set to a fixed height, and the FlexboxLayout contains enough items to exceed the fixed height of the RelativeLayout

I'll check if it's not the intended behavior.

Sure thing, and thanks for your consideration.
A direct paste of my layout xml is difficult since the relevant sections are broken up into 2 xml files, the RelativeLayout is actually a custom view in my case, and its contents are dynamically inflated. So instead I'll just create an example here with similar parameters:
<RelativeLayout
    android:layout_width="200dp"
    android:layout_height="200dp">
    <com.google.android.flexbox.FlexboxLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:flexWrap="wrap"
        app:alignItems="flex_start"
        app:alignContent="center"
        app:showDivider="middle"
        app:dividerDrawable="@android:drawable/btn_dialog">
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
    </com.google.android.flexbox.FlexboxLayout>
</RelativeLayout>

Now in onCreate() if you do:
flexBox.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
    @Override
    public void onGlobalLayout() {
        Log.d("flex", "measured height = " + flexBox.getMeasuredHeight());
        Log.d("flex", "height = " + flexBox.getHeight());
    }
});

I think you would see the same value logged twice.

Thanks for pasting the xml.
Checked that it was an intended behavior that the getMeasuredHeight and getHeight return the same value.
Because the value set to the measured height takes the spec parameters imposed by its parent (passed as widthMeasureSpec and heightMeasureSpec from the parent) into account as well as the value for getHeight.
If you replace the FlexboxLayout with LinearLayout, you can also check that getMeasuredHeight and getHeight return the same value.
(I tried this xml)
<RelativeLayout android:layout_width="200dp"
    android:layout_height="200dp"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <LinearLayout
        android:id="@+id/flexbox_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="@android:drawable/btn_dialog"
        android:showDividers="middle"
        android:orientation="vertical"
        >
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@android:drawable/sym_def_app_icon"/>
    </LinearLayout>
</RelativeLayout>

Ah, then I suppose it is the View documentation that needs updating. I'm sorry I didn't simply check the behavior of other built-in Android ViewGroups before opening this issue. Then all this back and forth could have been avoided. Thank you very much for looking into it.


Add Support For Pagination Of Data From GitHub

Add Support For Pagination Of Data From GitHub:

https://github.com/philschatz/octokat.js#paged-results
https://developer.github.com/v3/#pagination

Only partial support for pagination has been implemented. It only exists on the commit list view. Additional support for pagination will be added in future releases.


devguides: daemon rpc get_version missing params

#2253

docs are moving to https://github.com/monero-project/monero-docs
merged in https://github.com/monero-project/monero-docs/pull/68
closing. thank you plowsof


[Feature Request] Add an equivalent to element.scrollTo to programmatically scroll within a Whisper

Following up from a brief discussion we had on Slack. :+1:
This feature would be very useful in cases where we would like to refocus on a particular component inside a whisper. I discovered the need for this while working on a pagination component, where it would improve the UX to be able to refocus to the top of the results once the user navigated to the next page.
MDN: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo
Let me know if I can clarify anything else. :smiley_cat:

Thanks for the suggestion! WE opened up HELPS-2101 to track this work. We'll let you know if we need any additional feedback!

Hey @kevinfiol,  we're closing this out since we cannot do this request.

Thank you for your submission. After reviewing with the team, this is not something that we can provide at this time.


Bug: Unable to use PowerShell for terminal

VSCode Version: 1.27.2
OS Version: Windows 7 Enterprise

Steps to Reproduce:

Use following user settings (with a valid path to PowerShell):

"terminal.explorerKind": "external",
"terminal.external.windowsExec": "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"

Open terminal. It opens regular windows command line instead of PowerShell. No error provided.

Does this issue occur when all extensions are disabled?: Yes

What terminal are you trying to open? Can you provide a screenshot?

@Tyriar Here you go.

That's the integrated terminal, you're configuring the external terminal. This this:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",

Oh sorry for confusion. Thanks!


We should get rid of specific beta version dependencies

If you go look at our JS dependencies there are a several hard coded versions that are tied to (now quite old) beta versions of libraries. This isn't great, and we should try to modify those to point to (for starters) the oldest non-beta version after the version we currently point to.
The ones that show up in the dependency graph include:

[x] @angular/cdk
[ ] @angular/flex-layout
[x] @angular/material
[x] covalent/core (do we even still use covalent?)

Someone should looking into how hard/easy this is. If it's easy just fix all of them in one fell swoop. If it's hard we might want to split this into 4 different issues.

@angular/cdk and @angular/material will be upgraded once I merge in @NicMcPhee upgrade-to-angular5 branch. @angular/flex-layout has always been in beta and covalent/core will be removed from the project.

These have been updated, but that definitely does not mean that they would not need updating again.


Auto-Correlation as core functionality in JMeter

Takashi Imoto (Bug 63640):
Purpose:
If a JMeter script has API parameters that require correlation, then the User needs to manually correlate them using JMeter Post-Processors. This becomes a hassle when the test scenarios are very large.
Manual procedure of Correlation has following steps:
-Identify API parameters that require Correlation.
-Create "Regular Expression Extractor" by analysing API response.
-Modify the script by setting "Regular Expression Extractor" names wherever correlated parameters are used.
Manual Auto-Correlation leads to following problem:
-Increased complexity.
-Time-consuming.
-Error-prone.
Solution:
Record same senario 2 times.
Comparing these 2 scripts, it can be seen that a value with a difference variable may be a correlation variable.
Automate the following steps which are involved in the correlation process.
-Identify the parameters which are candidates for correlation by comparing 2 scripts.
-Create "Regular Expression Extractor" by analysing API response.
-Add "Regular Expression Extractor" into the script.
Solution Design:
Abbreviations:
-JMX–X: Test Plan Xth recording.
-JTL–Y: Recording log of Yth recording.
-Test-Engineer: Person who records the test plan.
-Test-Designer: Person who can perform manual Correlation in JMeter.
Use-Case:
There are two use cases being considered:

The Test Designer records the test plan and performs the Correlation himself. In this use case the test plan is kept in JMeter memory along with recording's logs.
The Test-Engineer records the test plan and Test-Designer performs the Correlation. In this use case Test-Engineer saves test plans and its recordings and shares them to the Test-Designer for selecting the appropriate parameters which are required to be correlated.

Procedure

Refer attached screen images.

Step 1: Import scripts and recording logs.
Use case 1
1a. Record Test Plan and save it.
1b. Record Test Plan again and keep JMeter open.
1c. Right Click on Test Plan and click CoRelation.
1d. Import JMX-1.
Use case 2
1a. Record Test Plan and save it.
1b. Record Test Plan again & save its script and recording log.
1c. Click on Edit and click CoRelation.
1d. Import JMX-1, JMX-2 and JTL-2 and click CoRelation.
Step 2: Parameter Selection
List of parameters which can be correlated is displayed.
Select the parameters you want to correlate and Click OK.
Output
"Regular Expression Extractor" for the selected parameters have been created successfully and added to the script. The script is successfully correlated and can be used for load testing now.
Please refer to attached file for more details.
And we already prepare the prototype to confirm of our approach for Use case 1.
If community interest it, our company will submit PR of this.
Created attachment auto_colleration.png: Use cases of Auto Correlation

Votes in Bugzilla: 2
OS:

Michael Johnson (migrated from Bugzilla):
Blazemeter came out with a plugin that did the same and worked great until JMeter version 5.5 came out. BlazeMeter Correlation Recorder. The correlation recorder is implemented using Reqex for the extractions and replacements. It's implementation has worked better than Load Runners (VUGen) Recording Rules.
Being able to use the Autocorrelation rules has become a huge time saver and it's odd that Apache hasn't implemented something of the same with it's HTTP(S) Test Script Recorder.
I know this is an old request (from 2019) but didn't see the need to create a new as it's description fits the need.
This is an enhancement request to implement a rules based auto correlation engine as part of the standard JMeter HTTP(S) Test Script Recorder.

Hi @asfimport, thank you for the recommendation. I am currently JMeter 5.5 and would like to integrate the Blazemeter Correlation Recorder plugin to speed up correlation. As you mentioned that the plugin "worked great until JMeter version 5.5 came out", may I clarify what issue(s) there might be with using this plugin with JMeter 5.5?

Hello @AllardQuek
This issue is migrated from Bugzilla.
The @asfimport user is a user that was used for the migration.
Originally what Michael Johnson pointed out in Bugzilla is that BlazeMeter has a plugin.
However, the plugin of that time (2022) is a Correlation plugin where the rules must be previously specified (at that time not really related to the automatic method indicated by the person who initiated the order)
It is possible that at that time the BlazeMeter CR plugin had not yet resolved its support for JMeter 5.5.
But versions after that date fixed it.
The lates version supports the entire JMeter 5.x family
In addition, in its 2.x version of the Correlation Recorder plugin, bring the initial support for Auto Correlation.
That was released a month ago.
Autocorrelation is an automatic mechanism that detects potential elements to be correlated and automatically creates correlation rules.
That feature is what Takashi Imoto initially mentioned back in 2019, but with a different approach taken by the team of BlazeMeter.
They improved their Correlation Recorder to also have an automatic correlation method.
You can find the information in their GitHub repository where you have access to the documentation
https://github.com/Blazemeter/CorrelationRecorder
There is also a recorded webinar on the release of version 2.x
https://www.blazemeter.com/webinars/ignite-auto-correlation
These topics related to autocorrelation implemented in Correlation Recorder are not related to this request to support Autocorrelation in JMeter.
If you have questions or problems with BlazeMeter Correlation Recorder, you can ask for help in the issues section in BlazeMeter's Correlation Recorder repository.
https://github.com/Blazemeter/CorrelationRecorder/issues

Hi @3dgiordano, got it thank you for the detailed response!


Switching gauge types clears users entered values

Current Behavior
OP

Next I added a gauge, and spent a while setting up the "segments" (these are the different colours for different thresholds of the gauge). Also I set up the range for the gauge. I enjoyed spending time choosing the segment colours and thresholds. Unfortunately when I deployed, the segment colours just didn't show at first. Then I changed another field and re-deployed, and suddenly they showed. Then the problem happened again, so I changed the gauge type, and immediately lost the threshold colours, threshold levels, and range, all of which I had carefully set and planned to duplicate later

Response

When switching gauge types, we have different defaults, it had been built to switch to the relevant defaults when changing gauge type. A better solution here would be for us to check your values vs. Our known defaults, if it doesnt match anything, keep your values...

See https://discourse.nodered.org/t/latest-dashboard-2-0-release-tabs-number-input-new-gauges/90506/28?u=steve-mcl for
Expected Behavior
If user has entered values, dont discard them
Steps To Reproduce
enter your own colour settings, switch gauge type
Environment

Dashboard version: current
Node-RED version:
Node.js version:
npm version:
Platform/OS: all
Browser: all

Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

@joepavitt this seems it has been already fixed with https://github.com/FlowFuse/node-red-dashboard/pull/1264
[{"id":"12275bcb16ade4b9","type":"ui-gauge","z":"80a7b66be7ea4735","g":"6dc51f8e4811d988","name":"","group":"f1e8ea54f0c8cf36","order":2,"width":3,"height":3,"gtype":"gauge-half","gstyle":"needle","title":"gauge","units":"units","icon":"","prefix":"","suffix":"","segments":[{"from":"0","color":"#5cd65c"},{"from":"4","color":"#ffc800"},{"from":"7","color":"#ea5353"}],"min":0,"max":10,"sizeThickness":16,"sizeGap":4,"sizeKeyThickness":8,"styleRounded":true,"styleGlow":false,"className":"","x":930,"y":5380,"wires":[]},{"id":"64692bd9f4c7a9f0","type":"inject","z":"80a7b66be7ea4735","g":"6dc51f8e4811d988","name":"dynamic","props":[{"p":"ui_update.suffix","v":"s","vt":"str"},{"p":"ui_update.prefix","v":"p","vt":"str"},{"p":"ui_update.gtype","v":"gauge-34","vt":"str"},{"p":"ui_update.icon","v":"home","vt":"str"},{"p":"ui_update.units","v":"t","vt":"str"},{"p":"ui_update.gstyle","v":"needle","vt":"str"},{"p":"ui_update.title","v":"speed 'O","vt":"str"},{"p":"ui_update.min","v":"2","vt":"num"},{"p":"ui_update.max","v":"7","vt":"num"},{"p":"ui_update.label","v":"label","vt":"str"},{"p":"ui_update.segments","v":"[{\"color\":\"#53ac6d\",\"from\":0},{\"color\":\"#bdd763\",\"from\":2},{\"color\":\"#f5ef59\",\"from\":4},{\"color\":\"#febe57\",\"from\":6},{\"color\":\"#f15353\",\"from\":8}]","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":760,"y":5340,"wires":[["12275bcb16ade4b9"]]},{"id":"3ba046be21906d25","type":"inject","z":"80a7b66be7ea4735","g":"6dc51f8e4811d988","name":"gauge-half","props":[{"p":"ui_update.gtype","v":"gauge-half","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":760,"y":5380,"wires":[["12275bcb16ade4b9"]]},{"id":"fab5f00bde7cc658","type":"inject","z":"80a7b66be7ea4735","g":"6dc51f8e4811d988","name":"gauge-34","props":[{"p":"ui_update.gtype","v":"gauge-34","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":760,"y":5420,"wires":[["12275bcb16ade4b9"]]},{"id":"f1e8ea54f0c8cf36","type":"ui-group","name":"#1266 Switching gauge types clears users entered values","page":"c2a6a254b088c41d","width":"6","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false"},{"id":"c2a6a254b088c41d","type":"ui-page","name":"1111","ui":"a171c8195c1b8e57","path":"/page1111","icon":"wifi","layout":"grid","theme":"0d92c765bfad87e6","order":18,"className":"","visible":"true","disabled":"false"},{"id":"a171c8195c1b8e57","type":"ui-base","name":"My Dashboard","path":"/dashboard","includeClientData":true,"acceptsClientConfig":["ui-control","ui-chart","ui-form","ui-file-input","ui-button","ui-button-group","ui-dropdown","ui-slider","ui-switch","ui-text","ui-table","ui-markdown","ui-notification","ui-template","ui-number-input"],"showPathInSidebar":false,"showPageTitle":true,"navigationStyle":"icon","titleBarStyle":"fixed"},{"id":"0d92c765bfad87e6","type":"ui-theme","name":"Basic Blue Theme","colors":{"surface":"#4d58ff","primary":"#cc00a7","bgPage":"#eeeeee","groupBg":"#ffffff","groupOutline":"#cccccc"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px","density":"default"}}]

https://github.com/user-attachments/assets/776631dc-384f-4fda-968a-59b7703c86ef

For dynamically injected values yes, as they're stored in the statestore, but when configuring the gauge "normally" via the config screen in Node-RED, those values are overwritten when switching gauge types.

For dynamically injected values yes, as they're stored in the statestore, but when configuring the gauge "normally" via the config screen in Node-RED, those values are overwritten when switching gauge types.

@joepavitt Thank you for the clarification. I will work on this


fix: Missing Beta assistant Header in CreateMessage

Describe the change
Using CreateMessage currently returns this error: You must provide the 'OpenAI-Beta' header to access the Assistants API. Please try again by setting the header 'OpenAI-Beta: assistants=v1'.
It seems this was overlooked in #546
Describe your solution
I added the missing withBetaAssistantV1()
Tests
Manual tests
Additional context
N/A

Dupe of https://github.com/sashabaranov/go-openai/pull/566


Missing dicebear icons since 10/30

Dicebear icons have disappeared from stagenet and mainnet OBE.
The gitaction deploys just fine.
The hyperion command returns just fine when run by hand.
It's not the chain itself, because I restarted it and it still hadn't shown up.
I certbot renewed, but the cert was good until 2024
and also it's on two separate machines and happened at about the same time.
SSL could be an issue, we saw a strange error, bur it doesn't happen all the time. That IP is mine.
2023/10/31 15:11:45 [error] 1052#1052: *2103 connect() failed (111: Unknown error) while connecting to upstream, client: <IP_ADDRESS>, server: hyptest.koy.network, request: "GET /v2/history/get_actions?sort=desc&limit=20 HTTP/1.1", upstream: "http://<IP_ADDRESS>:7001/v2/history/get_actions?sort=desc&limit=20", host: "hyptest.koy.network", referrer: "https://test-explore.koy.network/"
Could dicebear be looking somewhere that is not valid or is blocked?

I noticed that the code seems to both build its own dicebear implementation and also call from the dicebear API. Is that correct? If so, it could explain why it works correctly on the local machine but not over the web.

The dicebear implementation relies on the JS library implementation, so we're solely relying on the @dicebear/core package and the packages that represent both used styles. It is all being concetrated in store/profiles/actions

This was caused by building the project with node version != 16.x.x


[MODEL EVALUATION REQUEST] BSC-LT/salamandra-7b-instruct

Model ID
BSC-LT/salamandra-7b-instruct
Model type
Decoder model (e.g., GPT)
Evaluation languages

[X] Danish
[X] Swedish
[X] Norwegian (Bokmål or Nynorsk)
[X] Icelandic
[X] Faroese
[X] German
[X] Dutch
[X] English

Merged model
Not a merged model

Bug! https://github.com/ScandEval/ScandEval/issues/539


Automatic ephemeral reply to advise users to use fxtwitter links

Copied from a discussion in #dev. See there for more details.
Instead of the bot automatically replacing the user's message when it detects a twitter.com link, how about it sends an ephemeral reply advising the user to edit their message to use fxtwitter.com?
Hi there! I noticed you posted a twitter link. Did you know you can improve the embed by editing your message to use fxtwitter.com instead of twitter.com?
Or something shorter like
Pro tip: replace twitter.com with fxtwitter.com for a better discord embed!
Or something more assertive
Please replace twitter.com with fxtwitter.com for an improved embed.
 Such a terrible embed. That's really embarrassing. Better edit your message before anyone notices. Quick, replace twitter.com with fxtwitter.com!

It looks like you can't send ephemeral replies to messages - that only works for interactions.


[BUG] can't manage error due to inteactions on B2c

Describe the bug
A clear and concise description of what the bug is.
Exception or Stack Trace
Add the exception log and stack trace if available
To Reproduce
Steps to reproduce the behavior:
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):

OS: Linux
IDE :  IntelliJ
3.3

Additional context
Add any other context about the problem here.
it seems that are not able to manage this type of response:
assume you have configured b2c with  an redirect uri  http://localhost:4200/login/oauth2/code/
it works when you do the right steps but , if you click on a back button on b2c , framework redirect to url as
Securing GET /login/oauth2/code/?error=access_denied&error_description=AADB2C90091%3a+The+user+has+cancelled+e │
│ ntering+self-asserted+information.%0d%0aCorrelation+ID%3a+17f0927d-faf2-44d0-a4fe-724568f351fd%0d%0aTimestamp%3a+2021-06-03+11%3a41%3a42Z%0d%0a&state= etc..
that are error managed by b2c that the library can't manage

@stliu could you triage this to the appropriate person

the same about the fogotten password
error#error=access_denied&error_description=AADB2C90118%3a+The+user+has+forgotten+their+password.%0d%0aCorrelation+ID

Hi, @letmagnau
Now I'm using this sample to reproduce your problem.

Problem 1:

it works when you do the right steps but , if you click on a back button on b2c , framework redirect to url as
Securing GET /login/oauth2/code/?error=access_denied&error_description=AADB2C90091%3a+The+user+has+cancelled+e │
│ ntering+self-asserted+information.%0d%0aCorrelation+ID%3a+17f0927d-faf2-44d0-a4fe-724568f351fd%0d%0aTimestamp%3a+2021-06-03+11%3a41%3a42Z%0d%0a&state= etc..

Sorry I can not reproduce this problem. Does back button on b2c mean the back button of browser? Like this:

Problem 2:

the same about the fogotten password
error#error=access_denied&error_description=AADB2C90118%3a+The+user+has+forgotten+their+password.%0d%0aCorrelation+ID

I can not reproduce this problem, did you configure azure.activedirectory.b2c.user-flows.password-reset?

Suggestion:
Please try to use this sample to reproduce your problem. If you problem still exist, please share your application.yml.

Hi mr chenrujun
but my question seems to be very easy to reproduce... also using the same project
we don't want our client use the back browser action, but we want to use tha CANCEL interaction.. as in the image

and  the result was

but this happen in all the other managed error of b2c

Hi, @letmagnau .
Thank you for your detailed description.
Current logic is default logic in spring-security.
Refs:

SimpleUrlAuthenticationFailureHandler.
DefaultLoginPageGeneratingFilter.

Here is possible solutions about these errors:

Use the page generated by DefaultLoginPageGeneratingFilter. It's current choice, I think it's acceptable.
Our library generate a web page, it may not satisfy all customers.
Our library eat the error message. It's not good, it may confuse both app user and app developer.
App developer DIY their error page in WebSecurityConfigurerAdapter:

    protected void configure(HttpSecurity http) throws Exception {
        // @formatter:off
        http.authorizeRequests()
                .anyRequest().authenticated()
                .and()
            .apply(configurer)
            .and()
            .oauth2Login()
            .failureHandler(yourFailureHandler);
        // @formatter:off
    }

Closing this issue because no response from customer for a long time.


GH-45003: [Python][Docs] Update docstrings for metadata methods on Field and Schema classes

Rationale for this change
The docstrings here are not completely accurate. See https://github.com/apache/arrow/issues/45003.
I looked at whether it would make more sense or be more natural for methods like these to return an empty dict instead of None and I think None feels better from an API design and usage perspective.
What changes are included in this PR?
Updated docstrings to reflect actual behavior.
Are these changes tested?
While the changes don't need testing, I did check to see if we have unit tests for the behavior that's been documented here. We do.
Are there any user-facing changes?
Accurate docs.

GitHub Issue: #45003

If I look for example at pa.Table.replace_schema_metadata, the metadata there can be a dict or None. So I agree with returning None here also when the metadata is empty.


[BUG] AuthenticationFailedException: ManagedIdentityCredential authentication failed. An unexpected error occured while fetching the AAD Token

Library name and version
Azure.Identity 1.10.4
Describe the bug
Hi all! I'm trying to setup API-to-API authorization using Managed identities.
I have two web APIs, let's say Client.API and Server.API. In Azure AD Managed Identity service principal for Client.API has appropriate role assigned for Server.API.
I'm using the next code snippet in Client.API (.NET 6) to get an access token and perform request from Client.API to Server.API:
var credentials = new DefaultAzureCredential(new DefaultAzureCredentialOptions
{
    ExcludeSharedTokenCacheCredential = true,
    ExcludeVisualStudioCodeCredential = true,
    ExcludeVisualStudioCredential = true,
    VisualStudioTenantId = "<my-tenant-id>",
});

var tokenResult = credentials.GetToken(new Azure.Core.TokenRequestContext(new[] { "<server-api-app-id>/.default" }));

And it failes on the last line with the next error:
[AuthenticationFailedException] ManagedIdentityCredential authentication failed: Service request failed.\r\nStatus: 500 (Internal Server Error)\r\n\r\nContent:\r\n{\"statusCode\":500,\"message\":\"An unexpected error occured while fetching the AAD Token.\",\"correlationId\":\"d61c989c-ca38-4ab1-aad1-fc1443b89887\"}\r\n\r\nHeaders:\r\nDate: Tue, 19 Dec 2023 11:48:16 GMT\r\nServer: Kestrel\r\nTransfer-Encoding: chunked\r\nX-CORRELATION-ID: REDACTED\r\nContent-Type: application/json; charset=utf-8\r\n\nSee the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot"
Stack stace:
Expected behavior
Authentication through Azure AD Managed Identity works well
Actual behavior
The next exception was thrown:
"exception": {
        "ClassName": "Azure.Identity.AuthenticationFailedException",
        "Message": "ManagedIdentityCredential authentication failed: Service request failed.\r\nStatus: 500 (Internal Server Error)\r\n\r\nContent:\r\n{\"statusCode\":500,\"message\":\"An unexpected error occured while fetching the AAD Token.\",\"correlationId\":\"d61c989c-ca38-4ab1-aad1-fc1443b89887\"}\r\n\r\nHeaders:\r\nDate: Tue, 19 Dec 2023 11:48:16 GMT\r\nServer: Kestrel\r\nTransfer-Encoding: chunked\r\nX-CORRELATION-ID: REDACTED\r\nContent-Type: application/json; charset=utf-8\r\n\nSee the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot",
        "Data": null,
        "InnerException": {
            "Status": 500,
            "ErrorCode": null,
            "ClassName": "Azure.RequestFailedException",
            "Message": "Service request failed.\r\nStatus: 500 (Internal Server Error)\r\n\r\nContent:\r\n{\"statusCode\":500,\"message\":\"An unexpected error occured while fetching the AAD Token.\",\"correlationId\":\"d61c989c-ca38-4ab1-aad1-fc1443b89887\"}\r\n\r\nHeaders:\r\nDate: Tue, 19 Dec 2023 11:48:16 GMT\r\nServer: Kestrel\r\nTransfer-Encoding: chunked\r\nX-CORRELATION-ID: REDACTED\r\nContent-Type: application/json; charset=utf-8\r\n",
            "Data": null,
            "InnerException": null,
            "HelpURL": null,
            "StackTraceString": "   at Azure.Identity.ManagedIdentitySource.HandleResponseAsync(Boolean async, TokenRequestContext context, Response response, CancellationToken cancellationToken)\r\n   at Azure.Identity.ManagedIdentitySource.AuthenticateAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)\r\n   at Azure.Identity.ManagedIdentityClient.AuthenticateCoreAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)\r\n   at Azure.Identity.ManagedIdentityClient.AppTokenProviderImpl(AppTokenProviderParameters parameters)\r\n   at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.SendTokenRequestToAppTokenProviderAsync(ILoggerAdapter logger, CancellationToken cancellationToken)\r\n   at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.GetAccessTokenAsync(CancellationToken cancellationToken, ILoggerAdapter logger)\r\n   at Microsoft.Identity.Client.Internal.Requests.ClientCredentialRequest.ExecuteAsync(CancellationToken cancellationToken)\r\n   at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken)\r\n   at Microsoft.Identity.Client.ApiConfig.Executors.ConfidentialClientExecutor.ExecuteAsync(AcquireTokenCommonParameters commonParameters, AcquireTokenForClientParameters clientParameters, CancellationToken cancellationToken)\r\n   at Azure.Identity.AbstractAcquireTokenParameterBuilderExtensions.ExecuteAsync[T](AbstractAcquireTokenParameterBuilder`1 builder, Boolean async, CancellationToken cancellationToken)\r\n   at Azure.Identity.MsalConfidentialClient.AcquireTokenForClientCoreAsync(String[] scopes, String tenantId, Boolean enableCae, Boolean async, CancellationToken cancellationToken)\r\n   at Azure.Identity.MsalConfidentialClient.AcquireTokenForClientAsync(String[] scopes, String tenantId, Boolean enableCae, Boolean async, CancellationToken cancellationToken)\r\n   at Azure.Identity.ManagedIdentityClient.AuthenticateAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)\r\n   at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)",
            "RemoteStackTraceString": null,
            "RemoteStackIndex": 0,
            "ExceptionMethod": null,
            "HResult": -2146233088,
            "Source": "Azure.Identity",
            "WatsonBuckets": null
        },
        "HelpURL": null,
        "StackTraceString": "   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean isCredentialUnavailable)\r\n   at Azure.Identity.ManagedIdentityCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)\r\n   at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted[T](ValueTask`1 task)\r\n   at Azure.Identity.ManagedIdentityCredential.GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)\r\n   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)\r\n   at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)\r\n   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean isCredentialUnavailable)\r\n   at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)\r\n   at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted[T](ValueTask`1 task)\r\n   at Azure.Identity.DefaultAzureCredential.GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)",
        "RemoteStackTraceString": null,
        "RemoteStackIndex": 0,
        "ExceptionMethod": null,
        "HResult": -2146233088,
        "Source": "Azure.Identity",
        "WatsonBuckets": null
    }

Reproduction Steps
Create two APIs
Grand a role for managed identity service principal to give an access. (In my case I used New-MgServicePrincipalAppRoleAssignment command in PowerShell)
Try to use DefaultAzureCredential class from Azure.Identity nuget package to get an access token via its GetToken method.
Environment
Azure App service running on Windows, .NET 6

Hi @AnnaGolosova.  Thank you for reaching out and we regret that you're experiencing difficulties.  The error that you're seeing indicates that the managed identity endpoint returned a service error to the client.  The ManagedIdentityCredential has no insight nor influence over the service behavior.   In this case, the response code and error message indicate that the service itself experienced an exception.
Unfortunately, other than the general guidance in the Troubleshoot ManagedIdentityCredential authentication issues section of the Troubleshooting Guide, there's no assistance that we can provide.  Your best path forward would be to open an Azure support request.
I'm going to close this out;  if I've misunderstood what you're describing, please let us know in a comment and we'd be happy to assist as we're able.

During more deep investigation I've found that I configured access to the wrong target app that caused an issue. So when you get 500 status code it may mean permissions issue (Why not 403 - good question to Azure 😁)
Here's a few steps that helped me to investigate an issue. Open Kudu for Client.API app service. Go to DebugConsole -> CMD and run some of these commands:
curl -v -H X-IDENTITY-HEADER:%IDENTITY_HEADER% "%IDENTITY_ENDPOINT%?api-version=2019-08-01&resource=https%3A%2F%[2Fvault.azure.net](http://2fvault.azure.net/)" to check and access to KeyVault
curl -v -H X-IDENTITY-HEADER:%IDENTITY_HEADER% "%IDENTITY_ENDPOINT%?api-version=2019-08-01&resource=<target-app-reg-id>/.default" to check an access to the target resource
If all permissions configured fine, you will get 200 (OK) with access token. And in my case 500 was because of missing permissions.


adapter and ng-show

Hi,
I need to hide some elements displayed using ui.scroll.
I'm using version 1.6.3.
If you modify the basic adapter demo/adapter/adapter.html like this:

  ng-show="false"   <---------
	        buffer-size='5'>{{item.content}}

nothing happens, all items will continue to be shown.
If you replace ng-show with ng-if, you should get an exception like this:
TypeError: Cannot read property 'toLowerCase' of undefined
at new Padding (http://<IP_ADDRESS>:8000/dist/ui-scroll.js:1088:28)
at JQLite.createPaddingElements (http://<IP_ADDRESS>:8000/dist/ui-scroll.js:883:20)
at http://<IP_ADDRESS>:8000/dist/ui-scroll.js:1274:16
at publicLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:6956:29)
at boundTranscludeFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7096:16)
at controllersBoundTransclude (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7756:18)
at link (http://<IP_ADDRESS>:8000/dist/ui-scroll.js:1273:5)
at invokeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:8219:9)
at nodeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7729:11)
at compositeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7078:13)
maybe there is a better way to hide some elements and at the same time use the adapter.
Can you help me on this, please?
Thank you for your job,
Emanuele

@emabiz First of all, thanks for the issue. I made a little update on the directive sources, so the next time (the next release I mean) you'll get the meaningful error: 'ui-scroll directive requires an Element node for templating the view'.
May I ask you, what is your use case? The situation when you put ng-if="false" on the template during/before ui-scroll initialization is not normal, it surely leads to problems. I can think a bit more and give your detailed explanation, but it would be better if we would search a solution for your exact use case instead.

Actually, ran into this problem too, and to be honest I just assumed I was doing something wrong and hacked around it (since I didn't see this problem on any of the demos, just in my project).
The short version is I added an extra check inside the Padding constructor to fall back to using

 if it would have otherwise failed.  It's a late hour for me right now, but tomorrow sometime if you haven't already started making headway on this I'll see if I can replicate on a plunker for you.

@zacronos This would be helpful, I believe, thanks!

Hi,
my real scenario is to display a long list of contacts, that can be added and removed dinamically. So I'm using the adapter.
Some contacts could be shown or not following some rules.
Sorry in my initial post the pasted html has been broken by github. Is was:

{{item.content}}

In the example above I put simply ng-show="false" for every item, but in my code I have a function.
Now I'm changing my code filtering the list that has to be displayed before to pass it to the datasource/adapter.
But before using uiscroll I have a simple ng-repeat directive plus ng-show and was working.
Replacing ng-repeat with ui-scroll caused ng-show stop working.
I have also another question. In the controller how can I do to know when the adapter is created?
It is not created immediately. I can be sure that the adapter exists only after the $scope.datasource.get callback has been triggered once
Thank you,
Emanuele

Ok, here is a plunker: https://plnkr.co/edit/sIbgmzBkw5c2puWRQkBk
I saw this myself a few days ago when I first started using ui-scroll and hacked around it, but later realized I was in fact doing things wrong and took my ng-if off the ui-scroll element, which made my hack unnecessary.  I could definitely see most people giving up however rather than digging in the way I did.
I'm not sure what the correct approach to solving this is.  There seem to be 2 (possibly unrelated) issues, which can be verified in the plunker:

ng-show and ng-hide don't work on the ui-scroll element (they don't add the .ng-hide class, so all elements continue to be visible)
ng-if on the ui-scroll element causes the whole thing to crash and burn with the error mentioned above (Cannot read property 'toLowerCase' of undefined)

The use case for those things is that someone for whatever reason may have a datasource which provides elements, but which they then want to filter later so not all are displayed.  Since there's no built-in way to filter data in ui-scroll the way one can with ng-repeat's  | filter:<something> syntax, I would imagine ng-show and ng-if is something a lot of people are likely to try (even if there is perhaps a better way from ui-scroll's perspective).
It may be possible to fix things so that those 3 directives to function as intended, but my gut instinct is that's going to be a lot of effort, and likely not worth it.  So instead, a solution would probably involve add to the README to explain that ng-show, ng-hide, and ng-if are forbidden on the ui-scroll element, and that the proper way to filter ui-scroll elements is inside the datasource.
Ideally, we would also put some checks in the code to throw informative errors if those directives are detected on the ui-scroll element.
As a further aid to this use case, it might be possible to add a new attribute binding called filter or something similar, which receives a function by which elements from datasource.get() can be filtered from display.  But that's probably pretty substantial work as well, so the above (documentation and informative errors) is likely the best short-term fix, IMO.

@emabiz As for how to detect that the adapter is in place, you can always use if ($scope.datasource.adapter) {} to look for it directly.  If necessary, you could queue up the things you need to do on the adapter, and then set up a $interval timer to check for it and perform the actions once it exists.

@emabiz Regarding to your question on adapter initialization, I created a separate issue: https://github.com/angular-ui/ui-scroll/issues/183. The answer is to use scope.$watch.

Regarding ng-hide/ng-show. That directives put on the ui-scroll element may not work due to internal mechanism of visualization optimization (look here and here) – the ui-scroll engine hides elements after inserting and before data binding and then shows them again after the data has been bound. And ng-hide class is being used for that. Maybe it's a good idea to replace it with for example ui-scroll-ng-hide class... that should allow ng-hide/ng-show directives.
But the main problem here is that the fetching mechanism works with real heights, and if all items fetched in a previous turn are hidden, then the next fetch will be trigger immediately right after the data is bound because the viewport won't be filled. This will cuase unlimited fetching issue.

Ho guys,
Thank you for your previous anwers.
So, if I have for example to add a search component that allows to filter elements on the list, how do I have to proceed? Prefilter elements and manually update the adapter? What do you suggest?

@emabiz, keep in mind you should listen to @dhilt over me, as I've only recently started working with ui-scroll.
But generally yes, you are correct.  It sounds like currently, ui-scroll is not really built to handle elements that will change height, and that includes elements which will change height from hidden / 0px to some other height or vice versa.
If you need to dynamically filter elements within ui-scroll, the correct place to do that is before/during datasource.get().  If the filter criteria changes, you either need to use adapter. topVisible and adapter. bottomVisible (or one of their variants) along with adapter.applyUpdates/adapter.prepend/adapter.append to enforce changes in the currently-displayed elements.
Or alternatively, you could use adapter. topVisible or adapter. topVisibleScope to determine the index of the top visible item, and simply call adapter.reload(topVisibleIndex) to refresh the ui-scroll data via new calls to datasource.get() so you can handle all the filtering there.  I think this approach would yield simpler/cleaner code, but could cause re-rendering of some existing ui-scroll items that didn't really need to be re-rendered, and so is a bit wasteful on performance.  If that's OK for your app, I'd be inclined to suggest the adapter.reload(topVisibleIndex) approach.

@dhilt, I see what you are saying.  So it seems like the answer at least for now is probably just to add / further refine the error messages, and add documentation?  If you think that's a good idea, I may try to work on this unless you want to handle it quicker (I'd probably get the PR up sometime in the next week).
I might also make PR adding a couple example pages which implement list filters using those 2 approaches I just described.  It feels like a common enough use case (dynamically filtering a list on client-side) that it would be useful to show the recommended way to approach it.

@zacronos
The ui-scroller certainly could handle items with different heights and here is unpublished demo on the subject. Also, here is the logic to consider the heights dynamic updates (not sure if it's tested well).
Then, here  is the code to watch for items which are inserted being invisible. The scroller updates yourself when invisible item becomes visible. And the demo: scroll 20-40 pages down, then go to the top. And when items retrieving is in progress, turn off the viewport visibility. This will cause fetching process stop (and I was not right when I spoke about unlimited fetching issue, this and this conditions will be false due to effectiveHeight = 0). But then you would turn the viewport visibility on, which will make items visible and which will trigger further fetching.
So I can't agree with you on these 2 points.
The problem with ng-if is that Angular starts ui-scroll directive processing before ng-if destroys it (I believe this is so due to priority 1000 which is higher then 600). But ng-if happens before Paddings templating which causes toLowerCase undefined error (I changed the error in the branch). You see, it's not the same as ng-show issue I mentioned earlier.
PS I will answer to your last comment a bit later, thanks for your suggestions and help!

@emabiz
I agree with datasourse solution for search logic. The datasource is a proxy between scroller and remote data source. If no search is presented, the proxy do nothing but calls the remote with index-count params and passes the result to the scroller via success callback. If search is presented, the datasource calls the remote with index-count-search params and again passes the result to the scroller. If you want client-side-only filtering, then Adapter.applyUpdates is your friend.

@zacronos Sorry, I was involved into a long story with https://github.com/angular-ui/ui-scroll/pull/184 PR and it sucked my energy out. A new example(s) would be very helpful! Try also this demo, it does not work properly in master, but in a branch it's ok. Maybe it would be a good idea to provide Server factories conglomerate like it is done for test-datasources... I think it should displace the data generator logic for most part of current fake demo-datasources. One simple Server factory (just to satisfy index-count calls), one from branch's adapterSync demo (to provide append/prepend/remove functionality) and one for your new sample (for index-count-search calls).
Regarding documentation, just open the PR and let's discuss it in details.

@emabiz I introduced .ng-ui-scroll-hide class instead of .ng-hide for view optimization purposes, so the initial issue with ng-show directive should go away. The code is in branch and this will be included in the next release. Regarding ng-if, I put some explanation here. As a workaround the ng-if directive could be used within the ui-scroll template in a way like

    {{item.text}}

And I agree, that we may update the documentation...

Hi,
I tried the ng-show fix of the branch with the adapter demo, as before.
Now if I put ng-show="false" it works, nothing is shown.
But if I use this:

{{item.content}}

$scope.isVisible=function(){
        var res=Math.floor((Math.random() * 10) + 1)>5;
        return res;
    }

I get this exception:
angular.js:11607 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [[{"msg":"isVisible()","newVal":true,"oldVal":false},{"msg":"isVisible()","newVal":false,"oldVal":true},{"msg":"isVisible()","newVal":false,"oldVal":true}],[{"msg":"isVisible()","newVal":false,"oldVal":true},{"msg":"isVisible()","newVal":true,"oldVal":false}],[{"msg":"isVisible()","newVal":true,"oldVal":false},{"msg":"isVisible()","newVal":true,"oldVal":false}],[{"msg":"isVisible()","newVal":true,"oldVal":false}],[{"msg":"isVisible()","newVal":false,"oldVal":true},{"msg":"isVisible()","newVal":false,"oldVal":true},{"msg":"isVisible()","newVal":true,"oldVal":false}]]
http://errors.angularjs.org/1.3.14/$rootScope/infdig?p0=10&p1=%5B%5B%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Afalse%2C%22oldVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Afalse%2C%22oldVal%22%3Atrue%7D%5D%2C%5B%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Afalse%2C%22oldVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%5D%2C%5B%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Afalse%2C%22oldVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Afalse%2C%22oldVal%22%3Atrue%7D%2C%7B%22msg%22%3A%22isVisible()%22%2C%22newVal%22%3Atrue%2C%22oldVal%22%3Afalse%7D%5D%5D
    at angular.js:63
    at Scope.$digest (angular.js:14281)
    at processUpdates (ui-scroll.js:347)
    at adjustBufferAfterFetch (ui-scroll.js:375)
    at ui-scroll.js:416
    at adapter.js:20
    at angular.js:16223
    at completeOutstandingRequest (angular.js:4905)
    at angular.js:5285

is it allowed, or I'm doing something wrong?

@emabiz This issue does not relate to ng-show and even to ui-scroll. Try

{{isVisible()}}

and you'll get the same error. This is how the AngularJS dirty checking works. It scans the scope for changes. As all watched entities are in a single loop (digest cycle), any value change of any variable forces to reassign values of other watched variables in DOM. The isVisible() call is that watched entity which forces the {{isVisible()}} interpolation string to be rebuilt. That digest cycle has only 10 levels in the deep and on each turn your isVisible() returns random value, so he can't stop.
As a workaround you may pass to your controller's isVisible method an index variable

{{item.content}}

and store the results on scope to make it constant during digest cycle (until the index is not changed)
    let visibilityList = [];
    $scope.isVisible = (index) => {
      const found = visibilityList.find(v => v.index === index);
      if(found) {
        return found.value;
      }
      const value = Math.floor((Math.random() * 10) + 1) > 5;
      visibilityList.push({
        index: index,
        value: value
      })
      return value;
    };

Ah sorry for that,
I just wrote the first thing that came to my mind in order to change the visibility of items.
Then for me the fix works and the issue can be closed.
I wait for a release that contains it.
Thank you very much!
:)

@emabiz Will close it when v1.7.0 will be released, thanks!

Closed due to v1.7.0-rc.4 containing these fixes has been released.


vips_colourspace: no known route from 'srgb' to 'rgb'

[My Background: I don't have much knowledge on image processing ]
Code
 let image = sharp(this.fileData) // this.fileData is a buffer.
      .clone()
      .toColorspace('rgb')
      .jpeg()
     .toBuffer();

And file meta data
{ format: 'png',
  size: 196626,
  width: 1280,
  height: 1024,
  space: 'srgb',
  channels: 4,
  depth: 'uchar',
  density: 72,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: true
}

One more thing. According to the document,
Throws Error Invalid parameters

If I do toColourspace("foo"), i don't getting any error.

Hello, conversion from non-linear sRGB to linear RGB requires a colour profile, however you'll have to wait for #1323 to address this. Please subscribe to it for updates.
I agree that the current validation is too loose - I expect #1323 to address this also.


doc: Add Known Issues to readme.

Adds known issues and workarounds to the readme file for users to find in Obsidian. Discusses issues #11 and #15.

Thanks for the write up. I'll rewrite this plugin in a few weeks (waiting on a new mac... Intel chip is too slow.)
The current functionality where - [ ] gets replaced automatically will likely disappear, and will be replaced by a command. Kind of like what's mentioned in #16


qc.draw() fails for 3-qubit dynamic circuit

Informations

Qiskit version:

$ pip list |grep qiskit
pytket-qiskit            0.34.0
qiskit                   0.41.0
qiskit-aer               0.11.2
qiskit-experiments       0.4.0
qiskit-ibm-experiment    0.2.8
qiskit-ibm-provider      0.2.1
qiskit-ibm-runtime       0.8.0
qiskit-terra             0.23.1

Python version:
$ python3 -V
Python 3.10.6

Operating system:
Ubuntu 22

What is the current behavior?
Printing of dynamic circuit with 3 conditional gates crashes with the error:
Traceback (most recent call last):
File "/quantumMind/Qiskit/issues/./issue10_dynTwo.py", line 32, in
print(qc.draw(output="text", idle_wires=False))
File "/usr/local/lib/python3.10/dist-packages/qiskit/visualization/circuit/text.py", line 707, in str
return self.single_string()
File "/usr/local/lib/python3.10/dist-packages/qiskit/visualization/circuit/text.py", line 728, in single_string
return "\n".join(self.lines()).encode(self.encoding).decode(self.encoding)
File "/usr/local/lib/python3.10/dist-packages/qiskit/visualization/circuit/text.py", line 771, in lines
layers = self.build_layers()
File "/usr/local/lib/python3.10/dist-packages/qiskit/visualization/circuit/text.py", line 1201, in build_layers
layer.connect_with("│")
File "/usr/local/lib/python3.10/dist-packages/qiskit/visualization/circuit/text.py", line 1525, in connect_with
affected_bit.connect(wire_char, ["bot"])
AttributeError: 'NoneType' object has no attribute 'connect'
Steps to reproduce the problem
Execute this program. Note, if nq=3 is changed to nq=2 program runs correctly
import qiskit as qk
import qiskit.qasm3
import sys
#...!...!....................
def circMcbXM(nq):
    crPre = qk.ClassicalRegister(nq, name="pre")
    crPost = qk.ClassicalRegister(nq, name="post")
    qr = qk.QuantumRegister(nq, name="q")
    qc= qk.QuantumCircuit(qr, crPre,crPost,name='McbXM')
    for i in range(nq):
        qc.h(i)
        qc.measure(i,crPre[i])
        with qc.if_test((crPre[i], i)):
            qc.x(i)  # conditionla state flip
        qc.measure(i, crPost[i])
    return qc

# -------Create a Quantum Circuit
nq=3
qc=circMcbXM(nq)
print('created circ for nq=',nq)

print('M: dump QASM3 idela circ:\n')
qiskit.qasm3.dump(qc,sys.stdout)
print('\n  --- end ---\n')
print(qc.draw(output="text", idle_wires=False))

What is the expected behavior?
circuit should be printed
Suggested solutions

the circuit is invalid because for the 3rd qubit the condition :  with qc.if_test((crPre[i], i) has i=2
After the line is changed to
with qc.if_test((crPre[i], 0)
All works.


Update README.md

I noticed the read mentions that the current machineState is found in the component's state. It is actually found in the component's props.

Good catch, thank you very much @lopis.


optimize views

There should generally not be a need to redundantly store stream geometries in materialized views.

create materialized views where needed, with segmented_stream_id as pk
create non materialized views linking above with streams table and geoms

The only views that could use this tweak are the FPTWG salmon/steelhead views.

covered by #437


Comments in multiline array

Hello
I have two questions regarding comments in multiline arrays (for which I couldn't find documentation).
I'm using tomlkit 0.12.4.
Consider the following code:
import tomlkit

content = """[foo]
bar = [
    "one", # comment one
    "two", # comment two
]
"""

data = tomlkit.loads(content)

Is there a way to read the comments with respect to the array entries?

I was expecting data["foo"]["bar"][0].trivia, but this doesn't have information about the comment (neither does data["foo"]["bar"].trivia).
I know I can do data["foo"]["bar"].as_string() but there I'd have to parse them myself from the string.

(How) can I write multiline arrays with comments?

Thanks in advance!

Comments are not tied to the array items because there is no clear relation between them, you may think there is, look at this example:
a = [
    "item1", "item2",  # type a items
    "item3", "item4",  # type b items
]

What do the comment belong to? A natural idea is that the annotation follows the previous item, right?
But what should happen when user removes "item2" from the list? If the comment is with the item, it will be gone too.
But in this case, the comment is about the line, not any specific item. I think you would agree the comment should remain in this case.

Thank you for your counter-example, I agree with your reasoning but didn't consider such a case since I'm used to write one element per line.


Projectile Conundrum (Cube Button)

Whenever a projectile is destroyed after the 10-second period, it doesn't trigger an On...Exit event, so anything that detected it as entering without leaving before its destruction will believe it's still there. This breaks systems such as the cube button that are reliant on objects entering and leaving the trigger to know when to close the door.

Current idea is to make a trigger collider on the projectiles, and detect when they collide with another trigger, then interact with that trigger to trigger the door close on destroy. Just gotta figure out how.

Proposed solution works, implemented in the commit referencing this issue. Closing until further bugs are found.


Add Demo buttons for new UI components

Environment

Documentation version: 7.0
Part of the documentation: Manual

Description of the bug or enhancement
Add Demo buttons for the following UI components:

TreeDataGrid - https://demo.cuba-platform.com/sampler/open?screen=tree-datagrid
CheckBoxGroup - https://demo.cuba-platform.com/sampler/open?screen=checkboxgroup-simple
RadioButtonGroup - https://demo.cuba-platform.com/sampler/open?screen=radiobuttongroup-simple
JavaScriptComponent - https://demo.cuba-platform.com/sampler/open?screen=java-script-component

Also, remove the Demo button for the Frame component as there is no such sample anymore.


Null reference when opening DashboardView in web

related to #183 (view.ObjectTypeInfo is null)

can you post a sample, in the meant time a solution that is possible to workaround can be found in #193

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


Removing the character '&' from config.xml

I change '&' with 'and' because that character may create problems while parsing the config.xml
In my Ionic2 project I had to remove ios and put it back.
But I couldn't do it because of this error:
Error parsing /Applications/my_project/alpha7/plugins/cordova-plugin-nativeaudio/plugin.xml. Error: Invalid character in entity name Line: 8 Column: 54
After changing '&' with 'and' everything worked out fine.

+1
seems to be similar to #94
same here: http://www.saintsatplay.com/blog/2016/04/resolving-ionic-app-invalid-character-entity-warning-on-android#.WId9VGeIfRY
maybe we can merge the PRs and fix it with masked "&" instead of "and"


Load OAuth 2.0 token exchange credentials provider from config file

Load OAuth 2.0 token exchange credentials provider from config file
Implement RFC part in Java SDK: https://github.com/ydb-platform/ydb-rfc/blob/main/cli_oauth2_token_exchange.md

Codecov Report
Attention: Patch coverage is 82.30088% with 40 lines in your changes missing coverage. Please review.

Project coverage is 46.47%. Comparing base (2327294) to head (bf62f5a).

Files
Patch %
Lines

...ava/tech/ydb/auth/OAuth2TokenExchangeProvider.java
84.65%
9 Missing and 20 partials :warning:

...src/main/java/tech/ydb/auth/OAuth2TokenSource.java
70.27%
7 Missing and 4 partials :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #296      +/-   ##
============================================
+ Coverage     45.87%   46.47%   +0.60%
- Complexity     1638     1677      +39
============================================
  Files           303      303
  Lines         11874    12082     +208
  Branches       1153     1207      +54
============================================
+ Hits           5447     5615     +168
- Misses         6013     6030      +17
- Partials        414      437      +23

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


SSL routine wrong version number on gcloud beta emulators pubsub

Error:
E0831 07:46:08.107115000<PHONE_NUMBER>01024 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
Environment details

OS:  darwin x64
Node.js version: 8.4.0
npm version: 5.3.0
google-cloud/pubsub version: 0.14.0
gcloud pubsub-emulator 2017.08.07
Google Cloud SDK 169.0.0

Steps to reproduce

require google-cloud/pubsub
topic=pubsub.topic('name)
publisher= topic.publisher()
publisher.publish(new Buffer('message'),cb)

Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!

BUMP!
I am having the same issue after upgrading to 0.14.0
E0831 18:52:02.729735573   17326 ssl_transport_security.c:940] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
Environment details

OS: Ubuntu 17.04
Node Version: 6.11.2
npm version: 3.10.10
pubsub-emulator: 2016.08.19
Google Cloud SDK: 130.0.0

Steps to reproduce
let client = require('@google-cloud/pubsub')(config);
client.createTopic('fooBar', (err) => console.log(err));

PS - Thanks @lafama for the idea to give the environment details and the steps to reproduce!

@lafama @mkamioner sorry about that! I've made a PR with a potential fix (https://github.com/GoogleCloudPlatform/google-cloud-node/pull/2583), would either of you be so kind as to test it out for me?

@callmehiphop i have tried the new code. Still the same problem
E0901 07:40:06.674602000<PHONE_NUMBER>01024 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.

@callmehiphop your PR #2583 solved this issue for me. (just copied the two changed lines into my<EMAIL_ADDRESS>Thanks, saved my day!
Environment details
OS: Arch Linux
Node Version: 6.11.1
npm version: 4.6.1
pubsub-emulator: not sure
Google Cloud SDK: 169.0.0

@lafama could you prepare some code that reproduces this issue for me?

@callmehiphop i think i was not over-writing the file @biggestT  mentioned. Now it works
Thank you

Ok, PR #2583 fixes this for me too. When will it be published on npm?

@jasperkuperus just published 0.14.1


Why is histogram hardcoded to u64?

Can't histogram be generic and receive any type instead of being hardcoded to accept only u64?

(sorry, I don't know how I missed the notification for this issue)
Yes, it can. This is just a very old crate and my use-case at the time only focused on u64. I have a different library I am using now that does use generics, but it's not published to crates.io yet.

any update on the generic histogram (f64 and negative values)?

I built histo_fp for int and float samples (and buckets)
Check it out


Issues with rotation order.

Rotating object does not seem to fit the rotation order of my engine. The Gizmo and mesh end up not matching at all. Is there a particular rotation order that must be followed?

RotX * RotY * RotZ
check https://github.com/CedricGuillemet/ImGuizmo/blob/master/ImGuizmo.cpp#L1593


Upg: show usage by agents in all screens. Opt: improve performance of usage query. Fix: handle all cases of usages (table, process, retrieval).

Description

Update usage queries to make them faster and retrieve the assistants names.
Add Used By columns and fix sorting.
Split useVaultDataSourceViews in 2 hooks, one without details, the other one with details to leverage typing correctly.

Risk
Queries might not be fast enough (but it seems fine from my testing in prod with our largest customer).
Deploy Plan
Deploy front

@JulesBelveze query plan of the heaviest one:

As for caching I hesitated because:

is it a premature optimization ?
i'm thinking of people going to delete the assistant so they can remove the vault or source and they can't until the cache has done it's job.

What i can do is implement a switch to disable the queries in case of emergency :)
WDYT ?

is it a premature optimization ?

Well we've been there with @philipperolet with agents usage and started up without caching (as the caching wasn't working initially) we rapidly found out that the queries were hammering the db.
But I mean, queries are different so might not happen with these ones 😇

i'm thinking of people going to delete the assistant so they can remove the vault or source and they can't until the cache has done it's job.

I'm sure we can find ways to overcome this 😎

But I mean, queries are different so might not happen with these ones 😇

I'll add the flag and monitor.
Happy to go down the caching road then (really, i love caching stuff !).

LGTM ! maybe we can just test and monitor on front-edge instead of a flag ?

I tried on front-edge and it was fast for our workspace but I guess it depends on concurrency etc.. ?


Add React hooks for customization (part 4)

Related to #2539.

Please merge #2540, #2541 and #2542 before reviewing this one.

Note to myself: check test fail if it is related to missing Adaptive Cards Host Config. Also, add a test for customization the host config.

Changelog Entry

Resolves #2539, added React hooks for customization, by @compulim and @corinagum, in the following PRs:

PR #2540: useActivities, useReferenceGrammarID, useSendBoxDictationStarted
PR #2541: useStyleOptions, useStyleSet
PR #2542: useLanguage, useLocalize
PR #2543: useAdaptiveCardsHostConfig, useAdaptiveCardsPackage, useRenderMarkdownAsHTML

Bring your own Adaptive Cards package by specifying adaptiveCardsPackage prop, by @compulim in PR #2543

Description
Add useAdaptiveCardsHostConfig, useAdaptiveCardsPackage and useRenderMarkdownAsHTML.
Specific Changes

Added the following hooks:

useAdaptiveCardsHostConfig
useAdaptiveCardsPackage
useRenderMarkdownAsHTML

Updated components to use aforementioned hooks
Added an entry prop adaptiveCardsPackage for easily specifying custom Adaptive Cards package

[ ] Testing Added

[ ] Adds a test custom Adaptive Cards package
[x] Adds a test for customizing Adaptive Cards host config

Coverage increased (+0.8%) to 64.189% when pulling 564c821c54144b8a436b59e5e1f6802df0785073 on compulim:feat-redux-hooks-4 into 9b06bccb13fabd76e320afabb9ae3bda48ed35c2 on microsoft:master.


llLoopSound

Seems to be implemented in
halcyon/InWorldz/InWorldz.Phlox.Engine/LSLSystemAPI.cs
        public void llLoopSound(string sound, float volume)         {             m_host.UpdateSound(KeyOrName(sound), volume, SoundFlags.Loop); }
So the following script SHOULD work:
//================
float volume = 1.0;
// This will determine how loud the sound will play (from 0 to 1)
integer on = TRUE;
// this is an integer (whole number) that switches between off (FALSE, or 0) and on (TRUE, or 1)
// We start with the integer set to TRUE (on)

default
{
    state_entry()
    {
            //If you want to script to do something whenever it starts, your code goes here
    }

    touch_start(integer x)
        // When touch starts

     {
        if (on == TRUE)
        {
             // Loop Sound
            llLoopSound("00a31197-3c8a-2d76-1ea0-09372a592ad7", 1);
             on = FALSE;

        }

    else if (on == FALSE)
        {
             // Stop Sound
             llStopSound();
             on = TRUE;

        }

    }
}

// ====================

But it doesn't. It only plays the sound once.
Am I missing something or is something broken?

I had noticed cases in InWorldz where looped sounds would only play once.  However, this only occurred with objects which had been sitting in inventory unused for years, and a reset would fix them.

A reset didn't fix the issue.

I didn't say it would, I was just referring to a secondary issue.
Does the problem still occur when llLoopSound is called on its own?
IE:
default {
    state_entry() {
        llLoopSound("00a31197-3c8a-2d76-1ea0-09372a592ad7", 1);
    }
}

Nope, works fine Kinda got a Star Trekking engine sound from that script.

Ok, everything seems to be working as expected. Not sure what was going on. Thanks for the help @zauberparacelsus
Closing


Authentication issues

I followed the documentation to the letter and used your template do deploy the dfm in my rg.
I am facing an issue with authentication and can't understand what is happening.

Following is what I do see, I'm not sure if this is a 401 for what concerns my user auth or something else.
I have created the app registration as suggested and made sure the right client id is passed to the template.
This is what I do get to see in detail

Any ideas on what can be wrongly setup?
Thanks

Hi @mmajcica, what is happening is that the given user is not allowed to access your DfMon endpoint. DfMon's Function App's logs should give more details.

Can you check them?
Also can you confirm that the user visible on your screenshot is the correct user (is a part of your AAD tenant) and that it is either added to DFM_ALLOWED_USER_NAMES setting or that setting is left empty ?

It is working as expected. Seems there were some delays in applying settings in Azure. However, thank you for your time.


Hotspot b58 Addresses
112uA1ct8d6TYzH8QLU6mx5wEPBzfLyef7owcFuspBsaYbL9Ueyx
Discord Handle
No response
Reason(s)
Hotspot ist located to wrong Adress. There ist no Buliding  this High in the Area (look on Google Maps) Hotspot can’t be witnessed by others.  Maybe a spoofer.


Edit Kang Ming's PPP

Coverage remained the same at 78.986% when pulling dde768f35a41db020ed1ae5270d5f61182cfdac9 on kangmingtay:UGDG into 70647ac7c5555f7ec392d2d71124bd4c1a903095 on CS2113-AY1819S1-F09-2:master.


build(oxygen): add-on v0.0.6

Following #742, this pull request publishes the latest master via Oxygen add-on channel.
#795 is a new feature, but it doesn't help Oxygen users who already have in-app Saxon-PE+ license. That's why I didn't include it in the changelog.
I tested this add-on version on Oxygen 22.0 build<PHONE_NUMBER> using https://github.com/AirQuick/xspec/raw/oxy-addon_0-0-6/oxygen-addon.xml and verified that

SQF for XSpec worked
XSLT Code Coverage transformation scenario worked with test/end-to-end/cases/xspec-793-cr.xspec
Run XSpec Test transformation scenario worked with XSLT, XQuery and Schematron tutorial files

I'm merging this, and directly I will verify the add-on online.

I'm merging this, and directly I will verify the add-on online.

Done. The upgrade from v0.0.5 was offered and v0.0.6 is working fine on Oxygen 22.0.


release/v0.4.6

Description: 概要

fix: release script
Changes: 変更内容

Expected Impact: 影響範囲

Operating Requirements: 動作要件

Additional context: 補足

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master     #9   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          31     31
  Branches        2      2
=====================================
  Hits           31     31

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c39284...92a74c9. Read the comment docs.


[error-monitoring] Prepare for automatic issue filing but do not enable cron tasks yet

Fixes some configuration around automated error monitoring, filing issues in https://github.com/ampproject/error-reporting

Closing, since we are no longer planning to auto-file issues


Initial refactoring into Python modules

Separate main function from business logic, allowing Jupyter usage
Add changes to allow labeling and using sentiment data.

TODO:

Separate training code from model initialization code
Understand and refactor construct_data
Separate visualization code from training code
Create a better pickle interface for data

Please comment on other refactoring ideas


Update README - add link and example for [PiShrink dockerized]

Copy/paste from https://github.com/Drewsif/PiShrink/issues/164

related #27

Closing, added in 1fe1137


Nexus code freeze and deploy on EVM chains

deploy nexus on bunch of test networks and mainnets where bundler is ready.
fix remappings, merge to main and make a release

could be added in nexus-launchpad repo.. either ways

Reduce scope to Base and Base Sepholia

code freeze is done


Network Provider: extensions dependency

Being able to list network extensions such as Neutron extensions is required for network provisioning.
Effectively some of the fields are enabled only if the dependent extension is available.
For instance, distributed requires 'dvr' extension or 'ha' needs 'l3-ha', etc.
Please see http://developer.openstack.org/api-ref/networking/v2/index.html
for more details.
This requires the following to be addressed:
https://github.com/fog/fog-openstack/issues/199

@gildub will you tackle this issue?

@Ladas, yes, I'm happy to look after this one once https://github.com/fog/fog-openstack/pull/201 has been merged.

We also need fog-openstack version bump up. Coming with https://github.com/ManageIQ/manageiq/pull/11747

Since Fog-openstack version has been moved up to 0.1.15, Neutron extensions are now available.


gallery update feed event

Changes:

Changed event segment grouping to group most events that involve the user's gallery (gallery info, collection updates, token info updates, etc.) by the user's gallery.
Changed gallery update mutation to create events for every sub-update made during the mutation
Changed event dispatchers to include a gallery ID with the event when possible

Considerations:

Currently when we search for events in the window for grouping a gallery update, we will not create a "gallery update feed event" when there is only a single event found. On the figma, there is a feed event that looks like a gallery update but there is only one change to a token's collectors note. Do we want to always group events with actions pertaining to a user's gallery into gallery updated events or should single events be pushed to the feed as they currently are?

Currently when we search for events in the window for grouping a gallery update, we will not create a "gallery update feed event" when there is only a single event found. On the figma, there is a feed event that looks like a gallery update but there is only one change to a token's collectors note. Do we want to always group events with actions pertaining to a user's gallery into gallery updated events or should single events be pushed to the feed as they currently are?

@benny-conn  which one would be simpler? I agree with @Robinnnnn  that we should aim to keep things as simple and less conditional as possible. Ideally we would group all gallery -related updates as gallery updates instead of pushing single events, but I'm curious to hear what the difference in lift is.

@Robinnnnn @kaitoo1 sounds good! Was super low lift to remove, just removed an if statement.


Add Portuguese wordlist

Wordlist fetched from https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/portuguese.txt. And manually wrapped in Typescript const and .split().

Do we need more tests?
Could imagine some form of automation including integrity checks for the wordlists txt files would be nice to have?

Could imagine some form of automation including integrity checks for the wordlists txt files would be nice to have?

yes, a script that downloads bip39 wordlists from the urls and verifies them would be great

Thanks, that looks great. I prefer dashes to underscores. We can just replace underscores with dashes in the download script.

On one hand, I won't mind adding aliases if this makes people life comfy. On the other hand, we say "simplified chinese" and not "chinese simplified" in life. So, up to you. In any case we won't have underscore names so there won't be 1:1 mapping even if we add aliases.

Yes, I agree, am also in favor of readability. The script now swaps the language and variety around. Adding aliases seems overkill to me. Please review and let me know if any more changes are necessary.

Thanks! Looking great. The next step would be to check validity in CI. Maybe a check on every commit is overkill and limiting it to releases is ok. On the other hand the library is feature complete and rarely updated so we may as well keep it to commits. I will work on it whenever i'll have time - if anyone wants to help its also cool

Validity checks during build / CI would be nice, yes
Some other things I was thinking of:

Check if word list arrays are sorted alphabetically (not sure if this is the case for Chinese, Japanese and Korean though)
Also specify validations in Typescript's type system
Move the parsing of multi line string => word list array to the build step. This would relieve the .split('\n') operation happening at runtime / import at the moment. Maybe turn the arrays into JSON data if browsers can handle that.

Will have a deeper look into it when I have time. Thanks for merging and closing this PR.


Add assertions for IOptionsMonitor<>

downstream of Configuration breaking changes
build break

FYI only

@DamianEdwards thanks for getting your fix in first.

:+1:


v0.5.2h doesn't build to HTML5

Describe your bug here.
How in God's name do I fix this?
Command Prompt/Terminal logs (if existing)
source/WeekData.hx:11: characters 8-19 : You cannot access the sys package while targeting js (for sys.io.File)
source/editors/WeekEditorState.hx:34: characters 8-16 : ... referenced here

source/editors/MasterEditorMenu.hx:119: characters 37-52 : ... referenced here

Are you modding a build from source or with Lua?
Source
What is your build target?
HTML5
Did you edit anything in this build? If so, mention or summarize your changes.
No.

delete 11 line, sys.io.File was imported in 4 line

this shit's too difficult

oooo

https://github.com/Starmapo/FNF-PsychEngine-Extra/issues/11#issuecomment-1093299756

Fixed


Automatically Generating URL with oauth_token

Is there a way to generate oauth_token to point to Twitter app authentication?
Example:
https://api.twitter.com/oauth/authenticate?oauth_token=jju7hm7XCXzssASJP5w1g2779aHvL7AO
https://api.twitter.com/oauth/authenticate?oauth_token=VCbFzYbMxjF1YwnkEeJ80JWAEIUwqL41
https://api.twitter.com/oauth/authenticate?oauth_token=Vttjw9doS4Wn8JTj9vXgrpNofwXQbCmV
How to generate these oautho_token dynamically. And does node-twitter package support this?
If not, can anyone please let me know the best package to accomplish this.
I'm using node.js and angular.js

@technotip the request object in this module is built on top of Request - see here for an example of oauth signing/flow  - https://github.com/request/request#oauth-signing
I can put together an example some point later this week.  But it will be mostly based on the above shared link

I tried with this code:

app.get('/signup', function(req, res){
var oauth =
{// callback: 'http://mysite.com/callback/',
consumer_key: '2soM9JOQhTHi4a2KtLb7w'
, consumer_secret: 'HhfDshZBbysztOP5WydDx9okBUMQXa1QU37z1idqlq4'
}
, url = 'https://api.twitter.com/oauth/request_token'
;
request.post({url:url, oauth:oauth}, function (e, r, body) {
// Ideally, you would take the body in the response
// and construct a URL that a user clicks on (like a sign in button).
// The verifier is only available in the response after a user has
// verified with twitter that they are authorizing your app.
// step 2
var req_data = qs.parse(body)
var uri = 'https://api.twitter.com/oauth/authenticate'
+ '?' + qs.stringify({oauth_token: req_data.oauth_token})
res.redirect(uri);
});
});
app.get('/callback/:q', function(req, res){
var oauth =
{// callback: 'http://mysite.com/callback/',
consumer_key: '2soM9JOQhTHi4a2KtLb7w'
, consumer_secret: 'HhfDshZBbysztOP5WydDx9okBUMQXa1QU37z1idqlq4'
}
, url = 'http://<IP_ADDRESS>:3000/callback'+req.params.q
;
request.post({url:url, oauth:oauth}, function (e, r, body) {
var auth_data = qs.parse(body)
, oauth =
{ consumer_key: '2soM9JOQhTHi4a2KtLb7w'
, consumer_secret: 'HhfDshZBbysztOP5WydDx9okBUMQXa1QU37z1idqlq4'
, token: auth_data.oauth_token
, token_secret: auth_data.oauth_token_secret
, verifier: auth_data.oauth_verifier
}
, url = 'https://api.twitter.com/oauth/access_token'
;
console.log("token: "+auth_data.oauth_token+"\n"+"token_secret: "+auth_data.oauth_token_secret);
});
});

but not able to get oautho and secret code yet :(
I was able to formulate the link, but not sure how to get the parameters in callback :(
Will be waiting for your example.
[ And I had to install 'request' and 'querystring' ]
Note: If someone else has code for this, please share it. I'll have to keep my project on hold until this is done :(
Thanks ..

Related to #63


Chore change FieldType to enum class

Proposed changes
change FieldType to enum class
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Helpwindow integration

Integrate helpwindow into mainwindow so that it doesn't pop up as a new window.

No change to all the previous shortcuts, including ctrl-H to open/switch back and  ESC to close.

Screenshot:

@burnflare @INCENDE @rachx any comments?

Nice, does it make sense to do this for the normal result popups also?

Cool

haha rachael asked about the same thing. The reason why I didn't make result pop up window inside the main window is that I feel it quite annoying to see the ui(those three columns) shifting updown after each command entered. Currently in javafx there is no way to do something like overlay, there needs to be a placeholder so that it can be reflected on ui, but our ui doesn't seem to have an empty place to fill a placeholder in.

Nice! So if I want to schedule a task, I refer to the help window, start typing and Ctrl + H to switch back to the task list to get the index?

yes! Actually after opening the help window, any command you type, except for help itself, the window will just be switched to how it should look like after that command is executed.


The Scroll on horizontal Table

Code to reproduce:
https://jsfiddle.net/d4xrbm3r/

Bug description:
On *lg and *md grid the table with class .horizontal you can see:

In Google Chrome:  the unnecessary scroll. When td uses style text-align: right this prevents comfortable viewing of information

This is mainly an issue with how Chrome renders tables (horizontal tables are quite hacky anyways). I am pretty sure that I do not know how to deal with this, so if anyone is able to help out, please do.
The latest Gluon alpha does not seem to have the same problem, while the code is almost the same. This is particularly strange...


If I follow the instructions and execute the code from the sbt console. I got the following error:
<console>:13: error: org.openworm.trackercommons.ReadWrite.type does not take parameters        val worms = ReadWrite("../../tests/intermediate.wcon") match {
I think the code must be ReadWrite.read("../../tests/intermediate.wcon") (I got it from the R implementation). If I use the read method, I have complains about the kse package. I have a similar problem if I run sbt test. I assume this is a missing package and I guess I have to clone the kse github, compile it and add it to the classpath, but is there is an easier way? I mean it seems that the sbt package does that for me, but I am not sure what is the correct way to load the .jar file.

You're correct that you have to use the read method.  I'll fix the documentation.
I am not sure why SBT isn't picking up KSE.  Maybe it's because I'm relying on snapshots and they're getting cleared?  I'll try to do a proper release.
I'm afraid it will take me a few days, though.

KSE missing is resolved by https://github.com/openworm/tracker-commons/pull/121 (for now--will break again, but I'll go to a permanent release before that happens I hope)

Missing read on ReadWrite call is fixed by https://github.com/openworm/tracker-commons/pull/122


Astronout has no texture in Firefox/Safari

Description
At modelviewer.dev the Astronaut.glb is loaded without the texture.
Had the same problem with my own glb-file in modelviewer.dev/editor. The same file worked in my development environment with the latest release of modelviewer (v1.3.0) with no problems.
Browser Affected

[ ] Chrome
[ ] Edge
[x] Firefox 83.0
[ ] IE
[x] Safari

OS

[ ] Android
[ ] iOS
[ ] Linux
[x] MacOS
[x] Windows

This also affects Firefox 83.0 on Fedora 33 and Microsoft Edge 44.17763.1.0.

Thank you! I have a repro, will look into this shortly.

Still happens randomly.

Still happens randomly.

Anyone have solution for it? It still happens.

I don't think it's really the same problem; may different things can look similar. Feel free to open a new issue if you can give detail on exactly what problem you're running into.

The same iframe that contains a 3d object,  when you view in Safari, some time the texture is not appear, all the object is black, if you refresh the browser the object might appear with the texture, might not.


Remove Object.keys polyfill

Purpose (TL;DR) - mandatory
Fix inconsistent use of Object.keys and keys polyfill.
Background (Problem in detail)  - optional
While considering how to implement Object.assign, I noticed that Object.keys is used in some places and the keys conditional polyfill is used in others.  This intent is unclear (although after reviewing the history I assume it was left over from previous compatibility requirements) and it seemed to present needless complexity and maintenance burden.
Solution  - optional
The current sinon compatibility specifies that "the source is written as ES5.1", which defines Object.keys.  This PR replaces the two remaining uses of the polyfill and removes it to reduce.
Alternate Solution
If there is reason to keep the polyfill, I could send a PR to use it everywhere, move it to commons, and/or add comments to explain why the use is necessary.

Thank you

Thank you


NetlifyCMS Setup

I am trying to setup NetlifyCMS with this. But, I wonder what values I should set for media_folder and public_folder inside config.yml for Netlify.
https://www.netlifycms.org/docs/configuration-options
Btw, thank you so much for making this. Exactly what I am looking for. 👍

I set as follows and it seems to be working fine.
media_folder: "static/images"
public_folder: "/images"


EPIC - Continuous improvements for Git integration on KIE Sandbox (2H2023 iteration)

### Q3

### Q4

### Tasks
- [ ] https://github.com/kiegroup/kie-issues/issues/11
- [ ] https://github.com/kiegroup/kie-issues/issues/17
- [ ] https://github.com/kiegroup/kie-issues/issues/134
- [ ] https://github.com/kiegroup/kie-issues/issues/404
- [ ] https://github.com/kiegroup/kie-issues/issues/426
- [ ] https://github.com/kiegroup/kie-issues/issues/425
- [ ] https://github.com/kiegroup/kie-issues/issues/367
- [ ] https://github.com/kiegroup/kie-issues/issues/132
- [ ] https://github.com/kiegroup/kie-issues/issues/131
- [ ] https://github.com/kiegroup/kie-issues/issues/104
- [ ] https://github.com/kiegroup/kie-issues/issues/242
- [ ] https://github.com/kiegroup/kie-issues/issues/489

@tiagobento @ljmotta Considering the number of requests and the interest shown by our users and customers, I would assign GitLab integration (ticket #11) a high priority in this EPIC.

Is there any plan for allow user to provide custom commit message? I think there was such ticket in past, maybe it could be included in this epic.

Hi @jomarko, this was already implemented here:

https://github.com/kiegroup/kie-tools/pull/1418
https://github.com/kiegroup/kie-tools/pull/1436

@thiagoelg thank you for links. I see there is an env variable requireCustomCommitMessages. Am I correct this requireCustomCommitMessages is not set for sandbox.kie.org? I can not provide custom commit message there.

The env variable is false by default, but you can try it with ONLINE_EDITOR__requireCustomCommitMessage=true pnpm start


v0.1.0 package.json file does not list any keywords

At the very least, it should have weather and maybe wttr or wttr.in

Addressed in 0.1.1


Custom Site Logo not working

I am attempting to use a custom site logo and it does not seem to work even though I think I have the configuration correct. I even attempted to make sure it wasn't a permissions issue and made the owner and group of the image file the same user as all the other files in the app-data directory.
There screenshots are from after I saved the configuration. The original site logo disappeared but the one I'm trying to use does not appear.

Suggestions?

Never mind. I see that the pathing for the web UI and image references uses a different root at /app/otterwiki/ thus the file has to be in there. Thus the following worked for me.
root@64fd3d0d42b8:/app/otterwiki/static# cp /app-data/images/logo.png ./img

Would be nice to make this more clear in the doc and contextual help info. Also an example in the docker-compose example of mapping a subfolder there to the host. Could be something like...
version: '3'
services:
  otterwiki:
    image: redimp/otterwiki:latest
    container_name: otterwiki
    restart: unless-stopped
    ports:
      - 8888:80
    volumes:
      - /host/path/to/app-data:/app-data
      - /host/path/to/custom-images:/app/otterwiki/custom-images


Implemented DateAdded attribute

Coverage decreased (-0.5%) to 86.611% when pulling bcd9dba2a7e3e16490d19e4fe3b444cf01700f70 on eldriclim:dateadded_attribute into 7740049af276287d70238e1414a1ae3800d6db75 on CS2103AUG2017-W09-B3:master.

Coverage decreased (-0.3%) to 86.804% when pulling 17a59fa70f30548eeacf0b98ef59735a0f36400f on eldriclim:dateadded_attribute into 7740049af276287d70238e1414a1ae3800d6db75 on CS2103AUG2017-W09-B3:master.

Coverage decreased (-0.2%) to 86.841% when pulling b239c981651501d8c73d47836693ae0bf458a704 on eldriclim:dateadded_attribute into 7740049af276287d70238e1414a1ae3800d6db75 on CS2103AUG2017-W09-B3:master.


ECONNRESET error preventing login

I use the postlogin flow and regular login in the node js library, however when i try to login I get the following error:
(node:88344) UnhandledPromiseRejectionWarning: RequestError: Error: read ECONNRESET
at Request.faultTolerantRequest (/Users/leo.zhang/Desktop/project-toBeNamed/node_modules/instagram-private-api/dist/core/request.js:106:19)
Why can't I log in?

This is network related error.

I have the same problem


Detect Empty Country and populate

Detects when Country field is empty and populates from addressfield.json. (Fixed formatting error from Patch-2.)

Appreciate the PR @CommandLineDesign.  This is a great feature!  Comments above.
Tests also encouraged, once we're feeling good about the implementation.

Closing in favor of #47.


Update footer and infobox

continuous work on beta release

Svg icons working
New footer design
Infobox redesign
Plugin for latest-commit

This PR deals with #80, #136 #137 #79, #120, #130, #116.


question / feature request:  .conf for defaults

is there a .conf file that i can set defaults?  for instance i always want +clipboard (and current remmina seems not to handle it)
if not, can this be a new feature?

Is it possible to read a simple ini file from an appropriate XDG config directory instead of having to alias xfreerdp?

@masaeedu currently not, but pull requests are welcome.

OMG this is so old.
I no longer seem to have issue.  but this was my solution at one time (no longer):
https://gist.github.com/meoso/9b58f68736bc438c5ce00a9118891e99
maybe you can play/customize. basically i put all my hosts/params in a csv file and only rdp'd from cli.
i retired this method and use remmina these days


Add code coverage metrics

It's difficult to reason about the test coverage, so we don't know where we need to improve things, and we don't know what we can confidently modify and release because it has been tested.

I note that OSV-Scanner is using Codecov, is it a relatively straightforward exercise to replicate that to this repo?

I'm not sure how well codecov plays with either python or google cloud build.