unable to getAmm data

I wanted to get estimations of the transfers using hop-sdk and I was testing with mainnet and it supported tokens and with supported chainSlugs like below:

Getting errow with ethereum as :

with polygon and optimism:

Please some one help me with this.

Solved it.


Bug 1905850: Fix operatorcondition role verbs

Problem: The role created to allow operators to modify its
OperatorCondition/status resource currently contains a string matching
"get,patch,update" instead of an array of strings consisting of "get",
"patch", and "update".
Solution: Update the verbs defined for the role to match the expected
array.

/retest


Better debug output format

Currently, the debug output is very basic, showing only the essential info.
Here's how it could be improved:

[x] Show milliseconds too - this can be crucial in determining the true order of operations
[ ] Colorize the event name and some other info - could help distinguishing between different log entries

Coloring in node is not easy, coloring in browser ruins output in node...
Guess, no middle-ground here.
At least, it's showing ms now.


Memory leak when reading from huge gzipped S3Target

I have a 80GB .csv.gz file on S3 that I'm trying to use an in input, e.g.
luigi.s3.S3Target(S3_PATH, format=luigi.format.Gzip)
When I try to iterate through it during my Task's run() method, even when passing the data to nowhere, my memory gets eaten up completely!
infile = self.input().open('r')
for i in infile:
     pass

I'm on boto 2.38.0 and luigi 2.0.1

I'm going to guess that line 79 of luigi/format.py is a major suspect because I don't expect boto to provide a fileno() attribute on the key. That reads the whole data in memory to be copied to a temporary file. A simple fix would be to read from the input_pipe by chunks, just like boto would do for us if it were a plain file.

Wow, thanks @deuxpi !!

Wow, talk about a fast turnaround! I just can't believe that I'm the person person to encounter this issue :)


Storage

Couple of minor fixes, mostly adds some context around storage mismatches (that made sense to me, but is anyone wants to iterate it would be welcome)

@Mause: Thanks for the feedback!

Thanks!


accesslogs: periodic bytes snapshot

Commit Message: accesslogs: add periodic bytes snapshotting
Additional Description: With downstream and upstream periodic logging, it's useful to know the delta between the current byte count and the byte count at the time of the last log. This change achieves that by snapshotting the byte counts after generating a periodic log. Upstream and downstream loggers require separate byte snapshots because their timers are completely different and unsynchronized.
Risk Level: Low
Testing: Unit tests; suggestions for how to integration test this are welcome.
Docs Changes: none.
Release Notes: updated current.yaml.

Test failure is also ~10% flaky without this PR.

/retest

unfortunately /retest is currently non-working with the examples ci job - i kicked it manually

/retest

Coverage failure is due to an unrelated file https://dev.azure.com/cncf/envoy/_build/results?buildId=139556&view=logs&j=5035ce29-be3c-5fcf-dc50-abb6a265f8b1&t=fa1604b8-8cc1-5fec-21c7-5a4fad8d70ea&l=5059

Sorry, I'm on my honeymoon and won't be merging main anytime soon. Can
someone else do that in lieu, or is that not possible?
On Mon, Jun 12, 2023 at 8:54 AM Kevin Baichoo @.***>
wrote:

/wait
This needs merge
—
Reply to this email directly, view it on GitHub
https://github.com/envoyproxy/envoy/pull/27713#issuecomment-1587286968,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD5Q7TMGBZBWRP42DXX3L7DXK4GRPANCNFSM6AAAAAAYUWIQKA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Sorry, I'm on my honeymoon and won't be merging main anytime soon. Can
someone else do that in lieu, or is that not possible?

Happy honeymoon Paul. I tried but I think you need to give someone write permissions to your fork for this.

/retest

Looks like there are branch conflicts still. I've cloned this in #27947; enjoy your honeymoon Paul.

Closing for https://github.com/envoyproxy/envoy/pull/27947


Startup errors: Condition "version_owner.get_rid_count() > 0" is true.

Godot version
e537a1f10ec32e9e2daecb171128c3f63f0bcc97
System information
Windows 10
Issue description

Steps to reproduce
Simply run a project manager
Minimal reproduction project
No need

The set_variant_enabled calls need to be above the version_create() call. I thought I already moved those but must have been either one of the other shaders, or in one of my many outstanding PRs :)

Ah I did miss this one, will fix it


Automator: update istio/api@master dependency in istio/istio@master

Generated by Automator - 2022-03-17T22:30:14+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
0e4bb3c1fe27d6f4f2d0b07881a03505ca4e4120
link
true
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test unit-tests_istio


Inconsistent labels in vertical stepper

Hi,
First of all thanks for this very versatile stepper.
I am working on a project which requires a number of steps to be implemented (10+). I would like a responsive stepper out of the box, but nevertheless adding the vertical class for smaller screens as of now. But, The stepper labels are inconsistent. Sometimes they appear horizontally in front of the circle, and sometimes below it. Any suggestion on how to make it look even?

Hi @aman54kumar,
You're welcome 👍
Can you share a live reproduction of your issue? It'll be easier to help you 👍
You can use CodePen/JS Bin or Stackblitz.

Hi @Johann-S ,
here is the codepen for this issue.  ->   https://codepen.io/stan24/full/vYYmyKv
Try to change the view to phone screen(I am looking at 520x800 right now). Longer step labels seem to be taking a new line below the circle icon, while shorter ones are in front of the circle icon in the same line, Similar to the screenshot in my first comment. My suggestion is that, if one of the labels can't fit in the same line as the circle icon, then the longer as well as every other shorter label should follow the pattern of using a new line below the step circle to make the view consistent.
There is also an issue of step contents in small screen having a separate div below the previous one, which makes the form look very awful. You can see the same in the codepen I shared by going to the next steps. Any suggestions to resolve this would be greatly appreciated.
Thanks.


Set a smart default for IoLogo color prop

The IoLogo component implements a color attribute to determine which color the iO logo will have. It supports black and white with white being the default. However, we might be able to determine which background the current slide has based on the slide's class having a bg-[blend-?]-[color] pattern. Based on that we could determine the best color to set as a default.

Wont fix: This component has been replaced by the io logo icon (<IconIoLogo)


"on player consumes item" fires twice in one time

eating_food_test:
  type: world
  debug: false
  events:
    on player consumes bread:
      - run eating_task

eating_task:
  type: task
  debug: true
  script:
  - narrate "TEST"

[00:22:32 INFO]:  Running script event 'PlayerConsumes', event='player consumes bread' for script 'EATING_FOOD_TEST'
[00:22:32 INFO]:  Starting InstantQueue 'EATING_FOOD_TEST_OracleLoadFan'...
[00:22:32 INFO]:  Queue 'EATING_FOOD_TEST_OracleLoadFan' Executing: RUN "eating_task"
[00:22:32 INFO]: +- Executing dCommand: RUN/p@MrMaleficus ---------+
[00:22:32 INFO]: +> Executing 'RUN': script='EATING_TASK(TASK)'
[00:22:32 INFO]:  Starting TimedQueue 'EATING_TASK_AdaptorDocumentRadios'...
[00:22:32 INFO]:  Queue 'EATING_TASK_AdaptorDocumentRadios' Executing: NARRATE "TEST"
[00:22:32 INFO]: +- Executing dCommand: NARRATE/p@MrMaleficus ---------+
[00:22:32 INFO]: +> Executing 'NARRATE': Narrating='TEST'  Targets='[p@MrMaleficus]'
[00:22:32 INFO]:  Completing queue 'EATING_TASK_AdaptorDocumentRadios' in 1ms.
[00:22:32 INFO]:  Completing queue 'EATING_FOOD_TEST_OracleLoadFan' in 2ms.
[00:22:32 INFO]:  Running script event 'PlayerConsumes', event='player consumes bread' for script 'EATING_FOOD_TEST'
[00:22:32 INFO]:  Starting InstantQueue 'EATING_FOOD_TEST_AmongRoomTurtle'...
[00:22:32 INFO]:  Queue 'EATING_FOOD_TEST_AmongRoomTurtle' Executing: RUN "eating_task"
[00:22:32 INFO]: +- Executing dCommand: RUN/p@MrMaleficus ---------+
[00:22:32 INFO]: +> Executing 'RUN': script='EATING_TASK(TASK)'
[00:22:32 INFO]:  Starting TimedQueue 'EATING_TASK_RestrictCondoAte'...
[00:22:32 INFO]:  Queue 'EATING_TASK_RestrictCondoAte' Executing: NARRATE "TEST"
[00:22:32 INFO]: +- Executing dCommand: NARRATE/p@MrMaleficus ---------+
[00:22:32 INFO]: +> Executing 'NARRATE': Narrating='TEST'  Targets='[p@MrMaleficus]'
[00:22:32 INFO]:  Completing queue 'EATING_TASK_RestrictCondoAte' in 1ms.
[00:22:32 INFO]:  Completing queue 'EATING_FOOD_TEST_AmongRoomTurtle' in 2ms.
[00:22:34 INFO]:  Running script event 'PlayerConsumes', event='player consumes bread' for script 'EATING_FOOD_TEST'
[00:22:34 INFO]:  Starting InstantQueue 'EATING_FOOD_TEST_FutureTreasuryAna'...
[00:22:34 INFO]:  Queue 'EATING_FOOD_TEST_FutureTreasuryAna' Executing: RUN "eating_task"

Can't replicate on clean server. Check for any plugin interference.

@mcmonkey4eva Try replicate with this custom food :
survival_ration:
  type: item
  debug: false
  material: i@bread[flags=HIDE_ENCHANTS]
  display name: "<&e>Ration de survie"
  lore:
  - "<&f>Vous régénérera de <&2>3% <&f>de votre santé maximale"
  - "<&f>toutes les secondes, pendant <&2>5 <&f>secondes."
  - " "
  - "<&7>Les vrais survivants, ils mangent des cailloux !"
  recipe:
  - i@air|i@cobblestone|i@air
  - i@dirt|i@bread|i@dirt
  - i@air|i@cobblestone|i@air

eating_food_test:
  type: world
  debug: false
  events:
    on player consumes survival_ratio:
      - run eating_task

eating_task:
  type: task
  debug: true
  script:
  - narrate "TEST"

Again:
Can't replicate on clean server. Check for any plugin interference.

Also, please test the things you post in an issue before posting the issue.


Wrongly calculated widget sizes

Here's screenshot of example1 starting on Linux LXDE. As you can see buttons and some other widgets are not big enough to hold their contents.

