OCPBUGS-3904: Register unknown instance groups

This PR solves a bug, where machines were stuck in add/delete phase when removing a failure domain from CPMS.
Whenever we encounter an instance group that is unknown to us, we register it.
Edit: Have to add that new instance group to load balancer.

When a failure domain got deleted/added, a machine used to get stuck in provisioning/deleting phase.  There used to be an issue with a instance group not being registered. When that happens now, we register that instance group and then assign it to a backend service. There is an issue with the new instance group now being ready in time to be assigned to the backend service, we solve that by wrapping the function that does that in retry.OnError(). We set a backoff for that and amount of repetitions. This seems to be working nicely, but I wonder, if there is some nicer solution to that?

@JoelSpeed, Fixed tests & restructure the code as you mentioned above. Tested it and everything is working.

Found about function that was already in the reconciler file - isNotFoundError(err). Had to get rid of function that was wrapping method compute.instanceGroup.Get from the google API to use it - it was messing up the returning err type - googleapi.Error and we check for err code 404. Tests are fixed. Code should now be clean as well IMO. All the jobs should pass as well.

/jira refresh

/lgtm
/approve

/hold for QE approval

/retest

/label qe-approved

/hold cancel

/retest

/retest-required

The e2e GCP tests should now pass with this PR merged.

/retest

The test failing now, even after the introduction of the additional permission has to do something with the leakage of custom roles created by CCO in CI. Will try to run that e2e test again once this is solved.

/retest-required


Req. #11 - Depending on how PS / Daemon interfaces to clients, determine whether or not local IPC can be used

Description: Determine whether or not local IPC can be used for Daemon requests or if messages must be sent over the internet (INET sockets). May need to rewrite to move to alternate method / abandon local solutions (#20)
Artifact: The answer will be provided in the end-of-sprint release notes, which will be provided to the GTA, and in the artifact(s) from issue 12. Laa::Daemon methods for the IPC methods we choose not to support will be removed (that is, either the mqueue support methods or the socket support methods).
Story Points: 3

We have decided messages will be sent over INET sockets.


Something went wrong. Please try again in a couple minutes or raise an issue on GitHub. Thank you!

Data not showing up

It should be working now: https://www.githubwrapped.io/leohonlmc. Please reopen the issue if you are still running into issues.

Works now. Thank you


Added default user/pass/host check

Added a check for $nodeconfig in sendrequest() so you don't have repeat that bit.

I like the idea, but $nodeconfig is inaccessible inside send_request(). With global $nodeconfig before the checks it should work.


Large emails not being delivered

Hi,
just a quick question / issue:
I raised the maximum email size considerably using a postfix-main.cf, then sent a 115mb testmail to another user on my mailserver, which is accepted for delivery by postfix but never actually shows up in the receipients mailbox.
Am I missing something here?
Best regards,
Tilman

Hi,
I checked #629, but this does not relate to my issue. I did change message_size_limit (and check mailbox_size_limit), which is picked up by postfix, my mail is being accepted but never being delivered to a user' s inbox.
Best regards,
Tilman

I guess this might be the culprit:
May 17 17:23:20 mail dovecot: lmtp(xx@xxx.xx): Fatal: master: service(lmtp): child 25980 returned error 83 (Out of memory (service lmtp { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump),
May 17 17:23:20 mail dovecot: lmtp(tl@optimalplanen.de): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x9e412) [0x7fd04677a412] -> /usr/lib/dovecot/libdovecot.so.0(+0x9e50d) [0x7fd04677a50d] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0x7fd046709dd0] -> /usr/lib/dovecot/libdovecot.so.0(+0xbb1a6) [0x7fd0467971a6] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_grow_buffer+0x8e) [0x7fd046786a2e] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_try_alloc+0xad) [0x7fd046786b1d] -> /usr/lib/dovecot/libdovecot.so.0(+0xad729) [0x7fd046789729] -> /usr/lib/dovecot/libdovecot.so.0(+0xad7e6) [0x7fd0467897e6] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x53) [0x7fd046785e13] -> /usr/lib/dovecot/libdovecot.so.0(+0xb2449) [0x7fd04678e449] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read+0x53) [0x7fd046785e13] -> /usr/lib/dovecot/libdovecot.so.0(i_stream_read_data+0x3d) [0x7fd04678685d] -> /usr/lib/dovecot/libdovecot.so.0(io_stream_copy+0x85) [0x7fd04679c815] -> /usr/lib/dovecot/libdovecot.so.0(+0xc2d4f) [0x7fd04679ed4f] -> /usr/lib/dovecot/libdovecot.so.0(o_stream_send_istream+0x33) [0x7fd04679c663] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_save_continue+0x62) [0x7fd046a7e022] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_save_continue+0x32) [0x7fd046a561d2] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_storage_copy+0xb6) [0x7fd046a49db6] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_copy+0x52) [0x7fd046a7a442] -> /usr/lib/dovecot/libdovecot-lda.so.0(+0x58b9) [0x7fd046d5d8b9] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x476e1) [0x7fd046a566e1] -> /usr/lib/dovecot/libdovecot-sieve.so.0(+0x4a8a2) [0x7fd04519b8a2] -> /usr/lib/dovecot/libdovecot-sieve.so.0(+0x3fe9c) [0x7fd045190e9c] -> /usr/lib/dovecot/libdovecot-sieve.so.0(sieve_result_implicit_keep+0x2e) [0x7fd04519218e] -> /usr/lib/dovecot/libdovecot-sieve.so.0(sieve_multiscript_finish+0xb4) [0x7fd0451a4124] -> /usr/lib/dovecot/modules/lib90_sieve_plugin.so(+0x3646) [0x7fd04540d646] -> /usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xb2) [0x7fd046d5e692] -> dovecot/lmtp(+0x6df7) [0x56224e0b6df7],
May 17 17:23:20 mail dovecot: lmtp(xx@xxx.xx): Fatal: pool_system_realloc(268435456): Out of memory
May 17 17:23:20 mail dovecot: lmtp(xx@xxx.xx): Fatal: master: service(lmtp): child 25980 returned error 83 (Out of memory (service lmtp { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)

Found it.
Adding "default_vsz_limit=1024 MB" to config/dovecot.cf fixes the out-of-memory error.

Well... Customer requirement I guess. I suggested links (using the in-house filesharing platform built for exactly that), but to no avail.


Timer functionality in the backend

Moved from frontend to backend since the timer should be counting down even when a player closes their tab or goes AFK.


[Bug]: CURD >> JSONForm | Theming is not applied to Table's 'Delete' & JSONForm's 'Reset & Update' buttons

Is there an existing issue for this?

[X] I have searched the existing issues

Description
New CRUD page - observe the Table's Delete button & JSON From's Reset/Update buttons:

As opposed to theming applied on a normal Table & JSON form widgets:

Steps To Reproduce

Create new CRUD page from any data source
Apply some theme per user wish
Observe the buttons' in the page - the theme properties is not applied
Observe - In Delete modal & Insert Modal also - the theme properties for buttons are not applied
Expected: New CRUD page should also comply with the theme applied

Public Sample App
No response
Version
Prod/Release v1.7.1

I still see the Delete button & Delete modal not conforming to theme applied..


Incorrect highlight in color theme "Dark+" and "Light+"

VSCode Version: 1.0
OS Version: windows 10

Paste code var p = 1?2:(3<4?5:6), and everything after this will be in wrong color.

Probably this one again:
https://github.com/Microsoft/TypeScript-TmLanguage/issues/11

Looks like it's actually https://github.com/Microsoft/TypeScript-TmLanguage/issues/81, just on a worse scale because of the brackets. Closing as duplicate.


Can't open Input Server

Getting a strange error on OS X Lion when running the example code to get started:
phantom stderr: 2012-01-11 00:56:51.303 phantomjs[43210:207] Can't open input server /Library/InputManagers/LCC Scroll Enhancer Loader
The GET request runs and returns properly but that error shows up first before anything else. Any ideas?

That is very odd. I'm running Lion also and I've never seen that error. Could it be related to this? http://growl.info/documentation/faq.php#logitech-control-center

Yep. Definitely the answer. When I was Googling I was using 'Can't open input server' in the query string and not breaking it down more. Just figured it was a native MAC program and didn't investigate further. Sorry about that and thanks for the response. And thanks for a useful module


voice call is not connecting with the latest version

i have attached two samsung mobiles and able to see volte in both of them. SMS services are also working fine. But when I tried to attempt a voice call, it is showing as call ended.  this is the log. the same log is coming again and again. in wireshark also, i dont see any sip or rtp messages while attempting to call.
rtpengine has error on binding fd 10 to port 2225.
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2071]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 73147135
scscf      |  5(43) DEBUG: ims_auth [authorize.c:241]: reg_await_timer(): [DONE] Looking for expired/useless at 73147135
rtpengine  | [1707289144.721627] ERR: [http] libwebsockets: ERROR on binding fd 10 to port 2225 (-1 99)
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2060]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_dialog [dlg_handlers.c:2061]: print_all_dlgs(): printing 4096 dialogs
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2071]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 73147145
scscf      |  5(43) DEBUG: ims_auth [authorize.c:241]: reg_await_timer(): [DONE] Looking for expired/useless at 73147145
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2060]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_dialog [dlg_handlers.c:2061]: print_all_dlgs(): printing 4096 dialogs
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2071]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 73147155
scscf      |  5(43) DEBUG: ims_auth [authorize.c:241]: reg_await_timer(): [DONE] Looking for expired/useless at 73147155
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2060]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_dialog [dlg_handlers.c:2061]: print_all_dlgs(): printing 4096 dialogs
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2071]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 73147165
scscf      |  5(43) DEBUG: ims_auth [authorize.c:241]: reg_await_timer(): [DONE] Looking for expired/useless at 73147165
rtpengine  | [1707289174.722674] ERR: [http] libwebsockets: ERROR on binding fd 10 to port 2225 (-1 99)
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2060]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_dialog [dlg_handlers.c:2061]: print_all_dlgs(): printing 4096 dialogs
scscf      |  5(43) DEBUG: ims_dialog [dlg_handlers.c:2071]: print_all_dlgs(): ******************** 5(43) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 73147175
scscf      |  5(43) DEBUG: ims_auth [authorize.c:241]: reg_await_timer(): [DONE] Looking for expired/useless at 73147175
@herlesupreeth kindly check once

