Download Git submodules

Fix #39
As stated in the issue, the .git isn't present in the ZIP archived downloaded from Github. This makes not possible to use git submodules update....
Here is the approach I propose: manually parse the .gitmodules (which isn't a complicated format so it works well), then recursively go through those modules and git clone each of them.
Try this out with : bin/pie build mongodb/mongodb-extension. Note that you may still have an error with this particular extension, but it is not related to this dev. But that's the only extension I found for now that uses submodules 😄
It would be nice to update asgrim/example-pie-extension to add a .gitmodules to test this in the behavioral tests.

ping @alcaeus

Full log of failed build
~/PhpstormProjects/pie git:[git-submodules]
bin/pie build mongodb/mongodb-extension
You are running PHP 8.2.26
Target PHP installation: 8.2.26 nts, on Linux/OSX/etc arm64 (from<EMAIL_ADDRESS>Found package: mongodb/mongodb-extension:1.20.1 which provides ext-mongodb
Extracted mongodb/mongodb-extension:1.20.1 source to: /Users/mac-ADAUBO01/.pie/php8.2_de0add5ce820af84dfd98407ed9d24d8/vendor/mongodb/mongodb-extension
Found .gitmodules file in /Users/mac-ADAUBO01/.pie/php8.2_de0add5ce820af84dfd98407ed9d24d8/vendor/mongodb/mongodb-extension, fetching submodules...
Cloned submodules: https://github.com/mongodb/mongo-c-driver.git, https://github.com/mongodb/libmongocrypt.git
phpize complete.

In Process.php line 270:

  The command "'./configure'" failed.

  Exit Code: 1(General error)

  Working directory: /Users/mac-ADAUBO01/.pie/php8.2_de0add5ce820af84dfd98407ed9d24d8/vendor/mongodb/mongodb-extension

  Output:
  ================
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for a sed that does not truncate output... /opt/homebrew/opt/gnu-sed/libexec/gnubin/sed
  checking for pkg-config... /opt/homebrew/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  checking for cc... cc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether the compiler supports GNU C... yes
  checking whether cc accepts -g... yes
  checking for cc option to enable C11 features... none needed
  checking how to run the C preprocessor... cc -E
  checking for egrep -e... (cached) /usr/bin/grep -E
  checking for icc... no
  checking for suncc... no
  checking for system library directory... lib
  checking if compiler supports -Wl,-rpath,... yes
  checking build system type... aarch64-apple-darwin24.2.0
  checking host system type... aarch64-apple-darwin24.2.0
  checking target system type... aarch64-apple-darwin24.2.0
  checking for PHP prefix<EMAIL_ADDRESS>
  checking for PHP includes<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
  clude/php/TSRM<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
  ext/date/lib
  checking for PHP extension directory<EMAIL_ADDRESS>
  checking for PHP installed headers prefix<EMAIL_ADDRESS>
  checking if debug is enabled... no
  checking if zts is enabled... no
  checking for gawk... no
  checking for nawk... no
  checking for awk... awk
  checking if awk is broken... no
  checking whether to enable MongoDB support... yes, shared
  checking for pkg-config... (cached) /opt/homebrew/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  checking PHP version... 8.2.26
  checking whether to enable developer build flags... no
  checking whether to enable code coverage... no
  checking whether to compile against system libraries instead of bundled... no
  checking whether to use system libbson... no
  checking whether to use system libmongoc... no
  checking whether to enable client-side encryption... auto
  checking for gcc... (cached) cc
  checking whether the compiler supports GNU C... (cached) yes
  checking whether cc accepts -g... (cached) yes
  checking for cc option to enable C11 features... (cached) none needed
  checking for g++... g++
  checking whether the compiler supports GNU C++... yes
  checking whether g++ accepts -g... yes
  checking for g++ option to enable C++11 features... -std=gnu++11
  checking for an ANSI C-conforming const... yes
  checking for inline... inline
  checking for typeof syntax and keyword spelling... typeof
  checking for __sync_add_and_fetch_4... yes
  checking for __sync_add_and_fetch_8... yes
  checking for stdio.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for strings.h... yes
  checking for sys/stat.h... yes
  checking for sys/types.h... yes
  checking for unistd.h... yes
  checking for _Bool... yes
  checking for stdbool.h that conforms to C99 or later... yes
  checking for strings.h... (cached) yes
  checking whether byte ordering is bigendian... no
  checking for strnlen... yes
  checking for reallocf... yes
  checking for syscall... yes
  checking for snprintf... yes
  checking for strlcpy... yes
  checking for struct timespec... yes
  checking for library containing clock_gettime... none required
  checking for library containing floor... none required
  checking for gmtime_r... yes
  checking for rand_r... yes
  checking for arc4random_buf... yes
  checking whether cc is Clang... yes
  checking whether pthreads work with "-pthread" and "-lpthread"... yes
  checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
  checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
  checking whether more special flags are required for pthreads... no
  checking for PTHREAD_PRIO_INHERIT... yes
  checking whether PTHREAD_ONCE_INIT needs braces... no
  checking whether to enable Snappy for compression... auto
  checking whether to enable zlib for compression... auto
  checking whether to enable zstd for compression... auto
  checking for snappy... no
  checking for snappy_uncompress in -lsnappy... no
  checking for snappy-c.h... no
  checking for zlib... yes
  checking for libzstd... yes
  checking for res_nsearch... yes
  checking for res_ndestroy... yes
  checking whether to enable SASL for Kerberos authentication... auto
  checking for libsasl2... no
  checking for sasl_client_init in -lsasl2... yes
  checking for sasl/sasl.h... yes
  checking for sasl_client_done in -lsasl2... yes
  checking which SASL library to use... cyrus
  checking whether to enable crypto and TLS... auto
  checking deprecated option for OpenSSL library path... auto
  checking for cc options needed to detect all undeclared functions... none needed
  checking for openssl >= 1.0.1... yes
  checking whether ASN1_STRING_get0_data is declared... yes
  checking which TLS library to use... openssl
  checking whether to use system crypto profile... no
  checking deprecated option for whether to use system crypto profile... no
  checking whether to use bundled or system utf8proc for SCRAM-SHA-256 SASLprep... bundled
  checking whether byte ordering is bigendian... (cached) no
  checking for shm_open... yes
  checking for sched_getcpu... no
  checking for socklen_t... yes
  checking for struct sockaddr_storage.ss_family... yes
  checking accept ARG2 => struct sockaddr ARG3 => socklen_t ... ok
  checking for pthread_join using cc -pthread -lpthread... yes
  checking whether cc is Clang... (cached) yes
  checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... (cached) no
  checking for joinable pthread attribute... (cached) PTHREAD_CREATE_JOINABLE
  checking whether more special flags are required for pthreads... (cached) no
  checking for PTHREAD_PRIO_INHERIT... (cached) yes
  checking if weak symbols are supported... yes
  checking which crypto library to use for libmongocrypt... openssl
  checking whether byte ordering is bigendian... (cached) no
  checking for a sed that does not truncate output... /opt/homebrew/opt/gnu-sed/libexec/gnubin/sed
  checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
  checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
  checking for BSD-compatible nm... /usr/bin/nm -B
  checking whether ln -s works... yes
  checking how to recognize dependent libraries... pass_all
  checking for dlfcn.h... yes
  checking the maximum length of command line arguments... 786432
  checking command to parse /usr/bin/nm -B output from cc object... ok
  checking for objdir... .libs
  checking for ar... ar
  checking for ranlib... ranlib
  checking for strip... strip
  checking for dsymutil... dsymutil
  checking for nmedit... nmedit
  checking for -single_module linker flag... yes
  checking for -exported_symbols_list linker flag... yes
  checking if cc supports -fno-rtti -fno-exceptions... yes
  checking for cc option to produce PIC... -fno-common
  checking if cc PIC flag -fno-common works... yes
  checking if cc static flag -static works... no
  checking if cc supports -c -o file.o... yes
  checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
  checking dynamic linker characteristics... darwin24.2.0 dyld
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... yes
  checking whether to build static libraries... no

  creating libtool
  appending configuration tag "CXX" to libtool
  checking for ld used by g++ -std=gnu++11... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
  checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
  checking for g++ -std=gnu++11 option to produce PIC... -fno-common
  checking if g++ -std=gnu++11 PIC flag -fno-common works... yes
  checking if g++ -std=gnu++11 static flag -static works... no
  checking if g++ -std=gnu++11 supports -c -o file.o... yes
  checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
  checking dynamic linker characteristics... darwin24.2.0 dyld
  (cached) (cached) checking how to hardcode library paths into programs... immediate
  configure: patching config.h.in
  configure: creating ./config.status

  mongodb was configured with the following options:

  Build configuration:
    CC                                               : cc
    CFLAGS                                           : -g -O2
    CPPFLAGS                                         :  -DHAVE_CONFIG_H
    Extra flags                                      :
    Developer flags (slow)                           :
    Code Coverage flags (extra slow)                 :
    libmongoc                                        : Bundled (1.28.1)
    libbson                                          : Bundled (1.28.1)
    libmongocrypt                                    : Bundled (1.11.0)
    LDFLAGS                                          :
    EXTRA_LDFLAGS                                    :
    MONGODB_SHARED_LIBADD<EMAIL_ADDRESS><EMAIL_ADDRESS>-lsasl2 -lresolv -Wl,-rpat
  h,/opt/homebrew/opt/zstd/lib -L/opt/homebrew/opt/zstd/lib  -lpthread -pthread -lz -lzstd -lssl -lcrypto -lpthread -pthread

  Please submit bugreports at:
    https://jira.mongodb.org/browse/PHPC

  Error Output:
  ================
  ld: warning: -single_module is obsolete
  config.status: error: cannot find input file: '/Users/mac-ADAUBO01/.pie/php8.2_de0add5ce820af84dfd98407ed9d24d8/vendor/mongodb/mongodb-extension/src/libmongoc/src/common/comm
  on-config.h.in'

build [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--with-phpize-path WITH-PHPIZE-PATH] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--enable-mongodb-coverage ENABLE-MONGODB-COVERAGE] [--enable-mongodb-crypto-system-profile ENABLE-MONGODB-CRYPTO-SYSTEM-PROFILE] [--enable-mongodb-developer-flags ENABLE-MONGODB-DEVELOPER-FLAGS] [--with-mongodb-client-side-encryption WITH-MONGODB-CLIENT-SIDE-ENCRYPTION] [--with-mongodb-sasl WITH-MONGODB-SASL] [--with-mongodb-snappy WITH-MONGODB-SNAPPY] [--with-mongodb-ssl WITH-MONGODB-SSL] [--with-mongodb-system-libs WITH-MONGODB-SYSTEM-LIBS] [--with-mongodb-zlib WITH-MONGODB-ZLIB] [--with-mongodb-zstd WITH-MONGODB-ZSTD] [--] <requested-package-and-version>

You can't just take the last commit from the main branch, you need the exact commit that was committed. Maybe we could specify the commit in the .gitmodules file.

It seems you can provide .gitmodules only a branch name, not a commit hash. 😕 Note that the error I have in the failed build seems present as well without this PR.


Cannot disable setValueOnMove on SelectList

Current behavior
Moving item with keyboard on SelectList still updates value, regardless of setValueOnMove setting.
Steps to reproduce the bug
https://stackblitz.com/edit/react-jqrqqh?file=src%2FApp.js
Expected behavior
When setValueOnMove=false, item should still be moved and focused (either data-focus-visible through virtual focus or native :focus-visible without virtual focus), without value change.
Workaround
No response
Possible solutions
No response

Hi @tienpv222! Could you share more details about your specific use case where you encountered this bug? Depending on the context, it could have different solutions.

Hi @tienpv222! Could you share more details about your specific use case where you encountered this bug? Depending on the context, it could have different solutions.

Hi @diegohaz. I'm using SelectList as the layer panel in a drawing app. It's always visible so I use that instead of SelectPopover. However I expect the setValueOnMove behavior to be similar to SelectPopover when set to false. The reason is I'd like to let users navigate through long list of items, without changing the selected value (which might trigger change in my other components). I hope this makes sense. Thank you.

Ahh, so if open: false then value will be set on move regardless. I used alwaysVisible on SelectList and thought it was enough. Thank you. It's solved now.


Add BERTopic to Featured Projects

cc @MaartenGr

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

LGTM ! Thanks !


⚠ ClamAV has degraded performance

In 2395c7f, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 194 ms

Resolved: ClamAV performance has improved in 90a13af.


ReactJS Form Submission FastAPI 422 Unprocessable Entity

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
Backend

from fastapi import APIRouter, HTTPException, status
from fastapi import Depends
from jose import jwt

from db.models.users import User
from schemas.users import UserCreate, ShowUser
from db.repository.users_data_access_layer import Users
from core.auth import Auth
from core.mailer import Mailer
from core.config import Settings
from depends import get_user_db
from db.repository.users_data_access_layer import Users
from core.auth import Auth

router = APIRouter()

get_settings = Settings()

@router.post("/signup", response_model=ShowUser)
async def create_user(form_data: UserCreate = Depends(), users: Users = Depends(get_user_db)):
    # CHECK IF USER ALREADY EXISTS
    if await users.get_user_by_email(email=form_data.email) is not None:
        raise HTTPException(
            status_code=status.HTTP_400_BAD_REQUEST,
            detail="User already exists"
        )
    # CHECK IF USERNAME ALREADY EXISTS
    elif await users.get_user_by_username(username=form_data.username) is not None:
        raise HTTPException(
            status_code=status.HTTP_400_BAD_REQUEST,
            detail="Username already exists"
        )

    # CREATE USER WITH USERS METHOD
    # now the hashing of the password is done directly in the creation method
    new_user = await users.create_user(form_data)

    # GET TOKEN
    # we no longer create a new uid for JTI, but use the one created automatically during user creation
    # so I modified the get_confirmation_token function so that it takes the user's JTI uid as a parameter
    confirmation_token = Auth.get_confirmation_token(
                            new_user.email,
                            new_user.confirmation)

    # SEND AN EMAIL WITH TOKEN
    try:
        Mailer.send_confirmation_message(
            confirmation_token["token"], form_data.email)
    except ConnectionRefusedError:
        raise HTTPException(
            status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
            detail="Email couldn't be send. Please try again."
        )
    # RETURN USER
    return new_user

@router.get("/verify/{token}", response_model=ShowUser)
async def verify(token: str, users: Users = Depends(get_user_db)):
    invalid_token_error = HTTPException(
        status_code=status.HTTP_400_BAD_REQUEST, detail="Invalid Token")

    # TRYING DECODE TOKEN
    try:
        payload = jwt.decode(token, get_settings.SECRET_KEY, algorithms=[
                             get_settings.TOKEN_ALGORITHM])
    except jwt.JWSError:
        raise HTTPException(
            status_code=status.HTTP_403_FORBIDDEN, detail="Token has Expired")

    # CHECK IF THE SCOPE IS OK
    if payload['scope'] != 'registration':
        raise invalid_token_error

    # TRY TO GET AN USER WITH THE ID FROM TOKEN
    user = await users.get_user_by_email(email=payload['sub'])
    print(payload['jti'])
    #print(user.confirmation)

    # CHECK IF WE FOUND AN USER AND IF THE UID CONFIRMATION IS THE SAME OF THE TOKEN
    if not user or str(user.confirmation) != payload['jti']:
        raise invalid_token_error

    # CHECK IF THE USER IS ALREADY ACTIVE
    if user.is_active:
        raise HTTPException(status_code=status.HTTP_403_FORBIDDEN,
                            detail="User already Activated")

    # IF ALL IT'S OK, WE UPDATE THE CONFIRMATION AND IS_ACTIVE ATTRIBUTE AND CALL THE SAVE METHOD
    user.confirmation = None
    user.is_active = True
    await users.save(user)
    return user

@router.get("/")
async def root():
    return {"message": "Job Board"}

Pydantic Models
from typing import Optional
from pydantic import BaseModel, EmailStr
from fastapi import Form

def form_body(cls):
    cls.__signature__ = cls.__signature__.replace(
        parameters=[
            arg.replace(default=Form(...))
            for arg in cls.__signature__.parameters.values()
        ]
    )
    return cls

@form_body
class UserCreate(BaseModel):
    username: str
    email: EmailStr
    password: str

    class Config():
        orm_mode = True

class ShowUser(BaseModel):
    username: str
    email: EmailStr
    is_active: bool

    class Config():
        orm_mode = True

Frontend
import React, { useContext, useState } from "react";
import axios from 'axios';
import Cookies from 'js-cookie';

import { UserContext } from "../context/UserContext";
import ErrorMessage from "./ErrorMessage";

const Register = () => {
  const [username, setUserName] = useState("");
  const [email, setEmail] = useState("");
  const [password, setPassword] = useState("");
  const [errorMessage, setErrorMessage] = useState("");
  const [, setToken] = useContext(UserContext);

  const submitRegistration = async () => {
    const requestOptions = {
      method: "POST",
      headers: { "Content-Type": "application/x-www-form-urlencoded" },
      body: JSON.stringify({ username: username, email: email, password: password }),
    };

    await axios
        .post("/api/signup", requestOptions)
        .then((response) => {
          console.log(response);
          alert(response);
          Cookies.set("token", response.data.access_token);
          return response;
        })
        .catch((error) => {
          console.log(error.message);
          alert(error);
        });
  };

  const handleSubmit = (e) => {
    e.preventDefault();
    if (username.length > 5) {
      submitRegistration();
    } else {
      setErrorMessage(
        "Ensure that the passwords match and greater than 5 characters"
      );
    }
  };

  return (

      <form className="box" onSubmit={handleSubmit}>

Register

          Username

            <input
              type="username"
              placeholder="Enter username"
              value={username}
              onChange={(e) => setUserName(e.target.value)}
              className="input"
              required
            />

          Email

            <input
              type="email"
              placeholder="Enter email"
              value={email}
              onChange={(e) => setEmail(e.target.value)}
              className="input"
              required
            />

          Password

            <input
              type="password"
              placeholder="Enter password"
              value={password}
              onChange={(e) => setPassword(e.target.value)}
              className="input"
              required
            />

        <ErrorMessage message={errorMessage} />

        <button className="button is-primary" type="submit">
          Register
        </button>
      </form>

  );
};

export default Register;

Request

XHRPOSThttp://localhost:3000/api/signup
[HTTP/1.1 422 Unprocessable Entity 8ms]

body	"{\"username\":\"usertest\",\"email\":\"user@user.com\",\"password\":\"password\"}"
headers	{…}
method	"POST"

Response
{
	"detail": [
		{
			"loc": [
				"body",
				"username"
			],
			"msg": "field required",
			"type": "value_error.missing"
		},
		{
			"loc": [
				"body",
				"email"
			],
			"msg": "field required",
			"type": "value_error.missing"
		},
		{
			"loc": [
				"body",
				"password"
			],
			"msg": "field required",
			"type": "value_error.missing"
		}
	]
}

Description

I'm trying to create a simple signup form Backend FastAPI and serving Frontend in React. I've created the Pydantic Models for the body request but still getting this 422 Unprocessable Entity error. How can I fix this?
It is working fine in Insomnia client when I hit the POST request it gives me the correct data with 200 OK response.

Operating System
Windows
Operating System Details
No response
FastAPI Version
0.66.0
Python Version
3.8.6
Additional Context

@0xlearner I think that the issue is where you define your form_data parameter.  You should remove the  = Depends() part.  The function declaration should be:
async def create_user(form_data: UserCreate, users: Users = Depends(get_user_db)):
    ...

@0xlearner I think that the issue is where you define your form_data parameter. You should remove the  = Depends() part. The function declaration should be:
async def create_user(form_data: UserCreate, users: Users = Depends(get_user_db)):
    ...

I tried without Depends() but still getting 422 Unprocessable Entity

@0xlearner The problem is that form_data fields appear as string whereas the models are expecting this to be part of the body. A workaround on this is as follows where you send your form data as is and expect the entire json in one field. Later
user: str = Form(...),

try:
        self.order = UserCreate(**json.loads(user))
 except ValidationError as e:
        raise HTTPException(status.HTTP_422_UNPROCESSABLE_ENTITY, detail=e.errors())

See at: https://stackoverflow.com/questions/60127234/how-to-use-a-pydantic-model-with-form-data-in-fastapi


Swrve patched version

changes to support live activites

add a stale date to the aps payload
add relevance score with no range validation

lgtm :rocket:


Add stub test and CI

Adds:

[x] stub test script
[x] test CI

/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To fix this warning, avoid executing queries in AppConfig.ready() or when your app modules are imported.
  warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
WARNING:root:Can't find ScheduledTask table, please run migrations

Interesting test runtime warning?

/opt/hostedtoolcache/Python/3.10.4/x64/lib/python3.10/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To fix this warning, avoid executing queries in AppConfig.ready() or when your app modules are imported.
  warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
WARNING:root:Can't find ScheduledTask table, please run migrations

Interesting test runtime warning?

This may become more important when you've added some real tests. Let's find out!


Notify user on a position that will expire soon using FCM

https://github.com/get10101/10101/issues/1044 introduces push notifications.
Given we can't (yet) execute rollovers in the background we need the user to open the app.
In order to motivate the user to open the app we want to make use of push notifications, e.g. tell him: your position is about to expire, come online now or we have to close your position.
### Tasks
- [ ] https://github.com/get10101/10101/issues/1174
- [ ] https://github.com/get10101/10101/issues/1175
- [ ] https://github.com/get10101/10101/issues/1176
- [ ] https://github.com/get10101/10101/pull/1167
- [ ] https://github.com/get10101/10101/issues/1212

// edit by @bonomat //
remove firebase crashlytics

whilst push notifications can be send when the app is in the background, they will not get delivered if the user deliberately closed the app (terminated it). The latter would occur e.g. after a phone restart, when using 'battery saver', or when they swiped out the app from the open apps menu.

whilst push notifications can be send when the app is in the background, they will not get delivered if the user deliberately closed the app (terminated it). The latter would occur e.g. after a phone restart, when using 'battery saver', or when they swiped out the app from the open apps menu.

Hmmm, that's surprising. Is there really no way that an app can send you a push notification if you have terminated it? I swear certain apps have the ability to do so on iOS.

whilst push notifications can be send when the app is in the background, they will not get delivered if the user deliberately closed the app (terminated it). The latter would occur e.g. after a phone restart, when using 'battery saver', or when they swiped out the app from the open apps menu.

Hmmm, that's surprising. Is there really no way that an app can send you a push notification if you have terminated it?  It might be enough to implement additional message handler, like described here:
https://stackoverflow.com/questions/66539211/fcm-push-notifications-flutter-when-app-is-terminated

Added #1104 into the scope, because this is the way we can store the IDs.

I have managed to make a PoC that sends a notification to my specific device using FCM from the coordinator.
This will allow us to have feature such as  #1211 implemented pretty much for free as soon as #1174 lands.

I'm closing this as #1297 has achieved this functionality.


Recalculate secondary dependencies between rounds

Previously dependency constrains were only added between rounds of
resolving dependencies.
This could cause irrelevant packages to be
present in resulting requirements.txt, e.g. when collecting third-level
dependencies (celery->amqp->vine), when second-level
dependency changes (ampq 2.0.2 -> 1.4.9), 3rd-level requirement (vine)
might remain in resulting output.
So instead of adding new constrains each round and stopping when
there was nothing to add, we replace old constrains with newlely calculated ones
each round and stop when both sets of constrains are identical.
fixes #370

@nvie any thoughts how we should improve this code to get PR merged?

Looking forward to this feature 👍

Thanks, this feature is awesome, and sorry I have not merged this before, @coagulant !


Fix node tests

Context: After refactoring the status library to be compatible with vanilla Javascript client code, we are encountering the following error with the node tests: TypeError: ES Modules cannot be stubbed. This error originates from the Sinon library and relates to the fact that ESM modules cannot be modified.
Reproduction: Run yarn test-node or simply yarn test.
Deliverable: Fix node tests and remove FIXME comment in .github/workflows/main.yml.

Addressed by PR https://github.com/digitalcredentials/status-list-manager-git/pull/2


Documentation needs to be enhanced before 0.3.0 release

Title explains it all - the documentation needs to be improved before the 0.3.0 release. Why you say? SO MANY CHANGES. A lot of things have been added, refactored, deleted, etc. since 0.2.0. 0.3.0 is also a more serious release of cleantest, and when I hope to start attracting some more users.
What needs to be added?

[ ] Docstrings to all functions, classes, and class methods/properties.
[ ] New doc pages for web documentation.

Should also add an actual CONTRIBUTING.md file instead of what I have currently. The current file just says TODO.
I could probably use a modified copy of Jespipe's CONTRIBUTING.md. Should use a blend of Jespipe's code of conduct and the Ubuntu code of conduct for cleantest's code of conduct.


[docs] Ubuntu fastcgi_cache_purge package

Instead of recompiling nginx with fastcgi_cache_purge or installing a custom build of it, there is a libnginx-mod-http-cache-purge package available in the universe repo, completely hassle-free - https://www.ubuntuupdates.org/package/core/lunar/universe/base/libnginx-mod-http-cache-purge
This guide (and related) should be updated to encourage installing the module instead :)