Try increasing window height.

It becomes ok if I increase window height.
But I'm talking about automatic calculation on application start. I don't remember such issue on Windows.

Font height is handled a bit different in Win32 font engine and FreeType.
Probably, FreeType font is bigger for the same requested height

I think it makes sense to fix either Win32 or FreeType engine to produce exactly the same font size and line height for requested font size.

Maybe better is just change window height and/or width when mainWidget need more area? The same font family name on different platforms can have different visual representation.

It's hard to measure widget if some of its parts are stretched (FILL_PARENT)

Now when window is too small widgets are shrink so I think we know how much more space is needed.
https://github.com/buggins/dlangui/blob/master/src/dlangui/widgets/layouts.d#L177
I think there should be three options (flag in window):

shrink widgets (now implemented in layouts)
resize window
add scrollbars to window (on some platforms we can't just resize window, or when window will be bigger than screen)

Maybe we should add special layout to window that will be the invisible window root widget. That layout will manage mainWidget, shrink it or change Window size, eventually add scrollbars to window.
That is only idea. Need more investigation what is possible, what will be break. What do you think about it?

I made some more investigation and I probably know how to implement behavior like in upper comment. Do you working on this issue? Please let me know. I can make some prototype but I don't want overlap your work.

I'm not working on this issue now.

OK, I start working on this issue.

Solution in #379.

There is one issue in current implementation. When widget width depends on height - width can be incorrect. For example WidgetList width is too small when scrollbar appears. Thinking how to fix that without API change.

I made big refactoring on my devel branch. Not ready for merge yet, but maybe someone want to check/test ;) Some controls need more work and there will be API break:

separate measurement of the minimum size,
flag to set control height depend on width,
do not stretch widgets' height in horizontal layout
do not stretch widgets' width in vertical layout
possibility to word wrap in checkbox
possibility to word wrap in radiobutton
layoutWeight determines the ratio of free space that the control will take
measuredContent -> adjustMeasuredSize
alignments in linearlayout
word wrap in edits (but need more work)
currently it works only in SDL

It is currently used in my Agile Commander from version 1.1.0 (because old algorithm has a lot of problems).


Transition Ownership From Labels to OwnerReference

Please describe the problem you have
With #382, namespaced-scoped operands, i.e. Envoy DaemonSet, reside in the same namespace as the Contour. This allows using an OwnerReference instead of labels for managing the Contour<>operand relationship. The current CONTOUR_NS/CONTOUR_NAME label-based approach should be transitioned to using OwnerReference. Note: Cluster-scoped resources should continue using the label-based approach.

Requires https://github.com/projectcontour/contour-operator/issues/386 to be fixed.


Our PyMC3 port is complete!

Please feel free to contact either Thomas or myself with any concerns you might have about our changes!

There were some changes made to PyMC3 related to positional arguments so I went through and corrected the examples that would have been affected.

Thanks for the general cleanup of some of my old code too! 👌
Overall, changes look good. I'm going to pull it locally and play around with PyMC3 too

In the added header, you have my name as Cam Pilon, can you update it to Cam Davidson-Pilon?
In place of commented-out code, I think we should just delete it entirely. No value in keep it around.
The matplotlib styles are not the the same, but I can go through later and fix this (it happens often when another contributor wants to add content, but has rerun the plotting code).

Is there anywhere in particular that has commented-out code in an obtrusive place? I'm going through the individual scripts as they seem to have some.
What is the style that you are using? I can make a note to use it every time I re-run plots.

It's the .py scripts mostly. A couple ways to update the style:

(brute force) replacing the matplotlibrc file on your comp with https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/styles/matplotlibrc
using the code: ply.styles.use('bmh') before plotting anything (and I guess deleting the cell)
Ignore it 💃

I think I may ignore it for now.
:dancer: :dancer: :dancer:

Plot style should be good for each chapter now.

👍 happy with this. Merging!


flutter_libserialport does not work on Archlinux anymore

I have been usinig it for few weeks with no problem, but today it end up with these errors:
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:98:9: error: invalid application of 'sizeof' to an incomplete type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:106:15: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:106:27: error: use of undeclared identifier 'RTSXOFF'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:107:15: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:107:27: error: use of undeclared identifier 'CTSXON'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:108:15: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:108:27: error: use of undeclared identifier 'DTRXOFF'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:109:15: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:109:27: error: use of undeclared identifier 'DSRXON'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:118:7: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:118:22: error: use of undeclared identifier 'RTSXOFF'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:118:32: error: use of undeclared identifier 'CTSXON'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:118:41: error: use of undeclared identifier 'DTRXOFF'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:118:51: error: use of undeclared identifier 'DSRXON'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:121:8: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:121:21: error: use of undeclared identifier 'RTSXOFF'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:123:8: error: incomplete definition of type 'struct termiox'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:123:21: error: use of undeclared identifier 'CTSXON'
/home/kozak/Vyvoj/Eurosat/etrackermanagetool/linux/flutter/ephemeral/.plugin_symlinks/flutter_libserialport/third_party/libserialport/linux_termios.c:125:8: error: incomplete definition of type 'struct termiox'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Exception: Build process failed

It is issue with linux kernel version >=5.12, because in 5.12 they have removed some old dead code
https://github.com/torvalds/linux/blob/v5.12/include/uapi/linux/termios.h
vs
https://github.com/torvalds/linux/blob/v5.11/include/uapi/linux/termios.h

I guess we could temporarily rip off the related code from the local copy in third_party/libserialport but reporting the issue upstream would be better: https://sigrok.org/bugzilla/describecomponents.cgi?product=libserialport (requires registration).

this would not helped. I have try it. It would compile but still not works. But if I comment
#define HAVE_STRUCT_TERMIOX
in
~/.pub/hosted/pub.dartlang.org/flutter_libserialport-0.2.1/linux/libserialport/config.h
it works ok


Remove usages of package six

Issue: BOM-1818
Description

Removed all usages of package six.

Coverage remained the same at 100.0% when pulling d5ad6df9401037107feb432ed4372e6d03a3ef01 on usamasadiq/bom-1818-remove-six into 11913c0f6cfcfe7a02dfaf37e281a390011af1d5 on master.


Check loading of language files for unknown languages

"/opt/build/repo/minimo/i18n/oc.toml:1:1": failed to load translations: no plural rule registered for oc

I know we support this, but it may have changed subtly with the upgrade of go-i18n. Maybe we're using the languages defined in the project?
/cc @digitalcraftsman

https://github.com/nicksnyder/go-i18n/issues/231

I've just upgraded the theme site to the 0.76.3 release of Hugo and the error messages disappeared. Thanks for the bug fix 👍


OIIO image reader plugin that runs OSL shaders to make the image dynamically

OIIO (and any app that uses it to read images) not only can read many image formats, but if it doesn't know a format internally, it will look for a plug-in that can read the format. But it's just a black box, it doesn't HAVE to actually read an image from disk. It could do something procedural.
So... I wrote an OIIO image reading plugin that executes OSL code to procedurally generate image pixels as needed. It can do some fun tricks.
Generate an image by running a compiled OSL shader:
shader ramp (
    color topleft     = color(0,0,0),
    color topright    = color(1,0,0),
    color bottomleft  = color(0,1,0),
    color bottomright = color(1,1,1),
    output color result = 0,
    output float alpha = 1
    )
{
    result = topleft*(1-u)*(1-v) + topright*u*(1-v) +
             bottomleft*(1-u)*v + bottomright*u*v;
}

$ oslc ramp.osl
$ oiiotool ramp.oso -o ramp.exr

You can generate directly into an iv window (or any other app that uses OIIO to read):
iv ramp.oso

A ".oslgroup" file can contain the serialization of an entire shading network:
oiiotool network.oslgroup -o complex.exr

URI notation can be used to set shader parameters:
oiiotool "fBm.oso?frequency=4&octaves=4&point offset=0,1,0" -o noise.exr

URI notation also to control the resolution of the "image", or to make it look tiled rather than scanline, or even to make it behave like it's MIP-mapped:
iv "fBm.oso?octaves=4&RES=512x512&MIP=1&TILE=64x64"

".oslbody" signifies a snipped of OSL that will be pasted into OSL shader boilerplate, compiled from memory, and JITed on the fly:
iv "result = noise (u*5, v*5);.oslbody"

Not just a single expression, you could write a whole program if you want:
iv "int octaves=8; float freq=2,amp=0.5;\
    for (int i = 0; i < octaves; ++i, amp /=2, freq*=2) \
        result += amp*(color)snoise(freq*u,freq*v); \
    result += 0.5; \
   .oslbody?RES=512x512"

Yeah, crazy.

Very cool! How many loose ends are left?
Is it possible to access textures in these types of plugins (not to mention the possibility of having texture calls that invoke this loader recursively ...)?

The one-day version was very rough -- read_scanline only (now it can do scanline, scanlines, tile, or tiles), the parameter parsing/setting was crude and could only handle simple int or float (now accepts types so you could set points, colors, arrays, strings, whatever), had no error handling and would crash if you specified things wrong (now is reasonably stable and will even bubble up most error messages properly), did not support the MIP=1 flag to make it look mipmapped.
All the loose ends on my original list got tied up by the time I submitted the PR.
You can access textures in these plugins, that seems to be fine. (But I urge you not to make a texture name that causes infinite recursion!)
I think the only think I haven't tested, maybe I'll get to it today, is fully trying to make one of these special names for the renderer itself, and make sure that all works.

LGTM

Haha, tested this in our renderer and it DOES work! Though you do need to make it look mipped and tiled or the renderer set instructed to reject it as an error.
Chris et al, alter test_0693/test.ass from
commands "string filename checkers.tif ; shader simple layer1;"

to
commands "string filename \"result=noise(10*s,t0*t);.oslbody?MIP=1&TILE=64\" ; shader simple layer1;"

and it actually works!


Cloud Firestore Database