Please post a tcpdump trace for the calling scenario in order to debug.

call.pcapng.zip
attached the pcap file. Both the mobiles are showing volte. sms are also fine. only call has the problem, @herlesupreeth

Please dont add + before the number when attempting to place a call. Also, you are attempting a 5G call which as I mentioned before in other issues it may or may not work since there is no way to provision QoS (absence of N5 interface between P-CSCF and PCF) for 5G call.

this voice call working perfectly fine with the open5gs and kamailio ims on baremetal setup from this link. https://open5gs.org/open5gs/docs/tutorial/02-VoLTE-setup/.
only dockerized setup has the problem.  same UE i'm using for both the cases. i tried removing + from the number and tried multiple ways.  any solutions? @herlesupreeth

If the voice call worked perfectly fine with baremetal setup then it should works with dockerized one as well since there is practically no difference at all. Can you send me a trace of the call working on your bare metal setup using the same two phones?

sorry for the late reply. I have been trying to resolve this issue. I found that there is no NOTIFY message to the ue after registering to the ims network. And call also not happening. one more thing is, we observed that the sms is also not working if we try to send after making a call(anyway call is not success). im using two samsung phones.
im attaching the pcaps. kindly check @herlesupreeth
pcaps.zip
sip 100 try and 180 ringing messages are not there. Is this due to the absence of NOTIFY message?

I dont see any traffic related to call. Please send pcap without any filters

Before calling only, the notify message has to go from scscf to pcscf and then to ue right?
Means the ue is not subscribed to use call services (ue sends subscribe request. But not receiving response).
Is this procedure correct?

In order for that to happen UE needs to send SUBSCRIBE SIP message first

Ue is sending the subscribe sip. But the reply from scscf is not coming. Scscf is not responding to any messages from pcscf after attaching. It is unable access some ports of pcscf. That's what happening in the above wireshark logs also right? Can you check all these configurations are properly set in sip servers?

I dont see any SUBSCRIBE SIP message in your latest pcap. Please take a fresh trace for IMS registration


v1.10 backports 2021-12-08

#17982 -- workflows: Run CodeQL workflow is the workflow is edited (@pchaigno)
#18155 -- docs: Update the minimum required Minikube version (@pchaigno)
#18166 -- policy: Fix selector identity release for FQDN (@joestringer)

Once this PR is merged, you can update the PR labels via:
$ for pr in 17982 18155 18166; do contrib/backporting/set-labels.py $pr done 1.10; done

/test-backport-1.10

net-next hit #12511. This is unrelated to the backports at hand, merging.


Gadget File Sync is completely broken

Error ID
a3a1ea2b-9986-4a23-84c9-402466c4bb78
What happened?
Every time I go to save it errors so I can't do any development.
What did you expect to happen?
It needs to sync otherwise I can't work on my project.
Steps to reproduce
No response
Anything else?
No response

I'm sorry ggt sync wasn't working for you 😞
We've made a number of improvements to ggt since this issue was opened, in particular:

https://github.com/gadget-inc/ggt/releases/tag/v0.4.0
https://github.com/gadget-inc/ggt/releases/tag/v0.4.7

Please retry with the latest version and feel free to re-open this issue if your problems persist.


pull request for e2e test at 12/07/2016 10:26:03

:white_check_mark: Validation status: passed
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.


Region of Interest Per Channel data

pdsview should display channel wise statistics for ROI chosen by user.
It works correctly only if user selects more than 2 rows.

This shows ROI with 2 rows and multiple columns.

This shows ROI with 3 rows and just 1 column.

This is fixed in #28. See below

@bvnayak please double check that this is resolved in https://github.com/planetarypy/pdsview/pull/28

Fixed in #28


Update join schema for feature-display flag

Summary

Separate out the schema for Join into sections for feature-display flag into

source keys
internal group by columns
external columns
output / derived columns

Other formatting updates to align with existing logs
Why / Goal

Test Plan

[ ] Added Unit Tests
[ ] Covered by existing CI
[x] Integration tested

Checklist

[ ] Documentation update

Reviewers
@hzding621 @pengyu-hou @donghanz @pkundurthy @yuli-han

Hi @rohitgirme could you share a sample test result about how the log looks like now?

Hi @rohitgirme could you share a sample test result about how the log looks like now?

Addressed offline


handling (ignoring) of extent

gpkg_contents table contains extent of the data. There are no geopackage triggers to modify extent, but it is done manually by OGR.
ATM we are handling extent conflicts similar to any other conflicts in database, which means sometimes it could lead to invalid extent.
see #29