this is recommended. even cache purge through nginx helper is not removing cache file due to different nginx user and fpm process user.
if nginx can run under user www-data then clear cache would be easy. otherwise, everytime,  need to ssh into server and run the clear cache command for proxy cache.


Regenerate networks list using genNetworksList

Impersonator.xyz was missing Polygon zkEVM and I found that it comes from this source, so regenerating the list from defillama and reformatted it and it includes Polygon zkEVM now.
I formatted networksList.json using the default vscode formatter. Can't figure out how to get it to use your original formatting settings.

Thanks for adding the zkEVM.
I think the json was just generated via script and not at all formatted. I have added prettier though for it now.


kernel: enable SHPC

SHPC is need to support hotplug in q35
fixes #185
cc @sboeuf @amshinde
Signed-off-by: Julio Montes<EMAIL_ADDRESS>

@devimc ERROR: Please bump version in kernel/kata_config_version

@bergwolf here is the fix that you need if you want to make network hotplug working with q35 machine type.

lgtm
The arm64 kernel config already has this, but s390 and ppc64le don't.
/cc @alicefr, @nitkon.

all green :)

/me pounces!


[WIP] deb_pkg and deb_src rules

These are bazel rules to help resolve remote locations of the .deb
dependencies in our images.
ref #7
This is a first pass at adding rules that make the .deb resolution more user friendly and less fragile.  No need to resolve the URLs manually and hardcode into an http_rule.  I'm not sure how to really incorporate them in the WORKSPACE, but I imagined something like this in BUILD files.
load("//packages:deb_pkg.bzl", "deb_pkg")
load("//packages:deb_src.bzl", "deb_src")