Hello Andrew,   We are writing to let you know that   starting June   22, 2023, Cloud Firestore default database will be   represented by "(default)" in the authorizationInfo.resource field of Cloud Audit Log.   What do you need   to know?   The current database you're using   has a name called "(default)". Originally the default database was represented as an empty “” string in audit log authorizationInfo.resource, but this is inconsistent with the current pattern to use the   “(default)” string.    Before update:"authorizationInfo": [      {        "resource": "projects/my-project/databases/", # Inconsistent value        "permission": "datastore.entities.update",        "granted": true,        "resourceAttributes": { # sent for Conditional IAM          name:  "projects/my-project/databases/(default)",          type:  "firestore.googleapis.com/Database",          service: "firestore.googleapis.com",        }      }    ],After update:"authorizationInfo": [      {        "resource": "projects/my-project/databases/(default)", # Corrected value        "permission": "datastore.entities.update",        "granted": true,        "resourceAttributes": { # sent for Conditional IAM          name:  "projects/my-project/databases/(default)",          type:  "firestore.googleapis.com/Database",          service: "firestore.googleapis.com",        }      }    ],   What do you need   to do?   If you have systems that make use   of the Firestore Audit Logs and depend on the authorizationInfo.resource field in the log entry, please accommodate for the corrected   value. Any aggregation pipelines that categorize by resource may break from   this change. Learn more and gain visibility on Cloud Audit Logs.   Thanks for choosing Firestore.