GeoPackage spec ( http://www.geopackage.org/spec/ ) says:
The bounding box (min_x, min_y, max_x, max_y) provides an informative bounding box of the content. Applications may use this bounding box as the extents of a default view but there are no requirements that this bounding box be exact or represent the minimum bounding box of the content. The values are in the units specified by that CRS.


[CAMEL-19875]HealthCheck is broken for KafkaConsumer

Description

Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[x] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[x] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

This should likely be backported to 4.0.x branch


show 404 when switch branch directly but targeted branch not contain same named file

Gitea version (or commit ref): 4c1f1f9
Can you reproduce the bug at https://try.gitea.io:

[x ] Yes (https://try.gitea.io/gfPlay/orgRepo/src/branch/new_file_test/new file and new branch.md)

Description

view in a file by click above link

switch to other branch which not contain the same name file, then 404.
(master in my test repo)
same situation on github.
how about to show the main page of the targeted branch in this case?
but still 404 when enter a NONE exist path directly

--
I pending a long time to consider that, should I post this topic or not?
this is not an issue. 404 meaning is a generic case for "develope" but may not all general user
I not only use gitea for source code control but also "simple project control"
- code for document
- issues for task tracking and maintain
- pr for document review

Perfect!

Perhaps a better idea to, when possible, show the file browser breadcrumbs on a 404 page too, like this:

Issue still persists...


JSDoc with @extends, type parameter and member expression gives wrong dts output

🔎 Search Terms
jsdoc type parameter generics extends superclass template
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about JSDoc type parameters with @extends

I tried with TypeScript 5.0.0, 5.6.2, and 5.7.0-dev.20241001.
⏯ Minimal repro link
I needed more than one file to reproduce, which I can't do on the playground. Here's a simple reproducer:
https://github.com/blutorange/issue-repro/tree/issue-typescript-missing-type-param
git clone https://github.com/blutorange/issue-repro
cd issue-repro
git checkout issue-typescript-missing-type-param
npm install
npm run build

Then open dist/index.d.ts.
💻 Code
/**
 * @template {0|1|2} T
 * @extends {Scope.sub.Box<T>}
 */
export class MyComponent extends Scope.sub.Box {
    more() {
        return "foo";
    }
}

🙁 Actual behavior
The class in the extends clause is missing the type parameter. This is a compile error when you validate the .d.ts file.
declare const MyComponent_base: typeof import("./header.js").Box;
/**
 * @template {0|1|2} T
 * @extends {Scope.sub.Box<T>}
 */
export class MyComponent<T extends 0 | 1 | 2> extends MyComponent_base {
    constructor();
    more(): string;
}
export {};

🙂 Expected behavior
TypeScript should include the type parameter in the extends clause.
declare const MyComponent_base: typeof import("./header.js").Box;
/**
 * @template {0|1|2} T
 * @extends {Scope.sub.Box<T>}
 */
export class MyComponent<T extends 0 | 1 | 2> extends MyComponent_base<T> {
    constructor();
    more(): string;
}
export {};

Additional information about the issue
Only seems to happen when the extends clause is a member expression where TS generate an intermediate declare const ....
Fyi, I came across this issue while investigating how to setup a project for generating type declarations from js files for primefaces/primefaces#12500

Bug repro in a workbench: here
The same happens even if the Box isn't referenced through an entity name expression: here
The same happens in TS tiles: here


Usage: sha256sum [-c[sw]] [FILE]...

Print or check SHA256 checksums

        -c      Check sums against list in FILEs
        -s      Don't output anything, status code shows success
        -w      Warn about improperly formatted checksum lines
Downloading Python-3.5.2.tgz...
-> https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
/tmp/python-build.20161006020952.229 /srv/app
Installing Python-3.5.2...
patch: unrecognized option: force
BusyBox v1.24.2 (2016-08-12 14:38:34 GMT) multi-call binary.

Usage: patch [OPTIONS] [ORIGFILE [PATCHFILE]]

        -p,--strip N            Strip N leading components from file names
        -i,--input DIFF         Read DIFF instead of stdin
        -R,--reverse            Reverse patch
        -N,--forward            Ignore already applied patches
        -E,--remove-empty-files Remove output files if they become empty

BUILD FAILED (Alpine Linux 3.4.3 using python-build 20160602)

Inspect or clean up the working tree at /tmp/python-build.20161006020952.229
Results logged to /tmp/python-build.20161006020952.229.log

Inspecting the pyenv log for this failure reveals nothing of interest:
# cat  /tmp/python-build.20161006020952.229.log

/tmp/python-build.20161006020952.229 /srv/app
/tmp/python-build.20161006020952.229/Python-3.5.2 /tmp/python-build.201610060
20952.229 /srv/app

Just for context, I've got a history of around 120 successful builds on circleci (private repo, sorry), and the first fail from this error was on 4th October (2 days ago).

Alpine changed their version of patch that comes with build-base. Installing patch explicitly gives a fully featured patch.


spelling fixes

patch contains some spelling fixes ( just in comments ) as found by a bot ( http://www.misfix.org, https://github.com/ka7/misspell_fixer ).

Can one of the admins verify this patch?


Completion files from local paths are not picked up

Local completion files are not loaded after compinit. I tried to load completion for poetry by putting it in a completion directory but that did not work.
The steps to reproduce below walk through poetry completion but I think it should work for any local ZSH completion script.
System information
zsh --version # zsh 5.9 (x86_64-pc-linux-gnu)
antidote --version # antidote version 1.9.6 (3a30f36)
uname -a # Linux archlinux 6.7.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 x86_64 GNU/Linux

Steps to reproduce

Create following files in any directory (later referred as <path-to-zshrc-dir>).

.zshrc
# Where to put antidote files?
ANTIDOTE_HOME=$ZDOTDIR/plugins/.external

# Get antidote if not already present
[[ -e $ZDOTDIR/.antidote ]] ||
  git clone --depth=1 https://github.com/mattmc3/antidote.git $ZDOTDIR/.antidote

# Set the name of the static .zsh plugins file antidote will generate.
ZSH_PLUGINS_FILE=${ZDOTDIR:-~}/.zplugins.zsh

# Ensure you have a .zplugins.txt file where you can add plugins.
[[ -f ${ZSH_PLUGINS_FILE:r}.txt ]] || touch ${ZSH_PLUGINS_FILE:r}.txt

# Lazy-load antidote.
fpath+=(${ZDOTDIR:-~}/.antidote/functions)
autoload -Uz $fpath[-1]/antidote

# Install all plugins there are if not already done
[[ -e $ZDOTDIR/plugins/.external ]] || antidote load $ZDOTDIR/.zplugins.txt

# Generate static file in a subshell when .zsh_plugins.txt is updated.
if [[ ! $ZSH_PLUGINS_FILE -nt ${ZSH_PLUGINS_FILE:r}.txt ]] || [[ ! -s $ZSH_PLUGINS_FILE ]]; then
  source $ZDOTDIR/.antidote/antidote.zsh
  (envsubst < ${ZSH_PLUGINS_FILE:r}.txt | antidote bundle >| $ZSH_PLUGINS_FILE)
fi

# Source your static plugins file.
source $ZSH_PLUGINS_FILE

# vim: ft=zsh sw=2 ts=2 et

.zplugins.txt
$ZDOTDIR/completions kind:fpath

# belak/zsh-utils path:completion
mattmc3/zephyr path:plugins/completion

# vim: ft=zsh sw=2 ts=2 et

Install poetry and install it's completion script to <path-to-zshrc-dir>/completions/_poetry using poetry completions zsh > <path-to-zshrc-dir>/completions/_poetry. (docs). This can be replaced with any completion, but this is the one I am trying to get to work.
Run ZDOTDIR=<path-to-zshrc-dir> zsh.
In the launched shell, running poetry <TAB> should show completions but it does not.

What works?

If you run compinit after step 3, and then do poetry <TAB>, you get completions.
Or, if you replace zephyr completions with zsh-utils' completion plugin, it works.

Thanks for your amazing work on this and for sharing your dotfiles. They helped me a lot to get my zsh in order :heart:

Thanks, I'll have a look later on. Closing this since this is no longer an issue for me (and seems like something at my end rather than a bug).


Add WTSChannelGetOptions

Along with the existing WTSChannelGetName function, WTSChannelGetOptions enables the names and option flags of a peer's connected channels to be retrieved. This is useful for populating a client's channel definitions before it connects, for example in an RDP proxy where all channel data is simply passed through.
Could this change also be backported to stable-2.0? (See #7941 for reference.)

@freerdp-bot test


I've re-uploaded all files to fix this issue.


Add PartyGuest permission bug

If a user has no permissions at all (aka doesn't have add guest, add partyguest) and tries to add a guest to a guestlist, the js will add an empty guest and say "added by undefined".  This only happens if there are no guests in that gender's list already.  No error or message is displayed in the footer.

I'm going to start working on this.  This isn't an issue for now, but it would be better to just make sure the addGuest() works properly.

There are a couple things I could do to fix this:


Node js code snippet for universal adaptive cards

Hi team,
Please add the below node js code snippet in this section of the document.
var card = "<adaptive card json>";

const cardRes = {
        statusCode: 200,
        type: 'application/vnd.microsoft.card.adaptive',
        value: card
    };
    const res = {
        status: 200,
        body: cardRes
    };
    return res;

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

ID: 148d2ee0-4ac8-03c2-5493-dff7a762fba4
Version Independent ID: 857f4370-d04b-357f-c7dc-b3449d353ba6
Content: User Specific Views - Teams
Content Source: msteams-platform/task-modules-and-cards/cards/Universal-actions-for-adaptive-cards/User-Specific-Views.md
Product: msteams
GitHub Login: @surbhigupta12
Microsoft Alias: lajanuar

Redirecting to the documentation team to update.


Don't make multiple copies of buffer for ATW side-by-side cases.

See line 473 of RenderManagerD3D11ATW.h.  @todo there talks about the fact that we will make multiple copies of the incoming buffers if the client passes the same buffer in for more than one eye.  We should keep a mapping so we don't duplicate them.

Fixed in pull request https://github.com/sensics/OSVR-RenderManager/pull/321

Generally speaking, I think we should wait until the PR is merged before closing the associated issue.


How to contribute code (Pull Request) to GToolkit?

I have some extensions to the GToolkit-Mondrian package that I would like to submit upstream. How should I do this?
(I have not used Iceberg or the new Pharo 7 contribution process but if that is the answer I am willing to learn.)

The way to propose changes is to send pull requests. Another way is to simply fork and point us to the changes.

So here are the steps that I am thinking of taking:

Open Monticello browser to see which package(s) I have changed.
Get a copy of those packages with git clone ...
Add a Monticello tonel:// repo pointing to those local checkouts.
Save current changes to disk in tonel format.
Commit with git add ... ; git commit -m ....
Fork the projects on Github and push my changes to my fork.
Open a Pull Request via Github web GUI.

I'd love to know how that compares to the way you guys work? Should I be using Iceberg for example and if so is there a tutorial that describes the relevant workflow anywhere?


update english texts

Codecov Report
Base: 71.89% // Head: 71.89% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (9d9a30c) compared to base (eac8dec).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #381   +/-   ##
=======================================
  Coverage   71.89%   71.89%
=======================================
  Files          63       63
  Lines       13711    13712    +1
  Branches     1837     1837
=======================================
+ Hits         9857     9858    +1
  Misses       2042     2042
  Partials     1812     1812

Impacted Files
Coverage Δ

src/common/i18n/index.ts
99.04% <100.00%> (+<0.01%)
:arrow_up:

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.


HIVE-28669: Deadlock found when TxnStoreMutex trying to acquireLock

What changes were proposed in this pull request?
Resolving the Deadlock when the back db is MySQL

Why are the changes needed?
By default MySQL default isolation level is REPEATABLE-READ, for update in this isolation will hold the gap lock, if multiple clients are trying to for update and then insert into the same gap, it cloud cause the deadlock.

Does this PR introduce any user-facing change?
A new hive.metastore.have.multiple.leaders, if it's false, then the same housekeeping tasks will not leverage the db mutex to block each other.

Is the change a dependency upgrade?
No

How was this patch tested?
Testing the PR locally, querying from mysql information_schema.INNODB_TRX table, showing that trx_isolation_level of the new trx is 'READ COMMITTED'

Based on the comments on JIRA and I have tested this patch on my local and haven't seen the error stacktrace, hence
LGTM +1 (non-binding)

how would that work if we have multiple HMS versions in a cluster?


Correct emoji presentation on emoji picker

Details

Fixes an issue where some emojis would be displayed in its text style. We add the VS16 unicode to our emojis to get the correct variant.
Fixed Issues

$ https://github.com/Expensify/App/issues/4147
Tests

QA Steps

Open any chat
Click on the emoji picker
Search for the the Skull and Crossbones emoji (or any other reported on the issue)
It should match the Skull and Crossbones emoji of your system

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[x] Android

Screenshots

Web

https://user-images.githubusercontent.com/53711423/126859678-8a6229b4-9810-4bf1-a659-7bd2f208c01e.mov
Mobile Web

https://user-images.githubusercontent.com/53711423/126859682-b6cff697-07bb-437f-9ac9-1f01a772ab24.mp4
Desktop

https://user-images.githubusercontent.com/53711423/126859684-a44fbd73-bee4-4cf7-97cb-a7309c956a8a.mov
iOS

https://user-images.githubusercontent.com/53711423/126859687-b776c4e9-ef2d-4f04-a862-5204ae520501.mp4
Android

https://user-images.githubusercontent.com/53711423/126859689-27890bc9-da67-4c98-9eb2-a7e970892d48.mp4

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging         in version: 1.0.80-3🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production         in version: 1.0.81-4🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Bug: XRamp Gauge is not displayed in specified position on screen

Describe the bug
The Ramp Gauge is displayed in a wrong region on the screen

in GUIslice Builder: place a ramp gauge on the page
resize ramp gauge
generate
generated gslc_ElemXRampCreate() call seems correct,
when running on arduino/teensy target the gauge is not in the correct position
see attached photo

Device hardware

MCU: Teensy 3.6
Display with link: ILI9341 2.8" resistive with controller ("MSP2807": http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807 )
GUIslice config selected: teensy-adagfx-ili9341-xpt2046

Please confirm whether:

Display works correctly with standalone display driver library examples (eg. TFT_eSPI graphicstest, Adafruit graphicstest, etc.) without GUIslice: YES
Touch works correctly with standalone touch library examples without GUIslice: YES
other GUIslice elements work correctly.

Expected behavior
A description of what you expected to happen
gauge should be drawn at specified position.
Initialization messages
*Please copy any startup messages / errors reported to the serial monitor window here. GUIslice version [0.17.0]:

Init display handler [ADA_ILI9341(SPI-HW)] OK
Init touch handler [XPT2046_PS(SPI-HW)] OK

Additional info
To identify the expected region I put a "box" element behind the ramp window, shown black on the screen.

Sample Project:
xramptest.zip

I tried to reproduce the bug now. Don't ask me why, but it is working correctly now.


Update documentation: use README in homepage and add api documentation

This PR updates the documentation of QDax:

a whole API documentation, made thanks to the docstrings (and mkdocstrings)
add the most recent notebooks
put the README as homepage

The README as also been udpated to add recent algorithms that have been implemented. Also, I have added some descriptions and paper links in some notebooks.
TODO:

fix building issue

To be able to test correctly, I'll close this PR and open a similar one from a branch belonging to the repo


Body for GetPresencesByUserId blank

I have the following code:
context = MicrosoftKiotaAuthenticationOAuth::ClientCredentialContext.new(
  ENV.fetch("MICROSOFT_TENANT_ID"),
  ENV.fetch("MICROSOFT_CLIENT_ID"),
  ENV.fetch("MICROSOFT_CLIENT_SECRET")
)

authentication_provider = MicrosoftGraphCore::Authentication::OAuthAuthenticationProvider.new(context, nil, ["https://graph.microsoft.com/.default"])

adapter = MicrosoftGraphBeta::GraphRequestAdapter.new(authentication_provider)
client = MicrosoftGraphBeta::GraphServiceClient.new(adapter)

begin
  body = MicrosoftGraphBeta::Communications::GetPresencesByUserId::GetPresencesByUserIdPostRequestBody.new
  body.ids = users.collect { |user| user[:id] }
  request = client.communications.get_presences_by_user_id.post(body)

  result = request.resume
rescue => e
  puts e.error
end

Note: I'm not showing the list of users above, but users is an array of hashes I'm pulling from for testing this example.
But it outputs:
#<MicrosoftGraphBeta::Models::ODataErrorsMainError:0x0000ffff92322638
 @additional_data={},
 @code="InvalidArgument",
 @inner_error=
  #<MicrosoftGraphBeta::Models::ODataErrorsInnerError:0x0000ffff92322368
  @additional_data={"date"=>"2024-06-05T15:00:32"},
  @client_request_id="<REDACTED>",
  @request_id="<REDACTED>">,
  @message="[ids]: Required property 'ids' not found in JSON. Path '', line 1, position 2.">

If I look at the body I will see the ids in the array, but for some reason serialization isn't working?
I tested the serializer and that seems to work fine, but its something about GetPresencesByUserIdRequestBuilder.to_post_request_information#56 as the line seems to the what actually uses it, but the content if I manually call it :
ri = client.communications.get_presences_by_user_id.to_post_request_information(body)

is blank:
irb(main):255> ri.inspect
=> "#<MicrosoftKiotaAbstractions::RequestInformation:0x0000ffff974b89e8 @headers=#<MicrosoftKiotaAbstractions::RequestHeaders:0x0000ffff974bfb80
  @headers={\"Accept\"=>[\"application/json\"], \"Content-Type\"=>[\"application/json\"]}>,
  @query_parameters={},
  @path_parameters={\"baseurl\"=>\"https://graph.microsoft.com/beta\"},
  @url_template=\"{+baseurl}/communications/getPresencesByUserId\",
  @http_method=:POST,
  @content=\"{}\">"

I'm not sure if I'm doing something wrong or this is broken. Let me know if you need more details.

Hi @mattdrewitt
Thanks for using the SDK and for reaching out.
Yes, the code you've shared looks correct, and it does look like a serialization issue.
Here is roughly the trace of the calls

builder sets the body
which writes the object value
which writes the information to a temp writer ??? this is where I believe we have a problem
which uses auto-serialization information to serialize the object

Step 3 basically throws away the serialized body, I'm not sure why this was implemented like that, and it differs from other languages.
Is this something you'd like to look into further now that you have these pointers?


Added parse_i16 function

This pull request adds parse_i16 function to use i16 besides of u16.
Please review the changes and let me know if there are any concerns or additional improvements needed.

Good day,
thanks for the commit. the provided method actually has got the very same logic as the one for u16, so I would recommend to move the code from both into a macro and call it with a desired type.
I'll do it a bit later when have some time or if you can, you can do the implementation by your own.

the functionality has been added with a versatile macro inside for both u16 and i16

Thank you for the changes! Elegant solution.


Prevent carriage returns from being inserted into CSVs

See: https://github.com/axelboc/anki-ultimate-geography/pull/364#issuecomment-751524709
newline='' is not needed for this purpose, but is apparently recommended: https://docs.python.org/3.9/library/csv.html#id1 so it probably won't hurt!

Confirmed to work :clap: thanks, mate

Confirmed to work :clap: thanks, mate


refactor/new features - todo list

[ ] Refactor poorly bad made templates
[x] Move js code to another part and make an only main bundle with webpack (and allow typescript files too)
[ ] implement kubernetes, new relic (prob inside of flask or docker)
[ ] move database to postgresql (?
[ ] add unit testing

+webpack #15


[bug]: Canvas display constantly glitching so much its almost unusable

Is there an existing issue for this problem?

[X] I have searched the existing issues

Operating system
(K)ubuntu Linux 24.04
GPU vendor
Nvidia (CUDA)
GPU model
GeForce RTX 3090
GPU VRAM
24 GB
Version number
5.0.0
Browser
Firefox 131 (via Flatpak)
Python dependencies
No response
What happened
At random times for no apparent reason the canvas will start glitching out like crazy, with random previous states covering up the view, such as previous zoom levels, previous layer contents, other layers. Its like previous views of the canvas are cached in memory and start swapping out with the current contents. It appears to be visual only and doesn't affect the actual rendering, although it can be almost impossible to tell what's going on and it makes the UI completely unusable.
What you expected to happen
Canvas should remain stable and should always show the current state and not previous states
How to reproduce the problem
I don't know what causes it; it just randomly starts happening sometimes, and no consistent workarounds are known. I've tried restarting the browser, clearing state, clearing the canvas...sometimes it will randomly fix itself, but the causes is not clear.
Additional context
This has been going on for several versions prior to 5.0.0. Before 4.7 for sure, maybe earlier.
Discord username
No response

Please upload a screen recording showing the problem, it's not clear what exactly is happening.

I have not been able to trigger the issue since your post. When it happens again I will try to record it with screen recording software.

Ok, thanks. Based on your description, I have not ever seen this before and am not aware of any other bug reports about a problem like this. The canvas was completely rewritten for v5 with very little shared code, which suggests the cause might be something external to the app. Maybe related to browser settings or extensions.

invokeai-canvas-glitch.webm
I tried to record it with OBS and edited the video with Kdenlive.

I have been using Brave browser as a workaround for now. It doesn't seem to be affected,

I've noticed that sometimes opening the developer panel or switching into full-screen mode will sometimes temporarily fix the issue. However if I close dev tools/fullscreen then it comes back again.

Thanks for the video. No clue what specifically could be causing it. Maybe a FF extension or settings.
Is there any pattern/trigger for the issue?
Could try a fresh FF profile or private window to see if that prevents the issue, though I understand with it being intermittent it's hard to confidently say it's not happening.

The only extensions I'm using are Proton Pass, uBlock Origin, and Dark reader. Of those the only one that may be affecting anything is Dark Reader since it can change CSS rules. However I have it disabled for localhost:9090 for this very reason. Nonetheless I will try continuing work in a new firefox profile with default settings to see what happens.

Ok, I created a new profile and it started happening after generating just one raster layer on the canvas.

Anything that causes the canvas view to change triggers it. Although I feel like I remember it happening on its own even without interacting with the canvas; maybe I'm just imagining it.
It seems to get worse as I perform more actions to the canvas. Ie. its like each change gets added to to the stack of view states its cycling between, as though previous states are all being buffered in some kind of queue and its rapidly cycling between them.

Ok I can confirm that just moving the cursor around is enough to cause it to cycle between states. As will changing zoom levels, panning, or performing any changes to any layers.

Drawing onto an inpaint mask layer with the brush tool seemed to make it stop...

Really weird. Do you see any messages in the browsers JS console when the issue occurs? If all you are doing is moving the cursor, we should have no log outputs (even if you've set the log level to trace in the system settings @bottom left).
I primarily test on macOS Firefox but have a headless Linux machine that runs the server. I'll connect a monitor and see if I can reproduce the issue. We have a number of Linux FF users who don't have this issue though.
What desktop environment and/or window manager do you use?

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-45-generic (64-bit)
Graphics Platform: X11
Processors: 12 × 11th Gen Intel® Core™ i5-11400F @ 2.60GHz
Memory: 78.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
Manufacturer: ASUS
I have not caught any output from moving the cursor around. I get output for drawing or performing other operations that alter the canvas contents but nothing that looks like errors.

Maybe unrelated, but I do have another issue where after pressing the "Invoke" button, it will often just sit there and do nothing and provide no output (not even in browser console, CLI stdout, or network tab) for a long time, sometimes up to a minute, before it will even queue the request. Once it finally queues then processing time varies depending on the operation, but before queuing its like its just sitting there waiting for something in the background before it even starts. This too is completely random, although it affects at least 40% of generations. The browser isn't unresponsive or anything; I can still fully interact with the UI, go to different tabs within the interface, etc.

the op issue may be due to firefox's use of hardware acceleration, and possibly limited to x11 environments. in firefox, try going to "settings"->"general/performance" and untick "use recommended performance settings" and "use hardware acceleration when available". this seemed to stabilize the redraw issues for me.


Handling microk8s service startup race condition

On slower machines, enabling multiple services at once can cause issues due to one service, i.e. DNS, not being booted up fully by the time the other service gets booted up.

LGTM +1


Timestamp on game saves

What's your idea?
Hi, really enjoying using you program!
Could you please add timestamp column in GUI and/or comparison to existing saves?
Would avoid making unnecessary multi GB saves of games that already exist.
Thanks in advance!

Hi! I'm open to adding this, but could you tell me a little more about how you envision it helping to avoid unnecessary backups?
Ludusavi only creates a new backup if some saves have changed, and you can enable differential backups that only include the saves that changed since the previous backup.
Do you want to avoid backing up files that are older than a certain age?

Thanks, I can compare manually the existing save date with the date of one I am going to take, of cause Ideally it would be done automatically, but anyway it's much better than backuping same data over and over.

This is somewhat related, but it would be great if Ludusavi had an option to only backup saves that are newer than the ones in the backup folder/cloud. That way, you don't accidentally override a save made on a different device which is further along in the game (I have a manual backup/restore script that I launch with a controller, so a save made on a device might not have been restored on a different device, and if I backup an older save on said device, I'll loose progress).


add timeout to resource locking

If a node is holding a lock for a prolonged period of time (e.g. go offline for hardware maintenance), it prevents other nodes from getting the lock and therefore cannot chef.
A timeout should be applied when a lock is being hold.

@cbaenziger mentioned that the infinite lock was a design decision to prevent bad config from propagating further.

as commented earlier, it's a feature. not a bug :)


test: for errorcheck tests, re-run compile with -d=panic if the tests failed due to missing errors

cmd/compile only reports panics if it hasn't reported any errors, because it assumes panics are probably related to inconsistent state due to those previous errors. This is helpful for end users, but I think it ends up being confusing for errorcheck tests. If you make a change to cmd/compile that causes it to panic, but only after errors have been reported, then often errorcheck tests will start failing due to missing error messages. You have to know to try re-compiling the file manually with -d=panic to see where the panic was and why those error messages went missing.
It would be nice if test/run.go automated this: If an errorcheck test fails because it's missing some errors, then re-run with -d=panic so we can show the stack trace (if any).
The re-run is only necessary if cmd/compile already printed some errors (otherwise the panic should have already been included in the output), and that cmd/compile didn't already print any other unmatched errors (as unmatched errors are a separate issue unrelated to silent panics).
For example, https://storage.googleapis.com/go-build-log/c95e4698/linux-amd64_7e42686b.log has a failed errorcheck test that could plausible be from a silent panic. I suspect this one actually isn't, but it would be nice if test/run.go made it obvious whether or not that was the case.
/cc @cuonglm

Seems like for errorcheck cases we could just always run with -d=panic.  Then we don't need to worry about re-running.

I'm concerned there might be tests that currently still panic after printing all the expected errors. But I suppose if run.go knows to suppress this output if the error output otherwise looks good, that seems fine too.
(Even better would be if we never panic, even after printing errors. But I don't think we're there yet.)

So just fixing those seems within reach, and then we could turn on -d=panic by default for test/run.go (or maybe even all the time).

@cuonglm Sorry for the delays. I've reviewed all of the CLs.
Commenting here because I think Gerrit emails are still broken. Please ping here if/when you need me to review again.

@cuonglm Sorry for the delays. I've reviewed all of the CLs.
Commenting here because I think Gerrit emails are still broken. Please ping here if/when you need me to review again.

@mdempsky Thanks for reviewing, PTAL 👍

@cuonglm LGTM


Typestatus should be cleared when set to "None"

As per personal communication with @AstridBVW there is a problem with the option of "None" for typestatus once this arrives into Specify, because when it's exported to GBIF, GBIF raises a flag "Type status invalid". Ideally, the typestatus should be cleared when "None" is chosen.
This can probably be easily fixed either by:

Remove "None" option from DigiApp
Or clear the "None" option in GREL

Option 1 is probably preferred.
We should also clean up these invalid typestatuses in Specify.

@PipBrewer and @bhsi-snm  to discuss the need for the "None" option.

Actually I probably need to chat to GBIF. There is a growing international need to fill in blank fields to meet MIDS standards amongst other things (to differentiate between data not captured and data not existing for example).

The value "None" comes from Specify, so unsure if I should remove it there first, if I can at all, and then regenerate the TypeStatuses from that, or remove them afterwards every time. This depends on whether this value is used in Specify currently.


belindas-closet-nextjs_8_444_display-archived-products

Resolves #444
This PR creates an Archived Products page, accessed at /archived-products-page, and displays products that have been archived. I tweaked the product card information to minimize it (similarly to the category-page) and adjusted the sizes to allow for more items on the page.
I placed the page in the main "app" directory rather than in category-page, not sure if I was supposed to do that!
Four columns with minimized info for each product (consistent with category-page's appearance in #468):

This PR works as expected, the isSold and isHidden function is great for this page since it allows the products that are not available anymore moves to the archives-product-page.


[ISSUE] Web Modeler SMTP server cannot be used without authentication if TLS is enabled

Describe the issue:
The SMTP server configured for Web Modeler cannot be used without username/password authentication if TLS is enabled for the SMTP connection.
Actual behavior:
The mail.smtp.auth property in the restapi configuration – which will enable the SMTP authentication – is always set to the same value as webModeler.restapi.mail.smtpTlsEnabled, even if webModeler.restapi.mail.smtpUser and webModeler.restapi.mail.smtpPassword are not provided.
Expected behavior:
The mail.smtp.auth property should not depend on webModeler.restapi.mail.smtpTlsEnabled, but should be set independently – either by:

setting it to true implicitly if webModeler.restapi.mail.smtpUser is provided and false otherwise
introducing a new boolean property like webModeler.restapi.mail.smtpAuthEnabled that can be used to explicitly enable or disable the authentication

How to reproduce:

Use an SMTP server that does not require username/password authentication
Configure that server for Web Modeler with the values under webModeler.restapi.mail.*:webModeler:
  restapi:
    mail:
      smtpHost: "smtp.example.com"
      smtpPort: 587
      smtpUser: ""
      smtpPassword: ""
      smtpTlsEnabled: true

Install Web Modeler using the Helm chart
Try to send an email from Web Modeler (e.g. by sending a diagram share link)

Logs:
You'll see the following message in the restapi logs:
DEBUG SMTP: need username and password for authentication

Additional Context
As a workaround, you can disable the SMTP authentication by providing the following environment variable to the restapi component:
webModeler:
  restapi:
    env:
      - name: SPRING_APPLICATION_JSON
        value: '{"spring": {"mail": {"properties": {"mail.smtp.auth": false}}}}'

@jfriedenstab I assume this change should only be implemented in 8.5 and future 8.6 release. This will not get backported.
Is that fine with you or would like this backported as well?

I contemplated whether webModeler.restapi.mail.smtpAuthEnabled would be a good addition to the values.yaml
I decided not to go with this value because it would lead to a little confusion. The customer would have to set this value to enabled and also set the username and password. It's an unnecessary extra step.

Thanks for picking this up, @hamza-m-masood! 👍🏻

I assume this change should only be implemented in 8.5 and future 8.6 release. This will not get backported.
Is that fine with you or would like this backported as well?

Yes, it's fine. I don't think the fix needs to be backported (also given that there's a workaround available).


Multiple answer

Hi.
I want to create server online for my class. I have tried many online judge but i like yours. I have a question that your judge can support for multiple answer correctly.
Thank you very much.

You can write a SPJ code to supports Multiple answer

There is a docs about SPJ, but it was written in Chinese. If you have problem you can ask me for help.
>here<

Thank you very much :)

Vào 0405, 2020, lúc 22:27, Harry-zklcdc<EMAIL_ADDRESS>đã viết:
You can write a SPJ code to supports Multiple answer
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/QingdaoU/OnlineJudge/issues/298#issuecomment-623532385, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE66LGW2TBJKEMESIIXMFMDRP3NHZANCNFSM4MY27YQQ.

It's my pleasure.

It's my pleasure.

Hi. I have a question about deployment. Can your judge deploy on heroku ?

I don't have try. If you could use Docker or have a VPS on heroku, you can have a try.


TP-163 Rails 4 where and having statements should use the slave by default

In Rails 4, if you call Account.where or Account.having, it opens a connection to the master database for utilizing bind methods on the adapter. When the master is unavailable, this causes issues for:

Regular Account.where(foo: bar).all query building
Calls to Account.first when using soft_deletion or default_scopes

cc @zendesk/database-gem-owners
I'm not sure how to test this short of poisoning ActiveRecord::Base.configurations. Do we care?

A test would be nice, but I guess the implementation is better than nothing.

Something not obvious: ActiveRecordShards::DefaultSlavePatches.wrap_method_in_on_slave only handles models where on_slave_by_default is true.


S2db support

Adding support for singlestoredb sql dialect.

Hi, thanks for contributing a new dialect support.
As I understand, this SingleStoreDB uses mostly the same syntax as MySQL. Though it's a bit tricky to confirm as SingleStoreDB docs don't document the full SQL syntax that's supported. I found a page that lists unsupported MySQL features. Is there perhaps a place that documents SELECT syntax?
My first question is, how exactly did you put together this configuration for SingleStoreDB. It seems that a lot of it is copy-pasted from the MySQL configuration. How much of the MySQL syntax that you copied over did you actually verify?

@nene Yes, this is correct, SingleStoreDB started as a fork of MySQL back in 2011 but since then a couple of things have changes and some support that MySQL offers was narrowed down for SingleStoreDB. I started by the copy-pasting approach from MySQL but then I deleted all keywords and functions. I went though the supported keywords documented here: https://docs.singlestore.com/managed-service/en/reference/sql-reference/restricted-keywords/list-of-restricted-keywords.html
After that for the reserved commands I searched directly the reference about DML and DDL constructs:

SELECT construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-manipulation-language-dml/select.html
CREATE construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-definition-language-ddl/create-table.html
INSERT construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-manipulation-language-dml/insert.html
ALTER construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-definition-language-ddl/alter-table.html, https://docs.singlestore.com/managed-service/en/reference/sql-reference/pipelines-commands/alter-pipeline.html, https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-definition-language-ddl/alter-view.html, https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-definition-language-ddl/alter-database.html, https://docs.singlestore.com/managed-service/en/reference/sql-reference/security-management-commands/alter-user.html
UPDATE construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-manipulation-language-dml/update.html
DELETE construct: https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-manipulation-language-dml/delete.html

In general I searched a lot via the SQL reference documentation from the official SingleStoreDB documentation. After I land this PR, will add additional tests for the customized features that SingleStoreDB supports.

Thanks for the updates. I have one request for the future: please avoid using force-push. It makes it very hard to tell what has changed since I last reviewed your code.

I did some testing of SingleStoreDB syntax and documented my findings:

identifiers
strings
variables
operators

Hey!
To speed things up (as this ping-pong could drag on for a while with us living in pretty different timezones) I fixed up the remaining problems by myself and merged this whole feature in.
The additional commits can be seen here: #387
Thanks a lot for your efforts on this!
If something seems to have gone wrong with my fixups, please feel free to comment.

Thanks @nene for all your help!

The SingleStoreDB support is now released in 9.1.0 🍾


limitTo filter should accept strings as well

Currently we support only arrays...

Do you mean something like this:   'abcde'.$limitTo(3) => 'abc' ?
I can take care of that :)

Well, yes... but wait until Misko's injector is merged, as we changed this a bit...
We don't augment the types anymore and limitTo is a filter instead...

should be in master later today

wow, you are still working

To limit string size I use the following custom filter, you might be interested in:
    /**
     * Usage:
     *   {{some_text | cut:true:100:' ...'}}
     * Options:
     *   - wordwise (boolean) - if true, cut only by words bounds,
     *   - max (integer) - max length of the text, cut to this number of chars,
     *   - tail (string, default: ' …') - add this string to the input
     *     string if the string was cut.
     */
    angular.module('ng').filter('cut', function () {
        return function (value, wordwise, max, tail) {
            if (!value) return '';

            max = parseInt(max, 10);
            if (!max) return value;
            if (value.length <= max) return value;

            value = value.substr(0, max);
            if (wordwise) {
                var lastspace = value.lastIndexOf(' ');
                if (lastspace != -1) {
                    value = value.substr(0, lastspace);
                }
            }

            return value + (tail || ' …');
        };
    });


Agent Hierarchy / Tags in Streams API

Incomplete agent configuration data still being returned since hierarchy and tags have been introduced to the platform.
connect.version 2.4.2
connect.core.getAgentDataProvider().getAgentData()
{
    "snapshot": { ... },
    "configuration": {
        "name": "...",
        "username": "...",
        "softphoneEnabled": true,
        "softphoneAutoAccept": false,
        "extension": "...",
        "routingProfile": {
            "name": "Dev",
            "routingProfileARN": "...",
            "defaultOutboundQueue": {
                "queueARN": "...",
                "name": "Dev",
                "queueId": "..."
            },
            "channelConcurrencyMap": {
                "VOICE": 1
            },
            "queues": [
                {
                    "queueARN": "...",
                    "name": "Dev",
                    "queueId": "..."
                },
                {
                    "queueARN": "...",
                    "name": "Callback",
                    "queueId": "..."
                },
                {
                    "queueARN": "...",
                    "name": null,
                    "queueId": "..."
                }
            ],
            "routingProfileId": "..."
        },
        "agentPreferences": {
            "LANGUAGE": "en_US"
        },
        "agentStates": [
            {
                "agentStateARN": "...",
                "type": "routable",
                "name": "Available",
                "startTimestamp": null
            },
            {
                "agentStateARN": "...",
                "type": "offline",
                "name": "Offline",
                "startTimestamp": null
            }
        ],
        "dialableCountries": [ ... ],
        "permissions": [
            "outboundCall"
        ]
    }
}

bump...

bump...

We are also finding ourself in needing to read/write tags using streams.

Any update on this one? having access to tags from Streams would be very useful for us too

Bump.

This bug was first opened in December 2022, is there an update? Any timelines as to when ACS could provide the missing agent configuration data?
We require this data as well, especially the hierarchy group data including the ARN and/or ID of the hierarchy group for all five levels.

bump...

Would be very useful, ...
bump ...

Any update on this will be very helpful i have to use agent heirarchyGroupId,

bump ...


feat: (optionally) support gasless transactions

Support gasless transactions when the gasless_tx_support config is present:
[gasless_tx_support]
entrypoint_address = "entrypoint address in 0x-prefixed hex format"

Sort gasless transactions according to actual transaction gas limit/gas price defined in transaction payload (UserOperation).
(This only affects a full node. Read-only nodes will allow any received gasless transactions, without verifying the entrypoint address.)

Also updated some ethereum related deps.

PLS fix the CI


Publish new version

@shellscape Updated some dependencies to solve security issues, would be nice if one of @Ashot-KR or @Swatinem could publish an updated version as you are the ones with publishing rights.

as you are the ones with publishing rights.

I just added you.
I wasn’t involved in this project for years, so I don’t really know if this is a patch/minor and how about the changelog etc…
If @Ashot-KR won’t get to it till tonight, I will take another look.

I'll do it today, but later

I don’t really know if this is a patch/minor

Technically the peerDependency version of Rollup was updated which would make it a major but I think this change is unnecessary as no code changes were included that warrant this. I will change it back to the old peerDependency version range so that we can release it as a patch.

published as 2.2.2


PostgresDsn fails for google cloud dsn

Bug
Please complete:

OS:
debian buster

Python version import sys; print(sys.version):

3.7.5rc1 (default, Oct  8 2019, 16:47:45)
[GCC 9.2.1 20190909]

Pydantic version import pydantic; print(pydantic.VERSION):

1.0
Please read the docs and search through issues to
confirm your bug hasn't already been reported.
Where possible please include a self contained code snippet describing your bug:
the following assert added to the tests of postgres dsn def test_postgres_dsnencodes(): fails
assert Model(a='postgresql://user:password@/db_name?host=/cloudsql/project-name:region:instance-name&port=5432').a == 'postgresql://user:password@/db_name?host=/cloudsql/project-name:region:instance-name&port=5432'

this is a valid postgres dsn in google cloud sql (https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql-postgres)

weird, doesn't look anything like DSN to me. What do other libraries think?

Pending issue in asyncpg :
https://github.com/MagicStack/asyncpg/issues/419
Working with psycopg2 :
https://stackoverflow.com/a/51061723
Le lun. 4 nov. 2019 à 11:32 PM, Samuel Colvin<EMAIL_ADDRESS>a
écrit :

weird, doesn't look anything like DSN to me. What do other libraries think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/samuelcolvin/pydantic/issues/960?email_source=notifications&email_token=AAINSPVQFKHLON2ABP3FMETQSCPJHA5CNFSM4JIZ4ZOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDA6LRQ#issuecomment-549578182,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAINSPU62DC7LWJO3J7AC4LQSCPJHANCNFSM4JIZ4ZOA
.

I think, despite being genuinely weird, that the url is valid, see for instance https://github.com/GoogleCloudPlatform/python-docs-samples/blob/fe969c35b66fe3a1e854723e88f6ba79b63f7309/appengine/flexible/cloudsql_postgresql/app.yaml#L13

I'm assuming the host is actually just '', which I agree is weird.
I think for most cases this would be more likely to be a mistake rather than intended. So it might make sense to create a different type (maybe not in pydantic?) to handle this.
On the other hand, if this is the standard way to integrate with the Google Cloud AppEngine, maybe it is worth handling directly by pydantic? (Even if so, I wouldn't mind requiring the use of a different class, kind of like HttpUrl vs AnyHttpUrl.)

@samuelcolvin Considering that this is a format that is valid and used by the GCP platform, would you be open to accepting a potential PR for this?

According to the libpq docs it is allowed to use a path name in place of a host name in the connection URIs, in which case the it is interpreted as the directory where the Unix socket resides.
Additionally, all parts after the scheme are optional.
The relevant passage from section <IP_ADDRESS> is

The host part is interpreted as described for the parameter host. In particular, a Unix-domain socket connection is chosen if the host part is either empty or looks like an absolute path name, otherwise a TCP/IP connection is initiated. Note, however, that the slash is a reserved character in the hierarchical part of the URI. So, to specify a non-standard Unix-domain socket directory, either omit the host part of the URI and specify the host as a named parameter, or percent-encode the path in the host part of the URI:

postgresql:///dbname?host=/var/lib/postgresql
postgresql://%2Fvar%2Flib%2Fpostgresql/dbname

Clearly, this implementation falls short.


Wrong keyboard type in plugins/inline-query

Most likely the link should ref to ./keyboard#building-an-inline-keyboard
https://github.com/grammyjs/website/blob/2dd2a02228cd2fafd9760ab6b29cc2acafda5fa3/site/docs/plugins/inline-query.md?plain=1#L215

That's right, good catch


Fix annotation order

The annotations in the table doesn't match the order if the footnotes. Correcting after talking with @rainest.

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


Mounting the dataset causes error

Is there a right way to mount the dataset in jupyter notebook of ML Studio ?
Can a dataset point to two different datastore ?
p.s : I have created dataset pointing to two different datastores and registered it as well.
But while mounting the dataset, it shows some error.

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Data Factory:0.36336526,Compute:0.07812735,Storage:0.059026662'

Thanks for reaching out! Adding @azureml-github to help investigate.

@jeeva1711 looks like the mount point directory you are trying to mount to is on SMB2 file system and you can't mount on that file system. I would suggest either changing your mount_point argument to some folder on ordinary linux file system or remove the argument alltogether so that the system creates mount point automatically (in the tmp folder), you can then query mount_context.mount_point property to discover the path to be used in later

@anliakho2 I have removed the argument like you said, used the method mentioned in documentation page and it worked fine.
But still there is this warning and I don't know what to do with that. I have added the image below for your reference.

@anliakho2 I have removed the argument like you said, used the method mentioned in documentation page and it worked fine. But still there is this warning and I don't know what to do with that. I have added the image below for your reference.

This warning is there for a reason, given you want to mount multiple paths or multiple datastores to the same location this dataset couldn't be mounted as a volume, which a supported scenario but has performance implications as file system requests to mount couldn't be just mapped to storage service requests and instead need to go trough execution engine to figure things out.
If your mount works fine for your use case and you get an acceptable performance - you could just ignore the warning, however if you want higher perf you might want to split the dataset into two that could be volume mounted individually, this is really up to you

@anliakho2 I have removed the argument like you said, used the method mentioned in documentation page and it worked fine. But still there is this warning and I don't know what to do with that. I have added the image below for your reference.

This warning is there for a reason, given you want to mount multiple paths or multiple datastores to the same location this dataset couldn't be mounted as a volume, which a supported scenario but has performance implications as file system requests to mount couldn't be just mapped to storage service requests and instead need to go trough execution engine to figure things out. If your mount works fine for your use case and you get an acceptable performance - you could just ignore the warning, however if you want higher perf you might want to split the dataset into two that could be volume mounted individually, this is really up to you

Thanks a lot @anliakho2 . It really helped.


Make 'json' an explicit dependency

Currently the json dependency is installed here.
Ruby 1.x already reached the end of the support a long time ago. I think the json dependency should be explicitly listed by now.

Merged PR; closing.


Add the license field in all Cargo.tomls

I'm hoping this will help FOSSA find the licenses.

We've managed to get around this for now, closing


[Feature]

Description
The website name (CSEdge Learn) on the top left is a plain text and clicking on it doesn't redirects to the home page.
If a user goes a sub link (let's say how to create account in microsoft azure article of the blog), to go back to the home page, user have to click on the back button of the browser which leads to a bad user experience.
solution
By redirecting to the home page by adding home-page link to the main title will solve the problem.
please assign me this issue  under #gssoc'24
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSoC'24 contributor.
[X] I want to work on this issue.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Heyy!! Can you please assign this to me, I'm eager to contribute and would love working on this under GSSoC'24.
Thanks!


Help with messaging about file formats

Please help us write up better descriptions of what each format is, and how to use it!
Also it would be great to have some info about the four different file formats that come though in the shapefile zip... people don't know what they mean!

Discussed with @rmglennon and Katie as improvement to documentation.

closing with new docs, including a separate topic just on file formats!
fixed here by @kkowalsky in https://github.com/mapzen/data-pages/pull/237


Faster Version with the new bech32-fast library?

hey @KtorZ , would it be possible to get a new version here with the faster bech32 library you have built?

Possibly, but it may be difficult since the API of fast-bech32 is actually quite different from this one... Simplified, but also arguably less typesafe. So, porting part of the (optimized) implementation while preserving the current API isn't trivial..


Does type information belong to YAML ?

In GitLab by @hgrasland on Jun 19, 2024, 08:02
I like PDI's idea of making the I/O logic in your application something you can reconfigure by tweaking a YAML config file without recompilation.
However, I don't think type information really belongs there, because it's rarely something you can sensibly change without recompilation:

If you change a scalar datatype in YAML without changing it in the code, you will get at best a bitcast (which is rarely the expected result, and may result in strict aliasing UB in C/++ in some edge cases) and at worst undefined behavior (if going to a larger type than the application actually provides, or if either the app or PDI believes that the buffer contains a type with forbidden bit patterns like bool while the other side doesn't do so).
If you increase the array buffer size in the YAML file, you need to adjust it in the code and recompile, otherwise plugins are likely to trigger buffer overflow UB.
If you change an array type in a manner that keeps the overall byte size constant (e.g. reshape the dimensions, or double scalar size but halve array length), you may get something that may be valid from the point of view of language rules (ignoring for a moment the question of memory alignment), but it is likely to produce illogical results from the application's perspective.

Basically, the only change that I think follows language/compiler rules AND is likely to make logical sense to the application is shrinking a buffer that the application never calls PDI_access on. That's quite a small subset.
As an alternative, I think PDI should have the application declare its typed data interface from code. And ideally provide some YAML syntax for performing basic introspection on application-declared types (e.g. $arr.size[0]), which will help in cases where you don't want to make problem size a PDI-tunable parameter.
Of course, completely removing the ability to declare types in YAML and mandating in-code type declarations would be a major breaking API change, so it should probably be saved up for a PDI 2.0 major release or similar. But during the transition period, making YAML type declarations optional and checking that they match the in-code type declaration if both are present could be a sensible middle ground.

In GitLab by @hgrasland on Jun 20, 2024, 06:15
I have thought about generating the relevant part of the YAML from source code like this, but it does not address two important usage patterns :

Some type information, e.g. array sizes, may not be known until after PDI has been initialized.
Some type information may change over time (think about e.g. adaptive meshes).

For example, during the tutorial, array sizes which depend on PDI metadata have been demonstrated. This cannot be cleanly handled by generating YAML from source code.
To handle these use cases, an API that can be called after PDI_init to set or change the type information from the program would be useful.


Blog searches return plaintext article snippets

Pointed out by David3k on the IRC.
Running a search on the mainsite's blog returns the resulting blog post snippets as plain text. See the attached image for a demonstration. Also, click the following link to see it for yourself: https://dolphin-emu.org/blog/search/?pattern=jitil
Reproduced in Chrome and Safari.

This is because our blog entry template doesn't use |safe as the original does. No idea why.

The snippets on facebook are in plaintext as well, come to think of it...

This was fixed at some point, I believe by https://github.com/dolphin-emu/www/commit/1722ede4684e5175d2c5955dba6a6210de9029f6.


RadioButton missing getExpanse()

Ready to be closed after Theme/Expanse rework from Timon.

After #277 is finished, this issue can be closed

getExpanse() method has been implemented


[FEATURE REQ] Add Integrated Windows Authentication support within TokenCredential interface

Library name
Azure.Storage.Blobs
Please describe the feature.
I am running into this issue with Azure.Storage.Blobs but I believe this will be the case for other libraries accepting TokenCredential as well. I tried to make it work with Integrated Windows Authentication but failed to find the appropriate descendant of TokenCredential to supply into the constructor of BlobContainerClient. After asking a question on StackOverflow I was pointed to the migration guide where IWA is marked is not supported.
I am not sure why Integrated Windows Authentication is not supported. This must be pretty popular demand in the Enterprise world.
I ended up writing my own implementation of TokenCredential interface:
internal class IwaCredential : TokenCredential
{
    private readonly IPublicClientApplication _application;
    private readonly string[] _scopes;

    public IwaCredential(IPublicClientApplication app, string[] scopes)
    {
        _application = app;
        _scopes = scopes;
    }

    private async Task<AuthenticationResult> AuthenticateAsync()
    {
        AuthenticationResult? result = null;
        var accounts = await _application.GetAccountsAsync();

        if (accounts.Any())
        {
            try
            {
                result = await _application.AcquireTokenSilent(_scopes, accounts.FirstOrDefault()).ExecuteAsync();
            }
            catch (MsalUiRequiredException)
            {
            }
        }

        if (result == null)
        {
            result = await _application.AcquireTokenByIntegratedWindowsAuth(_scopes).ExecuteAsync();
        }

        return result;
    }

    private async Task<AccessToken> GetAccessTokenAsync()
    {
        var authResult = await AuthenticateAsync();
        return new AccessToken(authResult.AccessToken, authResult.ExpiresOn);
    }

    public override AccessToken GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)
    {
        return GetAccessTokenAsync().GetAwaiter().GetResult();
    }

    public override ValueTask<AccessToken> GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
    {
        return new ValueTask<AccessToken>(GetAccessTokenAsync());
    }
}

Now we are able to supply it into BlobContainerClient (or other):
var appOptions = new PublicClientApplicationOptions
{
    ClientId = "...",
    TenantId = "...",
};
var app = PublicClientApplicationBuilder.CreateWithApplicationOptions(appOptions).Build();
var cred = new IwaCredential(app, new string[] { "https://storage.azure.com/user_impersonation" });
var client = new BlobContainerClient(new Uri("https://foobar.blob.core.windows.net/upload"), cred);
// obtain your file...
var res = await client.UploadBlobAsync("prefix/my.file", file);
Console.WriteLine(res);
}

I ask you to please include an equivalent of IwaCredential above into the standard of Azure.Identity.
See also my question on StackOverflow (and comments).

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @greatvovan - The reason we don't have a credential that supports IWA is that, generally, the other implementations of TokenCredential are cross-platform.

I understand @christothes. Any plans for including this functionality into other (Windows-related) packages? I think there should be an official implementation from Microsoft for this part as it might be not obvious how to proceed from IWA to token auth.

If you are wanting to do interactive windows based login support, this Azure.Identity.BrokeredAuthentication may be closer to what you are looking for.

See also #12219 where you promise to close the gap to AppAuthentication. Funny that Microsoft abandons their own enterprise platform.


python3Packages.ambee: 0.3.0 -> 0.4.0

Motivation for this change
Update to latest upstream release 0.4.0
Change log: https://github.com/frenck/python-ambee/releases/tag/v0.4.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 140893 run on x86_64-linux 1

2 packages built:

python38Packages.ambee
python39Packages.ambee


Masternode payments refactoring/cleanup

This is basically a whole masternode payments module refactoring/cleanup but I broke it into small self-containing commits for an easier review. Hope it helps.

utACK


Cannot create functions to be used in vue as method in onMount

I am interested in helping provide a fix!
No
Which generators are impacted?

[ ] All
[ ] Angular
[ ] HTML
[ ] Qwik
[ ] React
[ ] React-Native
[ ] Solid
[ ] Stencil
[ ] Svelte
[X] Vue
[ ] Web components

Reproduction case
https://mitosis.builder.io/?outputTab=M4NwpgNgLmQ%3D&code=JYWwDg9gTgLgBAbzgVwM4FMDKNroDQoYBK6AZnhAHYCyEyl8AvnKVBCHAEQACARssAA2AE3RQAdMAgB6EMBypgqTgG4AUGvQAPSLDijSAQ2SD4pegGMYUynGoBPAMLtIldAwAUYNmFQBKRDU4OAsqVHhgSjBkGBJSOABeQnQ4jz91IJCw%2BHDDGHRE5OxcDwRM4MpDEHQALi5sdAA3dE48crgqACFBZCg0wODBuEjo2LJxUggLNDT2xjahgHN0eEEIAHcxR0MMADkq9H6yoeCoFd7bXPzxSurxHAAZDa2dw%2FS5zMZ3tXNKKxs4IYjplDIIxDAPAAmd6MDQdGh0Tz9BIAPgGwVB4I8AEZ3kMgXi4F8MnC4GcYBc4B52gAeYTARpwFHtYIIbwQXziVAACw2AEkojE4AAyYVUlmDGkjGISoZnUgJBDSsakWEnE4WVCoRXHdUaiBrKB1ThnYStWWDRhqvXBRqg5DoRVXdA3A7Wm1dHpQRUeJruGABVFwZ3iT29NLuvVURzcwyUZY%2Bv0MQNopAh24FJJJmD3QxQZY5u09ApWi3SZnqvyR4IACXQgjWEoQIbWmyg2z2boAhHA%2BSE42T6MNbCRDFYCAA1B0ETAG4DCAjQOAPYAARwEwi7tOk9MaFbgMKAA%3D%3D
Expected Behaviour
If I call a function from onMount hook I expect to be called.
Actual Behaviour
is not calling it
Additional Information
No response

If you declare the functions in useStore, it works as expected.
See: https://mitosis.builder.io/?outputTab=G4VwpkA%3D&code=JYWwDg9gTgLgBAbzgVwM4FMDKNroDQoYBK6AZnhAHYCyEyl8AvnKVBCHAEQACARssAA2AE3RQAdMAgB6EMBypgqTgG4AUGvQAPSLDijSAQ2SD4pegGMYUynGoBPAMLtIldAwAUYNmFQBKRDU4OAsqVHhgSjBkGBJSOABeQnQ4jz91IJCw%2BHDDGHRE5OxcDwRM4MpDEHQALi5sdAA3dE48crgqACFBZCg0wODBuEjo2LJxUggLNDT2xjahw36yoeDDQTEYDwAmdLmFwYBzdHhBCAB3MUdDDAA5KvRl9uCoE97bXPzxSurxHAAZC5XG6PPZDRiZRh7DQdGh0Tz9BIAPgGcHWmw8AEYwXBPuhxEs9lCMjC4K8YO84B52gAeYTARpwJHPRDeCC%2BcSoAAWFwAklEYnAAGRCqks4I0kYxcWDV6kBIIKVjUgQ1arCyoVAKlZq9UQM5QOqcV7CVoy4KMVW64KNdbIdAKvHfB5W61dHpQBUeJruGABZG4mB5fHu3ppV26qiOLmGSjHL0%2Bhj%2BlFIJ0%2FApJRMwP6GKDHbO2noFS0y6TMtV%2BCPBAAS6EEZxZCCdZ0uUGudxdAEI4LyQrGyfRhrYSIYrAQAGr2giYfXAYQEaBwf7AACOAmEndp0npjXLcCJQA

The shared example works for Vue's Composition API.
The current issue is that Vue's Options API will place all methods in its methods property, so we need to prefix the function calls with this. prefixes.
The place to do this is processBinding https://github.com/BuilderIO/mitosis/blob/a762948e6014450d5b8b80c961b771df4568f847/packages/core/src/generators/vue/helpers.ts#L116
We'll want to add a step to the effect of:
(code) => {
  const allMethodNames = Object.entries(json.state).filter(
    ([key, value]) => value?.type === 'function' || value?.type === 'method',
  ).map(([key]) => key);

  if (options.api === 'composition') {
    return replaceIdentifiers({ code, from: allMethodNames, to: name => `this.${name}` })
  } else {
    return code
  }
}

This will identify all functions & methods described in the component, and if any of them are referenced directly within a code block, those references will get a this. prefix added to them.


OAuthConfig no longer supported

The script seems to be no longer working, as when the script is run in google spreadsheets it returns an error stating that OAuthConfig is no longer supported (details: http://goo.gl/IwCSaV ).

@city17 You are correct. We are working on getting an update soon. For now we suggest taking a look at this update: https://github.com/simonbromberg/googlefitbit


translations from weblate: Add new language (Greek) and update existing ones

These are the translations for monero-site and user guides from Weblate. To activate Greek a separated PR is necessary (edit: i decided to add the commit that activates and lists greek to this PR to make reviews easier. i will add the changes to the user guides in another PR).
https://translate.getmonero.org/projects/getmonero/monero-site/
https://translate.getmonero.org/projects/getmonero-user-guides/
Translators:

Spanish

Samuel
askirz
Adrian Anton
Flip Perto
Luis Alejandro Herrera Bolaños
Miguel Medina

Italian

alreadyburnt
Valentina

Polish

K N
Patix0331
Marta Kozera
Paul Janowitz

Greek

Iason Andreou
Akhs Efth
Donald Iljazi

Chinese (Traditional)

Lafudoci

Russian

v1docq47

Turkish

Yusuf T
HardenedSteel

German

Paul Janowitz
b068931cc450442b63f5b3d276ea4297
Crusty
Martin

Yes. Strings of user guides and Moneropedia (wip) are in the .po files.


Block password-only auth when 2FA is enabled

Gitea version (or commit ref): 1.1.0
Operating system: Debian
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[ ] Not relevant
[x] Not tested yet

Description
When 2FA is enabled Gitea should block the authentication via password and require auth tokens.
The current behaviour is to allow authentication via git even with 2FA enabled. This, however, defeats the whole point of 2FA: This way users/attackers can perform git actions (aka login, push code, etc.) without authenticating with the 2FA method.

@minecrafter maybe you can see this issue.

I might be able to find time to work on this next week.

@minecrafter This is a serious security issue, as users are able to circumvent 2FA with regular Git commands .. could this be re-prioritized? IMHO it needs fixing yesterday :frowning:


EOS-13263: Hare utility to mask features and logrotate configuration is missing

CSM requires Hare to report any unavailable features based on the
installation type.
Logrotate settings for hare logs must be configured based on the given installation
type. Such a utility is missing in hare.
Cron job for pruning hax m0trace files is also missing based on the installation
type.

Solution:

Add a utility to accept options for configuring logrotate and to report
masked features based on the installation type fetched from the provisioner.
Sample provisioner installation information,

{
"ret": {
"nodes": 1,
"server_type": "physical",
"servers_per_node": 2,
"storage_type": "5u84"
}
}

Add a cron job script to prune /var/motr/hax/m0trace.* files based on the
installation type (virtual or physical).
Use asyncio to invoke csm api store_unsupported_features()
Use cortx-utils package to use unsupported_features module.
Add logrotate configuration file for virtual and physical setups.
Install default hare logrotate configuration file as part of hare
package installation. Default logrotate configuration is replaced with
the setup (virtual or physical) specific logrotate configuration
by setup.py utility through provisioner.

Signed-off-by: Mandar Sawant<EMAIL_ADDRESS>

Custom build deployment of http://cortx-storage.colo.seagate.com/releases/cortx/github/integration-custom-ci/release/centos-7.8.2003/custom-build-52/ on sm6-r23.pun.seagate.com and sm7-r23.pun.seagate.com was successful. Hare setup.py invocation completes without any error.
[root@sm6-r23 ~]# /opt/seagate/cortx/hare/conf/
logrotate/       setup_info.json  setup.py         setup.yaml
[root@sm6-r23 ~]# /opt/seagate/cortx/hare/conf/setup.py --help
usage: setup.py [-h] [--report-unavailable-features]

Configure hare settings

optional arguments:
  -h, --help            show this help message and exit
  --report-unavailable-features
                        Report unsupported features according to setup type
[root@sm6-r23 ~]# /opt/seagate/cortx/hare/conf/setup.py --report-unavailable-features
[root@sm6-r23 ~]# cat /etc/pip.conf
[global]
timeout: 60
index-url: http://cortx-storage.colo.seagate.com/releases/cortx/github/integration-custom-ci/release/centos-7.8.2003/custom-build-52//python_deps
trusted-host: cortx-storage.colo.seagate.com


fix: update repo.host_id to repo.id to match github repo schema

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description
This PR fixes the bug discussed in https://github.com/open-sauced/insights/issues/1058#issue-1643330933

Related Tickets & Documents
Fixes #1058

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

@0-vortex we are checking the GitHub API as a fallback. We can remove it in.a follow-up

@0-vortex we are checking the GitHub API as a fallback. We can remove it in.a follow-up

Awesome, let's do that sometime; we don't have all the fields from the design available for github repos, thus creating visual discrepancies; the extra requests don't actually hurt the server 🍕


[UPDATE] deps

updated dependencies
the TODO list asks to change code to use compute-intersect and compute-nanunique, do these modules exist yet?

No, not yet. These modules exist locally on my machine, but I have yet to publish. I will do so this weekend after some clean-up.

Coverage remained the same at 100.0% when pulling dc1a597426adbf70071dbd274624f9232ef12520 on develop into 86db503d5d4f52fed0d6abc62996190434e44be5 on master.


Can't open the app

Hello, wanted to try your app, downloaded from F-Droid,but when i open it its constantly closing itself.After some tries i get this error info,which i hope will help with issue:
java.lang.NoSuchMethodError: No static method of(J)Landroid/content/pm/PackageManager$PackageInfoFlags; in class Landroid/content/pm/PackageManager$PackageInfoFlags; or its super classes (declaration of 'android.content.pm.PackageManager$PackageInfoFlags' appears in /system/framework/framework.jar)
at Z0.f.b(SourceFile:1)
at com.example.quickmdcapture.MainActivityKt$MainScreen$checkLatestRelease$1.invokeSuspend(SourceFile:21)
at e2.a.resumeWith(SourceFile:9)
at u2.F.run(SourceFile:110)
at androidx.compose.ui.platform.K.z(SourceFile:7)
at androidx.compose.ui.platform.J.run(SourceFile:3)
at android.os.Handler.handleCallback(Unknown Source:2)
at android.os.Handler.dispatchMessage(Unknown Source:4)
at android.os.Looper.loopOnce(Unknown Source:176)
at android.os.Looper.loop(Unknown Source:77)
at android.app.ActivityThread.main(Unknown Source:155)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
at com.android.internal.os.ZygoteInit.main(Unknown Source:306)

Thank you for the information. There is a slightly outdated version for now, but does the error still persist in the newer version from GitHub?

Hello again,i tried to install GitHub version on f-droid's(rooted device) but got the same thing.Then uninstalled F-droid and installed only GitHub version and everything stayed the same.I installed version 1.2.0(6),if i remember correctly in f-droid same version,hope it will help

And my current system is:Miui 13 and android 12

Same here.
FATAL EXCEPTION: main
Process: com.example.quickmdcapture, PID: 10936
java.lang.NoSuchMethodError: No static method of(J)Landroid/content/pm/PackageManager$PackageInfoFlags; in class Landroid/content/pm/PackageManager$PackageInfoFlags; or its super classes (declaration of 'android.content.pm.PackageManager$PackageInfoFlags' appears in /system/framework/framework.jar)
	at Z0.f.b(SourceFile:1)
	at com.example.quickmdcapture.MainActivityKt$MainScreen$checkLatestRelease$1.invokeSuspend(SourceFile:21)
	at e2.a.resumeWith(SourceFile:9)
	at u2.F.run(SourceFile:110)
	at androidx.compose.ui.platform.K.z(SourceFile:7)
	at androidx.compose.ui.platform.J.run(SourceFile:3)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7661)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
	Suppressed: u2.D: [androidx.compose.ui.platform.k0@d2279d5, F.f@88af5ea, n0{Cancelling}@71430db, K@eddb778]

Why ZygoteInit?

@Frumkin13  @theAkito Hello. I've fixed the issue, so there shouldn't be any errors now. I would appreciate it if you could test this APK on your devices and let me know if it works for you.
QuickMDCapture 1.2.0-release.zip

@Frumkin13  @theAkito Hello. I've fixed the issue, so there shouldn't be any errors now. I would appreciate it if you could test this APK on your devices and let me know if it works for you.
QuickMDCapture 1.2.0-release.zip
Thanks for this,now it's opens correctly!Thank you for your work and quick response!Hope you'll keep up the good work!Best of luck and have a nice day!


no \ADmad\SocialAuth\Http\Client::class

https://github.com/ADmad/cakephp-social-auth/tree/cake-4.x#middleware-config
there is no such class it seems in cake4
I used then Http\Adapter\Cake\Client from php-http/cakephp-adapter package which works nicely
Maybe it should be require-dev in your tests
https://github.com/php-http/cakephp-adapter/releases/tag/0.3.0 should work fine
I use the same for Geo plugin

I have updated the readme, that option is no longer required. The custom client class was only required for older version of SocialConnect/auth since it has it's own http client interface. Since v3 it uses Psr\Http\Client\ClientInterface instance which Cake\Http\Client already implements and hence it's directly used.


 Lazy loading is split into several areas which may use different algorithms or approaches to solve a similar problem.
Lazy loading: Members

[ ] #1227 - proposal
[ ] #688 - another room summary issue
[ ] #1287 - PR for sync filters

Lazy loading: Incremental sync

[ ] #1320 - room summary (server-side room naming)

Lazy loading: read receipts

[ ] #1319 - read receipts

@ara4n have updated the OP to hopefully add clarity