deb_pkg(
    name = "openssl",
    pkg_name = "openssl",
    source = ":debian_jessie",
)

deb_src(
    name = "debian_jessie",
    arch = "amd64",
    distro = "jessie",
    mirror_url = "http://httpredir.debian.org",
)

then you can reference the debs in your docker_rule by
docker_build(
    name = "base",
    base = ":with_tmp",
    debs = [
        ":openssl",
        ...
    ],
)

This could also the be the entrypoint for future deb rules like dependency resolution.  I probably need to add version checking and checksum verification to these rules also.
These are my first bazel rules so let me know if I'm on the right track :)

cool; I was about doing something similar then I found this
shouldn't we force a version and/or sha of the deb_pkg being referenced (in order to have correct incremental and reproducible builds)?

@mmikulicic Yes, for reproducible builds, you'd want a checksum.  I generally call this "pseudo-hermetic" because while it's not hermetic you always get the same thing (or fail due to availability).  Sort of like -Werror for reproducibility I guess.

@mattmoor I don't know the exact definition of hermeticity that everybody can agree on, but I thought the interesting property is that tooling can reason about producing outputs as a pure function of the inputs by having a complete visibility of all the components that are touched while doing a build (including the tooling itself).
If something is a local file or a remote file surely has practical implications on how likely is to fail, but from a theoretical point of view a local file is no different: the disk I/O can file as well :-)
Or did I misunderstand your comment?

@mmikulicic So hermetic is an effectively closed environment, e.g. restricted to your mono-repo.  This would be Bazel without a WORKSPACE at all, as we use it internally.
When references reach outside of your not-so-mono-repo, they can be either mutable (in the sense of different versions over time) or immutable (maybe it can go away, but not change).
So when I say "pseudo-hermetic", what I mean is that everything you need is contained within your repo EXCEPT stuff (transitively) referenced in an immutable way.
So it's sort of hermetic in the sense that your repo defines the world exactly (reproducibly), but doesn't fully contain it.

I always wondered why bazel's local_repository requires an absolute path; with a relative path it would be straightforward to vendor other repositories thus making it easier to achieve this kind of fully local hermeticity.

@mmikulicic I think the docs say absolute, but in at least one failed (for other reasons) experiment, I was able to use relative paths w/ local_repository.
Consider opening an issue on bazelbuild/bazel to discuss?  Feel free to CC me.

Sorry for the delay - I've updated this PR with a few things:

Split into two commits for now - one introducing the rules and one using the rules in the distroless images.  This is because these rules might not live in this repo.
The dpkg parser is now written in python rather than go.  Since we are building and uploading binaries, using go would have required uploading 3 binaries and doing platform detection which turned out to be a little tricky.

Future TODOs:

Support specifying a version in the dpkg rule
Support expanding dependencies for packages (This may be trickier than it seems)
Checksum validation for dpkg_src rule.  We can validate checksums from the Packages.gz file in the dpkg rule.
Not reusing the rule name for the package name, since not all package names are valid rule names (e.g. libstdc++)

cc @dlorenc @mattmoor

I split parse_metadata into its own py_lib and added a few unit tests.  Pending more review feedback, the only thing left to do is it figure out where we can upload dpkg_parser.par, maybe into a distroless bucket for distroless @mattmoor ?


Update gradle.yml

Not to repeat allowing PRs break the build... CI build on PRs

This is a really simple change. I just divided the existing job to two phases. The actual NBM deployment is skipped on PRs. But should be still executed on PUSHes to master as it used to (not tested). PR just builds the SDK. No fancy workflows or matrices where used.

Historically we had a separate build that was basically running via travis, that's why GHA only did the deployment build. I think there may have been slight nuanced differences.
I just wanted to check it but apparently we even removed the travis file already

Historically we had a separate build that was basically running via travis, that's why GHA only did the deployment build. I think there may have been slight nuanced differences.
I just wanted to check it but apparently we even removed the travis file already

Here:
https://github.com/jMonkeyEngine/sdk/blob/56ce13e34e81c7cdd1b6f224d69a744e5377aa30/.travis.yml