Hello Andrew,
We are writing to let you know that starting June 22, 2023, Cloud Firestore default database will be represented by "(default)" in the authorizationInfo.resource field of [Cloud Audit Log](https://notifications.google.com/g/p/ACUgQrEzeg01YqW_NhbZLumRJbUT-ymLdDR51w1zrRKtoGH-UZPkCxzGVnP42fP3huNRIjRNIUwIwd9X_Sz6zGgtReTkO9uUHSiRtftFiaOqlelPhU9PsdCBTYd6L14tAgFkcHAWCqHxFSSY5y8MQ-1SpHxZNJkFBKJIH3Lex-l7ZhZGYHeMhSbOX3GDZSgaPVxIfZcOUNjH_6sknRSvcPO7_4CzoQBMWTbUxi3bAeIobAAy0lg).
What do you need to know?
The current database you're using has a name called "(default)". Originally the default database was represented as an empty “” string in audit log authorizationInfo.resource, but this is inconsistent with the current pattern to use the “(default)” string.
Before update:
"authorizationInfo": [
{
"resource": "projects/my-project/databases/", # Inconsistent value
"permission": "datastore.entities.update",
"granted": true,
"resourceAttributes": { # sent for Conditional IAM
name:  "projects/my-project/databases/(default)",
type:  "firestore.googleapis.com/Database",
service: "firestore.googleapis.com",
}
}
],
After update:
"authorizationInfo": [
{
"resource": "projects/my-project/databases/(default)", # Corrected value
"permission": "datastore.entities.update",
"granted": true,
"resourceAttributes": { # sent for Conditional IAM
name:  "projects/my-project/databases/(default)",
type:  "firestore.googleapis.com/Database",
service: "firestore.googleapis.com",
}
}
],
What do you need to do?
If you have systems that make use of the Firestore Audit Logs and depend on the authorizationInfo.resource field in the log entry, please accommodate for the corrected value. Any aggregation pipelines that categorize by resource may break from this change. Learn more and gain visibility on Cloud Audit Logs.
Thanks for choosing Firestore.

@tomlovesgithub and I checked and there is no action required here


Is there a way to clear the list

Is there a way to rest or clear this list?

@wijesijp Yeah, you can do this by setting key:

Create a key for the list  GlobalKey _listKey = GlobalKey();
Set this key to the PaginationView widget key: _listKey,
And when it's necessary to clear list just create a new key  _listKey = GlobalKey();

thank you @AlexSeednov


tenants:run --tenants option not working

Bug description
I tried to run a command for a single tenant using the --tenants option and passing the tenant id but it still runs the command for all tenants.
I noticed this because there was a console info that should be displayed when its done with the command. But the message rather than being one, its four output equivalent to the number to tenant in the system.
Steps to reproduce
I created a command and ran it using php artisan tenants:run --tenants=the tenant id and other options and argument, but it still runs all for all tenants.
Expected behavior
Its should work as described in this doc https://tenancyforlaravel.com/docs/v3/console-commands for running tenant aware command.
Laravel version
9.52.15
stancl/tenancy version
3

Not a bug in the package, either usage issue or related to the command you're running with tenants:run
https://github.com/archtechx/tenancy/commit/d268a06f5d8d98bbd0aa0c6fb7a4381c0bdc5c85


Add codecov.io to track test coverage

Add codecov.io to all repos currently part of Scala Exercises.
See the non/cats project as an example on how it is integrated with their PRs

can we close this issue?

I think so, it's already merged to master. Closing it up.


Corrected URLs default Pax Web HTTP port

Hmm.. that only works in karaf. I could change the non karaf port to the same to make it conistent.


Fix saving contents that are copied when ignoreEvents is enabled

Fix for issue: #260

Thank you for the fix! I wonder how tests didn't catch that, but it's been a while since they worked properly.


Fix empty configuration and put back should fail when given no configuration key in the request body

Test should fail when given no configuration key in the request body has been commented until the empty configuration problem is solved.
Put is back once it has been done.

@Totoketchup do you have a link to the problem/fix this depends on?

Close by https://github.com/craft-ai/craft-ai-client-python/pull/196


SVGs are broken in aggressive mode

We used Imgbot on https://github.com/PostHog/posthog.com and recently enabled aggressive optimization to increase compression rates. Imgbot put out a PR with that aggressive optimization of images and it went well for raster images, but simply broke all our SVGs (PR https://github.com/PostHog/posthog.com/pull/1568/)

Default
Aggressive

All the places where weirdly overflowing alt text is shown are SVG images in <img src="data:image/svg+xml;base64,{base64-encoded-svg-file}"> form.

if it at all helps the same thing happened to me. Here's my files
Original
Broken

Pretty surprised to see this has still been open since 2021 - I just had this right now on my site breaking all my SVGs.
PR: https://github.com/JovannMC/jovann.me/pull/3


In the Debugger Type list, select GPU Only is incorrect for Windows 10

Step 4 for debugging the GPU is incorrect on Windows 10. Leave the debugger type as Auto.
Additionally AMP debugging is broken on RS3 (build 1703). The bug was fixed in a patch (build 17134).

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

ID: ec054a56-bc4a-198e-6fc1-8a9fbb78c2c2
Version Independent ID: 0bb33ae4-3fb1-8683-b3c2-6773e3b20cfb
Content: Walkthrough: Debugging a C++ AMP Application
Content Source: docs/parallel/amp/walkthrough-debugging-a-cpp-amp-application.md
Service: unspecified
Product: visual-cpp
GitHub Login: @mikeblome
Microsoft Alias: mblome

Yes, I'll take a look at it.


chore: add best practices section in docs

@whynowy Are you good to merge?

let's figure out why rate == 0

@kohlisid are you looking into this?

@vigith Yes!

can you please link the issue if you have any?

i want to close this one out.

We can use this issue
https://github.com/numaproj/numaflow/issues/1407


Coverage terminal plot

An approximate coverage distribution plot to print in the terminal.
Possibly something like:
5'------------------------------------[---]----------3'
or with colors?

Overall these plots are approximate and should only be used for a quick visual assessment or confirmation of the output statistics

Closing this for now, may revisit to address the second issue raised in the comment above.


Deadlock when closing channels

Out of habit, I am using "defer chan.Close()" after obtaining a channel.
Channels are returned from a separate goroutine that acts as a channel factory (handling reconnection all in one place). When I send a signal to the context to shutdown everything gracefully, I find my workers hung in chan.Close(). My suspicion is that conn.Close() is being called first (or simultaneously) and either conn.Close() followed by chan.Close() hangs, or conn.Close() running simultaneously with chan.Close() causes the latter to hang.
As a quick fix I just removed the chan.Close() and everything seems to be fine as conn.Close() appears to clean up channels anyway, but I feel like this should be fixed.

Sample code. It hangs in most cases. If you build it with "-race" flag you'll see data race details.
package main

import (
	"fmt"
	"github.com/streadway/amqp"
	"log"
	"runtime"
	"sync"
	"time"
)

func init() {
	runtime.GOMAXPROCS(runtime.NumCPU())
}

func createChannels(conn *amqp.Connection, wg *sync.WaitGroup) {
	ch, err := conn.Channel()
	if err != nil {
		panic(err)
	}

	time.Sleep(time.Second)
	fmt.Println("Chan close")

	err = ch.Close()

	wg.Done()
}

func channels() {
	conn, err := amqp.Dial("amqp://login:pass@localhost:5672/")
	if err != nil {
		log.Fatalf("connection.open: %s", err)
	}

	wg := new(sync.WaitGroup)

	for i := 0; i < 8; i++ {
		wg.Add(1)
		go createChannels(conn, wg)
	}
	time.Sleep(time.Second)
	fmt.Println("Conn close")
	conn.Close()

	wg.Wait()
}

func main() {
	channels()
}

It hangs in channel.go's call function. It waits infinitely to receive something from me.rpc. Maybe you should close rpc channel on shutdown?
In my experiments adding close(me.rpc) in shutdown method of a channel helped.
// Performs a request/response call for when the message is not NoWait and is
// specified as Synchronous.
func (me *Channel) call(req message, res ...message) error {
	if err := me.send(me, req); err != nil {
		return err
	}

	if req.wait() {
		select {
		case e := <-me.errors:
			return e

		case msg := <-me.rpc:
			if msg != nil {
				for _, try := range res {
					if reflect.TypeOf(msg) == reflect.TypeOf(try) {
						// *res = *msg
						vres := reflect.ValueOf(try).Elem()
						vmsg := reflect.ValueOf(msg).Elem()
						vres.Set(vmsg)
						return nil
					}
				}
				return ErrCommandInvalid
			} else {
				// RPC channel has been closed without an error, likely due to a hard
				// error on the Connection.  This indicates we have already been
				// shutdown and if were waiting, will have returned from the errors chan.
				return ErrClosed
			}
		}
	}

	return nil
}

Cheers for the sample @domashevskiy - was in another frame of mind deep in another project earlier when I logged this and reproducing it simply was rather beyond me at the time haha.
I tried go run -race and it actually failed to report anything in my specific setup which was infuriating to say the least.

I just bumped into this one as well. I'm cancelling a consumer on a failed channel using channel.Cancel(...) and the channel waits forever in on a select statement here:
https://github.com/streadway/amqp/blob/master/channel.go#L149
I'm experienced this on an earlier version of the code so I pulled the latest commit (f4879ba28fffbb576743b03622a9ff20461826b2) and it's still there.
Adding a close(me.rpc) during the channel shutdown solves the problem.

I believe #223 (via #188) addresses this.


Documentation hyperlink failing

The link in the documentation Handling of Mixed Integer variables, should return a notebook but is giving a 404 error.
It can be found here. It is entitled "Handling of mixed integer variables".

fixed by  #617


Check the http url response's status code before using it

Previously the NSHTTPURLResponse's status code passed to the completion handler of dataTaskWithRequest in start() in OAuthSwiftHTTPRequest was only checked after the response and data objects had been used. This PR fixes that.

Close this PR


Fix dialog window centered on small screens

Since the padding can't be negative, the window isn't well centered on small devices.

@oliviertassinari Do you have a test case to reproduce this problem?


File name is not as settings imply

Describe the bug
App always adds date of editing
To Reproduce
Set options as screenshot shows
edit file and save
the file name is [prefix]_[filename]_[date]_[number].[extension]
if you enable file size the file name remains the same
Expected behavior
With the settings in the screenshot the file name should be [prefix]_[filename]_[number].[extension], with size enabled [prefix]_[filename]_[size]_[number].[extension]
Screenshots

Smartphone (please complete the following information):

Device: Shiftphone 6mq
OS: /e/OS (based on LineageOS for microG), Android 13

[Feature request] in this context: Please, allow without prefix if at least one other name supplement is enabled, e.g [filename]_[number].[extension]

Check out the latest alpha, i've made some improvements there 👀

Thank you very much for the improvements!
Prefix and size issues are solved. The editing date is still added always. This needs annother toggle to turn on/off.
If a number is selected as the only difference to the original file name and there exists such a file already, the app must increment the number. Perhaps this is implemented already but does not come into play because of the added date.

Fixed i hope


When VueDrawingCanvas is wrapped in another component, drawing offset is wrong

Before I started using your VueDrawingCanvas I tried to create my own canvas and got it working, but couldn't get touch to work and I had encountered this offset problem too.
I had this issue because I used the mouse position to draw instead of the position of the mouse relative to the canvas element...
I accomplished it by creating this code, as you can see I use mouseCanvasX and Y instead of e.clientX directly:
`
const draw = (e) => {
const rect = canvas.getBoundingClientRect();
let mouseCanvasX = (e.clientX - rect.left) / (rect.right - rect.left) * canvas.width;
let mouseCanvasY = (e.clientY - rect.top) / (rect.bottom - rect.top) * canvas.height;
  ctx.lineTo(mouseCanvasX, mouseCanvasY);
  ctx.stroke();
}

`

I have this problem as well, my current solution is to just use overflow scroll - and let user scroll if the canvas is larger than the viewport

I have this problem as well, any updates? I need my canvas to be responsive


Select with suggest data from backend

I have select element in node with suggest data from backend and I have problem with save data.
It will save option value, its OK, but how to save text of option and how to import it?
For exampple:
<select df-value class="select-suggest ignoreinit" >
<option value="1">Test data</option> <- generated dinamcally by another suggest library
</select>

It will save "1" but how to save also "Test data" and next time load it dinamically?

You could update the node html like this and save it or call some function to update the selector.

https://github.com/jerosoler/Drawflow/issues/40
Other example:
https://github.com/jerosoler/Drawflow/issues/226


[bootstrap] Replace old bootstrap with new bootstrap

We've successfully switched to the new bootstrap script so we can get
rid of the old bootstrap code now.

@swift-ci smoke test

@aciidb0mb3r: I noticed that the new bootstrap strip no longer adds the @executable_path/../lib/swift/macosx RPATH to SwiftPM tool binaries like swift-build and swift-package.
This led to RPATH issues for toolchains built using build-toolchain-tensorflow (adapted from build-toolchain):
$ swift build
dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2019-12-19-a.xctoolchain/usr/bin/swift-build
  Reason: image not found
[1]    45688 abort      swift build

I wonder if you encountered any similar issues?

A temporary fix was us is to re-add the @executable_path/../lib/swift/macosx RPATH for SwiftPM tool binaries.
$ sudo install_name_tool -add_rpath<EMAIL_ADDRESS>/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2019-12-19-a.xctoolchain/usr/bin/swift-build
$ sudo install_name_tool -add_rpath<EMAIL_ADDRESS>/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2019-12-19-a.xctoolchain/usr/bin/swift-package
$ sudo install_name_tool -add_rpath<EMAIL_ADDRESS>/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2019-12-19-a.xctoolchain/usr/bin/swift-run
$ sudo install_name_tool -add_rpath<EMAIL_ADDRESS>/Library/Developer/Toolchains/swift-tensorflow-DEVELOPMENT-2019-12-19-a.xctoolchain/usr/bin/swift-test

The discussion at https://github.com/tensorflow/swift/issues/347 has more context.

I did some more investigation.
/usr/lib/swift is added as an RPATH for toolchains built from apple/swift:tensorflow branch, but not for toolchains built from apple/swift:master. This seems related to the build-script -toolchain-stdlib-rpath flag, which is true by default on tensorflow branch but false on master branch: code here.
To support toolchains built with -toolchain-stdlib-rpath=true (non-Swift-in-the-OS use cases), perhaps re-adding the @executable_path/../lib/swift/macosx RPATH in Utilities/bootstrap for SwiftPM tool binaries is a robust solution.
@aciidb0mb3r: does this solution make sense to you? SR-1967 seems like a related issue.

@aciidb0mb3r: What do you think?  Right now using the package manager is busted for Swift for Tensorflow toolchains due to this.

Specifically what about the use-case of using a third-party toolchain on Darwin?  They would not be using the OS version of the swift libs since they provide their own.

I think we can add a flag in the bootstrap script to add the rpath. Will that work for tensor flow?


Feature: Add search to the website

We should have search functionality so it's easier to find references to specific terms and keywords.

Would you like to apply here for docsearch with algolia? I can raise a PR and we shall add it 😄
https://docsearch.algolia.com/apply/

This one can be closed now 😄


104 lesson is 404 - Not found

Hello, Anton!
I greatly appreciate your lessons
Lesson 104 "How to Install Prometheus and Grafana on Ubuntu" is not available - https://antonputra.com/monitoring/Install-prometheus-and-grafana-on-ubuntu/

https://github.com/antonputra/tutorials/tree/main/lessons/104

Thanks for letting me know, fixed - https://github.com/antonputra/tutorials/pull/114/files


Update Set-ADUser.md

Added a note to clarify  between remove and clear attribute

Issue #https://github.com/MicrosoftDocs/windows-powershell-docs/issues/1777

cc @dariomws @get-itips @tseward

I think this is already stated in the cmdlet parameters for -Clear/-Remove.

Docs Build status updates of commit 5d3a3eb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

docset/windows/addsadministration/Set-ADUser.md
:x:Error

Details

docset/windows/addsadministration/Set-ADUser.md

[Error]

Failed to parse this MAML markdown file due to :432:(3219) '> [!NOTE]
> The Difference between  -Clear and -r...'
 Expect Heading, please use PlatyPS to do content validation

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Agree w @tseward

Thank you.


x/mobile: Undefined symbols _res_9_nclose with Go 1.20

What version of Go are you using (go version)?

$ go version
go version go1.20 darwin/arm64

Does this issue reproduce with the latest release?
Using MacOS with Go 1.20 error, no issue in 1.19.5
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/name/Library/Caches/go-build"
GOENV="/Users/name/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/name/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/name/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hr/1lxcf_8s41dfqq139phd6twm0000gn/T/go-build1419606280=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
After compiling using gomobile bind -v -ldflags='-s -w' -target=ios -o libtest.xcframework github.com/example/test in terminal and import the libtest.xcframework library to xcode, it will show error in xcode when trying to compile ios app
What did you expect to see?
What did you see instead?

Undefined symbols for architecture arm64:
"_res_9_nclose", referenced from:
_internal/syscall/unix.libresolv_res_9_nclose_trampoline.abi0 in Libtest(go.o)
"_res_9_ninit", referenced from:
_internal/syscall/unix.libresolv_res_9_ninit_trampoline.abi0 in Libtest(go.o)
"_res_9_nsearch", referenced from:
_internal/syscall/unix.libresolv_res_9_nsearch_trampoline.abi0 in Libtest(go.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Related: https://github.com/golang/go/issues/58159

(attn @golang/ios)

import the library to xcode

Import how? (Is there something you need to configure in xcode to set the linker flags for the final executable?)

Import xcframework to xcode project target. No, nothing to configure in xcode

@xDragonZ, try adding libresolv.9.tbd and/or libresolv.tbd in the Linked Frameworks and Libraries section.
(See https://mozilla.github.io/firefox-browser-architecture/experiments/2017-09-06-rust-on-ios.html.)

Great! Want to send a CL to update the documentation?
(Probably goes in one of the files in https://cs.opensource.google/go/x/mobile/+/master:cmd/gomobile/ ..?)

Could you please share how you got this working? Running into the same issue and somehow adding libresolv.tbd and libresolv.9.tbd (for me it shows under Apple SDK and not IOS SDK; not sure if that matters) does nothing.

@gurupras you need to add it to "Frameworks & Libraries" section too

Hi friends,
Not understanding if downstream now needs to deal with this from now on or if this will eventually be resolved upstream and will go away.

Adding to Frameworks & Libraries wasn't working for me. I had to go to Build Phases > Link Libraries and add it there

Hola puedes dejar lo
Pasos que hiciste plis???
Tengo el mismo problema y no entiendo bien lo qué hay que hacer por favor necesito saber qué fue lo que hizo

Any updates?

include  -tags=netgo while compiling
e.g
gomobile bind -v -tags=netgo -ldflags='-s -w' -target=ios -o libtest.xcframework

Unfortunately, the suggested fix to use -tags=netgo appears to cause DNS resolution issues on real iOS devices running iOS 17+. It seems that Apple is preventing DNS resolvers embedded by apps to work properly.


existsWmsstore defect fix

Resolved #190
existsWmsstore was calling existsCoveragestore instead of overloaded existsWmsstore

I know I am asking alot, but can you add a test to this PR ? :)


Fixed:

Summary
Every time you leave a room, it will now call the unmute audio functionality. This will give the user the default settings on their next meeting.
Ticket Link
https://trello.com/c/8Idkk0r8/60-when-you-leave-a-meeting-muted-and-then-you-come-back-to-any-meeting-you-stay-muted-with-no-warning
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Has redux changes (please link)

 When you leave a meeting muted, and then you come back to any meeting, you stay muted with no warning

 When you leave a meeting muted, and then you come back to any meeting, you stay muted with no warning


Feature/alert state required

added code to remove alert once new search with state selection is made (disappears upon click of "find parks" button)

I'm going to close this one for now, there were some merge conflicts I want to take a look at. Will either reopen or try a new commit once I've finished resolving any conflicts.


primus: fatal: failed to open main X display

I don't know why only this one prompt.
linux-nfqy:/home/zqh # primusrun glxspheres
primus: fatal: failed to open main X display
linux-nfqy:/home/zqh # optirun -b primus glxspheres
primus: fatal: failed to open main X display
zqh@linux-nfqy:~> optirun glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GTX 860M/PCIe/SSE2
204.646505 frames/sec - 228.385500 Mpixels/sec
^C[  956.895191] [WARN]Received Interrupt signal.
zqh@linux-nfqy:~> primusrun glxspheres
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x10f
Context is Direct
OpenGL Renderer: GeForce GTX 860M/PCIe/SSE2
Segment error (core dumped)

system:opensuse tumbleweed       4.17.12-1-default


Release Beta

Releasing the server with the following high-level changes

Support for default attributes in the schema
Support for atomic number operations
Update of application path to appKeys

Codecov Report
Base: 34.42% // Head: 35.27% // Increases project coverage by +0.85% :tada:

Coverage data is based on head (ca21751) compared to base (4817c83).
Patch coverage: 49.19% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             beta     #677      +/-   ##
==========================================
+ Coverage   34.42%   35.27%   +0.85%
==========================================
  Files         103      105       +2
  Lines       11516    12219     +703
==========================================
+ Hits         3964     4310     +346
- Misses       7190     7521     +331
- Partials      362      388      +26

Impacted Files
Coverage Δ

api/server/v1/marshaler.go
9.96% <0.00%> (-0.66%)
:arrow_down:

internal/data.go
34.17% <0.00%> (ø)

server/middleware/middleware.go
0.00% <0.00%> (ø)

server/services/v1/api.go
0.00% <0.00%> (ø)

server/services/v1/query_runner.go
4.65% <0.00%> (-0.60%)
:arrow_down:

schema/default.go
40.90% <40.90%> (ø)

server/services/v1/mutator.go
59.09% <59.09%> (ø)

schema/fields.go
77.60% <71.42%> (-0.14%)
:arrow_down:

query/update/operator.go
71.23% <73.03%> (+0.74%)
:arrow_up:

schema/schema.go
53.99% <75.00%> (+0.65%)
:arrow_up:

... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Remove ?Sized bounds or add CI test that they work

https://github.com/rust-windowing/softbuffer/pull/132 added trait bonds with ?Sized.
Context<dyn HasDisplayHandle> was mentioned there, but if you try to specify that type anywhere, it errors because Context and ContextDispatch do not have D: ?Sized bounds. So the public API doesn't actually allow that.
Adding those bounds is easy, but is there a way to construct a Context<dyn HasDisplayHandle>?
If ?Sized is useful, we should make sure it works and have a test that it continues working on all platforms. Otherwise, it can be removed, which may make other refactoring easier.
CC @notgull

Is there any explicit refactoring that doesn't work with ?Sized bounds?
I think it only works on Nightly, but there I think you can coerce an &Context<Window> to an &Context<dyn HasDisplayHandle>.

I don't think it should be an issue with anything, but ?Sized may need to be added in more places, and some care may be needed not to break this use case, so if it's possible it would be good to have a test for it.
It's also possible to use Context<Box<dyn HasDisplayHandle>>, so the advantage is saving an extra boxing, I guess.

I don't think Rust could allow a coercion from Context<T> to Context<dyn HasDisplayHandle<T>> since type type signature doesn't express exactly how the T is used.
I think if it's possible we'd at least need to provide some kind of conversion for that to work. And I don't know exactly how that works when we have a boxed/ref-counted custom unsized type containing the T.


[EventHubs] Handle errors not tied to a partition

EventProcessor{TPartition} passes a null partition object when
calling OnProcessingErrorAsync if the error is not tied to a specific
partition. We were not correctly handling this case. We should be
creating an ProcessErrorEventArgs with a null Partition ID in this
case, but instead we would crash.
This issue was introduced as part of the refactoring effort to make
EventProcessorClient inherit from EventProcessor.

Going to merge this in so that I can pick out the commit hash to release from on Monday.... apologies if that stomps any tweaks that you were planning.


Implement a Kimchi (o1js) verifier

See https://github.com/Hyle-org/hyle/issues/26
This issue will be closed alongside that one

can i take on this ?


Access list restrictions not preventing access through ipv6

Checklist

Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?

Yes

Are you sure you're not using someone else's docker image?

Yes

Have you searched for similar issues (both open and closed)?

Yes

Describe the bug
On the server services are accessed through Nginx but restricted to certain IPv4 subnets with Access Lists.
When useing Domain AAAA record with IPv4, Nginx behaves as expected and restricts access accordingly.
When useing Domain AAAA record with IPv6, all servicess can be accessed from outside the Subnet restriction list.
An example service was restricted to local network Subnet. Using a device outside the network, i was able to access it. on the other hand, when activating VPN, the service is again restricted.
the fact it was accessible at all is concerning.
Edit: I also tried restricting the Service by adding fe80::/10 to limit access to Link-Local Unicast (Same switch). No success.. Service can still be accessed.
Nginx Proxy Manager Version
v2.10.3
To Reproduce
Steps to reproduce the behavior:

create a service with restricted access to local network; for example <IP_ADDRESS>/24.
create a AAAA domain record with the IPv6 of the server.
test if the service is accessble through the assigned Domain outside the network.

Expected behavior
since there are no IPv6/Subnet specified in the Access List and only Local Network IPv4/Subnet is provided, access should be denied if the device is not on the local network.
Operating System
Nginx on Docker Engine 24.0.2; Debian GNU/Linux 12 (bookworm)

I just saw a video on a reddit post about this issue;
https://www.reddit.com/r/selfhosted/comments/14qi7ci/risk_of_selfhosting_smaller_projects/
I am not really getting any hints as to what is the reason behind this open bug on the comments there.
And I am rather shocked to find this issue is still open here without some motivation why it is left unresolved.
Could well be that this is a non issue but then it would be confidence inspiring to see a debate about that.

I think I also have this issue with the latest version; is there any solution?


compile-command=cargo build breaks workflow

After #216 my workflow become broken.
For example,

I open lib.rs
M-x compile and choose cargo check
jump to buffer with another file in the same crate and invoke M-x recompile,
emacs instead of cargo check calls cargo build,

This is especially wrong for crates that may be compiled only with specific target and not default one. So if type cargo build   --target=arm-linux-androideabi and then recompile
you got compile time error, because it invokes cargo build instead of cargo build   --target=arm-linux-androideabi.

I tend to think that that patch should be reverted.  People who really want to force compile-command like that can easily do it in their mode hook.  But, it seems clear now that the change is not appropriate for all cases.

So having to customize the mode hook is expected behavior? :/
I suppose that's just how emacs works, and this mode cannot do much about that. In my experience, "customize the mode hook" is equivalent to "random mutation of lisp code until it does what I want it to do". I had hoped this one particular customization maybe could be avoided. Oh well. (These problems are the reason why I now avoid using emacs if I can...)

So having to customize the mode hook is expected behavior? :/

Yeah, it's pretty normal.  I think the problem with the approach taken here is that it sets compile-command locally, so that any changes one makes don't apply across the other buffers in the project.  That seems like a minus.
One alternate approach that might work would be to push the cargo build command onto compile-history, maybe with some heuristic like "topmost entry doesn't already start with "cargo"".  This would make M-x compile default to cargo build but without interfering with any changes that have been made.

Oops. Sorry about that. Let me try @tromey’s alternative.

That would be reasonable as well, I think.  Nothing even says we have to use compilation mode; it is convenient but there are other bugs showing how it doesn't always line up exactly with what rust does.

A temporary work around for this:
(add-hook 'rust-mode-hook
          (lambda ()
            (kill-local-variable 'compile-command))

It should be possible to set a flag that prevents rust-mode from ever touching compile-command. I set compile-command myself on each Emacs session depending on what project I am working on (typically (cd ~/... && cargo test)), and bind <f5> to compile.

I second the complaint in this issue. The fact that compile-command became buffer-local  was really confusing me for a while!

Admittedly, I apparently merged the original PR. =)
I feel like I remember reading that compile-command has some ability to customize the default command on a per-mode basis...but perhaps not.

Yay! I now have C-c b bound to rust-compile to run cargo build, and I can use M-x compile to run whatever compilation command I have chosen at the moment. For reference here is my use-package config.

I think this is done now.


Shell integration isn't enabled for Debug terminals

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

Version: 1.86.0 (user setup)
OS: Windows_NT x64 10.0.23620
Steps to Reproduce:

Try debugging a Python file using the Python extension,

Particularly for debug console terminal, shell integration script isn't used:

But when a normal terminal is opened, it is used:

This is leading to broken experience when applying environment collection just using shell integration.

@karrtikr do you set the executable in createTerminal?

@karthiknadig @paulacamargo25 Can you help with how Python debugger is launched?

Debugger uses the run-in-terminal DAP request to launch user code, the extension does not control this terminal launch. The DAP server itself is launched by DAP client (VS code) using DebugAdapterExecutable instances returned by provider registered with registerDebugAdapterDescriptorFactory.

I think this is by design, can't you control debug terminal environments separately?

I'm not clear, can you instruct specifically if there's anything we can check Python's debugger end that might be preventing from using shell integration?
Based on previous discussions, I think VS Code controls the entire experience, and as it predates shell integration, maybe shell integration is not getting invoked for such terminals.

Debug terminals normally run a single command and therefore would get very little out of shell integration.

Users expect our debug terminals to be activated, hence shell integration to set environment variables reliably is required there.

I wouldn't think we should touch such processes anyway in case shell integration somehow conflicts with them.

I would expect debug terminal's environment to be the same as any other normal terminal, or at least an option to make it same as normal terminal would be nice.

Can't you control debug terminal environments separately?

We can configure the "env" before launching, but that does not persist after debugging finishes, also shell integration would still be inactive.

I haven't used "console": "integratedTerminal" in a long time for JS, just used it again and your request makes sense. I thought it launched and was terminated after it was done, much like the debug console:

It is probably safe to add this, it's not being activated because the shell is passed in explicitly here:
https://github.com/microsoft/vscode/blob/a8cda8716fb80b41170aeb251b99a26b276e2bfc/src/vs/workbench/api/node/extHostDebugService.ts#L87-L101
Which disables shell integration here (!shellLaunchConfig.executable):
https://github.com/microsoft/vscode/blob/a8cda8716fb80b41170aeb251b99a26b276e2bfc/src/vs/platform/terminal/node/terminalEnvironment.ts#L115-L122
I think the reason for passing shell and shellArgs is to support the automationShell setting. This could be passed through in the options as a preferAutomationShell so shell integration init knows about it?

Thanks, is it also possible to enable it for task terminals: https://github.com/microsoft/vscode-python/issues/22880 ? Some users launch certain apps via tasks, expecting environment to be activated, and hence are failing.

It's harder for tasks as we run the command in a similar way to how we initialize shell integration as opposed to sending the command in the debug terminal. We could probably do it, but I worry there would be changes in behavior and sometimes it might not work if shell integration is in a weird state. cc @meganrogge

I see, the thing we wanted to accomplish was to prepend an env variable exactly once via env collection, be it via shell integration (preferred) or process creation but not both. If shell integration isn't available for a terminal type, if we can apply those variables at process creation instead, that would also solve the issue.

Doing this for debug terminals makes sense. For tasks I don't think it's possible, I believe you can set the environment for the tasks you make?

@karthiknadig @paulacamargo25 Can we use TerminalOptions to alter the environment for the terminal launched?

For tasks I don't think it's possible, I believe you can set the environment for the tasks you make?

That's not us running tasks, it's the users, so we cannot control their environment unfortunately, unless it's via env collection.
Also, what do you think about falling back to process creation if shell integration does not work for a terminal? https://github.com/microsoft/vscode/issues/204694#issuecomment-1939346552

@karrtikr I'd ask @meganrogge about how to handle the tasks case

Had a chat with @karthiknadig and he says that as the whole debugging experience is configured by core, Python extension does not control the Terminal.creationOptions in the debug terminal which is launched. So unfortunately the flag here as is would not work: https://github.com/microsoft/vscode/pull/205034.
Is there a possibility to always enable shell integration for integrated terminal, instead of providing an option?
@int19h Can you help with what options Python extension does control when launching the "Python debug console" terminal when debugging? And if there is a way to influence Terminal.creationOptions for the debug terminal.

@connor4312 , are you aware if we, the Python extension, can influence the DAP client so that when it creates the debug terminal, we control the enviornment?

No.
But I would also be fine if we wanted to add a custom property in VS Code+the Python extension to RunInterminalRequestArguments that VS Code could interpret to control whether shell integration is enabled. This is a very client-specific behavior and not something we'd want to put in DAP.


Global Utilities

Hey there!
First of all, great work, thanks.
I have a question though - is it possible to create a global utilities file and use it inside my templates?
Let's say I want to have a function that converts the following name myComponent to a dashed format my-component.
I saw the built in utils, but what about custom ones?
Currently I have to copy paste this utility function to each of my templates, but it is obviously not a good way.
Is there an option to do so?

Hi Mor, you're welcome.
The general idea for hygen is that the utility you're looking for should already be there (take a look at what inflect offers (inflection.dasherize( str )).
In this specific case what you're looking for is already there, but in other cases where it's not, we'll be happy to include it in the core hygen codebase (as long as it's generic enough as a utility).
So, bottom line:
<%= h.inflection.dasherize('FooBar') %>

Should result in 'foo-bar'

Thanks for the quick reply, but I honestly think that letting developers add their own utilities is a really great feature that will empower this library :)

It’s a good idea. Plus in the current architecture it should be super easy to do.
What’s your take on how the API should look like?

Including files would be the best, but I am not sure how easy it would be to implement.
Another idea is to have a file that allows export to other files.

I'm kind of faking something like this right now making use of prompts. I use the .when callback of a "Are these settings correct?" prompt. This .when gets handed the complete answers object, so all your inquirer settings. And the best is, that's not a clone, but the reference to the same object that goes to the ejs renderer. So you can add your own props to that object which will then be passed to your templates.
So while i'm not sure that functions defined on the answers would be passed to the ejs renderer, you could simply create shortcuts to all your camelCase, dash-case, PascalCase... props in the answers object and then simply use those properties without even having to call functions in the template:
// prompt.js
import whatever from "whereever"

module.exports = [{
    type: 'confirm',
    name: 'ok',
    message: (answers) => `Are these settings correct?`,
    default: true,
    when: async (answers) => {
       answers.newPropCC = "newProp"
       answers.newPropPC = "NewProp"
       answers.newPropDC = "new-prop"
       ...

       return true // that's important, otherwise the message is never shown
    }
}]

# template.ejs.t
---
to: path/to/file/<%= newPropCC %>.ts
---

In my case I use that callback mainly to run some shell scripts that generate more input for my later generators. (Getting data form SQL schemas to use in my templates later to be precise.)
It feels a little bit hacky and I would love to see this as a real feature somehow (esp. as the answers obj does not hold the name prop you pass via the --name flag).

@alarie awesome hack!
To sum up this issue, I know someone works on a mechanism to load global helpers. I'll close this for now but in exchange I'll open up a 'Roadmap' issue to track progress.

Update: hygen now supports global helpers, see more here: http://www.hygen.io/extensibility


VERIFY OK: depth=0, CN=server; TLS Error: TLS key negotiation failed to occur

Hello, yesterday i seen following status when trying to connect OpenVPN server from my Windows PC:

Mon Apr 23 21:07:14 2018 VERIFY OK: depth=1, CN=ChangeMe
Mon Apr 23 21:07:14 2018 VERIFY KU OK
Mon Apr 23 21:07:14 2018 Validating certificate extended key usage
Mon Apr 23 21:07:14 2018 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Mon Apr 23 21:07:14 2018 VERIFY EKU OK
Mon Apr 23 21:07:14 2018 VERIFY OK: depth=0, CN=server
Mon Apr 23 21:08:14 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Apr 23 21:08:14 2018 TLS Error: TLS handshake failed
Mon Apr 23 21:08:14 2018 SIGUSR1[soft,tls-error] received, process restarting
Mon Apr 23 21:08:14 2018 MANAGEMENT: >STATE:1524510494,RECONNECTING,tls-error,,,,,

It seemed to be similar to the issue that happened to me some time ago, so i tried to execute commands recommended in that issue: https://github.com/Nyr/openvpn-install/issues/352#issuecomment-368208831
but that not helped.
I am using this old version of the script:
$ ls -l openvpn-install.sh

-rw-r--r-- 1 root root 14165 Mar  1  2017 openvpn-install.sh

$ head /etc/openvpn/server.crt

Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=ChangeMe
Validity
Not Before: Oct 24 19:30:29 2017 GMT
Not After : Oct 22 19:30:29 2027 GMT
Subject: CN=server

$ cat /etc/openvpn/server.conf

port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS <IP_ADDRESS>"
push "dhcp-option DNS <IP_ADDRESS>"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nobody
persist-key
persist-tun
crl-verify crl.pem

I already replied to your issue yesterday, not sure why you are opening a new one.


Updated project from RC1 to RC2. Invalid object name 'TableName'

and when launching I get this error:
info: Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory[1]
      Executed DbCommand (17ms) [Parameters=[@__p_0='?'], CommandType='Text', CommandTimeout='30']
      SELECT TOP(@__p_0) [p].[Id], [p].[Body], [p].[CategoryId], [p].[CreatedAt], [p].[Date], [p].[Flavor], [p].[IsDeleted], [p].[IsPublished], [p].[PublishedAt], [p].[Summary], [p].[ThumbnailId], [p].[Title], [a].[Id], [a].[ContentType], [a].[Filename], [a].[OriginalFilename], [a0].[Id], [a0].[Name], [a0].[Slug]
      FROM [Announcements] AS [p]
      LEFT JOIN [AnnouncementThumbnail] AS [a] ON [p].[ThumbnailId] = [a].[Id]
      INNER JOIN [AnnouncementCategories] AS [a0] ON [p].[CategoryId] = [a0].[Id]
      WHERE [p].[IsDeleted] = 0 AND [p].[IsPublished] = 1
      ORDER BY [p].[Date] DESC
fail: Microsoft.EntityFrameworkCore.Query.Internal.SqlServerQueryCompilationContextFactory[1]
      An exception occurred in the database while iterating the results of a query.
      System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (Invalid object name 'Announcements'.)))) ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (Invalid object name 'Announcements'.))) ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (Invalid object name 'Announcements'.)) ---> System.AggregateException: One or more errors occurred. (Invalid object name 'Announcements'.) ---> System.Data.SqlClient.SqlException: Invalid object name 'Announcements'.

