TextFormField does not follow  Min / Max Line rules as indicated.

Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (5 weeks ago) • 2021-03-04 09:47:48 -0800
In reference to #27205
The behaviour for minLines  and maxLines being set  along with expands = false to avoid the textField from growing outside that does not work.
How do you achieve the behaviour for example to have min lines as 1 and max lines as 5
the textfield start with a line size of 1 and grows until 5. After line 5 instead of growing vertically via scroll it should stop user input.

I have a hack that creates a input formatter with regex replacement... there has to be a better way tho
`
class MaxLineInputFormatter extends TextInputFormatter {
MaxLineInputFormatter({int maxLines}) {
_exp = new RegExp("^(?:[^\n-\r\x85](?:\r\n?|[\n-\f\x85])){0,$maxLines}[^\n-\r\x85]$");
}
RegExp _exp;
@override
TextEditingValue formatEditUpdate(
TextEditingValue oldValue,
TextEditingValue newValue,
) {
print('newValue: $newValue');
print('oldValue: $newValue');
if (_exp.hasMatch(newValue.text)) {
  return newValue;
}

return oldValue;

}
}
`

Hi @zaidkazi
Thanks for filing the issue, it does keep scrolling and doesn't stop with following code, while your workaround seems to be fix the issue
              TextField(
                minLines: 1,
                maxLines: 5,
                expands: false,
              ),

Here I created a complete runnable code sample to demonstrate the issue with and without MaxLineInputFormatter

code sample
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: Container(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text("Without MaxLineInputFormatter"),
              TextField(
                minLines: 1,
                maxLines: 5,
                expands: false,
              ),
              Text("With MaxLineInputFormatter"),
              TextField(
                minLines: 1,
                maxLines: 5,
                expands: false,
                inputFormatters: [
                  MaxLineInputFormatter(maxLines: 5),
                ],
              ),
            ],
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}

class MaxLineInputFormatter extends TextInputFormatter {
  MaxLineInputFormatter({required int maxLines}) {
    _exp = new RegExp(
        "^(?:[^\n-\r\x85]*(?:\r\n?|[\n-\f\x85])){0,$maxLines}[^\n-\r\x85]*\$");
  }

  late RegExp _exp;

  @override
  TextEditingValue formatEditUpdate(
    TextEditingValue oldValue,
    TextEditingValue newValue,
  ) {
    print('newValue: $newValue');
    print('oldValue: $newValue');

    if (_exp.hasMatch(newValue.text)) {
      return newValue;
    }

    return oldValue;
  }
}

Preview
https://user-images.githubusercontent.com/48603081/114365880-93587100-9b83-11eb-91f8-7281b9ad90c0.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale
    en-GB)
    • Flutter version 2.0.4 at /Users/tahatesser/Code/flutter_stable
    • Framework revision b1395592de (10 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.114

• No issues found!

[✓] Flutter (Channel master, 2.1.0-13.0.pre.574, on macOS 11.2.3 20D91
    darwin-x64, locale en-GB)
    • Flutter version 2.1.0-13.0.pre.574 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 02efffc134 (2 days ago), 2021-04-10 03:49:01 -0400
    • Engine revision 8863afff16
    • Dart version 2.13.0 (build 2.13.0-222.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.55.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 89.0.4389.114

• No issues found!

The intention of minLines/maxLines is to set the size of the field, not the content, so I think this is working as intended.  I admit I haven't thought much about how to limit the number of lines of content though.  I think I would do it with an input formatter like you are doing.  I think you'll have to manually apply your formatter to any text that is programmatically loaded into the TextField.
Maybe we can update the docs for minLines/maxLines to make this more clear?  Is there anything else we should do to make this more straightforward?

Honestly the text input formatter feels pretty hacky I guess a documentation update would help to make it straight forward but ideally if we could bake the logic into the text field itself it would be a much better experience

I'm going to close this as fixed by https://github.com/flutter/flutter/pull/85138, but if anyone else is struggling with limiting the number of lines the user can enter, please give a 👍  to this issue or comment.  Maybe we can get this line limiting input formatter added to the framework if enough people think it would be useful.


[FR] User permissions

Currently there is two options. But iam looking for the more options for user permission like read-only, admin and super admin.
### Tasks

Currently there is two options.

Can you please expand on this. Not sure what the issue is that you are raising.

Hi @SchrodingersGat ,
urrently, InvenTree user management provides three options for user roles: superuser, staff, and active. While these roles cover basic user management needs, there is a requirement for more granular permissions to manage teams across different locations effectively. Specifically, there is a need for:
Read-Only Access to Inventory Products: Users with this permission should only be able to view the inventory products without the ability to edit any details.
Stock-Only Access: Users with this permission should be able to add items to the inventory stock section but should not have access to other sections or editing capabilities.

we support that: you can set up fine grained permissions with groups. Roles are just faster as the user gets access to everything with one click
use the feature request template if you have a feature request. We have to ask all the questions in the template anyway

https://docs.inventree.org/en/stable/settings/permissions/


411 Content Length required issue

For some reason, my home ISP throws 411 Content length required error when I try to post something to the cloud rest endpoint thru locally running zuul proxy.
So I tried setting content-length header manually from a custom filter like:
ctx.addZuulRequestHeader("content-length", ctx.getRequest().getHeader("Content-Length"));
But it throws
com.netflix.zuul.exception.ZuulException: Forwarding error...
Caused by: org.apache.http.ProtocolException: Content-Length header already present
    at org.apache.http.protocol.RequestContent.process(RequestContent.java:95)
    at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:131)
    at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:165)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)

I'm using Zuul 1.0.28. Am I doing anything wrong? I'm not even sure if the original problem would disappear if I manage to set this header manually. Any suggestion, anything would be very much appreciated.
p.s: ISP allows my post request when its done thru Feign.

You should not need to set the Content-Length header in a filter because apache httpclient should be setting it itself. And as you found out, it will throw an error if you try to set it yourself.
So we need to find out if for some reason the header is not getting sent from Zuul. So can you try either:

Enable apache httpclient debug logging (log4j.logger.org.apache.http=DEBUG - https://hc.apache.org/httpcomponents-client-ga/logging.html), which will then log exactly what headers are being sent over the wire. And therefore see if Content-Length is being sent.
Configure zuul to proxy to http://httpbin.org/post and then see if it is receiving the Content-Length header.

I am getting this error too with the latest zuul com.netflix.zuul:zuul-core:1.2.0, with the scripts in master. But it only happens when proxying under certain conditions. @beku8 did you get to solve it?

@kerumai Thanks for the tip. I'm using spring cloud, which provides a "trace" endpoint.
Here's the request from browser to the server:
info: {
  method: "PUT",
  path: "/api/core/rest/location/amarbayasgalant",
  headers: {
    request: {
      host: "localhost:9000",
      connection: "keep-alive",
      content-length: "663",
      pragma: "no-cache",
      cache-control: "no-cache",
      authorization: "...authorization omitted",
      accept: "application/json, text/plain, */*",
      origin: "http://localhost:9000",
      user-agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
      content-type: "application/json;charset=UTF-8",
      referer: "http://localhost:9000/manage/mn/reference/location",
      accept-encoding: "gzip, deflate, sdch",
      accept-language: "en-US,en;q=0.8,bg;q=0.6,ru;q=0.4",
      cookie: "....cookie values omitted..."
    },
    response: {...response omitted...}
  }
}

Well it this point browser sends the content-length properly, but from zuul server to the microservice, content-length is not being sent.
info: {
  method: "PUT",
  path: "/rest/location/amarbayasgalant",
  query: "?_t=mn",
  remote: true,
  proxy: "api/core",
  headers: {
    request: {
      accept: "application/json, text/plain, */*",
      origin: "http://localhost:9000",
      user-agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36",
      content-type: "application/json;charset=UTF-8",
      referer: "http://localhost:9000/manage/mn/reference/location",
      accept-language: "en-US,en;q=0.8,bg;q=0.6,ru;q=0.4",
      authorization: "...Bearer token omitted",
      x-forwarded-host: "localhost",
      x-forwarded-proto: "http",
      x-forwarded-prefix: "/api/core",
      x-forwarded-port: "9000",
      x-forwarded-for: "<IP_ADDRESS>",
      Accept-Encoding: "gzip"
    },
    response: {
      Server: "httppd",
      Date: "Wed, 15 Jun 2016 11:30:35 GMT",
      Content-Type: "text/html",
      Content-Length: "3892",
      Connection: "close",
      status: "411"
    }
  },
  body: "... json body omitted"
}

I'm using spring cloud project which configures zuul under the hood, its probably a problem with spring cloud?

I just created a very simple demo app https://github.com/beku8/zuul-411 here, which just posts empty body to a httpbin.org using zuul. Simple spring-boot/cloud app you can run maven or eclipse. if you checkout out the /trace endpoint: same issue, no content-length being set.
I think because most of the ISPs don't "require" content-length, this issue was not looked at before.

Thanks for taking the time to make that https://github.com/beku8/zuul-411 repo @beku8 . That made it a lot easier for me to debug.
But when I run it, the Content-Type header does get sent according to httpbin. Here's the output from me doing a curl against your zuul-411 project:
$ curl -X PUT --data-ascii "blah" -H "Content-Type: text/plain" http://localhost:8080/api/httpbin/put
{
  "args": {},
  "data": "blah",
  "files": {},
  "form": {},
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "gzip",
    "Content-Length": "4",
    "Content-Type": "text/plain",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.48.0",
    "X-Forwarded-Host": "localhost",
    "X-Forwarded-Prefix": "/api/httpbin"
  },
  "json": null,
  "origin": "0:0:0:0:0:0:0:1, <IP_ADDRESS>",
  "url": "http://localhost/put"
}