[Select] Throwing a value undefined error in latest 5.6.1

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
I think this is related to changes in #27299, I am getting an error that value is undefined:
TypeError: arr[0].props is undefined
Expected behavior 🤔
Should work as it does in 5.6.0
Steps to reproduce 🕹
https://codesandbox.io/s/icy-framework-72ywid?file=/src/Demo.tsx
Context 🔦
No response
Your environment 🌎

`npx @mui/envinfo`
  System:
    OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
  Binaries:
    Node: 14.18.0 - ~/.nvm/versions/node/v14.18.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v14.18.0/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.0/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @mui/base:  5.0.0-alpha.76
    @mui/material: ^5.6.1 => 5.6.1
    @mui/private-theming:  5.6.1
    @mui/styled-engine-sc: ^5.6.1 => 5.0.0-rc.1 (5.6.1)
    @mui/system:  5.6.1
    @mui/types:  7.1.3
    @mui/utils:  5.6.1
    @types/react:  17.0.35
    react: ^18.0.0 => 18.0.0
    react-dom: ^18.0.0 => 18.0.0
    styled-components: 5.3.5 => 5.3.5
    typescript: ^4.6.3 => 4.6.3

Hi.
I suggest you to remove {defaultMessage && <MenuItem value="All">{defaultMessage}</MenuItem>} from Select component. We provide a prop called defaultValue for such use case.
Here is a working solution: https://codesandbox.io/s/suspicious-hooks-v87vwp?file=/src/RhSelect.component.tsx:1378-1447

Hi.
Thanks for the report. It indeed seems like a regression from the change in #27299 .
I started a thread here. I will update you.
In the meantime, you can remove {defaultMessage && <MenuItem value="All">{defaultMessage}</MenuItem>} from Select component and instead use a defaultValue prop.
Here is a working solution: https://codesandbox.io/s/suspicious-hooks-v87vwp?file=/src/RhSelect.component.tsx:1378-1447

Hi.
Thanks for the report. It indeed seems like a regression from the change in #27299 . I started a thread here.
In the meantime, you can remove {defaultMessage && <MenuItem value="All">{defaultMessage}</MenuItem>} from Select component and instead use a defaultValue prop.
Here is a working solution: https://codesandbox.io/s/suspicious-hooks-v87vwp?file=/src/RhSelect.component.tsx:1378-1447

Ill update my side to use the defaultValue, thank you!

Hi @hbjORbj @michaldudak, I will work on this!

Hi @michaldudak, could please review the PR! thanks!


Un able to set DateCellView  on Calender View.

I am getting the issues while customising the date cell view in my app.
Issues  is  given as follows:-
Binary XML file line #2: Binary XML file line #2: Error inflating class sun.bob.mcalendarviewtest.DateCellView
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class sun.bob.mcalendarviewtest.DateCellView
Caused by: java.lang.ClassNotFoundException: Didn't find class "sun.bob.mcalendarviewtest.DateCellView" on path: DexPathList[[zip file "/data/app/com.example.lappy.calender-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.lappy.calender-1/lib/arm64, /system/lib64, /vendor/lib64]]

Its normal your project can't inflate a view that does not exist.
In the documentation he used this.

<sun.bob.mcalendarviewtest.DateCellView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#00ADA3">

</sun.bob.mcalendarviewtest.DateCellView>
But in your project you need to use the name of your package.

<my.package.xxx.DateCellView
. . .
</my.package.xxx.DateCellView>

OK i resolved it succesfully.Thanks@ Magderidon


pull request for e2e test at 12/24/2016 09:45:10

: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.


Remove use sim time

Signed-off-by: wep21<EMAIL_ADDRESS>Types of PR

[ ] New Features
[x] Upgrade of existing features
[ ] Bugfix

Link to the issue
Description
Remove unused env variable for use sim time
How to review this PR.
Others
Related PR https://github.com/tier4/autoware.iv/pull/1260

@yamacir-kit これらをuse_sim_time=trueで使うことってありますか？

@kenji-miyake
Yes.
We will need it for future time-accelerated / decelerated simulations for Autoware.
However, Autoware doesn't currently support time acceleration, and it's undecided whether it will support it in the future, so it's safe to assume that use_sim_time = true will not happen in the near future.

@yamacir-kit Then, what is the top-level launch file? We should add set_parameter in the file.
Please see https://github.com/tier4/autoware_launcher/pull/198 for the reason.

@kenji-miyake
Currently, launch files other than scenario_test_runner.launch.py located under test_runner/scenario_test_runner/launch are in the deprecated state.
In order to wipe out these hard-copied launch files, there is a PR that makes Autoware's launch compatible with PSim v2 (
https://github.com/tier4/autoware_launcher/pull/197).
Therefore, if planning_simulator.launch.xml of autoware_launch supports set_parameter, there is no problem to delete use_sim_time with this PR.

@yamacir-kit So, do you mean that we should add an arg for use_sim_time to planning_simulator.launch.xml?
Is it okay for you to set the default parameter to false?

@kenji-miyake yes.


terminal defaulting to PowerShell

Hi,
I've setup GitBash to be the default terminal, but every time I launched VSCode, it defaults to PowerShell. Then when I closed an re-opens the terminal it goes back to GitBash.
  "terminal.integrated.profiles.windows": {     "Git Bash": {       "path": ["C:\\Program Files\\Git\\bin\\bash.exe"],       "source": "Git Bash",       "icon": "terminal-bash"     },   },   "terminal.integrated.defaultProfile.windows": "Git Bash",

same behavior  https://github.com/microsoft/vscode/issues/132713

/duplicate of #132150
It's a bug which is already fixed in Insiders build and supposed to be in upcoming Recovery  release.

I wonder if it's hardcoded to PowerShell.

Thanks waiting for the release.


Investigate missing phenotypes data shown in "Clinical Signs & Symptoms" detail view

In the first 21.09 release pipeline run, we lost some phenotypes data that is shown in the Clinical Signs & Symptoms
section on the disease/phenotype profile page.
For example, for colorectal neoplasm (EFO_0004142), the production version of the Platform has a data table with 7 rows.

However, the Clinical Signs & Symptoms section on the colorectal neoplasm (EFO_0004142) in main does not have any data.

I also noticed the same issue with melanoma (EFO_0000756), comparing production versus main. And according to analysis from @ireneisdoomed, we lost phenotypes data for 81 diseases when comparing the 21.09 release run with the data from 21.06.
Based on conversations with @d0choa, we wonder if the issue has been caused by missing OMIM references and the work done by EFO on the cancer branch.
@cmalangone can you please investigate once we have officially released 21.09?

There are 81 diseases (1%) that are not present in the disease to phenotype dataset we produce as compared to 21.06.
This dataset is built by establishing a relationship of a cross referenced OMIM ID in the disease index with the phenotypes dataset from HPO.
I can confirm that this is mostly coming from EFO, as for 76 out the 81 diseases these OMIM codes are not present in the ontology in the first place.
I'm investigating the other 5.

@ireneisdoomed, I'm pushing this to 22.02.
Do we need to ask EFO to include the relevant OMIM IDs so we can rescue the data and the links to the HPO dataset?

@andrewhercules Thank you for reminding me.
I've opened a ticket for them to investigate.

Can this ticket be closed @ireneisdoomed, @d0choa ?


Implement MVC5 middleware to support ASP.net classic

We need a middleware for ASP.net classic which basically works similar to the .net core middleware. Maybe both can share a lot of code. So, if anybody likes to contribute this we would be happy.

I have recently published the first version 0.6.2 of the ASP.Net classic OWIN middleware released. Although there is currently no subscription support. I suppose we will bring it in the next minor version 0.7.0.

Issue #348 brings support for subscriptions to ASP.Net classic.


Created edit endpoint-params function

Coverage increased (+0.2%) to 64.762% when pulling 39848df3c8cca7a4e38c878ddbdb9058d240d5a0 on juliyasmith/ch15719/update-search-params-when-connect-network into af8c7433538d5f0bb2a6016669cd9a1574171edb on master.

Yes, it is https://app.clubhouse.io/augur/story/15719/update-search-params-when-connect-network-modal-form-is-submitted

I recommend adding a description saying that its a work in progress and you want to CI to run or checking stuff. That way it wont get reviewed before its ready.


Bluesky Image Size Limitations

Every once in a while an image that is able to be posted on Mastodon fails on Bluesky due to image size limitations.
We should think about how to fix this.

This might be like six lines of code if the async promises garbage plays nice?
Take the existing ImageGenerator class, rename it, and have it return a buffer, not a file.
Build a wrapper ImageGenerator class that calls the original, evaluates the length of the buffer, determines if it's over 1mb, if so calls jimp to scale at 70% and gets you a new buffer, then whatever the final buffer is gets the same return as what's in place now ... ?
If it's marginal now, a 70% rescale should cut the file size in half and always get you over the finish line. Your dimensions both multiply evenly by .7.

@stucka Great idea. Will try that out.

Looks like this is resolved: https://bsky.app/profile/airportstatusbot.bsky.social/post/3kzuqiwxm5626
d5f54a5
Closing.


Ignore proxy traps and @@toPrimitive if their value is null

Fixes #646

Thanks for fixing both issues. Both code change and test are nice. I'll merge the change in.


Feedback from Karel Husa

Feedback provided by @karelhusa

Hi Chris, what is the expected audience of the trainings? I have noticed that the presentations says 'Anyone, who...' but it might help us to list multiple use cases and later check if the training matches their needs.
Up to now, I only went briefly through the content, will go more in detail later. The content is logically structured and rich in terms of information. On the other hand, it's goes steeply into depth and technical details (WSDL, HTTP headers) and beginners and non-IT people may get frustrated before they see the beauty. :-)
Maybe the "API Economy section" could be extended to a full module, showing some real APIs and data as examples, illustrating what is the role of OpenAPI in all that? Encouraging people: Give it a try yourself. It brings confidence to people when they have a hands-on experience, even very simple like invoking a Postman request and getting a response.
Maybe we can also make an evocation like: You need to connect GPT with your favourite APIs. How will you do that? What does GPT need to know about the API and how will you tell it?
Just brainstorming, will try to come up with more structured ideas. :-)

To be split into separate issues once discussed.

Moving over to Discussions... cc @karelhusa


Ignore Invalid Tag frames instead of erroring in ID3v2