database has correct schema/data
Modification i made to the project:
on project json.
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*",`
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0-*",
"Microsoft.EntityFrameworkCore.Commands": "1.0.0-*",

startup.cs:
services.AddEntityFramework()
                .AddEntityFrameworkSqlServer()
                .AddDbContext<ApplicationDbContext>(options =>
                    options.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"]));

I had to add a new constructor to dbcontext like this:
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
    public ApplicationDbContext(DbContextOptions options):base(options)
    {

    }
    // everything else ...
}

and I don't remember anything else I changed (related to ef)
dnvm list
Active Version           Runtime Architecture OperatingSystem Alias
------ -------           ------- ------------ --------------- -----
       1.0.0-rc1-update1 clr     x64          win
       1.0.0-rc1-update1 clr     x86          win
       1.0.0-rc1-update1 coreclr x64          win
       1.0.0-rc1-update1 coreclr x86          win
       1.0.0-rc2-16128   clr     x64          win
       1.0.0-rc2-16128   clr     x86          win             rc2
       1.0.0-rc2-16128   coreclr x64          win             core64
       1.0.0-rc2-16128   coreclr x86          win             core
  *    1.0.0-rc2-20221   clr     x86          win             default

dotnet --info
.NET Command Line Tools (1.0.0-beta-002203)