I think the reason that the Content-Length is not being shown in the spring cloud trace endpoint, is because at the point trace records the request - the header is not yet added - it only gets added later on once httpclient start processing it (and therefore hidden from the Zuul and Spring Cloud code).
Also, when I ran your sample app, I got the wire-level logging in stdout, which shows exactly what httpclient has sent over the wire too, eg:
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> PUT /put HTTP/1.1
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> user-agent: curl/7.48.0
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> accept: */*
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> content-type: text/plain
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> x-forwarded-host: localhost
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> x-forwarded-proto: http
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> x-forwarded-prefix: /api/httpbin
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> x-forwarded-port: 8080
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> x-forwarded-for: 0:0:0:0:0:0:0:1
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> Accept-Encoding: gzip
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> Content-Length: 4
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> Host: httpbin.org
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.headers                  : http-outgoing-3 >> Connection: Keep-Alive
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "PUT /put HTTP/1.1[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "user-agent: curl/7.48.0[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "accept: */*[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "content-type: text/plain[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "x-forwarded-host: localhost[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "x-forwarded-proto: http[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "x-forwarded-prefix: /api/httpbin[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "x-forwarded-port: 8080[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "x-forwarded-for: 0:0:0:0:0:0:0:1[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "Accept-Encoding: gzip[\r][\n]"
2016-06-21 23:17:08.407 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "Content-Length: 4[\r][\n]"
2016-06-21 23:17:08.408 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "Host: httpbin.org[\r][\n]"
2016-06-21 23:17:08.408 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
2016-06-21 23:17:08.408 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "[\r][\n]"
2016-06-21 23:17:08.408 DEBUG 26197 --- [nio-8080-exec-9] org.apache.http.wire                     : http-outgoing-3 >> "blah"

So could you if the Content-Length (or if maybe a "Transfer-Encoding: chunked" header) is appearing in the org.apache.http.wire logging when you run your app through your ISP?

Hello @kerumai thanks for your time. You are right, trace endpoint was not accurate. There was no issue proxying to httpbin.org. However there was an issue with the between zuul & eureka clients.
This turned out to be an issue not related to zuul per se, but a problem jersey library. com.sun.jersey.core.impl.provider.entity.InputStreamProvider.
    @Override
    public long getSize(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
        if (t instanceof ByteArrayInputStream)
            return ((ByteArrayInputStream)t).available();
        else
            return -1;
    }

t is an instance of class com.netflix.zuul.http.ServletInputStreamWrapper not ByteArrayInputStream, therefore it returns -1.
Thanks again for your advice how to debug, it helped to pinpoint the issue. Spring cloud had a way around it and committed a fix.

@beku8 do you have a link to the fix/workaround, or how can we pull it into our project?
We still keep getting "Transfer-Encoding: chunked" with spring-cloud-netflix:1.3.0.M1

It turned out to be a spring cloud issue
https://github.com/spring-cloud/spring-cloud-netflix/issues/1042
On Tue, Jan 31, 2017 at 7:42 PM, mjsobremonte<EMAIL_ADDRESS>wrote:

@beku8 https://github.com/beku8 do you have a link to the
fix/workaround, or how can we pull it into our project?
We still keep getting "Transfer-Encoding: chunked" with
spring-cloud-netflix:1.3.0.M1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Netflix/zuul/issues/223#issuecomment-276342423, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABCnoSn6CTjVqh7oJlcGSz4wvelvAHEAks5rXx4tgaJpZM4Ij-SH
.


Add BT Power Plug and dedictated Sensors for VRCC Devices

I added the Medion Power Plug with a Powersensor

Added dedicated Temperature an Humidity Sensors

Ok, sorry, I got a bit too motivated and attacked the TODO point with removing the unnecessary aiolivisi lib abstractions. There's a bit of refactoring to do now.
And after thinking a bit more about it, I would really like to add the humidity and temperature sensors for the thermostat devices and not for the VRCC virtual room climate devices. This makes sense because they currently only have the battery indicator (which is not working yet). For most people (with just one thermostat per room) it doesn't matter where the sensors are located, and the room avg temperature can still be retrieved from the attributes in the climate devices.

I can add the sensors to both vrcc and rst so everyone can decide witch sensors he would use. From the attributes you have to work with templates

I rewrote the sensor implementation to be more generic and integrated support for temp and humidity for VRCC and RST devices. Just to let you know: your implementation broke device naming for VRCCs, because devices were created without "use room name as device name".
Additionally, entity names should not contain the device name. That is handled by home assistant.
Please create a new PR for the "Medion Power Plug with a Powersensor" or adjust this one if you still like to integrate that.


Add collapse/expand commands to toggle all previews

This is a complete rip-off from Slack. I cannot count how many times I am using this every week at work.
This will only be functional after #1303 gets merged, and it will be even more beneficial to have these when supporting multiple previews.

Note that this needs #1303 to be actually functional


Define transactions for managing authorities

Basic struct definition with a "name" and "public key" to uniquely identify and verify respectively

[x] TransactionType #461
TBA

Background
We are using Aleph #322 with a Proof-of-Authority model. These "authorities", those participating in the consensus, will be recorded on the blockchain.
These will be entered a transaction.

Transaction type: AddAuthority
Transaction type: RevokeAuthority
Need to add specific APIs for this functionality as they are core to the blockchain

This https://github.com/pyrsia/pyrsia/issues/401#issuecomment-1063117872 is actually the scope of #403 so this was completed with #461


After cadence upgrade, hit unknown field 'DisablePointerAddresses' in struct literal of type spew.ConfigState

My service tries to upgrade to the latest preview of cadence and run the following
make clean; rm -rf vendor; make
[INFO]	Replacing existing vendor dependencies
  GO BUILD (1.8.3 darwin/amd64)    myservice
./vendor/go.uber.org/cadence/mock/mock.go:820: unknown field 'DisablePointerAddresses' in struct literal of type spew.ConfigState
./vendor/go.uber.org/cadence/mock/mock.go:821: unknown field 'DisableCapacities' in struct literal of type spew.ConfigState
make: *** [myservice] Error 2

Workaround for now by pinning the version on glide.yaml:
- package: github.com/davecgh/go-spew
  version: 346938d642f2ec3594ed81d874461961cd0faa76
  subpackages:
  - spew

But I believe there should be a longer term fix for this.

I believe this issue is resolved in latest version of cadence.
Closed for now. if issue still exists for you, please reopen it.


Add support for syncing directories in dotsync

Currently, the dotsync script uses ln to create hard links between configuration files and the backup in the git repository. However, it can not create a hard link from a directory. There are two options available:

~Recursively loop through directories and create hard links for all leaf files.~
Switch to commands like rsync.

stow may be useful as well?


TSVGIconImage - something wrong with colors?

Could you please explain, what's going on with white color?
It looks ok in design-time (in preview):

but not in run-time:

Test project: Project1.zip
p.s.
Yep, I know it's funny but I need 100,00% accuracy, not 99,999% 🥲

Must be due the antialiasing. Can it be disabled for testing?

You beat me to it by a few seconds @carloBarazzetta  :)

Ok, how to disable "antialiasing"? I see "Disable Interpolation" only.

I using with defaults settings.
Could you please try my sample (is in a zip-file in first message) and confirm/refute wrong color?

have no control over the antialiasing effect applied by the SVG-Engine being used. You can test with a circle instead of an 'X' so that the center pixel can't be affected by antialiasing.


Upgrade dependencies

This PR upgrades Django and Bleach to latest versions.
Pull Request Checklist

[ ] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Database queries are optimized and the number of queries is constant.
[ ] The changes are tested.
[ ] The code is documented (docstrings, project documentation).
[ ] Python code quality checks pass: pycodestyle, pydocstyle, pylint.
[ ] JavaScript code quality checks pass: eslint.

Should we also bump django-countries and phonenumberslite?

@patrys Done.


Add-on uninstalled but still backuping

Hello,
I uninstalled the add-on, but I still got new backups every day.
How could I get rid of this ?
I'm on Windows Server 2019 > HyperV > Debian 11 > Docker > HA Supervised.
Thanks !
Michel

Silly of me, that's was an automation running.


Avoid hardcoded host

Hi,
First of all, thank a lot for the project! It saves a lot of time. Small fix from my side to save more time in future.

Thanks for this. Really appreciate it.


Test and potentially fix headless context on Windows

Run the headless context example:
$ cargo run --example headless

If there are any errors, please try to fix them. Currently, the headless context creation in headless.rs is based on this glutin example which should work on Windows.
Also see #207.

Should work after #240 🚀


[BUG] team kick error

We cannot kick players who are not in the game on betterteams from the team. Will this problem be solved?

We cannot kick players who are not in the game on betterteams from the team. Will this problem be solved?

Hello, I'm an admin on the official support discord server, is it possible to provide more details about this issue?
Like details descriptions or screenshots of what happens when you try to kick someone who is offline and/or any error messages in the console?

This bug has been fixed and will be included in the next update.


Blog: Project Nodes & Device Agent use case

Description
No response
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

JFYI: @gdziuba


chore: Code split for network utils class

Description
PR to code split the Network utils class which is being used and modified in both CE and EE repo. This will fix the merge conflicts we were seeing recently for NetworkUtils class.
EE PR: https://github.com/appsmithorg/appsmith-ee/pull/1708
Fixes https://github.com/appsmithorg/appsmith/issues/24271
Type of change

Chore (housekeeping or task changes that don't impact user perception)

Testing
How Has This Been Tested?

[ ] Manual

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/ok-to-test


iOS - Ticketing - no possibility to leave the screen and got back in the app after successful validation of certificate

iOS wallet app <IP_ADDRESS> (3) acc
iPad 11 Pro
expected result
There should be an OK oe Close button to go back to the main screen of the wallet app
actual result
confirmation screens stays open and I had to kill the app

sample from Android:

There was a button :) I will fix it)

Can we have an okay Button that leads directly to the HomeScreen (the Certificate-Overview) like in the Android Version?


Fix login tests

Codecov Report

Merging #100 into v2-master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           v2-master    #100   +/-   ##
=========================================
  Coverage       71.9%   71.9%
=========================================
  Files            686     686
  Lines          29632   29632
  Branches        6811    6811
=========================================
  Hits           21308   21308
  Misses          8324    8324


unable to register 'Microsoft.GuestConfiguration' provider

I have tried registering the provide using the example PS and it errors with "The operation is not permitted for namespace 'Microsoft.GuestConfiguration'. List of permitted provider namespaces is..." the provider isn't in the permitted list. Also if i try via the portal, i can't see it in the list to register

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

ID: ed0dc6c0-66e0-4026-9f2a-1cdb8b04e5c5
Version Independent ID: d02abfda-83d6-4022-bfb0-b3d0391a6223
Content: Understand how to audit the contents of a virtual machine - Azure Policy
Content Source: articles/governance/policy/concepts/guest-configuration.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@ChrisGibson1982 Thanks for the question! We are actively investigating and will get back to you soon.

@ChrisGibson1982 Can you confirm which environment (Commercial, national cloud, etc.) you are in?
@MicrosoftDocs/azure-cxp-triage Please assign to me and #in-progress.
cc / @mgreenegit

"cloudName": "AzureCloud"

@ChrisGibson1982 What region?
Is there a way we can reach out to you directly for support?
We can start with a Twitter DM or something similar if you do not want to share your email here.

not sure on the sub (do they have a region?) but my resources are in UK South
sure, @cgfootman

@ChrisGibson1982 - Since you and @kwirkykat have connected, I'm going to close this issue since this forum is intended for docs issues and yours is a support issue. She'll ping you via Twitter DM to work towards a resolution with you. She'll also let me know if it's something that needs correcting in docs.  If it is, I'll link the update to this issue.  Thanks again for raising the issue and if you have docs issues in the future, please feel free to open an issue!
@MicrosoftDocs/azure-cxp-triage Please remove label 'cxp', add label 'assigned-to-author', and #please-close


BUG: Regression in SciPy mode return shape with 1.11.1

Describe your issue.
Returns float and not array as expected. Shape of return data changed.
Please see and REOPEN https://github.com/scipy/scipy/issues/16418
Reproducing Code Example
Please see https://github.com/rzellem/EXOTIC/issues/1206

Error message
Added Comparison Star #3 [324,365] from AAVSO
Finding transformation 1 of 142 : /proj/survey-ws/source/EXOTIC_sampledata/HatP32Dec202017/HATP-32171220013343.FITS
Traceback (most recent call last):
  File "/System/Volumes/Data/proj/survey-ws/source/EXOTIC/exotic/exotic.py", line 2641, in <module>
    main()
  File "/System/Volumes/Data/proj/survey-ws/source/EXOTIC/exotic/exotic.py", line 2124, in main
    aper_data["target"][i][a][an], aper_data["target_bg"][i][a][an] = aperPhot(imageData, 0,
                                                                      ^^^^^^^^^^^^^^^^^^^^^^
  File "/System/Volumes/Data/proj/survey-ws/source/EXOTIC/exotic/exotic.py", line 1137, in aperPhot
    bgflux, sigmabg, Nbg = skybg_phot(data, starIndex, xc, yc, r + 2, dr)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/System/Volumes/Data/proj/survey-ws/source/EXOTIC/exotic/exotic.py", line 1204, in skybg_phot
    return mode(dat.flatten(), nan_policy='omit').mode[0], np.nanstd(dat.flatten()), np.sum(mask)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: invalid index to scalar variable.

SciPy/NumPy/Python version and system information
Python 3.11, SciPy 3.11.1 (but works in SciPy 3.10.1)

This old behavior was deprecated in 1.9.0, went through 1.9 and 1.10 release cycles, and was finally removed on schedule in 1.11.0. We did this intentionally, with plenty of warning per our policies. Use keepdims=True to get the old behavior.

This old behavior was deprecated in 1.9.0, went through 1.9 and 1.10 release cycles, and was finally removed on schedule in 1.11.0. We did this intentionally, with plenty of warning per our policies. Use keepdims=True to get the old behavior.

I am going to refer you to the Semantic Versioning 2.0.0 specification which says, precisely, "MINOR version (to be used) when you add functionality in a backward compatible manner." I am quite certain that the argument keepdims=True could have been set to default to just that so as to maintain backwards compatibility. Please do not add breaking functionality in a non-backwards compatible manner or alternately increment version numbers correctly per standards.

We have not adopted SemVer (and will not; it has been discussed many times). Here is our deprecation policy, which was followed in this case.

OK, missed the DeprecationWarning and got bitten.


Add option one-at-a-time

Close #28.

:tada: This PR is included in version 1.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

Great, thank you!


Add Elastic Job management in SQL Server Agent extension

Currently, the creation and management of Elastic Jobs are only possible via PowerShell and SQL commands. On the portal, the jobs can only be viewed.
Having the creation and editing of Elastic Agents, Jobs and schedules in SQL Server Agent extension will be a great help to get started with the jobs and also maintain them.

Any Update ? This would be a great help for us too. The management and monitoring solutions offered on the Azure portal are not optimal.


bootstrap problem with current oref0-setup.sh / problem with CGM-loop with Dexcom G4 by USB

Before you can use openaps ns-loop  the following reports must be available:
openaps get-settings
openaps report invoke settings/pumphistory-24h.json
openaps report invoke settings/pumphistory-24h-zoned.json
openaps report invoke monitor/pumphistory.json
openaps report invoke monitor/pumphistory-zoned.json
openaps report invoke monitor/clock.json
openaps report invoke monitor/clock-zoned.json

with those reports available
$ openaps ns-loop
Starting ns-loop at Mon 19 Sep 22:23:09 CEST 2016:
ns://JSON/shell/cgm/ns-glucose.json
reporting cgm/ns-glucose.json
settings/autosens.json
Refreshed temptargetsWarning: Argument order has changed: please update your oref0-meal device and meal.json report to place carbhistory.json after basalprofile.json
Removed duplicate bolus/carb entries:1
26 0 Mon Sep 19 2016 18:31:51 GMT+0200 (CEST)
<<autosens output deleted>>
Excess insulin sensitivity detected: ISF adjusted from x to y
0
 and meal-carbs
Uploaded

most of the reports above are probably created by openaps pump-loop but strange stuff happened.
I temporary disabled crontab stuff to see what went wrong. I think uploading cgm data (dex g4 connected to USB) to nightscout fails someway.  Investigating further...

@scottleibrand : i think i found a partial solution to fix the uploading of dex cgm data to nightscout.
I changed the crontab to:
0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * cd /home/pi/pi3o && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; **echo -n 'Upload' ; ~/ns-upload-entries cgm/glucose.json > /dev/null ; echo 'ed'  ;** cat cgm/glucose.json | json -a sgv dateString | head -1 ) | tee -a /var/log/openaps/cgm-loop.log

Can it be that openaps get-bg and openaps monitor-cgm can't run at the same time with a dexcom connected by usb?

Rebooting the rig fixes the problem. It seems way to many openaps processes are running concurrently when it fails:
$ ps auwx | grep openaps
pi        5052  0.0  0.0   1912   412 ?        Ss   23:24   0:00 /bin/sh -c cd OPENAPSHOME && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; echo -n 'Upload' ; ~/ns-upload-entries cgm/glucose.json > /dev/null ; echo 'ed'  ; cat cgm/glucose.json | json -a sgv dateString | head -1 ) | tee -a /var/log/openaps/cgm-loop.log
pi        5083  0.0  0.0   1912    96 ?        S    23:24   0:00 /bin/sh -c cd OPENAPSHOME && ps aux | grep -v grep | grep -q 'openaps get-bg' || ( date; openaps get-bg ; echo -n 'Upload' ; ~/ns-upload-entries cgm/glucose.json > /dev/null ; echo 'ed'  ; cat cgm/glucose.json | json -a sgv dateString | head -1 ) | tee -a /var/log/openaps/cgm-loop.log
pi        5084  0.0  0.1   3400  1436 ?        S    23:24   0:00 tee -a /var/log/openaps/cgm-loop.log
pi        5088  0.2  1.3  16700 13264 ?        S    23:24   0:01 /usr/bin/python /usr/local/bin/openaps get-bg
pi        5099  0.0  0.2   4608  2524 ?        S    23:24   0:00 bash -c openap  monitor-cgm 2>/dev/null | tail -1 && grep -q glucose cgm/cgm-glucose.json && rsync -rtu cgm/cgm-glucose.json cgm/glucose.json; rsync -rtu cgm/glucose.json monitor/glucose.json
pi        5100  0.2  1.3  16700 13264 ?        S    23:24   0:01 /usr/bin/python /usr/local/bin/openaps monitor-cgm
pi        5108  0.4  1.9  22676 18856 ?        S    23:24   0:02 /usr/bin/python /usr/local/bin/openaps-report invoke raw-cgm/raw-entries.json cgm/cgm-glucose.json
pi        8752  0.0  0.0   1912   360 ?        Ss   23:33   0:00 /bin/sh -c cd OPENAPSHOME && ( ps aux | grep -v grep | grep -q 'openaps pump-loop' || openap  pump-loop ) 2>&1 | tee -a /var/log/openaps/pump-loop.log
pi        8753  154  1.3  16704 13244 ?        R    23:33   0:01 /usr/bin/python /usr/local/bin/openaps pump-loop
pi        8754  0.0  0.1   3400  1504 ?        S    23:33   0:00 tee -a /var/log/openaps/pump-loop.log
pi        8760  0.0  0.0   1912   360 ?        Ss   23:33   0:00 /bin/sh -c cd OPENAPSHOME && ps aux | grep -v grep | grep -q 'openaps ns-loop' || openaps ns-loop | tee -a /var/log/openaps/ns-loop.log
pi        8787  154  1.4  16704 13352 ?        R    23:33   0:01 /usr/bin/python /usr/local/bin/openaps ns-loop
pi        8789  0.0  0.1   3400  1508 ?        S    23:33   0:00 tee -a /var/log/openaps/ns-loop.log
pi        8804  0.0  0.2   4280  2000 pts/0    S+   23:33   0:00 grep --color=auto openaps

I'm a bit unclear on what you're trying to do here.  oref0-setup.sh doesn't (yet) upload CGM data to Nightscout.  Is that what you're trying to do?

yes, I would like the Dexcom G4 USB CGM to be uploaded to Nightscout.

You can do that by modifying https://github.com/openaps/docs/wiki/CGM-Loop-with-openxshareble-scratchpad to not set up the openxshareble parts.

well getting it to work with openxshareable is one of the next adventures.
I'll try tommorow or so.  Cgm-loop is currently stable for half an hour with a 4 minute interval.

Turned out openxshareble does not work with european dexcom receiver (don't have Share). Closing this issue because it's not clear and it turned out not to be a bug, but cgm by usb is not a current feature. I'll try to implement it with: https://github.com/openaps/oref0/issues/243


Service product maintenance interface

Stakeholder request
Currently, there is no possibility to add service products via the web-interface, only via the database directly.
The app shall provide the user with the possibility, to create, modify and archiving service products. Archiving however must not end in actual resource deletion, but rather rendering them to not be included anymore during offer generation.

Would it be possible that only certain people can make use of this feature? I do not really like the idea that everybody can potentially introduce changes..

@mGauder draft for authorization is on the way: #346 .

After a meeting with @qbicStefanC and @sven1103 we identified 3 crucial use cases for the service product maintenance:

Add new service product
A new service product is added to the product database
Make a Copy of an existing product
The user can copy the content of an existing product. The old product will not be archived automatically, the new product will get a new ID. It is possible to create duplicates but the user will be warned.
Archive a service product
A service product will not be available for new offers but is still active in old offers

 Prepare documentation for Service Product Maintenance Interface

 Provide service product maintenance interface #278


JSON export

thanks for the contributions
I been trying to export in JSON but it always get's stuck at the same point
here is the script
from jiraone import LOGIN, issue_export
import json
file = "C:\Users\ [path]\config.json"
config = json.load(open(file))
LOGIN(**config)
jql = 'project in (project1, project2) and created >= "2023/10/23 00:00" AND created <= "2023/10/23 23:59" ORDER BY Updated DESC'
properties = ["users", "history"]
issue_export(jql=jql, extension="json", json_properties=properties)
it gets stuck here
Converting Jira custom field names to Jira JSON compatible names.
Verifying users and group membership
Is there way to bypass the group membership ? with CSV it downloads all the required info
Thanks in advance

Hey @enrique-sor56
I'm in the process of updating that JSON export feature in a new version v0.7.9, I should most probably get this finished next month before Christmas. I also had other feedback about it being stuck like you mentioned but essentially, what it's doing is the extraction of each group which takes so long (performance issue). In the upcoming update, this should allow a user to opt out of the group extraction or perform it as a background task (independently from the script - depending on which is performance reliable) and the cache should help maintain a faster extraction after the first run.

Hey @enrique-sor56
Thanks for waiting. Just uploaded the new version 0.7.9 which should improve drastically the previous issues with user and group membership

Thank you  @princenyeche
I update the the Jira One pkg but still seems to get stuck at the same part
Downloading issue export in JSON format.
<Response [200]> OK ::downloading issues at page: 0 of 2
<Response [200]> OK ::downloading issues at page: 1 of 2
<Response [200]> OK ::downloading issues at page: 2 of 2
Processing. Current progress: 33%
Processing. Current progress: 66%
Processing. Current progress: 100%
Converting Jira custom field names to Jira JSON compatible names.
Verifying users and group membership
Is there another way to download the users and group membership?

Hey @enrique-sor56  please upgrade to v0.8.2 as the console printout seems to be an older version and not the latest.
If you're using pip try
python3 -m pip install --upgrade jiraone

To answer your question, no argument allows the input of users and groups from a file for JSON processing. I don't think that's the problem in your case as I believe you might still be on an older version (i.e. if you're using multiple versions of Python or probably on a virtualenv you might want to verify this). v0.7.9 fixed the being stuck problem and others but had a regression which the current version fixes, hence the need to upgrade. However, if you have a large user base then you can make use of these two arguments workers and flush for faster processing.
# previous statements
properties = ["users", "history"]
issue_export(jql=jql, extension="json", json_properties=properties, workers=50, flush=20)

Also, the way the extraction works now is less dependent on the script as the workers argument will help extract simultaneously the data while other operations are running and the flush argument allows a sort of cool-down timeframe prior to when the files are written to disk.

thank you @princenyeche it's wroking th JSON file export


Hitman GO: Definitive Edition [PCSB00922]

App summary

App name: Hitman GO: Definitive Edition
App serial: PCSB00922
App version: 1.00

Vita3K summary

Version: v0.1.6

Build number: 3041

Commit hash: https://github.com/Vita3K/Vita3K/commit/c70d526

CPU backend: Dynarmic

GPU backend: Vulkan

Test environment summary

Tested by: elPrimoDorado
OS: Windows 10
CPU: AMD Ryzen 3 2200G
GPU: NVIDIA GTX 1050TI
RAM: 32 GB

Issues

Graphical bugs, textures missing or darker textures

Screenshots

Log
vita3k.log
Recommended labels

Graphics bugs
Playable

No one assigned

This game crashes for me when using Vulkan but works on OpenGL.


Implement GameObject Lifecycle

Motivation
Right now it is difficult to act when a game object is being removed or added. Implement better LifeCycle management by using the existing Event Manager.

Not required actually.


Add config option for coalesce_batches physical optimization rule

Which issue does this PR close?

Closes https://github.com/apache/arrow-datafusion/issues/2790
Rationale for this change

Give users control over optimization rules that are applied.
What changes are included in this PR?

Add new config options
Unrelated change to update the config docs generator to always sort by config key
Update the config docs

Are there any user-facing changes?

No

Codecov Report

Merging #2791 (73066af) into master (7c60412) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2791      +/-   ##
==========================================
- Coverage   85.14%   85.14%   -0.01%
==========================================
  Files         273      273
  Lines       48248    48259      +11
==========================================
+ Hits        41079    41088       +9
- Misses       7169     7171       +2

Impacted Files
Coverage Δ

datafusion/core/src/config.rs
90.76% <100.00%> (+0.44%)
:arrow_up:

datafusion/core/src/execution/context.rs
78.72% <100.00%> (+0.18%)
:arrow_up:

...on/core/src/physical_optimizer/coalesce_batches.rs
100.00% <100.00%> (ø)

datafusion/expr/src/logical_plan/plan.rs
73.51% <0.00%> (-0.40%)
:arrow_down:

Continue to review full report at Codecov.

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


move to devhub/latest tag throughout, no use of monthly tags

Closes #765
Related to #636

Can you update the devhub/latest tag to point to latest? The offchain worker example is in a different folder structure on the latest version so changing it like this right now will break those links. We can follow-up with checking that everything works once the tag points to the latest version.

All good - we just need to update the devhub/latest.


RSC-001 cryptic error message

This is the kind of message generated if a manifest entry references a missing file or the file path is wrong:
ERROR(RSC-001): .\figure-gallery-bindings.epub/figure-gallery-bindings.epub(-1,-1): File 'EPUB/epub.css' is not found.
This is too cryptic for the average user - it doesn't tell you where or why it was not found. It would be helpful to add more context to the message, along the lines of:
Manifest item references non-existent resource 'EPUB/epub.css'.

I agree that this is not optimal, but I think it is actually a little worse. I have a tool (built in Eclipse which uses epubcheck for validation).  In this case, if the manifest has a reference to a missing resource it calls back with the message that the resource couldn’t be found.  Fine, but it reports the name of the missing resource but not the file (the actual OPF) which contains the missing reference.  So my tool has no idea what file to point to let the user investigate and fix the problem.  All I can do is tell the user there’s a problem somewhere in the project.
Seems like there are two problems.  First it should report both what the missing resource is (which it does) AND what file (e.g. package.opf) the referenced the missing resource.  In fact the it seems like it should be the OPF file that be passed as the MessageLocation, along with the line number where the invalid resource was found.  Instead it passed the name of the EPUB file itself and the line and column number of -1.  Unfortunately it isn't quite that easy as the calling routine validate() in EpubCfiCheck doesn't know the line number of the manifest, only its position in the zipfile.
The second part is that there is no (as far as I can see) and appropriate error message for this, along the lines of
 "Manifest item '%1$s' referenced in the OPF file ('%2$s') appears to be missing"

Since RSC-001 is thrown from different validation methods in different contexts, there are occasions in which the message is just fine:
ERROR(RSC-001): empty_dir.epub(-1,-1): File 'META-INF/container.xml' could not be found.

or
ERROR(RSC-001): empty_dir.epub/OPS/internal_dtd.xhtml(-1,-1): File 'sample.dtd' could not be found.

and others which are hard to understand like the message you mentioned:
ERROR(RSC-001): .\figure-gallery-bindings.epub/figure-gallery-bindings.epub(-1,-1): File 'EPUB/epub.css' is not found.

or for example:
ERROR(RSC-001): missing_toc_file.epub(-1,-1): File 'OPS/toc.xhtml' could not be found.

And I agree with you, that those should clearly have the OPF file as context item. But a solution like "Manifest item '%1$s' referenced in the OPF file ('%2$s') appears to be missing" from @rkwright is not always applicable.
Anyways, there's another problem with the current implementation of those messages: They are not thrown when parsing the OPF file, or the XHTML file with a context available, but instead they are thrown in XMLParser, NavChecker, BitmapChecker, GenericContentChecker, etc. classes which just don't know who called them. Let's take a CSS file as an example: When the RSC-001 message for a missing CSS file is thrown, we can't tell whether the context is a <link> element from an XHTML file or an OPF entry or both.
Nothing we can do about it at the moment, I'm sorry... :-(


[Bug]: entities spawn outside their limits in single amounts

Mod Version
0.0.8
Mod Loader
Fabric
Mod Loader Version
fabric 0.16.7
Describe the bug
boilers and spitters which dont evolve from anything spawn on surface outside of their spawn height limits. it only seems to be single entities and not groups.
To Reproduce

...

There isn't a way I know of to force it but being afk in a given area long enough you will see 1 or 2 of them on the surface. Mostly happens at night, any biome. Even ocean.


A problem occurred configuring project ':app'

Describe the bug
info Opening the app on Android...
info JS server already running.
info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

defaultConfig contains custom BuildConfig fields, but the feature is disabled.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 6s
To Reproduce
Steps to reproduce the behavior:

npm start
run android
and this error showed up

Expected behavior
It should be running just fine.
Screenshots
https://imgur.com/a/aXJjdZO.
Desktop (please complete the following information):

React Native 0.72.4
JDK 17 LTS
Gradle 8.0.1
Pop!_OS 22.04 LTS

Smartphone (please complete the following information):

Device: Aquos R5G
OS: Android 12 S

Additional context
Totally new project. I've added Kotlin configuration. Pls help

Might not be linked to this dependency, but to ReactNative 0.72.4 - which is using a newer version of Gradle
Adding that in your build.gradle should fix your issue
android {
    buildFeatures {
        buildConfig = true
    }
}

https://stackoverflow.com/a/74692390/3572934
However it might fails further because the dependency needs to define a namespace. I'll push a fix for that


Add dist/index.js

Fixes https://github.com/terraform-linters/setup-tflint/issues/5
The current release mechanism seems to be to generate a release branch in GitHub Actions, but it's probably intuitive to include the js that was built in the tagged branch that was committed.
What do you think? @jgeurts @martinhaus @karol-bujacek @bendrucker

Yeah lemme look at this and see if I can get the build/release properly automated.


Reservation Mixin

#1122
Includes the primary Reservation mixin with its associated example.

Reverting to split reservation mixins from earlier builds.


Detected use of deprecated service calendar.list_events

Version of the custom_component
VERSION = "1.1.2"
Describe the bug
Installed Home Assistant version 2023.12 today and received the following messaging after the upgrade completed:
Detected use of deprecated service calendar.list_events
Use calendar.get_events instead which supports multiple entities.
Please replace this service and adjust your automations and scripts and select submit to close this issue.

The problem was with my automation where I simply replaced calendar.list_events with calendar.get_events in the automation below:
alias: Poll Loadshedding Local Events
description: ""
trigger:

platform: time_pattern
minutes: /15
condition: []
action:
service: calendar.get_events
data:
duration:
hours: 48
minutes: 0
seconds: 0
response_variable: calendar_response
target:
entity_id: calendar.loadshedding_local_events
event: loadshedding_calendar_poll
event_data:
calendar_response: "{{ calendar_response }}"
mode: single

To be honest I cannot remember whether this automation was created as part of running  "Configure" or whether I added it afterwards. I'm therefore closing this issue.


Exhaustive list of unimplemented code

In base:

[ ] Logging on native
[ ] Logging on WASM
[ ] DI container in JS, native, WASM

In proto:

[ ] Generic proto layer
[ ] KotlinX proto layer
[ ] Flatbuffer layer

In rpc:

[ ] Service bridge

closing since most of this is tracked in higher resolution now


Allow customizing SpringBoot @RequestMapping paths

Instead of configuring RequestMapping with "/" this change allows inserting custom paths. Usually the "/" conflicts with /actuator/hawtio. On the other hand, there may be paths that we don't want to be handled by the Controller. ** This change depends on the acceptance of the change in class https://github.com/apache/camel/blob/main/tooling/openapi-rest-dsl-generator/src/main/java/org/apache/camel/generator/openapi /SpringBootProjectSourceCodeGenerator.java from the openapi-rest-dsl-generator project.

Can you update the doc for the maven plugin at
https://github.com/apache/camel/blob/main/tooling/maven/camel-restdsl-openapi-plugin/src/main/docs/camel-restdsl-openapi-plugin.adoc
And also check if the maven plugin needs to add this new option
https://github.com/apache/camel/blob/main/tooling/maven/camel-restdsl-openapi-plugin/src/main/java/org/apache/camel/maven/generator/openapi/AbstractGenerateMojo.java
You can do this in a new PR thanks


Using input_parameter property in another input parameter?

Question
Is there a way to use an input_parameter property in another input parameter? If so, how?
Code concept
Specific line - enum: await getProjectValues(workspace),
input_parameters: {
    properties: {
      workspace: {
        type: Schema.types.string,
        description: "workspace list",
        enum: await getWorkspaceValues(),
      },
      project: {
        type: Schema.types.string,
        description: "workspace list",
        enum: await getProjectValues(workspace),
      },
    },

OR
Specific line - enum: await getProjectValues(workspace_gid),
input_parameters: {
    properties: {
      workspace_gid: {
        type: Schema.types.string,
        description: "workspace gid",,
      },
      project: {
        type: Schema.types.string,
        description: "workspace list",
        enum: await getProjectValues(workspace_gid),
      },
    },

Context
Idea is, I want to create a custom function which can be used by the workflow builder to EITHER

get a list of asana workspaces and then after picking the workspace, pick the asana project you want from a list of asana projects
OR
given an already selected workspace gid, get a list of asana projects

I've got the code working for calling the asana api and getting back a list of workflows. Next step is passing in the workflow gid to another input parameter which gets back the asana projects.
Additional Context
The reason I think this is possible is because the built in Asana workflow for creating a task can do this.
The reason I'm trying to do this is because I want to do A LOT more with Asana than Asana has pre implemented.

You are right that some of our connector functions use this facility you describe to have one input parameter depend on the value of another one (internally we call this feature "dynamic inputs").
The Workflow Builder UI has a ton of complexity to manage this configurability. The challenge in this issue would be to expose that to developers.
It's a good feature request, though! If it's possible in Workflow Builder, it should be possible in code, too.


IA-3339-IA-2904: Bulk creation with user role - users do not have access to anything and Add phone number column in Bulk User Creation template

Explain what problem this PR is resolving

Add phone number column in Bulk User Creation template
Bulk creation with user role - users do not have access to anything
Related JIRA tickets : IA-2904, IA-3339

Self proofreading checklist

[x] Did I use eslint and black formatters
[ ] Is my code clear enough and well documented
[ ] Are my typescript files well typed
[ ] New translations have been added or updated if new strings have been introduced in the frontend
[ ] My migrations file are included
[ ] Are there enough tests
[ ] Documentation has been included (for new feature)

Changes

Phone number on new profile creation
Add phone number on the user upload file template
Add phone number on bulk user creation
Update tests to fit the added phone number

How to test
IA-3339

Try to create user from bulk creation and add a user role in the file
Connect with the new created user and check if he has access to permissions in the user role

IA-2904

Download the bulk creation file template
Add news users and add their corresponding phone number
Upload the file on bulk user creation
Check if the users phone number has been added

Print screen / video
IA-3339
Screencast from 2024-08-23 18-40-51.webm
Screencast from 2024-08-23 18-41-48.webm
IA-2904
Screencast from 2024-08-23 18-49-19.webm
Notes
Things that the reviewers should know: known bugs that are out of the scope of the PR, other trade-offs that were made.
If the PR depends on a PR in bluesquare-components, or merges into another PR (i.o. main), it should also be mentioned here

I know this wasn't done in this PR but the format is different for user_roles in the import and in the export.
Maybe we should open a new Jira tiket to fix this?


Track whether app / component is stable

Is there a way view whether a given component is stable (ie. ngZone.isStable === true)? This would be a real boon when debugging apps.

Hi @studds, can you elaborate with practical examples of when this would be helpful to you? Thanks!

Mostly for when I'm trying to work out why I have to run protractor tests with ignoreSynchronization = true (https://github.com/angular/protractor/issues/3349). I understand how to fix the problem, but I can only guess where it is.

@studds Out of interest, what usually is the issue when you find it? Just a bug in the logic? I'd love to see a contrived example so we can understand your use case. It sounds useful, but I'd like to make sure we're solving your problem properly.

This seems like an old issue.You could check out https://github.com/rangle/augury-labs to see if that covers the required use case.


Increment Go build version to 1.21.3

Updates Go build version to address CVE-2023-39325
Fixes #29118

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Run Java_GCP_IO_Direct PreCommit


Godot 4.1 takes ~1 minute to load on the Steam Deck.

Godot version
v4.1.stable.official [970459615]
System information
Godot v4.1.stable - Windows 10.0.19044 - Vulkan (Compatibility) - NVIDIA GeForce RTX 3080 (NVIDIA; <IP_ADDRESS>79) - 12th Gen Intel(R) Core(TM) i9-12900KF (24 Threads)
Issue description
Even when creating a fresh project that only has a single Label in it and nothing else, the project will hang at a black screen on the Steam Deck for roughly 1 minute until it finally loads.
This isn't normal, because I have the Steam info overlay also enabled, which does this weird thing where it hangs in the middle of the left side of the screen while this black screen is present, then moves snugly to the top-left where it should be once the black screen is gone.
Other games on the Steam Deck do not do this. This is not a hardware issue.
I have tried both with using GodotSteam and without. It doesn't change anything. The load time is very long and it hangs in a way that is unexpected.
The project opens up quickly in the Editor, when exported as a .EXE, and when played through Steam via the Steam application on PC. This issue is exclusively when playing the project on a Steam Deck.
The project must be ran in Compatibility mode. Forward+ causes it to sometimes crash without warning on the Steam Deck.
Steps to reproduce
Create new project.
Export into Steamworks.
Run game on the Steam Deck.
Minimal reproduction project
Shouldn't be necessary. Seriously any new project will do this.

Does this occur on subsequent project starts, or only the first start? See https://github.com/godotengine/godot-proposals/issues/3657.
Can you reproduce this with the Steam overlay disabled?
Can you reproduce this when running the project as a non-Steam application on the Deck (e.g. using desktop mode)?

Does this occur on subsequent project starts, or only the first start? See Display text on the splash screen on initial startup to indicate that shaders will be cached godot-proposals#3657.

Can you reproduce this with the Steam overlay disabled?

Can you reproduce this when running the project as a non-Steam application on the Deck (e.g. using desktop mode)?

This happens always. If I run the game, let it load, close it, and run it again, it'll still take the same amount of time to open.

Desktop mode has no difference. It'll display a black box, cursor becomes unresponsive until it loads.

Steam Deck uses Wayland afaik, so it could be Godot and/or Wayland related issue.
These might be helpful:
https://github.com/godotengine/godot/issues/78487
https://github.com/godotengine/godot/issues/78581

Steam Deck uses Wayland afaik, so it could be Godot and/or Wayland related issue. These might be helpful: #78487 #78581

Thanks, so this is probably a 4.x issue then. Other Godot games do not hang like this, but I think they're all 3.x.
That's unfortunate, but I guess something I'll just have to accept as a current downside to Godot.

Can you reproduce this if you enable Single Window Mode in the Editor Settings, then restart the editor?

Can you reproduce this if you enable Single Window Mode in the Editor Settings, then restart the editor?

This issue is irrelevant to the Editor and exists when the game is published.

A data point: We seem to be failing to reproduce this so far with a 4.1 project on Steam Deck.

For SteamDeck you should create a native Linux build.


Update - app_projects Component

todo

[x] Update app_projects_v0.1.0

@input :package: project_card_v0.1.1 from #6
@input :package: window_bar_v0.1.1 from #3
@input :package: project_filter_v0.1.1 from #14
@input :package: scrollbar_v0.1.1 from #12
[x] update the app_projects component
@output :package: app_projects_v0.1.1

[ ] Finalize app_projects_v0.1.?

[ ] code app_projects
@output :package: app_projects_v0.1.? from comment

tasks - 2024.01.28

Update app_projects_v0.1.0

update the app_projects component
@output :package: app_projects_v0.1.1

worklog
worklog-196

feedback

proposals


Add Profile: Soumilgit

Profile Submission

Profile Category
Please select one or more categories for your profile:

[x] <span

class="tag">Badge 🎖

[x] Minimalistic ✨

[x] Icons 🎯

[x] GIFS 🖼

[x] Code 👨💻

Next Steps
Once you've filled out the information, please comment below:
@all-contributors please add @<username> for review

@all-contributors please add @Soumilgit  for review.


ETP Market data support

Can you please add ETP tokens support - market and trade? I've tried requesting https://api.huobi.pro/v2/etp/transactions but received '{"message":"unauthorized","code":1003,"success":false}'. I don't know how to authorise, any help would be highly appreciated. How can I get market ETP data? Candlesticks or any?

from huobi.client.market import MarketClient
from huobi.constant import *
from huobi.utils import *
market_client = MarketClient(init_log=True)
interval = CandlestickInterval.MIN5
symbol = "btc3lusdtnav"#ethusdt
list_obj = market_client.get_candlestick(symbol, interval, 10)
LogInfo.output("---- {interval} candlestick for {symbol} ----".format(interval=interval, symbol=symbol))
LogInfo.output_list(list_obj)

from huobi.client.market import MarketClient
from huobi.constant import *
from huobi.utils import *
market_client = MarketClient(init_log=True)
interval = CandlestickInterval.MIN5
symbol = "btc3lusdtnav"#ethusdt
list_obj = market_client.get_candlestick(symbol, interval, 10)
LogInfo.output("---- {interval} candlestick for {symbol} ----".format(interval=interval, symbol=symbol))
LogInfo.output_list(list_obj)


Point comma instead of comma.

I believe access user groups should be split by point comma instead of comma, otherwise they will be seen as one huge string and not an array of strings.

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

ID: f5519b89-2f5c-8f9a-4de2-34d350b084cf
Version Independent ID: 8690418c-79d4-d288-685f-5a103c32d17d
Content: Configure Domain-joined HDInsight clusters using AAD-DS
Content Source: articles/hdinsight/domain-joined/apache-domain-joined-configure-using-azure-adds.md
Service: hdinsight
GitHub Login: @omidm1
Microsoft Alias: omidm

@nysthee Thank you for your feedback. Since all array elements are separated by ,(comma) in programming world, it is designed like that. If you still want to provide this feedback , We encourage you to provide it in our user voice platform.

@nysthee We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

I understand, but then it is a bug. When I put in a string with commas they get parsed as a string with commas in the arm template. When I use comma point it gets parsed as a list of strings (that’s how it’s documented in the arm hdinsight reference).

@nysthee Thanks for the feedback. That seems to be an issue, we are actively investigating and will get back to you soon.

@nysthee I think the split function should help you with your issue. Please take a look and let me know, if that helps.

Thank you for the feedback but the issue occurres when deploying from the portal. When your put in a string with comma separated user groups they are treated as one string and if you use dot comma it gets split correctly.

@nysthee Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@nysthee Yes, the portal field says to use semicolon (;) to separate the groups. I think we should update the docs to match. Thanks, Jason


Refactor OpenSSL 'EdDSA' EVP_SIGNATURE to allow use with EVP_PKEY functions

Add EVP_PKEY_{sign,verify}_message support for our Ed25519 and Ed448
implementations, including ph and ctx variants.
Tests are added with test_evp stanzas.

This include the commits from #23416.  Only the last two commits are part of this PR

Note that ED25519ph and ED448ph support being used with EVP_PKEY_sign_init_ex2().  In that case, it's assumed that the caller does the prehash.  This is currently not tested, pending added stanzas (can be added in another PR)

Note that ED25519ph and ED448ph support being used with EVP_PKEY_sign_init_ex2(). In that case, it's assumed that the caller does the prehash. This is currently not tested, pending added stanzas (can be added in another PR)

It dawned on me that simply copying the existing ED25519ph / ED448ph stanzas and pre-hashing the input myself is the answer...

I've also added the possibility to use ED25519 and ED448 with EVP_PKEY_{sign,verify}init functions, with the condition that the corresponding ph instance must be set through params (ctrls).  This matches the usual EVP_PKEY{sign,verify}_init assumptions.
This is to support use cases that I think are asked for in #13523 and other similar issues.

Rebased on top of a fresher #23416

Rebased again on top of a fresher #23416

Now that #23416 has been merged, time to review this!

CI failures are relevant.

Re the CIs, I'm told that I can ignore a failing Provider compatibility for PRs / cross-testing (PR, branch-master).  All others are good.

@levitte there are some unresolved comments - please open the Files changed view and look at the unresolved comments.

@levitte there are some unresolved comments - please open the Files changed view and look at the unresolved comments.

I believe I've addressed them all now

Rebased on top of fresh master.  Shouldn't impact on reviews

Should I squash the fixup commits and push that (on top of same base)?  The force-push link will show if anything changed.

24 hours has passed since 'approval: done' was set, but as this PR has been  updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Merged into master
1751334f59816d675a1ea85e98434a8231a58efe Refactor OpenSSL 'EdDSA' EVP_SIGNATURE to allow use with EVP_PKEY functions
66966827740a04249300b0b25735e9d4c9bcab26 Add ED25519 and ED448 support for EVP_PKEY_{sign,verify}_init_ex2()
:


Fixed issues when compiling as shared library together with PKCS#11 helper

PKCS#11 support was not really available, due to the #define being inside
a comment block in include/polarssl/config.h.
In addition, it didn't link in pkcs11-helper at all, which would make it
fail later on when PolarSSL and PKCS#11 was enabled.  Causing a build
error later on.
Signed-off-by: David Sommerseth<EMAIL_ADDRESS>

The CMakeLists part has been integrated some time ago. The change in config.h is not desirable because we don't want to depend on libpkcs11-helper by default.


After I set the target .NET framework to netstandard2, I ran into the following error.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ML.Data, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
at SentimentAnalysis.Program.Main(String[] args)
I was using SentimentAnalysis example

You can try reinstall visual studio.

We'll take a look!

#442

This is a bug in the .NET Full Framework non-SDK-style project format. We are pursing a permanent fix with the .NET team.
To get unblocked, upgrade your .NET Framework project to use the SDK-style, or start a new project using .NET Core. Checkout this blog  by Scott Hanselman for more help.
If you can't upgrade to the SDK-style, use the following to get unblocked with the non-SDK-style project format..

Set the target platform to x64
<PlatformTarget>x64</PlatformTarget>

Add a package reference to your project for Microsoft.ML (latest version)
<PackageReference Include="Microsoft.ML" Version="1.5.0-preview" />

Hope this helps!

Closing, please see workaround above. If you're still experiencing this problem please ping me and we'll reopen the issue. Thanks!


'write_list' should be allowed in schema for ansible-lint configuration

The ansible-lint docs still show that write_list is valid in the configuration file, but the current schema does not accept it.

PR welcomed!


process.env.no_proxy is ignored / not working correctly

I'm unfortunate enough to have to work behind a corporate proxy. Mostly it works but I have issues when working on localhost or <IP_ADDRESS> or basically anything where I need to ignore the proxy for development purposes - otherwise proxy will map my http requests to corporate urls.
I set as required all the following env variables:
HTTPS_PROXY, HTTP_PROXY, NO_PROXY, https_proxy, http_proxy and no_proxy.
However, when making calls using the request library it doesn't work.
We instantiate the request library using our own wrapper library that does the following:
var defaultOptions = _getDefaultOptions();
this.request = request.defaults(defaultOptions);

Where _getDefaultOptions() is as follows:
function _getDefaultOptions() {
    var options = {};

    _checkProxies(options);
    _checkCertificates(
        ['/etc/pki/certificate.pem'],
        options
    );

    if (!options.cert) {
        var defaultClientCertificatePair = {
            certLocation: '/etc/pki/tls/certs/client.crt',
            keyLocation: '/etc/pki/tls/private/client.key'
        };
        _checkCertificateKeyPair([defaultClientCertificatePair], options);
    }

    options.rejectUnauthorized = false;

    return options;
}

Further debugging revealed that the issue is because the method getProxyFromUri is never entered (https://github.com/request/request/blob/master/request.js#L170)
This is because the block (https://github.com/request/request/blob/master/request.js#L427)
if(!self.hasOwnProperty('proxy')) {
   self.proxy = getProxyFromURI(self.uri)
}

To invoke the above method is never entered is set. I'm just wondering why self.hasOwnProperty('proxy') needs to be false for it to getProxyFromURI. Are we instantiating the client incorrectly or is there a bug here?

You didn't post the code for your _checkProxies function, but I suspect it is setting options.proxy.  This line in the proxy documentation is key:

When HTTP_PROXY / http_proxy are set, they will be used to proxy non-SSL requests that do not have an explicit proxy configuration option present.

Meaning that if the proxy option is specified then environment variables will be ignored.

Related discussion at #1096, #1195.  Closing, feel free to reopen if this doesn't address your issue.


File Incorrectly Being Picked Up by TS

When I run tsc this file is incorrectly picked up even after explicitly setting skipLibCheck and exclude options on tsconfig.json.
node_modules/@elysiajs/apollo/src/index.ts:65:41 - error TS2345: Argument of type 'string | (() => Promise<string>)' is not assignable to parameter of type 'ReadableStream<any> | BlobPart | BlobPart[] | FormData | URLSearchParams | null | undefined'.
  Type '() => Promise<string>' is not assignable to type 'ReadableStream<any> | BlobPart | BlobPart[] | FormData | URLSearchParams | null | undefined'.

65                     return new Response(landingPage, {
                                           ~~~~~~~~~~~

Found 1 error in node_modules/@elysiajs/apollo/src/index.ts:65

Even vscode picks it up!

Hoping to get this fixed with https://github.com/elysiajs/elysia-apollo/pull/5


updated digest value for license provider image

Signed-off-by: Yuchen Shen

/cherry-pick release-ltsr


new update fails

new update always fails

Any more specifics could really help. E.g. your settings, your custom folders content? Does it fail to load, or breaks on a specific tab?

it failed completely from the beginning. but today it was able to update.


Add possibility to add dependencies to the image

It is now possible to add resources defined in the project, but it is not possible to add a dependency to an image. If I have a project that has a dependency on artifactX, I want to have that artifactX in the generated image. Right now, you have to combine multiple plugins to have the dependency as a resource and then being able to add the resource. It would be nice to be able to explicitly declare a dependency as a <resource>. See maven assembly plugin and the assembly descriptor.

@jorgemoralespou What kind of dependencies are you looking to add? debian packages or jars?

Maven compile and runtime dependencies, that is jar files.
Today, I'm using spring-boot and fat-jars but that means that every docker image has a new layer with a 38MB jar. That's spring, jetty, camel, guava and more. These normally do not change. And my microservice is only 28Kb. This is what's really changed.
From another maven docker plugin

1.1. Building Images
One purpose of this plugin is to create Docker images holding the actual application. This is done with the docker:build goal. It is easy to include build artifacts and their dependencies into an image. Therefore, this plugin uses the assembly descriptor format from the maven-assembly-plugin to specify the content which will be added from a sub-directory in the image (/maven by default). Images that are built with this plugin can be pushed to public or private Docker registries with docker:push.
https://fabric8io.github.io/docker-maven-plugin/

One way to achieve this goal would be to not build an uberjar and to supply a Dockerfile of your own, which disables the plugin's logic of trying to generate one for you.
You can use the maven-dependency-plugin to copy all of your dependencies to a directory, such as target/lib:
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.10</version>
            <executions>
              <execution>
                <phase>prepare-package</phase>
                <goals>
                  <goal>copy-dependencies</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <useBaseVersion>false</useBaseVersion>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
              <includeScope>runtime</includeScope>
              <outputDirectory>${project.build.directory}/lib</outputDirectory>
            </configuration>
          </plugin>

and then configure the maven-jar-plugin to add a classpath entry to the jar's manifest that also refers to target/lib:
          <plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.6</version>
            <configuration>
              <archive>
                <addMavenDescriptor>true</addMavenDescriptor>
                <manifest>
                  <addClasspath>true</addClasspath>
                  <classpathPrefix>lib/</classpathPrefix>
                  <mainClass>${jar.entrypoint}</mainClass>
                </manifest>
              </archive>
            </configuration>
          </plugin>

Your Dockerfile should then copy the contents of target/lib into the image, and also the jar containing your project's source code:
COPY target/lib /usr/share/your-service/lib
COPY target/your-jar.jar /usr/share/your-service/your-jar.jar

Finally, the entrypoint to your image would basically just run `java -jar /path/to/your.jar`:

ENTRYPOINT ["/bin/bash", "-c", "exec /usr/bin/java $JVM_DEFAULT_ARGS $JVM_ARGS -jar /usr/share/your-service/your-jar.jar "$@"", "bash"]

Since each new command in the Dockerfile creates a new layer, this results in the layer containing your project JAR (which conceivably changes on each commit) to a layer containing just your project's dependencies (which conceivably change much less often).

This is the basic strategy that most of the images that we build internally in Spotify use.

@mattnworb you should consider adding this ^ to README, as I'm sure a lot of users would like to build a self contained image with all dependencies included.
Great job btw :)


Add Gate.io Spot and Perpetuals Candles Feed

Description
A new Candles Feed for Gate.io Spot and Perpetuals
Should implement the CandlesBase class like the Binance candles.
Support web sockets to stream new messages and rest to collect historical data
Contains unit tests and meets % coverage requirements
You can find the candles feed inside hummingbot/data_feed/candles_feed
Bounty
Sponsor: Hummingbot Foundation
Bounty Amount: 100,000 HBOT
Developer Payment: 100,000 HBOT (100%)
Status: Open

i'd like to accept this ticket

This bounty is assigned to @yancong001 , thank you for contribution

hi @yancong001 Are you working on this one? Could you please provide any updates on this bounty? Thanks

Upon discussion with the team. We are increasing the bounty for this task to 100k each connector (Gate.io spot and Gate.io perpetual) so it is 200 000 HBOT now

Sponsor: Hummingbot Foundation
Bounty Amount: 200,000 HBOT (100 000 HBOT for each connector, Gate.io spot and Gate.io perpetual)
Developer Payment: 200,000 HBOT (100%)

here https://github.com/hummingbot/hummingbot/pull/6351

This enhancement was introduced and merged in https://github.com/hummingbot/hummingbot/pull/6351, however gate.io perpetual data from gate.io side is inaccurate, as mentioned in the PR6351

Thanks for your participation, the bounty has been sent to @yancong001 . The feature has been deployed on development branch and next hummingbot version 1.17.0


hub: fix incorrect hash

Motivation for this change
I'm new to Nix so correct me if I misunderstand something. When I tried to install hub I got the below error:
output path ‘/nix/store/r5v6p7zh6av5y7m50vgb0ksqwh2psmiq-hub’ has r:sha256 hash ‘1vswkx4lm6x4s04453qkmv970gjn79ma39fmdg8mnzy7lh2swws6’ when ‘0iwpy50jvb8w3nn6q857j9c3k7bp17azj8yc5brh04dpkyfysm02’ was expected
cannot build derivation ‘/nix/store/wgnqdzxv2lp2rr94s7n2d6jxbmhnr69a-hub-2.2.3.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/wgnqdzxv2lp2rr94s7n2d6jxbmhnr69a-hub-2.2.3.drv’ failed

Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

May be due to https://github.com/NixOS/nixpkgs/pull/15469.


When using OpenSea Polygon Minting Contract, no NFT image is found

When using OpenSea Polygon Minting Contract 0x2953399124F0cBB46d2CbACD8A89cF0599974963, no NFT image is found.
For example, this NFT on open sea:
https://opensea.io/assets/matic/0x2953399124f0cbb46d2cbacd8a89cf0599974963/104266429279353206028968205808007262092071789057064791600420254975229853433857

is using smart contract 0x2953399124F0cBB46d2CbACD8A89cF0599974963 and token<PHONE_NUMBER>79353206028968205808007262092071789057064791600420254975229853433857
yet, useNFT is unable to find the image

Hi, I tried with the Alchemy API through the Ethers provider, it seems to work:
https://codesandbox.io/s/shy-glade-0y6jzz?file=/src/App.js
Note that it’s using the version published with the next tag (use-nft@0.11.0-rc.0), but it should work with the current stable too.
If you have a different setup, could you please provide an example? Thanks!

@kolbis I am closing this issue, please reopen if the example doesn’t fix your issue :slightly_smiling_face:

In the example you added matic provider since you know in advanced that the NFT is on polygon.
const fetcher = [
  "ethers",
  {
    provider: new providers.AlchemyProvider(
      "matic",
      "pFcGSiHgfuWob6xxXN3p4ywQWbDcoSBy"
    )
  }
];

What if I need to have some NFTs taken from polygon and others from eth mainnet?
How would you setup such use case?

I would do it this way: https://codesandbox.io/s/use-nft-issue-176-2-kspiyj

Thanks you for this :)
works like a charm

Cool :)


/verifyme Command

Step 1
Needs: A nation name.
Replies with: A message describing the next step.
Verification workflow is started for the given nation.
Step 2
Needs: reply containing "api" or "telegram".
Replies with: A message describing the next step.
Telegram: A telegram with an Ownership Verification Code (OVC) is sent to the nation.
API: The NS API is used for verification.
Step 3
Needs: reply containing verification code.
Replies with: Verification or rejection message.
If the verification code is correct, the basic roles are assigned to the discord user.

Do we want to continue keeping step 3 as-is? OVC's haven't been used in a while. Is it still a functionality we should dedicate time to?

Do we want to continue keeping step 2 as-is? OVC's haven't been used in a while. Is it still a functionality we should dedicate time to?

I would rather suggest following approach:

Trigger Flow on User Joined ->
"Do you have a NationStates Nation name?" -> Yes, ask ; No, assign Foreigner Role
Or 1.1 Trigger Flow via /verify with nationName
If the user has already been verified skip to 3. Otherwise use NS API to do the verification. This should take place in dm or with a ephemeral SlashCommand Interaction
Assign a Verified Role, if not present. If nation is known to be Citizen assign Citizen Roles. If nation is know to be in WA assign WA Roles

To receive Citizen Roles after e.g. endorsing the delegate just run the command again. Verification is skipped and roles get assigned.
In the future with a corresponding event mechanism WA & Citizen Roles should be assigned automatically when there Events occur. Multiple verification invoccation would not be necessary in that case. But that is Out of Scope for this issue.


noUncheckedIndexedAccess gives unexpected behavior for string.split

TypeScript Version:  4.1.2

Search Terms:
4.1.2 split
Code
const [a] = 'a:b'.split(':');

Expected behavior:
typeof a should be string
string.split ALWAYS return string at first position
Actual behavior:
tyeof a is string|undefined

Do you have noUncheckedIndexedAccess turned on?

Yes

Then you did not read the release notes:

But "more trickly" !== incorrect.
First item of string.split NEVER will be empty.

String.split returns an array. You're indexing into the array.

First item of string.split NEVER will be empty

This is actually tricky since it depends on the splitter argument. "".split("") is []
I don't think we want to bother special-casing the result of this function based on the split input.

This is actually tricky since it depends on the splitter argument. "".split("") is []
I don't think we want to bother special-casing the result of this function based on the split input.

So the only case that the first element in the array can be undefined is if both the string being split, and the separator are an empty string?
I think in almost all most situations this is not the case, and I wish typescript could handle that better:
Option 1:  in situations in which one of the strings (the one being split, or the separator) are known in advanced to be not empty, typescript should interpret the first item of the resulting array to be defined.
Option 2: expose a dedicated tsconfig flag for this scenario, to be used together with noUncheckedIndexedAccess, in order to customize the behavior of split, so that the first item is always defined. I would use this flag as I can live with the edge case of ''.split('')

You can put this in your project
interface String {
    split(splitter: ""): string[];
    split(splitter: string): [string, ...string[]][];
}

We don't need a commandline flag for that.

@RyanCavanaugh thanks for the tip! But just in case anyone else stumbles upon this, I believe the correct typing is
interface String {
    split(splitter: ""): string[];
    split(splitter: string): [string, ...string[]];
}

(no brackets at the end of the second split)


[GH-243] Added udrl cut logic.

4 direction cutting on the grid now supported. Default keybindings are WASD (capitalized).

updated

Thanks, merged.


Provide custom SecurityScheme for a specific endpoint

Is there any way to provide SecurityScheme to a specific API endpoint? Looks like its only used in a global options and there is no way to provide custom auth for a single endpoint even with custom header because ParameterLocation.Header is not used anywhere

There is limited support for overriding the default security scheme. The decorator @webmethod takes a Boolean parameter called public, which can make an endpoint publicly accessible, requiring no prior authentication. This is one of the last examples in the sample code:
class Endpoint(JobManagement, PeopleCatalog, Protocol):
    @webmethod(route="/auth", public=True)
    def do_authenticate(self, credentials: Credentials) -> TokenProperties:
        ...

Other than this bare-bone support for disabling authentication, I don't think the library exposes any per-endpoint override capabilities. If there is support for this in OpenAPI, integrating this feature would likely require extending @webmethod with new arguments to pass the per-endpoint security scheme.

Looks like OpenAPI 3.0.0 provides security requirement for a specific operation
Anyway, is there any way to provide header option in a request schema? Greping whole library sources gives no results
kinda so:
@dataclass
class AuthSchema:
    x_token: Annotated[str, ParameterLocation.Header]

You would want to create a SecuritySchemeAPI object (meant for specifying authentication via an API key) and use its in_ parameter to set one of the ParameterLocation enumeration values. ParameterLocation is defined in specification.py.


About the performance of select * from xxx limit 1

Hi folks,
I did select * from xxx limit 1 in single-instance influxdb in prod and it crashes due to increditable amounts of memory and cpu comsumptions.... very slow... Now I am seeking the replacement of it and druid looks like a good replacement of influxdb.
I checked the documentation that says the query results will be based on sort key. I am wondering about the performances of druid on select * from xxx limit 1.
Thanks.

@Kiddinglife this is the Druid project

I am goign to reopen this as the original author changed the name of the project he was inquiring about to Druid

I think @Kiddinglife is asking about druid's select * performance

I think @Kiddinglife is asking about druid's select * performance

He originally had Clickhouse before he updated this question.

@Kiddinglife would you have a where clause or are you literally looking to pull the first row of the table?

@vogievetsky the reason why I need such uncommon query is that I need all of field names of mesurement of influxdb and the most-recent data's timestamp but influxdb does not provide built-in api for my specific needs.

@Kiddinglife select * from xxx limit 1 would run quickly: essentially what it will do is pick some segment, pull the first row out, and return it to you. Note that adding an order by __time or order by __time desc would slow it down in current versions of Druid, though. https://github.com/apache/incubator-druid/pull/7133 speeds up select-with-time-ordering dramatically and will be available in 0.15.0 (due to be released soon).
That being said, for your stated desires, it would be even better to use specific APIs for those two things.

For all field names, use the INFORMATION_SCHEMA: https://druid.apache.org/docs/latest/querying/sql.html#retrieving-metadata
For the most-recent data timestamp, use a timeBoundary native query: https://druid.apache.org/docs/latest/querying/timeboundaryquery.html

Both of these are highly optimized and will be even faster than doing a limited select query.

@gianm I see. Thanks.


feat: add go_router package

Already added in an upcoming merge. Plus, the commit history of this branch is bad


Add Emails Datasource

Adds a IEmailDataSource – this component can be used to interact with the underlying data source which stores the email addresses for a given signer, for a given safe address on a specific chain. The following functionality was added:

saveEmail – saves an email address in the database. Returns a verification code if it was successfully stored.
resetVerificationCode – resets the verification code for a signer. Returns the new verification code if successful.
verifyEmail – verifies a specific email given the code that was returned on registration. If the code matches then the email is considered verified. There's a configurable expiration time for the code that was introduced for security reasons – the code needs to be verified within a given timeframe to be considered valid. If the code is not verified in this timeframe then it should be reset.

Adds two database tables – signer_emails and verification
These two tables are present under the emails schema.

The signer_emails table is representes as follows:

id
chain_id
email_address
safe_address
signer
verified

SERIAL PRIMARY KEY
int NOT NULL
text NOT NULL
character varying(42) NOT NULL
character varying(42) NOT NULL
boolean NOT NULL DEFAULT false

A unique constraint exists for entries on signer_emails: an entry is considered unique when the following fields are considered: chain_id, email_address, safe_address, signer.

The verification table is represented as follows:

id
verification_code
sent_on

SERIAL PRIMARY KEY REFERENCES signer_emails
text NOT NULL
timestamp with time zone DEFAULT now()

Adds a migration file which creates signer_emails and verification. The migration is done whenever the PostgresDatabaseModule is initialised (via the PostgresDatabaseMigrationHook)
Adds a migration helper – this was taken from https://github.com/porsager/postgres-shift but converted to a CommonJS module to integrate better with the current project.
Adds a db-test container to Docker Compose – this way, given a development environment, two databases can be launched: the db one with the mapped volume for development and the db-test with no mapped volumes which can be used for testing.
The db-test container has different environment variable to setup its own location and default user. By default db will be exposed on port 5432 of the host while db-test will be exposed on port 5433.

Out of scope

The code generation should be considered out of scope of this Pull Request – the one introduced here is used merely for demonstration purposes and should not be considered production ready.
The domain layer is out of scope.
The routes layer is out of scope.
Database security/encryption mechanisms.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

68 of 85 (80.0%)  changed or added relevant lines in 10 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 90.878%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/datasources/db/postgres-database.shutdown.hook.ts
0
1
0.0%

src/datasources/email/email.datasource.ts
36
37
97.3%

src/domain/interfaces/email.datasource.interface.ts
0
1
0.0%

src/datasources/db/migration.helper.js
24
26
92.31%

src/datasources/db/postgres-database.module.ts
0
2
0.0%

src/datasources/db/postgres-database.migration.hook.ts
0
10
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/routes/transactions/entities/tests/human-description.builder.ts
1
80.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
5098

Relevant Lines:
5470

💛  - Coveralls

Great job! I've left some small comments.
I also have a more general concern: this PR implements the datasources layer part for dealing with emails and verifications. But I think some business logic is being included here, like time-related calculations or conditional error checks. I know the domain layer part is out of scope, so I'm curious about whether is it planned to move those things (and their tests) to the domain layer later or if it's considered part of the datasources layer.

I completely agree with this. I got ahead of myself and started doing validations that I had in mind on the DataSource. I will remove those so overall the DataSource will become simples and perform less validations.
Those will be moved to the domain layer instead.

Converted to draft as there were some core changes made and I will review this more carefully before pinging again for review.