I have a few audio files which will work correctly with some other tag readers (id3v2 command line tool and GNOME Tracker3) but don't with lofty. After a bit of debugging with a hex editor I found out that there is additional data after the last frame in the tag where lofty tries to read another frame. When it fails to parse the frame header it panics.
I would like to see this error ignored since the other frames are still valid and useful.

This was recently discussed here: https://github.com/Serial-ATA/lofty-rs/issues/204#issuecomment-1573942708
This is the planned behavior of ParsingMode::Relaxed, it just hasn't really been implemented yet.

This has been fixed for a few months now with the introduction of the new default ParsingMode::BestAttempt.


Omit the alias name of ExistsAs

I think it can be written a little more simply by defining the default table name alias as "x".
Unlike the Form clause, the alias name in the Exists expression is not important.

The alias name is now automatically obtained from the Predicate expression.
It is no longer necessary to specify it as an argument.
sample
var sq = new SelectQuery();
var (from, a) = sq.FromAs<table_a>("a");
sq.SelectAll();

sq.Where(() => sq.ExistsAs<table_b>(x => a.a_id == x.a_id));

In the above code, the alias name is interpreted as "x" and the following SQL statement is generated.
SELECT
     *
FROM
     table_a AS a
WHERE
     EXISTS (
         SELECT
             *
         FROM
             TABLE AS x
         WHERE
             a.a_id = x.a_id
     )


Use new 11.4 dev-pipeline

Update pipelines to v3 which are aware of the capabilities of 11.4: This change should serve as sample how to update other market-artifacts to comply with the ivy-core:11.4

introduces a property to steer the project.build.plugin.version and tester.version
adds snapshot repositories to the POM's in order to consume SNAPSHOT artifacts during dev-pipeline runs
upgrade the versions to the latest available from 10.X using the maven cli command line:
mvn --batch-mode versions:set-property versions:commit -Dproperty=project.build.plugin.version -DnewVersion=10.0.16 -DallowSnapshots=true
mvn --batch-mode versions:set-property versions:commit -Dproperty=tester.version -DnewVersion=10.0.16 -DallowSnapshots=true

for traceability I'd love to see this taken as receipt, also in terms of its history. each change is an own commit. manual and automated changes come separate.
This reverts commit 53242e2e6bc4238931377cf852fdf34e7490cea0.

the build still fails as @ivy-sgi already found out, this is due the invalid URI in use which is reported as #28.
it's good to get feedback on this problem, though we should maintain a mock-server, just like for every other soap/rest connector., so we can test without running into infrastructure problem with the third-party.


Use require dev for local dev to avoid messing up requirements

Better docs for the non global require.

Thanks!


xcode 10 build error

when building in Xcode 10 gm seed I get this error: Missing argument for parameter 'giftCards' in call in shopifyapi.swift

same

me too, any idea how to fix this?

It was fixed in version 1.0.5


fix: Remove any one of the two progress bars #705

Fixes #705
Changes: Disable the SwipeRefreshLayout's ProgressBar once refresh is activated so that only the bigger ProgressBar (center) is visible while refreshing.
Screenshots for the change:

Can you add gif of the attendees page, showing how if looks in case there are no items?

Yes! And fixed indentation @iamareebjamal


[Feature Request]: Add Kotlin language course under DOC folder.

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I propose adding a comprehensive Kotlin language course under the DOC folder. Kotlin is a modern, statically typed programming language that is fully interoperable with Java and has been officially supported for Android development. This course will cover the following topics to help users learn Kotlin effectively:

Introduction to Kotlin
Setting up the development environment
Basic syntax and types
Control flow (if, when, loops)
Functions and lambdas
Collections and arrays
Object-oriented programming (classes, objects, inheritance)
Null safety and exceptions
Coroutines for asynchronous programming
Building Android applications with Kotlin
Best practices and advanced topics

Use Case
This feature would enhance the project by providing a structured guide for learning Kotlin, which is essential for modern Android development and other JVM-based projects. For example, developers transitioning from Java to Kotlin or beginners starting with Android development will benefit from this course.
Benefits
Adding a Kotlin course under the DOC folder will provide a comprehensive and structured guide to help users learn Kotlin effectively. This will enhance the project's documentation, making it a valuable resource for developers transitioning from Java or starting with Android development. Additionally, it will attract more users to the project, boosting its visibility and utility in the Kotlin development community.
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Ajay-Dhangar sir, kindly assign me this issue under GSSOC'24.

@sjain1909, the level I assign you will be based on the quality of your content. To earn a good level, your content should follow all of our guidelines and resources. It should also include all relevant features and provide clear and concise explanations of the topic at hand.


support CONSTRUCT queries

Support for CONSTRUCT queries should be added analog to the SELECT implementation with a separate class and a factory function in index.js.

fixed in https://github.com/zazuko/rdf-sparql-builder/commit/f41d2b43f1b72cf89573b9738039dabaa8e9191d


Automate the Approved/Dismissed state changes when the appropriate submission response is created, removing the extra steps for the manager.

We should take this into the discussion around potentially automating workflow transitions. This is planned to be covered in the work we are doing in the Winter 2019 Sprints. Adding to project board.


fix table headers on table resize #3833

short: when changing the sidebar state in the List view, the table headers were not updated to match the current table size.
Image and description on: #3833

A new inspection was created.

The inspection completed: No new issues

Thank you @pxpm for the fix and for the awesome package. Looks like it works. Will be waiting for this to be released. That's a minor one, so definitely not in a rush.


FIPS Compliance Issue

Due to a company policy requiring NIST policy compliance, FIPS has been turned on for most of our machines. When re-building the indexes in Orchard, we are seeing the following error:

Are there any updates or configuration settings we could change to fix this?
This is for Orchard v1.10.2

I think it means that you would need to change the MD5CryptoServiceProvider for using something else since FIPS doesn't allow anything else than TLS 1.0 encryption. An alternative would be to add this configuration section in your web.config file :
<configuration>
    <runtime>
        <enforceFIPSPolicy enabled="false"/>
    </runtime>
</configuration>

The only solution seems to be to build a custom version of Lucene that would not use this provider.
See the same issue for DNN and how it was fixed: https://dnntracker.atlassian.net/browse/DNN-4125
I assume you could use your own build, or provide a fix to Lucene.NEt if it's still maintained.


deltachat-desktop: 1.40.2 -> 1.40.3

Description of changes
Diff: https://github.com/deltachat/deltachat-desktop/compare/v1.40.2-fixed-tag...v1.40.3
Changelog: https://github.com/deltachat/deltachat-desktop/blob/v1.40.3/CHANGELOG.md

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, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.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.

cc @Simon-Laux

Result of nixpkgs-review pr 254069 run on aarch64-darwin 1

1 package built:

deltachat-desktop


BinaryViews should support multiple entry points

One can add multiple entry points to a BinaryView by just calling BinaryView::AddEntryPointForAnalysis with a new address. However, calling BinaryView::GetAnalysisEntryPoint can only return the most recently added entry point; there does not appear to be a way to get all of the entry points.
There should probably be an API that returns a vector of all entry points, rather than just the last one.

We actually do NOT support multiple entry points -- or in other words, the one added last will supersede the previously added ones. We probably need to either support multiple entry points, or make some changes to remove the illusion that we do.


How to use echarts or plotly in slidev?

Does slidev support echarts or any way to show chart?

@crazyn2
It is possible, but I think you have to force the size (to go against the auto-sizing of vue-echarts).
Here is a mashup from the vue echars examples.

install vue-echarts with npm install echarts vue-echarts (or pnpm ...)

create a setup/main.ts

import { defineAppSetup } from '@slidev/types'

/* echarts */
import { use } from "echarts/core";
import { CanvasRenderer } from "echarts/renderers";
import { PieChart } from "echarts/charts";
import {
  TitleComponent,
  TooltipComponent,
  LegendComponent
} from "echarts/components";
import VChart, { THEME_KEY } from "vue-echarts";
import { ref, defineComponent } from "vue";

use([
  CanvasRenderer,
  PieChart,
  TitleComponent,
  TooltipComponent,
  LegendComponent
]);

export default defineAppSetup(({ app, router }) => {
  window.console.log(app)
  app.component('v-chart', VChart)
})

use it in your slides

# Hello

<v-chart style="width: 800px !important; height: 400px !important" :option='{
      title: {
        text: "Traffic Sources",
        left: "center"
      },
      tooltip: {
        trigger: "item",
        formatter: "{a}
{b} : {c} ({d}%)"
      },
      legend: {
        orient: "vertical",
        left: "left",
        data: ["Direct", "Email", "Ad Networks", "Video Ads", "Search Engines"]
      },
      series: [
        {
          name: "Traffic Sources",
          type: "pie",
          radius: "55%",
          center: ["50%", "60%"],
          data: [
            { value: 335, name: "Direct" },
            { value: 310, name: "Email" },
            { value: 234, name: "Ad Networks" },
            { value: 135, name: "Video Ads" },
            { value: 1548, name: "Search Engines" }
          ],
          emphasis: {
            itemStyle: {
              shadowBlur: 10,
              shadowOffsetX: 0,
              shadowColor: "rgba(0, 0, 0, 0.5)"
            }
          }
        }
      ]
    }' />

(tested just now)

For the record, for plotly:

install vue3-plotly with npm install vue3-plotly plotly.js uuid (or pnpm ...)

create a setup/main.ts

import { defineAppSetup } from '@slidev/types'

/* plotly */
import { VuePlotly } from 'vue3-plotly'

export default defineAppSetup(({ app, router }) => {
  app.component('v-plotly', VuePlotly  )
})

use it in your slides

# hello

<v-plotly :data="[{ x: [1, 3], y: [2, 4] }]" :layout="{}" :options="{}"/>

@crazyn2
It is possible, but I think you have to force the size (to go against the auto-sizing of vue-echarts). Here is a mashup from the vue echars examples.
1. install vue-echarts with `npm install echarts vue-echarts` (or pnpm ...)

2. create a `setup/main.ts`

import { defineAppSetup } from '@slidev/types'

/* echarts */
import { use } from "echarts/core";
import { CanvasRenderer } from "echarts/renderers";
import { PieChart } from "echarts/charts";
import {
  TitleComponent,
  TooltipComponent,
  LegendComponent
} from "echarts/components";
import VChart, { THEME_KEY } from "vue-echarts";
import { ref, defineComponent } from "vue";

use([
  CanvasRenderer,
  PieChart,
  TitleComponent,
  TooltipComponent,
  LegendComponent
]);