Product Information:
 Version:     1.0.0-beta-002203
 Commit Sha:  f6fa1cf060

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows

testing running it doing dotnet run.

@Bartmax this is just a guess but is the correct name of the table "Announcement" (without the "s")? For RC2 we are making a change to automatically infer the default names from the names of the DbSet<TEntity> properties of the DbContext so you may need to explicitly specify the name of the table if want to keep the same name you had in RC1.

BTW if you want to go back to the naming from RC1, so that your model and database work together without issues, then just put this code at the start of OnModelCreating(...) on your context:
foreach (var entity in modelBuilder.Model.GetEntityTypes())
{
    entity.Relational().TableName = entity.ClrType.Name;
}

That was exactly my issue. Thanks.
Now, I think this will be good to be mentioned on a migration document.
I want to be able to use the new RC2 table name conventions, what is the suggested approach for my scenario here? Create a new empty migration and add the renames by hand?  will that work?

just in time an announcement were created. Closing.


Custom event click handler blocked due to CSS

Describe the bug
The onEventClick custom trigger is not firing as expected when using the timeline view within the calendar.  This is caused by the timeline-row-item-spacing divs having a z-index value higher than the event div, thus firing the click event of that object and not the event object.  Setting the z-index value to 2001 allows the event to be clicked as expected.  Additionally, I had to set the z-index of the timeline-row-item (row header) to be 2005 to allow the events to scroll underneath them as original functionality intended.
To Reproduce
Steps to reproduce the behavior:
Create basic calendar instance with options set for onEventClick custom trigger that will log a message to the console
Add an event to the calendar
Switch to "Timeline" view using the "View Timeline" button
Click on your new event
View console to see that output is not there for the custom trigger
Expected behavior
Expected that the custom trigger defined in the option to fire, in the most basic example, to write output to the console.
Screenshots
No screenshots.
Desktop (please complete the following information):
OS: Windows 10, v22H2, build 19045.3930
Browser: Chrome v121.0.6167.161 (64-bit), Edge v121.0.2277.112 (64-bit)

I'm going to get this fixed in the next release :)

This has been fixed in v2.10.13.


Added Feature Details of Contributor

Description
I have added a feature details of the contributor
I am fetching the official github api for each user
@thestarsahil  Sir i added all main  details of the contributor  provided by github Other details github will not provide like social like through api
Fixes #1062
Replace issue_no with the issue number which is fixed in this PR
Screenshots
https://github.com/user-attachments/assets/a20fa81b-2e9a-4159-bc2d-713f58f1cee3
Checklist

[ ] Tests have been added or updated to cover the changes
[ ] Documentation has been updated to reflect the changes
[ ] Code follows the established coding style guidelines
[ ] All tests are passing

This is not working , do mannually
Visit their linkdein Profile and exctract data to show
as datatype should same in any how

@Ayushmaanagarwal1211 This is  not working
What i said you have to implement that

@thestarsahil  Sir i am doing but i didn't find details of many contributor on their linkedin

@thestarsahil  Many of them didn't entered their linkedin profile link on their github and those who entered i am not getting their social links and other details

Just mentioned College Name

The information you got feed , rest of the information left it

The information you got feed , rest of the information left it

Ok sir so i will raise pr for this today


Move header files to *.hpp

Not the most necessary PR but I was adding a singular header file for BaseOptions and thought: "Hmmm... Making a PR to add 4 lines is stupid, might as well just fix the header issue"
Right now I have it so that the cmake list ignores normal .h that way we're forced to use .hpp but I can always change it back if necessary.
P.S
Apologies for any unmerged forks and mods.

We are finally using C++


frame size exceeded on messages > 4096 bytes

Describe the bug
When a message is received with a size larger than 4096 bytes (or rather, 4088 taking the header in to account), the library throws an error stating that the frame size has been exceeded, despite it stating the frame size is set to the default of 131072.
Sample code
I'm not using the provided TCP implementation, instead I am using uSockets  as the underlying network layer.  I have provided the full implementation.  And before you ask, YES everything runs in the same thread.  uSockets is a single threaded library.
#include <amqpcpp.h>
#include <libusockets.h>
#include <nlohmann/json.hpp>

#include <memory>

class UsHandler : public AMQP::ConnectionHandler {
private:
    us_socket_t* _socket;
    std::unique_ptr<AMQP::Channel> _channel;

public:
    UsHandler(us_socket_t* socket): _socket(socket) {}

    void onReady(AMQP::Connection* connection) override {
        spdlog::info("AMQP client connected");

        _channel = std::make_unique<AMQP::Channel>(connection);

        _channel->declareQueue(AMQP::exclusive).onSuccess([&](const std::string& name, uint32_t messagecount, uint32_t consumercount) {
            spdlog::info("Declared response queue: {}", name);

            _channel->consume(name).onSuccess([name, this]() {
                spdlog::info("Response consumer registered");

                // Send an RPC message
                nlohmann::json j = {
                    { "type", "queryPlotOwners" },
                    { "area", {
                        { "x", 0 },
                        { "y", 0 },
                        { "w", 10 },
                        { "h", 10 },
                    } }
                };

                std::string msg = j.dump();
                AMQP::Envelope env(msg.data(), msg.size());
                env.setContentType("application/json");
                env.setCorrelationID("1337");
                env.setReplyTo(name);

                _channel->publish("", "plot.requests", env);

            }).onMessage([&](const AMQP::Message& message, uint64_t deliveryTag, bool redelivered) {
                std::string_view m(message.body(), message.bodySize());
                spdlog::info("Received response ({}): {}", message.correlationID(), m);
                _channel->ack(deliveryTag);
            });
        });
    }

    void onData(AMQP::Connection* connection, const char* data, size_t size) override {
        spdlog::info("Sending {} bytes", size);
        us_socket_write(0, _socket, data, size, 0);
    }

    void onError(AMQP::Connection* connection, const char* message) override {
        spdlog::info("AMQP connection error: {}", message);
    }

    void onClosed(AMQP::Connection* connection) override {
        spdlog::info("AMQP connection closed");
    }
};

struct AmqpState {
    std::unique_ptr<UsHandler> handler;
    std::unique_ptr<AMQP::Connection> connection;
};

// The following are not required for this simple reproduction
static void on_wakeup(struct us_loop_t* loop) {}
static void on_pre(struct us_loop_t* loop) {}
static void on_post(struct us_loop_t* loop) {}
static us_socket_t* onWritable(struct us_socket_t* s) { assert(false); return s; }
static us_socket_t* onTimeout(struct us_socket_t* s) { assert(false); return s; }
static us_socket_t* onEnd(struct us_socket_t* s) { assert(false); return s; }

static us_socket_t* onOpen(struct us_socket_t* s, int is_client, char* ip, int ip_length) {
    AmqpState* state = (AmqpState*)us_socket_ext(0, s);
    state->connection->ready();
    return s;
}

static us_socket_t* onData(struct us_socket_t* s, char* data, int length) {
    AmqpState* state = (AmqpState*)us_socket_ext(0, s);
    spdlog::info("Received {} bytes.  Max frame size: {}", length, state->connection->maxFrame());
    state->connection->parse(data, (size_t)length);
    return s;
}

static us_socket_t* onClose(struct us_socket_t* s, int code, void* reason) {
    AmqpState* state = (AmqpState*)us_socket_ext(0, s);
    state->connection->close();
    return s;
}

int main() {
    us_loop_t* loop = us_create_loop(0, on_wakeup, on_pre, on_post, 0);
    us_socket_context_t* context = us_create_socket_context(0, loop, 0, {});

    us_socket_context_on_open(0, context, onOpen);
    us_socket_context_on_data(0, context, onData);
    us_socket_context_on_writable(0, context, onWritable);
    us_socket_context_on_close(0, context, onClose);
    us_socket_context_on_timeout(0, context, onTimeout);
    us_socket_context_on_end(0, context, onEnd);

    us_listen_socket_t* listenSocket = us_socket_context_listen(0, context, nullptr, 1338, 0, 0);
    us_socket_t* socket = us_socket_context_connect(0, context, "localhost", 5672, nullptr, 0, sizeof(AmqpState));
    AmqpState* state = new (us_socket_ext(0, socket)) AmqpState();

    state->handler = std::make_unique<UsHandler>(socket);
    state->connection = std::make_unique<AMQP::Connection>(state->handler.get(), AMQP::Login("guest", "guest"), "/");

    us_loop_run(loop);
}

Log output:
[2022-08-24 14:56:30.653] [info] Sending 8 bytes
[2022-08-24 14:56:35.963] [info] Received 508 bytes.  Max frame size: 4096
[2022-08-24 14:56:35.964] [info] Sending 260 bytes
[2022-08-24 14:56:35.964] [info] Received 20 bytes.  Max frame size: 4096
[2022-08-24 14:56:35.965] [info] Sending 20 bytes
[2022-08-24 14:56:35.965] [info] Sending 16 bytes
[2022-08-24 14:56:36.013] [info] Received 13 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.014] [info] AMQP client connected
[2022-08-24 14:56:36.014] [info] Sending 13 bytes
[2022-08-24 14:56:36.014] [info] Received 16 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.015] [info] Sending 20 bytes
[2022-08-24 14:56:36.017] [info] Received 51 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.017] [info] Declared response queue: amq.gen-wNnCXDU6uJlxMnadVURwBQ
[2022-08-24 14:56:36.017] [info] Sending 51 bytes
[2022-08-24 14:56:36.018] [info] Received 44 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.018] [info] Response consumer registered
[2022-08-24 14:56:36.018] [info] Sending 37 bytes
[2022-08-24 14:56:36.018] [info] Sending 75 bytes
[2022-08-24 14:56:36.018] [info] Sending 69 bytes
[2022-08-24 14:56:36.066] [info] Received 4088 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.067] [info] Received 6450 bytes.  Max frame size: 131072
[2022-08-24 14:56:36.068] [info] AMQP connection error: frame size exceeded

Just read this part of the docs You should do all the book keeping for the buffer yourselves..  False alarm!!


InferType-changes

This PR address errors in test from the use of the new inferType to get node types. This can not be merged yet because it create conflicts with the old way of getting the nodes type.
Test's passed:

abiEncode/
abiDecode/
abstractContracts/
anonymousParameters/
arrayLen/
assembly/
assignments/
boolOperators/
builtins/

Test's not passed
Known errors

typeOfLiterals returns a specific and narrower set of types, the logic over some of the assumption on the expected types must be changed. Handling literals is an open discussion #849
Can not Abi-encode mapping types. Warp create new function definitions along the transpiling process, It's common for inferType to compute the type of those func computing their signature. This is not always possible for the new functions.
safeGetNodeType with inferType return a specialized type, some cases were implemented thinking in a generalized type

Problems solved:

The function to generate the typestring for pointer write down the location even if it is default, so the inconsistency ast check found that and throw an error
The type of a function call to a struct constructor had some minor diference between the two approach to get the type, so an assert was triggered down the way telling that it wasn’t the expected type structure.
Was assumed that the type of node was not specialized, so when datalocation was changed to calldata it threw an error.
If exist a typeName in code it is deleted only after AbiBuiltin pass. This logic is necessary because is know that the second argument of abi.decode should be a tuple of TypeNames.

This pr is waiting for behaviour tests to be working on the Cairo 1.0 branch.


add already mount's

is there away to add mounts. i have already got mounted?

I would also like to know if this is possible.
I can get stuff to mount via the CLI without an issue but when added via CLI it does not show in webui as a mount.
When mounting via webui it says invalid bucket. The one time I got it working it created a folder as named :
I tried all these different combinations to mount the buckets contents only to the mount point.
remote:bucket_name/
remote:bucket_name
remote:bucket_name:/
remote:bucket_name/:
remote:/bucket_name
This works fine via cli and lets me list stuff
rclone mount remote:bucket_name /home/backup --daemon
Doing the same by setting this for the mount point: remote:bucket_name results in it not working unless you create an alias which has the bucket specified. Which also is not selectable like the main remote is. That's a different issue though im guessing


CLI not compatible with cilium status 1.10

$ cilium status

    /¯¯\
 /¯¯\__/¯¯\    Cilium:         2 errors
 \__/¯¯\__/    Operator:       OK
 /¯¯\__/¯¯\    Hubble:         OK
 \__/¯¯\__/    ClusterMesh:    OK
    \__/
Deployment        clustermesh-apiserver    Desired: 1, Ready: 1/1, Available: 1/1
DaemonSet         cilium                   Desired: 2, Ready: 2/2, Available: 2/2
Deployment        cilium-operator          Desired: 1, Ready: 1/1, Available: 1/1
Deployment        hubble-relay             Desired: 1, Ready: 1/1, Available: 1/1
Containers:       cilium                   Running: 2
                  cilium-operator          Running: 1
                  hubble-relay             Running: 1
                  clustermesh-apiserver    Running: 1
Image versions    cilium                   quay.io/cilium/cilium-ci:8a2a4e32b24859dbf3c4d00809c2c35aa85d75cb: 2
                  cilium-operator          quay.io/cilium/operator-aws:v1.9.3: 1
                  hubble-relay             quay.io/cilium/hubble-relay:v1.9.3: 1
                  clustermesh-apiserver    quay.io/coreos/etcd:v3.4.13: 1
                  clustermesh-apiserver    quay.io/cilium/clustermesh-apiserver:v1.9.2: 1
Errors:           cilium                   cilium-tbtzm    unable to retrieve cilium status: unable to unmarshal response of cilium status: json: cannot unmarshal object into Go struct field KubeProxyReplacement.kube-proxy-replacement.devices of type string
                  cilium                   cilium-kzgks    unable to retrieve cilium status: unable to unmarshal response of cilium status: json: cannot unmarshal object into Go struct field KubeProxyReplacement.kube-proxy-replacement.devices of type string

Will be fixed by https://github.com/cilium/cilium/pull/15143


Security update

a vulnerability was found in node-tar before version 4.4.2.
Description
I received an email  about security vulnerability from github. 👮
I executed npm audit fix.
Compatibility
no
Caveats
no

:tada: This PR is included in version 2.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


assert isinstance(results, list), 'results must be a list'

Model/Dataset/Scheduler description
Hi, when i want to use Wanb hook, i got assert isinstance(results, list), 'results must be a list' error. However after i remove wandb hook, training finish successfully. How can i resolve??
result return Nonetype, when i remove wandbhook, everything runs correctly. i changed nothing. Furthermore, when --no-validate is running, training finished succesfully.
Finally, i recognized source of problem, mmdet/api/train.py  runner.register_hook(eval_hook(val_dataloader, **eval_cfg), priority='LOW')

I tried default config, i downloaded official repo, i recreated conda environment but it doesnt work.

I added wandb log config which is shown below to centerpoint_02pillar_second_secfpn_4x8_cyclic_20e_nus config
log_config = dict(hooks=[
dict(type='TextLoggerHook'),
dict(type='MMDetWandbHook',
init_kwargs={'project': 'Centerpoint'},
interval=20,
log_checkpoint=True,
log_checkpoint_metadata=True,
num_eval_images=3)
]
)
checkpoint_config = dict(interval=20)
evaluation = dict(interval=20, pipeline=eval_pipeline)
Open source status

[ ] The model implementation is available
[ ] The model weights are available.

Provide useful links for the implementation
No response

I found problem, i removed    log_checkpoint_metadata=True in init kwargs dict and it works, but i dont understand source of problem

Where did the error assert isinstance(results, list), 'results must be a list' error occur? Please provide detail logs.

Traceback (most recent call last):
  File "tools/train.py", line 263, in
    main()
  File "tools/train.py", line 252, in main
    train_model(
  File "/home/adastec/mmdetection3d/mmdet3d/apis/train.py", line 344, in train_model
    train_detector(
  File "/home/adastec/mmdetection3d/mmdet3d/apis/train.py", line 319, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 136, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 58, in train
    self.call_hook('after_train_epoch')
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/runner/base_runner.py", line 317, in call_hook
    getattr(hook, fn_name)(self)
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/runner/dist_utils.py", line 135, in wrapper
    return func(*args, **kwargs)
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmdet/core/hook/wandblogger_hook.py", line 219, in after_train_epoch
    **self._get_eval_results()
  File "/home/adastec/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmdet/core/hook/wandblogger_hook.py", line 314, in _get_eval_results
    eval_results = self.val_dataset.evaluate(
  File "/home/adastec/mmdetection3d/mmdet3d/datasets/nuscenes_dataset.py", line 504, in evaluate
    result_files, tmp_dir = self.format_results(results, jsonfile_prefix)
  File "/home/adastec/mmdetection3d/mmdet3d/datasets/nuscenes_dataset.py", line 443, in format_results
    assert isinstance(results, list), 'results must be a list'
AssertionError: results must be a list
wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing.

@JingweiZhang12 but why tensorboardhook or texthook run correctly, i dont get any error

Suggest that you could print or set a breakpoint to inspect the results in the error place.


Fatal Exception: java.lang.OutOfMemoryError

My Android  app is using React Native 0.22.0, developed on Mac. Everything is fine on development. After releasing today, I got crash reports from Crashlytics.
Report is
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 23103292 byte allocation with 13011316 free bytes and 12MB until OOM
       at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
       at android.graphics.Bitmap.nativeCreate(Bitmap.java)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:942)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:913)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:880)
       at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:55)
       at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:30)
       at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:259)
       at com.facebook.imagepipeline.platform.ArtDecoder.decodeStaticImageFromStream(ArtDecoder.java:137)
       at com.facebook.imagepipeline.platform.ArtDecoder.decodeFromEncodedImage(ArtDecoder.java:81)
       at com.facebook.imagepipeline.decoder.ImageDecoder.decodeStaticImage(ImageDecoder.java:127)
       at com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage(ImageDecoder.java:94)
       at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:188)
       at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200(DecodeProducer.java:96)
       at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:128)
       at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:207)
       at com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:27)
       at com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:78)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)
       at java.lang.Thread.run(Thread.java:818)

About 50% users face this issue. Really need to be fixed.

The device is running out of memory, in the first case it is trying to allocate 22mb for a bitmap where there is only 12mb available. Do you know how much memory your app was allocating until that crash ? because it may be a memory leaking issue

I haven't noticed anything alarming in the apps I have deployed on Android to the Play Store recently. Could you provide more background here? I believe this is a subject to proper profiling so that we can get an idea what's going on here.

android/app/src/main/AndroidManifest.xml
<application
  android:largeHeap="true"

Adding largeHeap seems fix it

That looks like a solid fix as the reasoning behind why that would be added (based on resource allocation) sounds right.


[BugFix] Fix InfoSchemaDb id increasing continuously bug

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #9810
Problem Summary(Required) ：

The information_schema db is not persisted, it is generated in loadCluster when loading image. Its id will increase once the loadCluster is called. If the cluster runs for a long time(3 months for example), its id may be bigger than 10000 ( which is the upper limit of system id), because the loadCluster will be called every time a checkpoint is done. The reason why the information_schema db's id will be increased maybe there will be many clusters in the system and every cluster will have its own information_schema db. But the cluster has be deprecated in our system, so we just give a fixed id number for every system db or table.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/SystemId.java
0
1
00.00%
[22]

:large_blue_circle:
com/starrocks/catalog/InfoSchemaDb.java
1
1
100.00%
[]

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/SystemId.java
0
1
00.00%
[7]

:large_blue_circle:
com/starrocks/catalog/InfoSchemaDb.java
1
1
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 1 / 2 (50.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/SystemId.java
0
1
00.00%
[7]

:large_blue_circle:
com/starrocks/catalog/InfoSchemaDb.java
1
1
100.00%
[]

@mergify backport branch-2.4


Clicked Heading Is Placed In Middle Of Screen Due To setEphemeralState

Not a bug, simply a dream. Love your plugin, it's almost perfect. I only wish that the clicked headings appeared at the top of the page and not in the middle. For me personally, it just feels so strange.
I attempted many solutions such as view.editor.scrollTo() which I couldn't figure out an accurate way to calculate x and y coordinates.
view.editor.scrollIntoView() works, however I can't seem to apply an offset so it is hidden underneath the sticky heading element.
Did you consider any other methods for scroll to? I will say, I do like that setEphemeralState also highlights the clicked title. Best of both worlds would be setEphemeralState with the option like scrollIntoView has that you can set to false or true and it either centers, or puts at the top: Editor.scrollIntoView() method
Maybe something we can add as an option, should we be able to figure out how to scroll it to the top of the page?

I think scrollIntoView might not be feasible. Due to Obsidian's virtual scrolling feature, headings that are outside the viewport might not exist in the DOM at all. I will look into other possible solutions.

I just released a new version. Please give it a try to see if it meets your needs.

@zhouhua you are an absolute genius mate, works perfect. Although highlight doesn't work, yet this isn't a deal breaker for me.  Would some users prefer it to land in the middle?

I think highlighting might not be very necessary either. The effect similar to scrollIntoView({block: 'nearest'}) is more intuitive, so I'll skip adding a setting option for it.