export default defineAppSetup(({ app, router }) => {
  window.console.log(app)
  app.component('v-chart', VChart)
})

3. use it in your slides

# Hello

<v-chart style="width: 800px !important; height: 400px !important" :option='{
      title: {
        text: "Traffic Sources",
        left: "center"
      },
      tooltip: {
        trigger: "item",
        formatter: "{a}
{b} : {c} ({d}%)"
      },
      legend: {
        orient: "vertical",
        left: "left",
        data: ["Direct", "Email", "Ad Networks", "Video Ads", "Search Engines"]
      },
      series: [
        {
          name: "Traffic Sources",
          type: "pie",
          radius: "55%",
          center: ["50%", "60%"],
          data: [
            { value: 335, name: "Direct" },
            { value: 310, name: "Email" },
            { value: 234, name: "Ad Networks" },
            { value: 135, name: "Video Ads" },
            { value: 1548, name: "Search Engines" }
          ],
          emphasis: {
            itemStyle: {
              shadowBlur: 10,
              shadowOffsetX: 0,
              shadowColor: "rgba(0, 0, 0, 0.5)"
            }
          }
        }
      ]
    }' />

(tested just now)

Couldn't it upgrades to vue-echarts-v3?

I haven't tried, I just took the first that came (I forgot about versions etc...) but maybe there is also https://www.npmjs.com/package/vue3-echarts , I don't know and cannot check in the short term.

in any case, your advice is helpful to me. Thank you.


Typia Generates Unused Functions in Validation Code Paths

Bug Report
Typia seems to be generating unused functions in validation code paths
Repro
import typia from 'typia'

interface Point3D {
  x: number
  y: number
  z: number
}

interface Simple {
  scale: Point3D,
  position: Point3D,
  rotate: Point3D,
  pivot: Point3D
}

const X = typia.is<Simple>({})

Emit
Note the function $io1 is emitted but never used.
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const typia_1 = __importDefault(require("typia"));
const X = (input => {
    const $io0 = input => "object" === typeof input.scale && null !== input.scale && ("number" === typeof input.scale.x && "number" === typeof input.scale.y && "number" === typeof input.scale.z) && ("object" === typeof input.position && null !== input.position && ("number" === typeof input.position.x && "number" === typeof input.position.y && "number" === typeof input.position.z)) && ("object" === typeof input.rotate && null !== input.rotate && ("number" === typeof input.rotate.x && "number" === typeof input.rotate.y && "number" === typeof input.rotate.z)) && ("object" === typeof input.pivot && null !== input.pivot && ("number" === typeof input.pivot.x && "number" === typeof input.pivot.y && "number" === typeof input.pivot.z));
    const $io1 = input => "number" === typeof input.x && "number" === typeof input.y && "number" === typeof input.z;
     // ^ $io1 function is defined in the validation HOT path, but never used.
    return "object" === typeof input && null !== input && $io0(input);
})({});

Performance
As per https://github.com/samchon/typia/issues/513#issuecomment-1437097704, I've followed up and run a few more performance tests on Typia comparing NaN and non-NaN assertions for JIT (which is how I've noticed this issue). The following is the results for the non-NaN checking case for TypeBox.

In theory, AOT should perform much faster than JIT here (and in pretty much all cases). In local testing I've run, I usually see around 10-20% performance degrade for using JIT. So in theory, Typia should be seeing upwards 20,000x (estimate)
Micro Benchmark
You can run the following script to test performance degradation for function definitions in hot code paths.
{ // with unused function
    const S = Date.now()
    for(let i = 0; i < 1_000_000_000; i++) {
        const f = () => {} // unused
        const x = typeof 10 === 'number'
    }
    console.log(Date.now() - S) // 1166ms
}
{ // without unused function
    const S = Date.now()
    for(let i = 0; i < 1_000_000_000; i++) {
        const x = typeof 10 === 'number'
    }
    console.log(Date.now() - S) // 360ms
}

Notes
Comparing the validation routines for JIT / AOT, I don't see a lot of difference in terms of assertion logic. I think if you omit the unused $io1 function you're likely going to see an immediate performance boost. Also, you may get a bit more of a performance by inlining the $io0 function as a single conditional expression (this to avoid the function call / new stack frame).
In either case, it's probably going to be good to omit the unused function (if only to reduce JS output)
Anyway, Hope this helps
S
PS: Feel free to keep the AllowNaN = true in the TypeBox benchmarks!

You're right. I can't publish https://github.com/samchon/typia/issues/509 because of unused local variables and parameters.
I have to fix it.


Does not zoom in from the center

Describe the bug

I zoom in on an image with a resolution of 11000px. When I use the zoom in and zoom out functions, I cannot zoom in from the center. When I try a 1600px image, it zooms from the center.
Your environment

Version of panzoom: 4.1.0
Browser and browser version: Google Chrome | 81.0.4044.122 (Official Compilation) (64-bit)

Expected behavior

Center-focused zoom in and zoom out should be
Actual behavior

When I do zoom in, the right works down.
Steps to reproduce

Thanks for opening an issue. There's a difference between zooming from the center of the viewport and the center of the image. The transform-origin described here is what controls centering for HTML, and this is based on the panzoom element (or image). To center on the viewport when the image is not centered, you'll need to calculate the center of the viewport, and then use the zoomToPoint method.
In other words, I think the default should stay the way it is. And the tools are there to center the way you're describing, it just doesn't do it automatically.
If you make an example on https://jsbin.com, we can iron it out further.


Storybook hosted on Chromatic

Currently it is seems to be impossible to connect to a storybook that is hosted on chromatic.
The error thrown is "Zeplin CLI requires Storybook version at least 3.4" (we are using 5.3.9).
I strongly suspect this is due to Chromatic having a login mechanism (so Storybook is NOT publicly accessible) - hence, the plugin cannot find the global variable "STORYBOOK_CLIENT_API".
This error seems to origin in https://github.com/zeplin/cli-connect-storybook-plugin/blob/b7da10892cbffb1bbb68f9b2cb9f3e9a89270735/src/storybook/extract.js#L47

Seems I totally overlooked that you can use the local Storybook to collect the information but still link to the one hosted elsewhere...

Seems I totally overlooked that you can use the local Storybook to collect the information but still link to the one hosted elsewhere...

How did you end up solving this issue?
I am looking to connect Zeplin to Chromatic as well, but running
npx zeplin connect
causes the same error after switching my components.json to point to the Chromatic Storybook instance.

Seems I totally overlooked that you can use the local Storybook to collect the information but still link to the one hosted elsewhere...

How did you end up solving this issue?
I am looking to connect Zeplin to Chromatic as well, but running
npx zeplin connect
causes the same error after switching my components.json to point to the Chromatic Storybook instance.

In your components.json:
{
 ...
  plugins: [
    {
        "url": "http://localhost:6007", <- local storybook instance, served under :6007 in my case
        "startScript": "storybook", <- npm script name that starts your local storybook
        "targetUrl": "https://master--your-chromatic-ref.chromatic.com", <- Chromatic link, I used a fixed ref to master
        "format": "new" <- If you use Storybook >=v5
    },
    ...
  ],
  ...
}

This config will start your storybook locally, use it to generate the Zeplin connection but replaces the generated links inside Zeplin with the ones to your chromatic instance.

"url": "http://localhost:6007", <- local storybook instance, served under :6007 in my case
"startScript": "storybook", <- npm script name that starts your local storybook
"targetUrl": "https://master--your-chromatic-ref.chromatic.com", <- Chromatic link, I used a fixed ref to master
"format": "new" <- If you use Storybook >=v5

This is fantastic. Thank you so much!


The latest rhel8/toolbox is failing the HasModifiedFiles check provided by Preflight 1.6.1

Bug Description
The latest rhel8/toolbox is failing the HasModifiedFiles check provided by Preflight 1.6.1.
Version and Command Invocation
1.6.1
Steps to Reproduce:
$ podman run -e PFLT_LOGLEVEL=trace quay.io/opdev/preflight:1.6.1 check container registry.access.redhat.com/rhel8/toolbox:8.7-7.1682303928

-- snip --

time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-analyze layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-delta layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-inhibit layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-resolve layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-run layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_systemd-tmpfiles layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=debug msg="found disallowed modification in layer" file=usr/share/zsh/site-functions/_timedatectl layer="sha256:15bbb94c8b6c1a297be3b89eec917998addb5bb204d622527e17bc081cb8b1d6"
time="2023-04-27T14:40:08Z" level=info msg="check completed" check=HasModifiedFiles result=FAILED

-- snip --
{
    "name": "HasModifiedFiles",
    "elapsed_time": 8807,
    "description": "Checks that no files installed via RPM in the base Red Hat layer have been modified",
    "help": "Check HasModifiedFiles encountered an error. Please review the preflight.log file for more information.",
    "suggestion": "Do not modify any files installed by RPM in the base Red Hat layer",
    "knowledgebase_url": "https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction",
    "check_url": "https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_openshift_software_certification_policy_guide/assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction"
}

Expected Result
The check should pass, as the toolbox serves as the base image for many of our partners.
Actual Result
The failed check prevents the RHEL8 toolbox from being used as a base image in software products that require RH certification.
Additional info
cc: @bcrochet could you please have a look?

@tkrishtop I think we have a potential fix for this already, I'm just waiting on go-rpmdb to accept this patch (knqyf263/go-rpmdb#38) so that we can add a check for install time of an RPM in question.

hi @bcrochet I see that the PR in go-rpmdb is merged, could you please share with us the next steps to have this issue closed?


BlendState's seem to be cross-communicating their data.

I shuffled around my BlendState setup code, and started getting a terrible problem. Here is the code:
https://gist.github.com/Gavin-Williams/0b60915fbf2781285443#file-blendstatesetup
This is inside a KeyedCollection. But when i set the DebugName for each BlendState, it changes that property for the other BlendStates already created. So BlendState is acting like it has static properties.

http://stackoverflow.com/questions/12856304/sharpdx-enabling-blendstate/12857939#12857939
I think that's the problem.


Efficiency estimates in AMIRIS converter seem erroneous

At least for uranium, efficiency estimate seems to be far off for some years. Thus, all values should be critically checked and a fix added for the erroneous ones.

"Debugging" this revealed 2 problems:

When a power plant cluster does not have any capacity (yet or anymore), efficiency regression works and attributes the (single) value of that power plant cluster.
Efficiency regression functions may be quite steep and have a negative intercept with the y-axis. Thus, to circumvent this data error, a minimum threshold of 0.1 can be introduced.


Ensure serialization works on maestro data types

Kryo serialization currently fails on our Validators.
Less importantly, Java serialization currently fails due to the serializer value in LoadEx.execution not being serializable.
See comments on #142 for additional serialization issues and background.
At a minimum, we should ensure that kryo serialization works for all maestro data types. Java serialization probably will never work with all our data types, but we might optionally want to ensure that Java serialization doesn't fail unless necessary.

this has been fixed


When will the code be updated?

Hello, thank you for your excellent work!
I'm wondering when the source code will be uploaded.

Looking forward to the code release!


Updating B-Tree to Swift 3

I will let you know when I'm ready for review.

Ready for review.

Thanks @ViktorSimko 👍


Upgrade spanish translation [es_ES]

Check if this PR fulfills these requirements:

[x] My changes respect the Kodi add-on development rules
[x] I have read the CONTRIBUTING document.
[x] I made sure there wasn't another one Pull Requests opened for the same update/change
[x] I have successfully tested my changes locally

Types of changes

[ ] New feature (non-breaking change which adds functionality)
[ ] Feature change (non-breaking change which change behaviour of an existing functionality)
[x] Improvement (non-breaking change which improve functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Translation

Description

In case of Feature change / Breaking change:
Describe the current behavior

Describe the new behavior

Screenshots (if appropriate):

@boblo1 I always try to make the interface look as clean and less confusing as possible and sometimes you have to cut as much as possible of the translation even knowing that several words are missing. A literal translation of everything is absurd because there are English words that its Spanish translation is much longer.
I am Spanish from Spain, and you?

@CastagnaIT Something I don't like in settings is the word 'purge' it wouldn't be better to use 'clean'. The usual thing is to clean the cache.

@CastagnaIT Something I don't like in settings is the word 'purge' it wouldn't be better to use 'clean'. The usual thing is to clean the cache.

I think so too
but that term was already there from the previous developers
i can change it for the future releases

@CastagnaIT Something I don't like in settings is the word 'purge' it wouldn't be better to use 'clean'. The usual thing is to clean the cache.

I think so too
but that term was already there from the previous developers
i can change it for the future releases

It would seem correct to me, thank you

I have changed/add other strings: 30006, 30103, 30240
Sorry for the delay but it was necessary, if you can update


Performance improvement suggestions

Notes from our team call

investigate running the sandbox container in the same pod as p-s worker
can we actually create a new container from within a running pod?
maybe prealloc sandbox pods and figure out if we can attach vols to the pod live in OKD 4

Closing as this is not relevant eny more.


Updates to accessions.tsv.gz (68447 new, 643 removed, 247 updated) seqs downloaded 2022-03-22

Thanks!

Thank you Angie! Hope you're still doing well - and we still appreciate it!


BUG: Tooltip is not updating when useState prop updates

Example Code Sandbox:
https://codesandbox.io/s/example-of-background-colour-not-updating-k0mynp
Expected Behaviour:
When a useState prop changes the tooltip rerenders with the new props. In the example above the tooltip should immediately update to green. At minimum the rebuild should update the props.
Hotfix:
I have tried hiding and showing and using refs and this has not fixed the issue. I could not find any temporary solutions.

Hi @aronhelser @alexgurr @pdeszynski, can you guys check that issue, please?

Closing all v4 issues due to V5 released.
If necessary, please open a new issue using V5, thanks!


CIP-0028 | Adjust preamble and structure w.r.t CIP-0001

Fixes #675.
@kevinhammond as with https://github.com/cardano-foundation/CIPs/pull/650 I've resolved the discrepancy in licensing agreements in favour of Apache (CC was indicated in the YAML header).
Editors: we need to keep an eye on how these Protocol Parameter CIPs are stacking on top of each other.  The last solid resolution I remember (before @Ryun1 @Crypto2099 arrived) was that protocol parameter CIPs would describe differences with the previous ledger era, rather than a complete re-enumeration of parameters... but a lot of this material feels already stated in CIP-0009.
So although solving any issues of reference & redundancy is beyond the scope of the #389 "Remediation" (and therefore doesn't have to be attended to in this PR) I still think we should keep an eye on this issue (with help from @kevinhammond and @WhatisRT I hope) because otherwise this mangled history of protocol parameters is going to end up fossilised.
In this light I've removed a forward reference to CIP-0055 which was shoe-horned in here with #370 apparently after debate at at CIP meeting, since this would therefore be in direct conflict with the decision that parameter updates should be cumulative (and therefore containing only backward references):
### Change Log

See [CIP-0055: Protocol Parameters (Babbage Era)](../CIP-0055).

(updated proposal)

Merging this one with respect to the CIP-0001 "remediation" without an answer to my last question because, although consistency (redundancy vs. reference) between parameter update CIPs is important, that question isn't part of this remediation effort.


Accessibility compliance

Hello, I use your calendar since it was a pull request on Semantic-UI repository.
I have a request for you: can you make your addon compliant with accessibility standards (WCAG 2.0)?
AChecker returns the following errors:
Check 244: Data table with both row and column headers does not use scope to identify cells.
Repair: Add scope attributes to header cells so they identify the cells that relate to the header.
Line 553, Column 237:

<th colspan="7 ...
Line 608, Column 153:

<th colspan="7 ...
Check 245: Data table with more than one row/column of headers does not use id and headers attributes to identify cells.
Repair: Add id and headers attributes to table cells so they identify the cells that relate to the headers.
Line 553, Column 237:

<th colspan="7 ...
Line 608, Column 153:

<th colspan="7 ...
Thank you.

Hello, can you fix this?

Pull requests are surely encouraged if it's only a few changes that need to be made!

I do not know what kind of changes to add to the source code to make it compliant.


ENH: Add weights and background image to story points

Weights requested by @kecnry .

how many points it will actually take

I think the weight for "999" would be like 0.8. Feel free to open follow-up issue. Thanks for the review!


chore: release  chart 0.4.0

:package: Staging a new release
0.4.0 (2024-11-13)
⚠ BREAKING CHANGES

chart: move policy catalogue values from root into thymus container (#26)

Bug Fixes

chart: move policy catalogue values from root into thymus container (#26) (43ed16f)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/carbynestack/thymus/releases/tag/chart-v0.4.0 :sunflower:


Why  the  criterion_GAN(line 50)  in pix2pix.py  using MSELoss but not BCELoss?

Loss functions
criterion_GAN = torch.nn.MSELoss()
criterion_pixelwise = torch.nn.L1Loss()

Well, I think you can use BCELoss() too, but you may need to use one hot encoding for that.

I also felt comfused today. So I've check the origin code of pix2pix. I found that both loss functional are avalible in pix2pix origin code. And my partner infom me that's use the advise of WGAN， which used MSE  loss replace softmax function. Hope it can help you.

Loss functions
criterion_GAN = torch.nn.MSELoss() criterion_pixelwise = torch.nn.L1Loss()

您好，您的邮件小皮已经收到啦！！！

您好，您的来信我已收到，感谢来信，祝天天好心情。


Parsing of inline directive collides with usage of colon in natural language. (E.g. n:th)

Subject of the issue
Parsing of inline directive collides with usage of colon in natural language. (E.g. n:th)
Your environment
codesandbox
Steps to reproduce
https://codesandbox.io/s/remark-rehype-debug-forked-oetjj?file=/src/index.js
Expected behavior
Expecting directive to not be parsed if the colon (:) is preceded by a letter or number.
Actual behavior
Input:
The n:th element.

Output:

The n

 element.

Why shouldn’t it? If you don’t want colons turning into a directive, add an escape before: n\:th.
the current behavior allows footnotes and the like: some text:fn[1].
Also: why write it like n:th? Why not nth, n’th, or n-th? https://en.wiktionary.org/wiki/nth

Good point. Thanks for elaborating. The current behavior makes sense.


DangerousAllowInsecureHTTPLoads = true does not work if android:targetSdkVersion="28"

Demo.Droid project
ModernHttpClient: 3.3.4
VS 2019
steps to reproduce:

set android:targetSdkVersion="28" in android manifest
configure MainViewModel:

public class MainViewModel
{
    public async Task Get()
    {
        var handler = new NativeMessageHandler(false, new TLSConfig
        {
            DangerousAllowInsecureHTTPLoads = true
        });
        var client = new HttpClient(handler);
        var url = new Uri("http://gorest.co.in/public-api/users?_format=json&access-token=ZpvESa-uwxDolSDuCdONfCBnq1NU1nCKkP5z");
        var response = await client.GetAsync(url);
        Debug.WriteLine(response.Content);
    }
}

run

Expected result: request successful
Actual result: got "System.Net.Http.HttpRequestException: 'CLEARTEXT communication to gorest.co.in not permitted by network security policy'"

I need to run some tests.

There's nothing i can do about this programmatically. Check this link and use the solution that better suit your needs<EMAIL_ADDRESS>

Will provide a fix for this in next release but providing some configuration in the AndroidManifest.xml will be required.

thanks!


Popup window not always drawn correctly, and redrawing issues

Steps to reproduce
There are quite a few drawing issues when the popup window doesn't fit on the screen.
Drawing issues after opening popup window

Run vim --clean -S test.vim, with

call range(100)
        \ ->map({_,i -> string(i)})
        \ ->popup_create({
        \   'drag': 1,
        \   'wrap': 0,
        \   'border': [],
        \   'scrollbar': 1,
        \   'minwidth': 1000,
        \   'filter': {w, k -> k ==# 'q' ? len([popup_close(w)]) : 0},
        \ })

Result: The right side of the popup window is not drawn correctly. It looks like Vim is trying to draw the scrollbar (my guess). But since no maxheight has been specified, I thought there shouldn't even be one. I would have expected the popup window to be extended beyond the screen in vertical direction, similar to gui windows when they are dragged to the bottom. At least that what it looks like in the screenshot below. The bottom and right side are cut off.

Screenshot

Drawing issues after dragging the popup window around

Now start moving the window around with the mouse.
Result: The right side of the popup window is not drawn correctly. Notice also that if you move the popup window in vertical direction, the lower border of the window suddenly appears on the screen. I don't know which behavior was initially intended, either cutting off the bottom of the popup window or resizing it so that it fits onto the screen. Either way it should be consistent behavior. It also looks like only the height is readjusted. The right border is never displayed.

Screenshot

Drawing issues when closing the popup window from the command-line

While the popup window is displayed, go into command-line mode with :, and then press <C-c> twice.
Result: The command-line is not redrawn after the popup window is closed.

Screenshot

Drawing issues in vertical direction

Now make the popup width smaller so that it fits into the screen.

call range(30)
        \ ->map({_,i -> string(i)})
        \ ->popup_create({
        \   'drag': 1,
        \   'wrap': 0,
        \   'border': [],
        \   'scrollbar': 1,
        \   'minwidth': 10,
        \   'filter': {w, k -> k ==# 'q' ? len([popup_close(w)]) : 0},
        \ })

Result: The scrollbar appears, even though no maxheight has been set. But the bottom border isn't displayed. If you scroll with the mouse wheel to the bottom of the text, the last line won't be displayed.

Screenshot

Expected behaviour
No drawing artifacts.
And I don't understand the current behavior. It looks like Vim is trying to resize the popup to the correct width and height so that it always stays fully visible on the screen. But it doesn't do it right. Maybe it is easier to not do any resizing and leave it to the user?
Related  #6676.
Version of Vim
8.2.4663
Environment
Linux
Logs and stack traces
No response

This turns out to be very tricky, many options matter.
I managed to avoid the drawing problems, but the resulting behavior might not be exactly what you expect.
Try it out after the patch and we'll see if this is acceptable.

sorry jump in, but BTW:

was there a way to make selected/matched item always on top of the list/items?
or was there a way to scroll the scrollbar when tui term?
sorry but i did not find a good way so far...

@Shane-XB-Qian are you talking about ins-completion-menu?

are you talking about ins-completion-menu?

yes.
// similar topic about scrollbar.. :-)
was there a way to scroll the pum scrollbar without mouse?
or how to make the selected/matched item always on or near the top?
--
shane.xb.qian

You can scroll with <Up>, <Down>, <PageUp> and <PageDown>. This will move the popup's cursorline without inserting the item. See :h popupmenu-keys.

um... that's different thing... after those 4 keys actually selected item changed.. and besides, it did not make selected item on/near the top.


Fix race crash when refreshing page, visiting link

Description
Building the network flows for the External Entities node, after the user refreshes the page or visits a link with that node selected, results in a race condition where we tried to build the flows for the sidebar before the node with the data was in the topology graph.
This solves it by short-circuiting the flows-building until the node is available.
Checklist

[ ] Investigated and inspected CI test results

Testing Performed
Navigating manually

Same state, from that URL

@vjwilson can you double-check against my PR https://github.com/stackrox/stackrox/pull/4617 to see if that fixes the issue you're trying to fix? I thought I was assigned that bug fix unless this is different

Closing, because a fix for a different bug report also fixes this bug.
@sachaudh 's PR https://github.com/stackrox/stackrox/pull/4617/files#diff-9756ee85cbf46d97418de998612f74694117ed9419f853f0d737fcb5e4d0c183


bump ghcjs, ghcjs-boot, ghcjs-shims

This makes it possible to compile the new version of ghcjs-dom, which appears to work again in my tests.

@luigy This should work with latest ghcjs-dom

Pushed for testing in 3037d0d8ac48a92a07dd3480a0145a7159cb9250. I'll merge to master once the build has succeeded.

Merged in 8d8f8f3c09ef74a0ffd44d05da81cb627040e609.


bindgen: Add mode to skip API that relies on things defined outside --filter

Suggestion
When creating a single bindings file within another crate, I'd like to use windows-bindgen with the default options, i.e.:

Without cfg, because the fact that this file is part of the crate shouldn't leak to users of the crate;
Without package, because it's not a new package but a single file containing bindings to a subset of the Windows API specified via --filter;
Without flatten, so that namespaces are preserved.

Would it be possible to create a mode like that? Right now the default with this example bindings.txt:
--out src/platform/windows_wgi/Windows.rs
--filter
    Windows.Gaming.Input

Generates non-compiling code because some functions depend on types outside of the Windows.Gaming.Input namespace.
A workaround would be to include namespaces for the missing types, but they have dependencies as well and this quickly spirals out of control (as in: I end up listing most of the Windows API under --filter) to the point where using the windows crate directly makes more sense, both from a size as well as maintenance standpoint.

Perhaps this should go into a separate issue, but when running with flatten (which seems to automatically pull in all dependencies), a bunch of definitions are duplicated, causing a failed compile as well:
--out src/platform/windows_wgi/Windows.rs
--filter
    Windows.Gaming.Input
--config flatten

If you skip over the APIs that don't satisfy --filter, the result would presumably be incomplete. Is that really desirable?

@riverar if that portion of the API is needed, I'd add it to --filter. In the described case, concerning private bindings that are generated specifically to implement a crate, the code wouldn't compile if necessary things are missing.
As a reminder we could also generate commented-out function signatures to indidcate what "could have been" there if a list of missing types is also provided? gir does a very similar thing and it's been super useful to me when searching for "apparently missing" function signatures that I expected on a type.

In any case this idea might be problematic when missing types are used in structs or type-definitions for vtables?

In any case this idea might be problematic when missing types are used in structs or type-definitions for vtables?

Yes, this is a very difficult problem. I'd like filtering to be more intelligent though and it's something that I've been wanting to work on, so I'll noodle on this some more.

Thanks @kennykerr! I wasn't exactly sure if the vtable definitions relied on (mostly) untyped *mut c_void in function arguments or not; that's likely the biggest source of these types.
I thought since the cfg generator should already understand exactly the hierarchy and dependendencies, code for this should already be in place?
(i.e. cfg disables the high-level function taking/returning the missing type, but doesn't affect the vtable layout?)

We already include bindings for Windows.Gaming.Input, so I'm a bit confused.
Can you provide a use case here? Am struggling to think of a reason where you'd want to emit types/APIs from Windows.Gaming.Input but only those that are self-contained to that namespace.
If the goal is to generate the smallest set of bindings possible, for a specific set of APIs/types, maybe it makes more sense to accept an explicit list of APIs/types.

@riverar you self-answered it:

If the goal is to generate the smallest set of bindings possible, for a specific set of APIs/types, maybe it makes more sense to accept an explicit list of APIs/types.

Specifically this is what I want, with bindgen hiding/disabling (recursively) any types, and functions that use types, that are not enabled.
The use-case is no longer having to upgrade versions throughout a growing number of crates whenever yet another breaking windows release is published. And to lighten dependencies in crates that only access a few types internally, and don't expose anything publicly.

I think I made some progress unraveling this one today. I hope to have something to share next week.

Yep, that's why this is not a simple fix. Both models are important but not very composable.

Thanks @kennykerr, this works awesome! Looking forward to seeing it in a future release (and hope someone can help me resolve my remaining win32metadata PRs before such a release is cut)!
I'd like to remind you of this suggestion above:

As a reminder we could also generate commented-out function signatures to indicate what "could have been" there if a list of missing types is also provided? gir does a very similar thing and it's been super useful to me when searching for "apparently missing" function signatures that I expected on a type.

Right now an external source like ILSpy or the windows-rs codebase / docs are needed to figure out what additional types (and from which namespaces) to enable to get access to a specific function. It'd be awesome if those could be generated in a "commented-out" style to address the above.


fix(rc-slider): only import range to avoid bundling rc-tooltip

Since we're doing a named import, it's gonna bundle up everything in their index.js file in pcln-design-system.
For example, one of the things that gets bundled up is rc-tooltip which is only used in createSliderWithTooltip. But we only need Range looks like. we can reduce the size of rc-slider we're shipping out by just changing this import

I agree with @hakimelek even in v2 the import should stay like this to reduce the size for the slider package.

:shipit:


Please make a new release

Latest released version (v2.19.3) incorrectly returns ABI  85 for Electron 12.0.0-beta.1 which leads to issues when using prebuild (https://github.com/prebuild/prebuild/issues/273).

Yup. In fact a huge issue.

12.0.0 is out...

If you use yarn, you can use a resolution in your package.json as a workaround that points to the latest commit:
"resolutions": {
  "node-abi": "https://github.com/lgeiger/node-abi.git#d7a3f00c93cb16b5f4fbb3ae8c106e798cc52042"
}


Restore window sizes before shutdown

A window snapped into a zone, then shutdown, saves in its zone.size and opens windowed (unsnapped). Restore window size breaks in next session.

@gczark
can you please elaborate in mode details?

This is the original size

When is snapped it on the top right zone, and shutdown the PC. In the next session. File explorer opens the same size as when snapped.

Which, it should be like the first image.
PoweToys some times, have delays on startup, so moving file explorer to the same zone will not happen.

@gczark
Explorer remembers its last position, this happens even if FZ is not running.
Are you asking that FancyZones should restore the original Explorer position because there was a shutdown in between?

Yup explorer remember its last position and size
As a result, when I fire up explorer while FZ still not running, I'll have the smaller explorer, instead of the original size.
The simplest solution might be unsnapping all the windows before finally shutting down.

@gczark
the only way to support such a feature, would be to have an option in FZ to "restore all windows position when PowerToys exists".
The fact that PowerToys is exiting because of a shutdown/restart or any other reason should be irrelevant.
I'll edit the title to reflect this request and add it to the FZ tracker for suggestions.

This idea is now tracked in https://github.com/microsoft/PowerToys/issues/6611 closing the issue to simplify managing all the suggestions.


[feature request] reducing duplicate image files created under data directory in dfclient

Why you need it?
A high-performance computing environment uses Singularity container technology to execute workloads. Singularity is a daemon-less container solution.
Dragonfly p2p solution works well with singularity, except for the fact that the cache gets duplicated on the same machine when the image gets pulled. That means, /root/.small-dragonfly/data will have multiple copies of the same image for each pull. This wastes space as well as download time.
Command to pull the image:
singularity pull docker://harbor.domain.com/<repo>/<image>:<tag>
or
singularity pull oras://harbor.domain.com/<repo>/<image>:<tag>
How it could be?
The downloaded file should be shared between different users on the same host, provided that they were successfully authenticated against the registry. This will save space as well as download time.
Other related information
@jim3ma mentioned to me that he is already working on this and it is part of the v2.0.0 roadmap. I have added it here for reference.

Confirmed

Thank you, @jim3ma. I see this feature v2 and it seems to be working well :).