How to solve Customized User clash with User?

Softwares
Python: 3.6.8
Django: 2.2.2
OSX: 10.14.2
django-cognito-jwt: 0.0.3
According to #3 I have to customized my User model. Neither single one of the works. I had tried both too.
Case 1: only COGNITO_USER_MODEL
COGNITO_USER_MODEL = "cognitos.User"

Result:
SystemCheckError: System check identified some issues:

ERRORS:
auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'.
	HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'.
auth.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'.
	HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'.
cognitos.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'.
	HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'.
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.
cognitos.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'.
	HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'.

Case 2: Only AUTH_USER_MODEL
AUTH_USER_MODEL = "cognitos.User"

Result:
SystemCheckError: System check identified some issues:

ERRORS:
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.

Case3: Both COGNITO_USER_MODEL and AUTH_USER_MODEL
COGNITO_USER_MODEL = "cognitos.User"
AUTH_USER_MODEL = "cognitos.User"

SystemCheckError: System check identified some issues:

ERRORS:
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.

What is the correct approach using this library?

I found the solution now. I have to startapp with customized User class
import uuid

from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin, UserManager, AbstractUser
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.db import models, IntegrityError
from django.utils import timezone
from django.utils.translation import gettext_lazy as _

class CustomizedUserManager(UserManager):
    def get_or_create_for_cognito(self, payload):
        cognito_id = payload['sub']

        try:
            return self.get(cognito_id=cognito_id)
        except self.model.DoesNotExist:
            pass

        try:
            user = self.create(
                cognito_id=cognito_id,
                email=payload['email'],
                is_active=True)
        except IntegrityError:
            user = self.get(cognito_id=cognito_id)

        return user

class User(AbstractBaseUser, PermissionsMixin):
    username_validator = UnicodeUsernameValidator()

    username = models.CharField(
        _('username'),
        max_length=150,
        unique=True,
        help_text=_('Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.'),
        validators=[username_validator],
        error_messages={
            'unique': _("A user with that username already exists."),
        },
    )
    first_name = models.CharField(_('first name'), max_length=30, blank=True)
    last_name = models.CharField(_('last name'), max_length=150, blank=True)
    email = models.EmailField(_('email address'), blank=True)
    is_staff = models.BooleanField(
        _('staff status'),
        default=False,
        help_text=_('Designates whether the user can log into this admin site.'),
    )
    is_active = models.BooleanField(
        _('active'),
        default=True,
        help_text=_(
            'Designates whether this user should be treated as active. '
            'Unselect this instead of deleting accounts.'
        ),
    )
    date_joined = models.DateTimeField(_('date joined'), default=timezone.now)

    EMAIL_FIELD = 'email'
    USERNAME_FIELD = 'username'
    REQUIRED_FIELDS = ['email']

    cognito_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    objects = CustomizedUserManager()

And add AUTH_USER_MODEL = 'customized_users.User' to settings.py

Do I really need to create a new app with startapp? I'm trying to get this to work within my existing app. But not having any luck.

But this error is before migrations. After adding AUTH_USER_MODEL, another error comes.

But this error is before migrations. After adding AUTH_USER_MODEL, another error comes.

But this error is before migrations. After adding AUTH_USER_MODEL, another error comes.
use , AUTH_USER_MODEL = 'nameOfApp.nameOfModel', should wourk just fine

But this error is before migrations. After adding AUTH_USER_MODEL, another error comes.
use , AUTH_USER_MODEL = 'nameOfApp.nameOfModel', should wourk just fine

What if I have multiple class inherited from AbstractUser?


Fix alpaca_preprocessor jagged tic-array error

@nikisix
thanks for your codes.
could you pls describe the functionality of this PR?  have you tested it?


Solution for using snap-svg in Vue

Hi all,
I've been reading about all the webpack-related issues, eve being undefined, and so on, and decided to put together a solution for using Snap.svg in Vue 3.
The solution is pretty straightforward, so should be relatively easy to map across to React, and it may even work in Vue 2 as-is.
Hope it helps.
Here's the gist.
Regards,
Andy

https://www.npmjs.com/package/snapsvg-cjs-ts

Used like this
<template>
  <svg id="svg"></svg>
</template>

<script>
import * as Snap from 'snapsvg-cjs'

export default {
  mounted() {
    this.drawChart();
  },
  methods: {
    drawChart() {

       var s = Snap('#tree');
       s.rect(0,0, 100, 100);

    },
  },
};
</script>

<style>
#svg {
  width: 100%;
  height: 100%;
}
</style>


& symbol in parameters gets stripped

Drone strips everything around '&' symbol when used a parameter value.
E.g. I want to pass a URL with query parameters like https://example.com/api/doStuff?param1=1&param2=2 as a parameter to a custom build, and the part &param2=2  gets stripped.

Original thread:
https://harnesscommunity.slack.com/archives/C028FPGCPF0/p1663606196367199

@andrii-kasparevych thanks for raising an issue✊  Our team is reviewing and I will keep you up to date if anything changes.

It's not striped, it's still there, but it's called param2 :)
Explanation:
From UI, it calls the drone API like:
https://droneserver.come/repos/x/xbuilds?branch=master&my_param=https://example.com/api/doStuff?param1=1&param2=2
The parameters are sent as query strings.
In the code it goes through each query param and sets the value. The raw query will look like this
branch=master&my_param=https://example.com/api/doStuff?param1=1&param2=2.
The issue is that & is treated as a new query value so env variables will be set like
branch=master
my_param=https://example.com/api/doStuff?param1=1
param2=2
Suggestion:
Use separate parameters in drone UI as params and in the pipeline create the final URL:
- echo ${my_param}?${param1}&${param2}


Add apiary.io to API Management

Hi @doschkinow for the new version (releasing soon) we are restructuring some categories. This unfortunately impacted the API Management category so without further information, I'm going to close this ticket for now but please let us know (providing more detail) if you propose including apiary elsewhere.


UseStatusCodePagesWithReExecute does not work if an endpoint returned 404 manually

Describe the bug
When using UseStatusCodePagesWithReExecute() to handle 404 errors, the 404 handler is not executed if the endpoint returned 404 manually (i.e. did context.Response.StatusCode = 404). UseStatusCodePagesWithRedirects() works just fine.
To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core '3.0.0-preview6.19307.2'

Run this code
 public class Startup {
     public void ConfigureServices(IServiceCollection services) { }

     public void Configure(IApplicationBuilder app) {
         // Uncomment either this:
         //   app.UseStatusCodePagesWithRedirects("/Status{0}");

         // Or this:
         //   app.UseStatusCodePagesWithReExecute("/Status{0}");

         app.UseRouting();
         app.UseEndpoints(endpoints => {
             endpoints.MapGet("Status404", async context => {
                 await context.Response.WriteAsync("Status404 handler was executed");
             });

             endpoints.MapGet("Weather/{city}", async context => {
                 var city = context.GetRouteData().Values["city"] as string;
                 if (string.Equals(city, "London", StringComparison.OrdinalIgnoreCase))
                 {
                     await context.Response.WriteAsync("Rainy");
                 }
                 else
                 {
                     context.Response.StatusCode = 404;
                 }
             });
         });
     }
 }

Observe the different behaviour when requesting /Weather/London, /Weather/Tokyo, and /DoesNotExistAtAll

/Weather/Tokyo executed the Status404 handler when using UseStatusCodePagesWithRedirects(), but returns an empty response (no "Status404 handler was executed") message when using UseStatusCodePagesWithReExecute()

Expected behavior
A clear and concise description of what you expected to happen.

/Weather/London
/Weather/Tokyo
/DoesNotExist

WithRedirects
"Rainy"
"Status404 handler was executed"
"Status404 handler was executed"

WithReExecute
"Rainy"
Empty response
"Status404 handler was executed"

Screenshots
If applicable, add screenshots to help explain your problem.
n/a
Additional context
The endpoint routing middleware checks if an endpoint has already been set here: EndpointRoutingMiddleware.cs#L58.
But the status code pages middleware does not reset the endpoint before re-executing the request: StatusCodePagesExtensions.cs#L175-L202.
Therefore the endpoint router will execute the same endpoint again. If this is in fact the expected behavior then I suggest updating the error handling documentation to warn about using UseStatusCodePagesWithReExecute() with the endpoint router.
As a workaround, I've written a middleware that sets the IEndpointFeature's Endpoint to null if the IStatusCodeReExecuteFeature is present.
Include the output of dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview6-012264
 Commit:    be3f0c1a03

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\

Host (useful for support):
  Version: 3.0.0-preview6-27804-01
  Commit:  fdf81c6faf

.NET Core SDKs installed:
  2.1.600 [C:\Program Files\dotnet\sdk]
  2.1.601 [C:\Program Files\dotnet\sdk]
  2.1.602 [C:\Program Files\dotnet\sdk]
  2.1.700-preview-009601 [C:\Program Files\dotnet\sdk]
  2.1.700-preview-009618 [C:\Program Files\dotnet\sdk]
  2.1.800-preview-009677 [C:\Program Files\dotnet\sdk]
  2.1.800-preview-009696 [C:\Program Files\dotnet\sdk]
  2.2.104 [C:\Program Files\dotnet\sdk]
  3.0.100-preview6-012264 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview6.19307.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview6-27804-01 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview6-27804-01 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Duplicate of https://github.com/aspnet/AspNetCore/issues/11233. The endpoint isn't getting cleared so the request doesn't re-route.
@pranavkm

Yup. Thanks for the detailed report @raphaelr. I'll make sure to verify this is addressed as part of #11233

Any updates / work arounds? It's not working for me either in .NET core 2.0

Comments on closed issues are not tracked, please open a new issue with the details for your scenario.
The above was only a temporary regression in 3.0, it did not apply to 2.0.


Improve the support of Cobol

Changed openTokens, closeTokens and neutralTokens for Cobol.

COBOL: {     caseSensitive: false,     ignoreInDelimiters: [],     inlineOpenTokens: [],     openTokens: ["perform *?until exit", "evalute", "perform( |\r|\n)*?varying(.|\r|\n)*?until", "if"],     closeTokens: ["end-evalute", "end-perform", "end-if"],     neutralTokens: ["else", "when"],   },

Thanks a lot release 0.7.8 should be live in few minutes


History for supergroup created from basicgroup

For supergroups created from basicgroups getChatHistory returns old messages only until "messageChatUpgradeFrom" message.  In official client preceding messages are also shown in chat window.
What is the correct method to fetch messages preceding "messageChatUpgradeFrom" message?
Thanks

You need to get Supergroup full info(getSupergroupFullInfo) first.
And getChatHistory by basic group id (upgraded_from_basic_group_id).
ref: https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1supergroup_full_info.html

@c0re100 is correct.
messageChatUpgradeFrom contains basic_group_id. Client needs to call createBasicGroupChat to get corresponding chat object, and then fetch older messages from the received basic group chat. messageChatUpgradeFrom and messageChatUpgradeTo are skipped in message history by clients in that case.
Also a case when the user never was a member of the basic group needs to be handled with care.

Thanks for your replies!

Can't you just add<PHONE_NUMBER>000 to supergroupId?

@MarioSaldanhaLobo No, this is a very incorrect way.

@c0re100 GetChatHistory(long chatId, long fromMessageId, int offset, int limit, bool onlyLocal);
how to get chatId? is it SupergroupFullInfo.LinkedChatId?
how to get fromMessageId? is it SupergroupFullInfo.UpgradedFromMaxMessageId?
How can I get Chat Members from Supergroup?
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterContacts(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterAdministrators(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterBots(), 0, 100), _defaultHandler);
return nothing...

@c0re100 GetChatHistory(long chatId, long fromMessageId, int offset, int limit, bool onlyLocal);
how to get chatId? is it SupergroupFullInfo.LinkedChatId?
how to get fromMessageId? is it SupergroupFullInfo.UpgradedFromMaxMessageId?
How can I get Chat Members from Supergroup?
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterContacts(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterAdministrators(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterBots(), 0, 100), _defaultHandler);
return nothing...

@c0re100 GetChatHistory(long chatId, long fromMessageId, int offset, int limit, bool onlyLocal);
how to get chatId? is it SupergroupFullInfo.LinkedChatId?
how to get fromMessageId? is it SupergroupFullInfo.UpgradedFromMaxMessageId?
How can I get Chat Members from Supergroup?
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterContacts(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterAdministrators(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterBots(), 0, 100), _defaultHandler);
return nothing...

Checkout TDLib doc first...........
https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1get_chat_history.html

@c0re100 GetChatHistory(long chatId, long fromMessageId, int offset, int limit, bool onlyLocal);
how to get chatId? is it SupergroupFullInfo.LinkedChatId?
how to get fromMessageId? is it SupergroupFullInfo.UpgradedFromMaxMessageId?
How can I get Chat Members from Supergroup?
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterContacts(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterAdministrators(), 0, 100), _defaultHandler);
_client.Send(new TdApi.GetSupergroupMembers(supergroupId, new TdApi.SupergroupMembersFilterBots(), 0, 100), _defaultHandler);
return nothing...

Checkout TDLib doc first...........
https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1get_chat_history.html


Youtube update and now bot doesn't work

I noticed that youtube has changed up their interface a bit today and when I got home and sent the bot a command to play our normal gaming playlist, it crashes. Here is the error:
[Command]<PHONE_NUMBER>57749760/JDizzle (youtube playlist URL removed)
Traceback (most recent call last):
File "/home/username/MusicBot/musicbot/bot.py", line 1931, in on_message
response = await handler(**handler_kwargs)
File "/home/username/MusicBot/musicbot/bot.py", line 913, in cmd_play
numsongs = sum(1 for  in info['entries'])
File "/home/username/MusicBot/musicbot/bot.py", line 913, in
numsongs = sum(1 for  in info['entries'])
File "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/youtube.py", line 272, in _entries
content_html = more['content_html']
KeyError: 'content_html'
Will there have to be a code update or is there something I need to do? Thanks!

I'm getting the same error when I use !pldump command, must be youtubes new interface or something.

I get the same error only when I try to load playlists with 1k songs from youtube. My other playlist which only has 100 songs works though.

@nattheraskal Interesting. The playlist we use only has around 270 songs.

Oh yeah, wanted to mention in case someone wondered, our playlist already had over 200 songs in it prior to this issue. There may be a limit but I know it isn't specifically 100 songs due to this fact. Thanks.

This is due to the new Youtube API Update

Might have to wait on a patch for this on youtubedl :/

Should work now, my bot was working fine yesterday and still does

@FIERCEDINO080 Same, looks like it just needed some time

I appreciate the input but it still doesn't work. I've just started using the bot at rythmbot.co. Less hassle.


Update TypeScript to 5.1.3

Change-type: patch

Resolves: #
HQ:
See:
Depends-on:
Change-type: major|minor|patch

Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

I self-certify!


Replace deprecated hardware test for littlefs

Description
The old FileSystem.test.cpp was using the deprecated implementation in FileSystem.hpp/cpp. The new Littlefs.test.cpp tests the implementation in LfsFlash.cpp.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.34%. Comparing base (415e6a2) to head (2d230c7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #331   +/-   ##
=======================================
  Coverage   79.34%   79.34%
=======================================
  Files          47       47
  Lines        1578     1578
  Branches       57       57
=======================================
  Hits         1252     1252
  Misses        326      326

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


Add abi3audit check for stable ABI violations to CI

Only applies to CPython>=3.12.

Nice, the wheel ABI tag comes out correct, and no ABI violations are found (although it would probably be hard to produce one with just the given example?).

When compiling stable ABI wheels, are you passing Py_LIMITED_API? (Without that flag, nanobind will index into various version-specific data structures, but such a violation may not necessarily be found by an ABI audit that checks for the presence of disallowed symbols)

I compile the nanobind .so with -DPy_LIMITED_API=0x030?0000, given via the selected ABI version here:
https://github.com/nicholasjng/nanobind-bazel/blob/97e3db2744d3f5da244a0846a0644ffb074b4880/helpers.bzl#L17-L22
I pass that as a define to @nanobind//:nanobind here:
https://github.com/nicholasjng/nanobind-bazel/blob/97e3db2744d3f5da244a0846a0644ffb074b4880/nanobind.BUILD#L33
which by default propagates to consuming rules. I do not, however, define the Py_LIMITED_API macro in the setuptools.Extension, for example in your nanobind_example, but that should not be an issue, since setuptools' C++ toolchain is not used by Bazel.
Does that seem correct?

The first part sounds good, the second part I don't understand. In the nanobind_example, it's cmake that produces the commands that will eventually compile and link code, hence it is the component responsible for setting these flags. I don't think setuptools does anything interesting here besides, perhaps, choosing the name of the final wheel.

Sorry, I meant on the bazel branch which you allowed me to push, that contains a setuptools+Bazel approach (though it's very rough).

got it, thanks!


Develop more consistent way of highlight widgets

Our current strategy for highlighting uses a widget wrapping scheme: https://github.com/lukechurch/flit/blob/master/mutation_runner/lib/diagnostics.dart#L23
This doesn't work when we're wrapping some things, such as the AppBar.
We need a scheme that works reliability across all Flutter elements.

Talking with the Flutter team, there are are debug rendering flags and methods we can use.
DebugPaint: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/box.dart#L1843
Flags: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/debug.dart
Example: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/box.dart#L1810
In the long term this might need to use https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/object.dart#L2092 as not all objects extend RenderBox


Find Command on birthday needs to reflected accurately

find b/BIRTHDAYMONTH instead of b/BIRTHDAY
Need to update UserGuide and all affected message usages.

#198 already raises the issue


#23811 fix android versioning

The updateLocalProperties method is called multiple times,
sometimes without providing a buildInfo.
If it is called without buildInfo it uses the buildName / buildVersion
from the manifest and overrides the result of the earlier call with buildInfo.

This will need a test.

Why are we calling updateLocalProperties multiple times? That seems like a more serious problem.
cc @zanderso

It is called 3 times, the first and the last without buildInfo. The last one had overwritten the setting and led to this bug.

I have no idea how to write a test which matches this bug because it has to test the whole Android build.
A test only for updateLocalProperties will not catch this bug.

@Hixie
This problem is caused by logic below:
a. (Set properly with updateLocalProperties)
Future<void> buildGradleProject({
  @required FlutterProject project,
  @required BuildInfo buildInfo,
  @required String target,
}) async {
  // Update the local.properties file with the build mode, version name and code.
  // FlutterPlugin v1 reads local.properties to determine build mode. Plugin v2
  // uses the standard Android way to determine what to build, but we still
  // update local.properties, in case we want to use it in the future.
  // Version name and number are provided by the pubspec.yaml file
  // and can be overwritten with flutter build command.
  // The default Gradle script reads the version name and number
  // from the local.properties file.
  updateLocalProperties(project: project, buildInfo: buildInfo);

  final String gradle = await _ensureGradle(project);

  switch (getFlutterPluginVersion(project.android)) {
    case FlutterPluginVersion.none:
      // Fall through. Pretend it's v1, and just go for it.
    case FlutterPluginVersion.v1:
      return _buildGradleProjectV1(project, gradle);
    case FlutterPluginVersion.managed:
      // Fall through. Managed plugin builds the same way as plugin v2.
    case FlutterPluginVersion.v2:
      return _buildGradleProjectV2(project, gradle, buildInfo, target);
  }
}

b. (Set inproperly with _buildGradleProjectV2)
Future<void> _buildGradleProjectV2(
    FlutterProject flutterProject,
    String gradle,
    BuildInfo buildInfo,
    String target) async {
  final GradleProject project = await _gradleProject();

Future<GradleProject> _gradleProject() async {
  _cachedGradleProject ??= await _readGradleProject();
  return _cachedGradleProject;
}

Future<GradleProject> _readGradleProject() async {
  final FlutterProject flutterProject = await FlutterProject.current();
  final String gradle = await _ensureGradle(flutterProject);
  **updateLocalProperties(project: flutterProject);**

As this call for updateLocalProperties brings buildinfo with null, the local.properties is reset again.

@Hixie
You may also have a look at #24743
However, the current logic still make hard to do related testing to avoid further regression.

I close this because https://github.com/flutter/flutter/pull/24743 is a better fix


Clickable links must be visually distinguished

New dashboard:

Old dashboard:

Observe that clickable links (host names) are visually distinguished as links using the normal link style.  It would be my strong preference that we do not deviate from this, having to search for something that's clickable by hovering over this and that is not fun, and has poor discoverability.

(This goes for other clickable things too, such as user names and job numbers.)


[BUG] - Connection issue on HTTPS

UE Version:
E.g. UE 5.1.1
Frontend Version:
E.g. UE5.3-0.3.0
Problem component
Connection failed in https in React Js library
Description
I am currently developing a web conference application using React.js and pixel streaming with the @epicgames-ps/lib-pixelstreamingfrontend-ue5.4 library. The application works flawlessly when running on localhost using HTTP, but encounters issues when attempting to connect via HTTPS.
Steps to Reproduce:

Run the application on localhost using HTTP.
Connect to pixel streaming and verify that it works as expected.
Update the application to use HTTPS.
Attempt to connect to pixel streaming, observe the issue.

**Code Snippet: **
`import { PixelStreamingWrapper } from './pixel-streaming-wrapper';
function PixelDom() {
return (

<div style={{ overflow: 'hidden', height: '100%', width: '100%' }}>
<PixelStreamingWrapper
initialSettings={{
AutoPlayVideo: true,
AutoConnect: true,
ss: 'wss://localhost:80',
StartVideoMuted: true,
HoveringMouse: true,
WaitForStreamer: true,
}}
/>

);
}
 {
"UseFrontend": false,
"UseMatchmaker": false,
"UseHTTPS": false,
"UseAuthentication": false,
"LogToFile": true,
"LogVerbose": true,
"HomepageFile": "index.html",
"AdditionalRoutes": {},
"EnableWebserver": true,
"MatchmakerAddress": "localhost",
"MatchmakerPort": "9999",
"PublicIp": "localhost",
"HttpPort": 81,
"HttpsPort": 442,
"StreamerPort": 8887,
"SFUPort": 8881,
"MaxPlayerCount": -1
}
`
Additional context
How can we start react js through pixel streaming

Yes i fixed it by upgrading the version


Problems when using generated input types from Hasura backend

I'm facing several issues trying to execute mutation on a F# backend towards Hasura, sending instances of the generated input types, such as
type Example_insert_input =
    { AnotherType: Option<AnotherType_obj_rel_insert_input>
      anotherType: Option<string>
      id: Option<string>
    }

When using default serializer Newtonsoft.Json, it throws an exception A member with the name 'anotherType' already exists on 'KrevS2Graphql.SkillModelVersion_insert_input'. Use the JsonPropertyAttribute to specify another name.
When using System.Text.Json ("system") serializer, Hasura return an error due to a mismatch between discriminated union names. Upon further investigation, this is caused by the fact that the CompiledName attributed is not respected.
Next step is to set "normalizeEnumCases" to false.
This solves the previous issues, but another error is given back by Hasura: expected an object for type 'Example_bool_exp', but found null. So, it looks like properties set to None on the various types generated by Snowflaqe are not serialized in a way that Hasura correctly receive them - I think those properties should be excluded, instead of defined with a null value.

I think I found the root problem for the last stopper
https://github.com/Tarmil/FSharp.SystemTextJson/issues/140

Hi there @gmlion thanks for filing the issue! I am able to reproduce it locally with a console app as follows:
open Newtonsoft.Json
open Fable.Remoting.Json

type Example_insert_input =
    { AnotherType: Option<int>
      anotherType: Option<string>
      id: Option<string>
    }

let fableJsonConverter = FableJsonConverter() :> JsonConverter

let input = {
    AnotherType = Some 1
    anotherType = Some "test"
    id = Some "test"
}

let settings = JsonSerializerSettings(DateParseHandling=DateParseHandling.None, Converters = [| fableJsonConverter |])
let inputJson = JsonConvert.SerializeObject(input, settings)

printfn $"{inputJson}"

This is an issue in Fable.Remoting.Json, the specialized JSON serializer used in generated clients. It looks like we don't handle records in any special way and default to whatever Newtonsoft.Json does. Being unable to serialize this trivial type is not ideal. I'll have a look at it 😄

Fixed as of Snowflaqe v1.41 🚀 which should work using the default (newtonsoft) serializer. Please take it for a spin and let me know how it goes 😁

Hey, thanks for the fix.
The first issue with Newtonsoft is indeed fixed with the last update, but now I still have problem #3, which it turns out does not depend on the specific serializer used.
All the properties set to None are serialized as null values, so using the generated types with Hasura does not work.
This includes both the properties of the graphql types which should be optional and the other properties of the DTO, such as on_conflict, constraint, update_columns, where.
An example error from Hasura is expected an object for type 'ExampleType_bool_exp', but found null

@gmlion In GraphQL, as far as I know, setting null for optional fields is fine and accepted. So I am not sure why hasura is not happy with nulls. However, I am think we can fix it on our side of things. It could be another option in JsonSerializerSettings. I will have a look

but now I still have problem number 3, which it turns out does not depend on the specific serializer used.

@gmlion Should be resolved as of Snowflaqe v1.42 🚀 please give it a try and let me know how it goes 😄

Hi, the situation is partially fixed. Now properties of the original type are no longer serialized as null, but others still are (on_conflict, where)

@gmlion did you version 1.42 or v1.43? because latest v1.43 should solve this problem entirely.

It is now working, thank you very much!


Add info about Stargate to README.md

More information about Stargate 👇🏻
Docs: https://stargate.io/docs/stargate/1.0/quickstart/quickstart.html
Created on this Live Stream: https://www.youtube.com/watch?v=pekHBfYd1-Q
closes #5

closes #9 also

Pull Request #15  covers it.

Thank you 👍🏻

Great team work 💪  thank you 🤓


HERE production endpoint

Currently, the library's hereGeocoder defaults to the CIT environment for geocoding, and the production environment for reverse geocoding.
This PR introduces an option (production) which consistently uses the correct endpoint for a given server environment.

References:

HERE Server Environment

Thanks for the PR


Migrate project configuration to pyproject.toml and remove setup.py

Description
This PR involves moving the project configuration from setup.py to pyproject.toml and update the bumpversion.cfg file.
Fixes #24
Checklist:

[X] My code follows OCF's coding style guidelines
[X] I have performed a self-review of my own code
[X] I have checked my code and corrected any misspellings

The tests are failing, looks like somthing to do with the new pyproject.toml, you might have to run it locally to see what is wrong


How to handle two objs of the same type in the EntityMapper

I am having trouble when trying to map two of the same model type in my entity mapper. Is there a way to handle this?
Model
public class Account
{
public Guid AccountId { get; set; }
public string Name { get; set; }
public Contact PrimaryContact { get; set; }
public Contact SecondaryContact { get; set; }
}
EntityMapper
public class AccountEntityMapper :
IEntityMapper
{
public Func<Account, Account> ResolveEntity { get; set; }
public Account Map(IEnumerable objs)
{
Account account = null;
foreach (var obj in objs)
{
if (obj is Account p)
{
account = ResolveEntity(p);
continue;
}
if (obj is Contact primaryContact)
{
account.PrimaryContact = primaryContact;
continue;
}
if (obj is Contact secondaryContact)
{
account.SecondaryContact = secondaryContact;
continue;
}
}
return account;
}
}

I'm working on a solution to this with code examples, it would require an upgrade to a later version.
Stay tuned.

Excellent dougrday, looking forward to it.

Hi dougrday, any news on this implementation? it's currently a blocker for my project.

I'll see if I can get the implementation pushed up to github in the next couple of days, with code examples.  I'm having trouble getting SQLite to play nice with it (the in-memory implementation doesn't appear to support this kind of situation), but other providers should work.

This has been fixed in release 0.2.0-beta, and is available on NuGet.  Sorry for the wait.

@iamgmd You should be unblocked, please let me know if the implementation doesn't provide the functionality you need.  See here for examples:
https://github.com/landmarkhw/Dapper.GraphQL/blob/master/Dapper.GraphQL.Test/QueryBuilders/PersonQueryBuilder.cs (line 55)
https://github.com/landmarkhw/Dapper.GraphQL/blob/master/Dapper.GraphQL.Test/GraphQL/PersonQuery.cs (line 29)
https://github.com/landmarkhw/Dapper.GraphQL/blob/master/Dapper.GraphQL.Test/EntityMappers/PersonEntityMapper.cs (line 44)


Meal Recommender based on specific ingredients

In order to provide a food recommendations
As a client
I want a meal recommender

This is like a search that filters the database


Updating Kubernetes Overview page

In alignment with the CNCF Style Guide, proposing a change from open-source to open source.

Thanks.
/lgtm
/approve


bumping the buffer size way up to account for large search results header sizes

We've had to bump this variable WAY up like this to account for the size of the header that comes back from Solr on large sites with big collections with thousands of direct children. The result of having a low header size here is a 502 from Drupal which originates with this error:
Warning: Packets out of order. Expected 3 received 2. Packet size=60 in Drupal\Core\Database\StatementWrapper->execute() (line 145 of /var/www/drupal/web/core/lib/Drupal/Core/Database/StatementWrapper.php)
#0 /var/www/drupal/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/drupal/web/core/lib/Drupal/Core/Database/StatementWrapper.php(145): PDOStatement->execute()
#3 /var/www/drupal/web/core/lib/Drupal/Core/Database/Query/Upsert.php(115): Drupal\Core\Database\StatementWrapper->execute()
#4 /var/www/drupal/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php(273): Drupal\Core\Database\Query\Upsert->execute()
#5 /var/www/drupal/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php(193): Drupal\Core\Cache\DatabaseBackend->doSetMultiple()
#6 /var/www/drupal/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(1123): Drupal\Core\Cache\DatabaseBackend->setMultiple()

which really results from
drupal_1      | 2023/02/07 18:44:02 [error] 1468#1468: *678053 upstream sent too big header while reading response header from upstream, client: <IP_ADDRESS>, server: drupal, request: “GET /solr-search/content?field_member_of=all&search_api_fulltext=family&sort_by=search_api_relevance&sort_order=DESC&items_per_page=10 HTTP/1.1", upstream: “fastcgi://unix:/var/run/php-fpm7/php-fpm7.sock:“, host: “[xxxxxxxxxxxxx.edu](xxxxxxxxxxxxxxxx.edu/)”, referrer: “https://xxxxxxxxxxxxxxxxr.edu/”
drupal_1      | <IP_ADDRESS> - - [07/Feb/2023:18:44:02 +0000] “GET /solr-search/content?

Probably should change this one as well? https://github.com/Islandora-Devops/isle-buildkit/blob/main/drupal/rootfs/etc/nginx/shared/drupal.fpm.conf

On my refactor these have changed to template file, reminder to myself to update those templates as well.

I've included these changes on https://github.com/Islandora-Devops/isle-buildkit/pull/238 I couldn't pull in this commit directly as they are now implemented as templates, but this can be seen here:
https://github.com/Islandora-Devops/isle-buildkit/blob/15aa9aa922fb6f4d00921dfb2aed92d5284311fb/drupal/rootfs/etc/confd/templates/drupal.fpm.conf.tmpl#L30-L32
and here:
https://github.com/Islandora-Devops/isle-buildkit/blob/15aa9aa922fb6f4d00921dfb2aed92d5284311fb/code-server/rootfs/etc/confd/templates/drupal.fpm.conf.tmpl#L36-L38

I'm closing this as the fix was included in #238


TestInspectDir fails when number of shards changes

This is unexpected.
Specifically, in src/server/pfs/server/server_tes.go I changed the shards const to 4 at the top of the file, and it causes the following test error:
--- FAIL: TestInspectDir (0.03s)
	server_test.go:835: root /tmp/pach_test/run.f53e6f5aa405
	require.go:104: /Users/sjezewski/pachyderm/workspace/src/github.com/pachyderm/pachyderm/src/server/pfs/server/server_test.go:649
	require.go:106: Error is expected but got <nil>

Which points to the code:
// This is a limitation in our system: we cannot inspect .
// . is assumed to be a directory
// In order to be able to inspect the root directory, we have to have each
    // PutFile send a concurrent request to create an entry for ".", which is
    // a price we are not willing to pay.
_, err = pfsclient.InspectFile(pfsClient, repo, commit1.ID, "", "", nil)
    require.YesError(t, err)

I'm on master @ 18229250a15d5398b20e252f677d3ae0cfe38a6a

This is no longer valid because of the refactor, so just make sure that the test is not being skipped.

Validated test is not skipped on pfs-refactor branch


WIP Fix/and 668/rename atlas to layer ui

layer-ui-themes.xml, etc
Can we remove layer- from the file names?


Fixed getting error on running php artisan migrate if db_prefix contains decimal value #3782

BUGS:
https://github.com/bagisto/bagisto/issues/3782

done


Remove random Cyrillic characters from locale files

About the PR
While playing around with the game's data, I discovered 'cocoa powder' got sorted after all the other reagents. I poked around for a minute, and what do you know, that first letter isn't a c, it's actually the Cyrillic lowercase letter с! I searched all .yml and .ftl files for more Cyrillic, and found exactly one other occurrence. This PR fixes both.
Why / Balance
Correctness. For one, you currently can't find cocoa powder or anything that uses it in the guidebook by searching "cocoa powder". :D
Technical details
.ftl
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes
god I hope not

russian jumpscare


French translation of workloads page

Add the translated (french) page of the workload ressource.
Hello!
I am adding the french translated page of the workloads ressources.
The branch dev-1.21-fr.1 is not created therefor I push on master.
This is my first PR here, so let me know if I must change anything.
Thank you.

@kubernetes/sig-docs-fr-reviews how's this looking?

/assign

/lgtm
/approve


Updating profile pic reverts to previous profile pic after save

Describe the bug
When you choose a new profile pic, the image on users/edit updates immediately updates, but when you click SAVE SETTINGS and the update completes, the image reverts to the previous profile pic. If you reload the page, the most recently-chosen pic appears.
To Reproduce
Steps to reproduce the behavior:

Sign in to an account with a profile pic and go to https://www.inaturalist.org/users/edit
Click on "Upload a new photo" and choose a new photo
When you chosen the photo, it immediately appears in the profile pic area (though it looks squished if the photo was not a square)
Click SAVE SETTINGS (note, no loading indicator while things are saving)
When the save is complete, the profile pic has reverted to the previous profile pic
Reload the page; now the profile pic is the most recent one you chose

Expected behavior
Non-square photos should not appear squished immediately after choosing them, and saving the settings should not make it look like the profile pic change got reverted.
Context

OS: Mac OS 14.6.1
Browser: Firefox
Version: 132.0

Additional context
The update is clearly working, so I'm guessing the API response is not getting the latest photo after saving, or the UI isn't updating correctly.

The issue where the profile appeared not to change should be fixed by merging in https://github.com/inaturalist/inaturalist/pull/3957. The problem was if the extension was not changing, the URL would not change, and CloudFront would have cached the previous asset. We would queue a cache invalidation, but that can take some time. With that PR merged in, we will be generating new URLs for updated user icons so there shouldn't be any stagnant caches.
The issue with the display of uploaded icons should be fixed in 1e8cc96048a85447f55b4227d018713548c66c16


Need to fix postfix incrementation during "Duplicate" executing

Verified on staging server successfully. Probably it's not the best numeration, as now chat_test is duplicated and named as chat_test 2. I feel that it's a little bit inconsistent as new chat/folder/prompt is created started with 1 (New folder 1, New folder 1 etc). Seems we will wait for customers feedback.


Weird behaviour using a variable named size in the java backend

I ran into some weird behaviour when using a variable named size in a custom defined semantics. Renaming the variable to anything else resolves the issue. It seems like the identifier size has some special status in the java backend.
Is there a way to override this weird behavior?

uh, variables can't start with a lowercase letter. Does Size work?

https://github.com/kframework/k/pull/709/files
Looks like you mean Id size, not K variable size.

https://github.com/kframework/k/pull/709/files
Looks like you mean Id size, not K variable size.

Yes. An object language variable. Not K variable.

Well my guess is that it's conflicting with the size token defined in several places in domains.k. You probably would have the same issue with a variable called values or keys.
I'm not sure what the correct way to fix this is, because I'm not sure if the lexer is deciding that size is from the production from SET or MAP, or if the parser is making that decision. If it's the parser, then you can try the prefer attribute here syntax Int ::= "function" Id.

You have run into a known limitation of the K parser. the main module of any K definition automatically imports the MAP module in order to construct the initial configuration, and the MAP module defines the size() function. This introduces a lexical ambiguity between the size token which is part of the size(Map) function, and the size token of sort Id. Unfortunately K cannot currently disambiguate ambiguous tokenizations.
This is not something we currently have the bandwidth to fix, but you can work around it quite easily. The following definition does not import the Map module from the syntax module of the definition and thus is able to parse size as an Id:
module TEST-SYNTAX
imports ID
syntax Int ::= "function" Id
endmodule

module TEST
imports TEST-SYNTAX
endmodule

@MrChico if this works, please close this issue and associated PR.

Yup. This workaround works. Thanks


[Feature] Provide a command to hide all tooltip or inner editor, I want to calculate content actual height when exit.

Initial checklist

[X] I agree to follow the code of conduct
[X] I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Problem

I want to calculate content actual height when exit, so I need hide this area or other tooltips.
Solution
I don’t know if there are any ways, if so, please tell me.
Alternatives
none

You can try to move the selection to the end of all contents.

You can also change the editor to readonly mode. In this mode there won't be any tooltip or inner editor.

You can also change the editor to readonly mode. In this mode there won't be any tooltip or inner editor.
A simple example: https://github.com/Saul-Mirone/milkdown/blob/main/examples/vanilla/main.ts#L37

not work

https://codesandbox.io/s/currying-cache-iebbt6?file=/src/index.ts

codesandbox.io/s/currying-cache-iebbt6?file=/src/index.ts

It worked, thanks


⚠ Bofrost.gr has degraded performance

In 83e42bf, Bofrost.gr (https://www.bofrost.gr) experienced degraded performance:

HTTP code: 200
Response time: 5465 ms

Resolved: Bofrost.gr performance has improved in 61dafdc after 14 hours, 9 minutes.


Migrate all plugins to use e2e tests

Description
Some of the plugins are still use the old integration test. This PR migrates all of those to use the new e2e tests.
Landing this PR is required if we want to land flutter/plugin_tools#64
Related Issues
flutter/flutter#44450
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] If the pull request affects only one plugin, the PR title starts with the name of the plugin in brackets (e.g. [cloud_firestore])
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

I'm currently not working on this. Closing the PR for now


v10.2.1 Missing Octopus Mini Entities

Describe the bug
I upgraded to V10.2.1 last night and found all my Octopus Mini entities became unavailable.  Today I downgraded to v.10.1.4 and my entities started working again as expected.
Reproduction steps

Have an Octopus Mini
Upgrade to V10.2.1
Octopus Mini entities become unavailable.

Expected behaviour
Octopus Mini entities to show live data.
Tariff Code
E-1R-INTELLI-VAR-22-10-14-M
Integration Version
10.2.1
Home Assistant Version
Home Assistant 2023.9.3
Fresh Install?
After upgrading
Home Assistant Logs
home-assistant_2024-04-11T11-28-50.446Z.log
Confirmation

[X] I confirm that I cannot find my solution within the documentation
[X] I confirm that I cannot find my solution within the FAQ

I'm on 10.2.1 but on Agile tariff and my Octopus Mini entities are fine.

Hello and sorry you're having issues.
Nothing has changed with how the OE mini entities are created or how data is requested. Do you have any errors in your logs when the entities were unavailable?
If not, could you run the integration in debug mode and reload the integration and look in your logs for the text account: { as this will be the raw response coming back from OE which might indicate what's going wrong.

I am also having this issue. I have deleted the integration and added it again, now I am only getting 3 entities for energy and none of them are useful :/
Entities I am getting now:
octopus_energy_electricity_previous_day_rates
octopus_energy_electricity_next_day_rates
octopus_energy_electricity_current_day_rates

I have an Octopus Home Mini too, and the box is checked.

Do you have any errors in your logs when the entities were unavailable?
If not, could you run the integration in debug mode and reload the integration and look in your logs for the text account: { as this will be the raw response coming back from OE which might indicate what's going wrong.
Without more information there isn't much for me to go on.
My guess is the OE API is not providing all of the information that has been requested.

Do you have any errors in your logs when the entities were unavailable?
If not, could you run the integration in debug mode and reload the integration and look in your logs for the text account: { as this will be the raw response coming back from OE which might indicate what's going wrong.
Without more information there isn't much for me to go on.
My guess is the OE API is not providing all of the information that has been requested.

Not able to find anything with account when I turn on debug and reload the plugin even after waiting 10 mins, the entities just show "unavailable".  I can also replicate the issue 100% of the time by upgrading and then downgrading to fix.
Do you have a way for me to contact you so I can better asist?

The partial log you're searching for is [custom_components.octopus_energy.api_client] account: and should appear once the integration is reloaded or after around 60 minutes. If this isn't present, then it might be your account information includes errors returned by HA, in which case I'm looking for a log along the lines of [custom_components.octopus_energy.api_client] Errors in request.
If you're unable to find these logs, then please turn on debug via the instructions in the FAQ, wait around 65 minutes, then turn it off which should produce a logs file. These logs might include sensitive information, so please sanitise as you wish and then either post it here or email me at<EMAIL_ADDRESS>if you feel more comfortable with that.

I had the same issue and was getting the following error in the logs
2024-04-22 15:06:19.571 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform octopus_energy.sensor: Platform not found (cannot import name 'ServiceValidationError' from 'homeassistant.exceptions' (/usr/src/homeassistant/homeassistant/exceptions.py)).
I updated to the latest version of home assistant and everything worked as it should.

Closing due to lack of activity and it looks like it's resolved by upgrading to latest version of HA.


Preload jsonschema validators

Tests were taking 13s to run, most of the time being spent in
jsonschema. This commit pre-loads the jsonschema validators at startup
rather than just loading the actual JSON at startup. This has two
main benefits. It means that the app will fail to start if the JSON
schemas are invalid and it improves performance considerably. After this
commit the tests take a little over 6s to run and the bottleneck is now the database.

:+1:  yep much faster here.


Make it work with .NET Framework

Currently it does not work with .NET Framework 4.6.1 (or any other, I think). Would be nice to support that, as the original project does it.

It should work now already, the library is netstandard1.6 and multi-targeted to net461.


Phantom gets stuck in cobweb

When using phantom's ability it can still be slowed in cobwebs.

Fixed in 0.6.0


add labelFontWeight config

This adds a config property labelFontWeight to be applied to labels. It works the same as titleFontWeight implementing #65.
I am not sure if I though about everything and just tested this with my local setup. Please let me know if there is anything I didn't think of.
Last but not least: Thank you so much for this great project and all the work you put into this! It really makes my life better ❤

Thanks! Addresses #65


unit tests extended

Coverage remained the same at 97.951% when pulling 5c7c2ac2ee2a47d21ed20afd6d05d686dca42426 on development into 868601a03baf9ef9c7d096ecb7b371076ba69311 on master.


Update pom to v0.4.0 for the new 2.1 release

For #416.

rerun unit tests please

I'm wondering if we should call it 0.3.1, since it's a bug-fix release

I discussed with @foxish offline and he said 0.4 would be fine. I agree 0.3.1 is better since it's a bug fix release. Let me update the PR to use 0.3.1.

I don't have strong opinions on this. If it's minor enough that we think
0.3.1 captures it well, then let's do that.
On Aug 8, 2017 11:36 AM, "Yinan Li"<EMAIL_ADDRESS>wrote:

I discussed with @foxish https://github.com/foxish offline and he said
0.4 would be fine. I agree 0.3.1 is better since it's a bug fix release.
Let me update the PR to use 0.3.1.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache-spark-on-k8s/spark/pull/422#issuecomment-321044297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA3U55fvRmETWr_mS1hdN8mwRTIXdAJfks5sWKrLgaJpZM4OxCFU
.

Updated to 0.3.1.

PTAL @mccheah @ash211

LGTM, merge on green unless there are objections.


Create a local .json config file for the access tokens

This would let us run the code as is and still keep the app secrets local.

Ok. I did the necessary changes. Now I am closing this enhancement.

Awesome!


It appears that a .nojekyll file in the docs dir is what is needed

The web page needs time to be rebuilt on github though.

This branch removes the extraneous config files that don't appear to be needed.


test:add container remove and stop test

Signed-off-by: Dewey-Ding<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
add container remove and stop test
Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1064 into master will increase coverage by 0.51%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
+ Coverage   15.85%   16.37%   +0.51%
==========================================
  Files         140      142       +2
  Lines        8510     8558      +48
==========================================
+ Hits         1349     1401      +52
+ Misses       7058     7054       -4
  Partials      103      103

Impacted Files
Coverage Δ

client/container.go
0% <ø> (ø)
:arrow_up:

client/container_remove.go
100% <100%> (ø)

client/container_stop.go
100% <100%> (ø)

client/client.go
28.57% <0%> (-3.01%)
:arrow_down:

cli/command.go
0% <0%> (ø)
:arrow_up:

pkg/utils/utils.go
82.92% <0%> (+2.2%)
:arrow_up:

@ZouRui89

LGTM @allencloud

Thanks for your work @Dewey-Ding and your review @ZouRui89 .
Merging...


✨Mobile/Admin - Daily questions

@william-liebenberg @wicksipedia @matt-goldman @lukecookssw @adamcogan
As per our conversation, daily questions should appear on the app and trigger notifications. This drives daily user engagement with the app.
Acceptance criteria

[ ] #372
[ ] #373
[ ] #374
[ ] #375
[ ] Users receive a fail message for an incorrect answer
[ ] Users can only answer the Daily Question once, regardless of pass/fail
[ ] #376

Gold plating

[ ] #380

As per my conversation with Adam and the Rewards team, we should implement this feature without the idea that these will be Daily Questions. These should be ad-hoc questions that can be triggered weekly/monthly etc.


feat: port Logic.Equiv.Array

I think this may be a bit out of my range. I'm not at all familiar with the differences between Arrays in Lean 3 and 4.

Oh, but if you do understand that stuff, this file is very short.

This PR/issue depends on:

leanprover-community/mathlib4#2194
By Dependent Issues (🤖). Happy coding!

We're not porting this; see  #2194.

Reopening this PR and rewriting in terms of Array as per zulip!

Thanks :tada:
bors merge


Highlighted line(s) still shows original key mapping, despite change in plugins file

Notice it still says <leader>aa ask, despite change to <leader>g for the keymapping (<leader>g still works, just visual issue)
Thanks for awesome plugin

You might have to make those changes instead in your
~/.local/share/nvim/lazy/avante.nvim/lua/avante/config.lua

see https://github.com/yetone/avante.nvim/wiki#keymaps-and-api-i-guess.
I don't know how to know how to update the hint correctly. so if you have any suggestion you are more than welcome to

I added a snippet to the wiki for your reference.

Thanks!


edit several fields and include new sample data

Edit and include new sample data so that default values will be more realistic to the user.

Codecov Report

Merging #268 into master will decrease coverage by 0.04%.
The diff coverage is 44.44%.

@@             Coverage Diff              @@
##             master     #268      +/-   ##
============================================
- Coverage     52.51%   52.47%   -0.05%
  Complexity      619      619
============================================
  Files           132      132
  Lines          2807     2813       +6
  Branches        347      347
============================================
+ Hits           1474     1476       +2
- Misses         1186     1190       +4
  Partials        147      147

Impacted Files
Coverage Δ
Complexity Δ

...ain/java/trackitnus/model/util/SampleDataUtil.java
60.34% <44.44%> (-3.12%)
4.00 <0.00> (ø)

...c/main/java/trackitnus/model/lesson/DayOfWeek.java
57.89% <0.00%> (ø)
3.00% <0.00%> (ø%)

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 420bff7...5386b6a. Read the comment docs.


Missing ../data/vicuna80/prompts/vicuna_prompt_score_to_three.jsonl

Required in ./peer_rank/gen_vicuna_reviews_all.sh


ESP32-C6 - WiFi 6 - Target Wait Time / "itwt" Example - Suspend time incorrect and does not resume (IDFGH-12267)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
5.2
Espressif SoC revision.
ESP32-C6-MINI-1
Operating System used.
Windows
How did you build your project?
Eclipse IDE
If you are using Windows, please specify command line type.
None
Development Kit.
SparkFun Qwiic Pocket Development Board - ESP32-C6
Power Supply used.
USB
What is the expected behavior?
When running the itwt example (or executing esp_wifi_sta_itwt_suspend(flow_id, suspend_time_ms); in your application) with power management turned off and the wake duration set to approximately 30 seconds, issuing a suspend command on the CLI for 10s should suspend TWT for ~10s. Issuing two suspend commands with a suspend_time_ms=0 should suspend indefinitely with a subsequent suspend command resuming TWT.
What is the actual behavior?
Suspend time is ~246.996s instead of ~10 seconds. Issuing a second suspend command with suspend_time_ms=0 does not resume and errors with "already suspended". See INFO in Debug Logs for details.
Steps to reproduce.

Set the following in the sdkconfig:

- # CONFIG_PM_ENABLE is not set
- CONFIG_EXAMPLE_ITWT_WAKE_INVL_EXPN=13
- CONFIG_EXAMPLE_ITWT_WAKE_INVL_MANT=36621

Build & Flash
Issue on the CLI:

itwt --suspend=1 -i 1 -s 10000
itwt --suspend=1 -i 1 -s 0
itwt --suspend=1 -i 1 -s 0

Debug Logs.
I (2610) itwt: <WIFI_EVENT_ITWT_SETUP>twt_id:0, flow_id:1, trigger-enabled, announced, wake_dura:255, wake_dura_unit:0, wake_invl_e:13, wake_invl_m:36621
I (2622) itwt: <WIFI_EVENT_ITWT_SETUP>target wake time:2105092931584, wake duration:65280 us, service period:299999232 us
...
itwt> itwt --suspend=1 -i 1 -s 10000
I (49746) twt: (itwt)suspend, flow_id:1, all_twt:0, suspend:10000 ms, err:0x0
I (49746) itwt: <WIFI_EVENT_ITWT_SUSPEND>status:0, flow_id_bitmap:0x2, actual_suspend_time_ms:[0 246996 0 0 0 0 0 0]
itwt> W (296742) wifi:(itwt)suspend_fid_bitmap:0x2, resume_fid_bitmap:0x2
...
itwt> itwt --suspend=1 -i 1 -s 0
I (422736) twt: (itwt)suspend, flow_id:1, all_twt:0, suspend:0 ms, err:0x0
I (422737) itwt: <WIFI_EVENT_ITWT_SUSPEND>status:0, flow_id_bitmap:0x2, actual_suspend_time_ms:[0 0 0 0 0 0 0 0]
itwt> itwt --suspend=1 -i 1 -s 0
E (426972) wifi:(itwt)flow_id:1 is already suspended
I (426973) itwt: <WIFI_EVENT_ITWT_SUSPEND>status:258, flow_id_bitmap:0x0, actual_suspend_time_ms:[0 0 0 0 0 0 0 0]
I (426974) twt: (itwt)suspend, flow_id:1, all_twt:0, suspend:0 ms, err:0x102
...

More Information.
With the default (255 << 10) ~500ms wait time , the suspend time of 9780 is correct:
itwt> itwt --suspend=1 -i 1 -s 10000
I (10328) twt: (itwt)suspend, flow_id:1, all_twt:0, suspend:10000 ms, err:0x0
I (10328) itwt: <WIFI_EVENT_ITWT_SUSPEND>status:0, flow_id_bitmap:0x2, actual_suspend_time_ms:[0 9780 0 0 0 0 0 0]
itwt> W (20108) wifi:(itwt)suspend_fid_bitmap:0x2, resume_fid_bitmap:0x2

but still exhibits the same bug when issuing two suspend commands with suspend_time_ms=0.

Update on this issue, after further experimentation with different TWT wake intervals and:
/**
* @brief     Send a TWT Information frame to AP for suspending/resuming established iTWT agreements.
*
* @param[in]    flow_id The value range is [0, 7].
*                       FLOW_ID_ALL indicates suspend all individual TWT agreements
* @param[in]    suspend_time_ms If the value is 0, indicates the specified flow_id or all established agreements will be suspended until resume by users.
*                               If the value is greater than 0, indicates the specified flow_id or all established agreements will be suspended until suspend_time_ms timeout, unit: ms.
*
* @return
*    - ESP_OK: succeed
*    - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
*    - ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
*    - ESP_ERR_WIFI_CONN: WiFi internal error, station or soft-AP control block wrong
*    - ESP_ERR_WIFI_NOT_ASSOC: WiFi is not associated
*    - ESP_ERR_INVALID_ARG: invalid argument
*/
esp_err_t esp_wifi_sta_itwt_suspend(int flow_id, int suspend_time_ms);
The actual_suspend_time_ms returned inside the suspension event handler for a given flow id:
wifi_event_sta_itwt_suspend_t *suspend = (wifi_event_sta_itwt_suspend_t *) event_data;
uint32_t actual_suspend_time_ms = suspend->actual_suspend_time_ms[flow_id];
won't be less than or is rounded to the remaining time to the next wake interval. So if the service period is "299999232us" and you try and suspend for 10000ms and the remaining time left until the next wake interval is > 10000ms then you suspend for longer than anticipated. Furthermore, I assume that when suspend_time_ms is 0 a consecutive call will return "already suspended" if the nearest wake interval has yet to expire.
This isn't explained clearly in the Brief, API or documentation and should probably be updated to avoid confusion for others.

Hi @djangoa, Thanks for reporting.
Q1: the “issuing two suspend commands with a suspend_time_ms=0”
For our design, the "suspend_time = 0" means suspended until the TWT session is resumed, and if you set suspend time twice, will return the error "flow_id:X is already suspended".  And you can set "suspend_time = 10" to resume the TWT session.
Q2: the actual suspend time is incorrect
The actual suspend time depends on whether the AP supports Flexible TWT Schedule. If it is supported, the actual suspend time will be the number you set. If not, will consider the twt service period.

@xuxiao111 Thank you for taking time to explain the implementation and for all your work on enabling TWT.
If you are able to add this information to the brief of the function in a subsequent release, I think that would help future users avoid confusion.
Regarding Q2, is it possible to provide a function to figure out if an AP supports a "Flexible TWT Schedule"?

Hi @djangoa, thanks for your advice.
we will add this information.
And for "Flexible TWT Schedule", maybe it's better to add it to "wifi_event_sta_itwt_suspend_t".


Can't build Dynamic Calibration API samples

Hi,
I installed the latest calibration API from here: https://downloadcenter.intel.com/download/27415/Intel-RealSense-D400-Series-Dynamic-Calibration-Software-Tools (v<IP_ADDRESS> at present), but when I try to open CalibrationToolAPI\<IP_ADDRESS>\examples\DynamicCalibrator\RS400DynamicCalibrationSample.sln in VS17 and build the solution it fails with 11 "cannot open include file" errors.
Is the source code available for DSDynamicCalibrationAPI.dll please? I'm currently trying to calibrate a camera pair using OpenCV/Matlab and finding the results from those differ from the Librealsense extrinsics so wanted to see how the LRS calibration works to see if I can transform my results to get it working.
I'm also wondering if it would be possible to modify the DynamicCalibrator app to obtain an extrinsic calibration between a RealSense camera and an external (rigidly connected) camera? I can see that the ListCameras function used in Main.cpp filters out non RS400 cameras; is there a hard limit on the cameras which can be used due to hardware constraints? I'm not asking you to do this for me; I'm happy to have a crack at it myself (though I may have questions!), just wanted an expert opinion on its plausibility before going to far in to it.
Thanks!

Hi @jb455
Could you try building it in Release instead of Debug?
Dynamic Calibration software is not open-source unfortunately.
I need to check more about the external camera calibration

Thanks, building in Release works though when I run it I get "dll missing" messages. Copying the relavent dlls from /bin to .../Build/x64-Release fixes and it runs without issue then.
I've solved my original problem myself somewhat. It turned out that my extrinsics were correct (after dividing the translation vector by 1000 to go from mm to m), but the pointcloud.calculate() call I was using to validate appeared to be using the wrong intrinsics: when the depth image is mapped to colour, the point cloud should be calcluated using the colour camera intrinsics instead of the depth camera (which I assume it was using). I extracted the point cloud generation code and called it manually with the colour extrinsics and obtained the correct results. I don't know if this problem is there all the time with the point cloud, or only when using the software device.
It would still be useful to use the Intel calibration tool to obtain the extrinsics, but it's less important now I know I can use other calibration algorithms.

[Realsense Customer Engineering Team Comment]
@jb455
Seems your problem is solved, can the ticket be close?


Add function length into type system

Currently the type system does not account for the length property in function types. In unions, where the length of the functions vary, it could be used as a discriminated union.
Here is an example that would work under this proposal:
type fn1 = (a: string, b: number) => void;
type fn2 = (a: number) => void;

function a (fn: fn1 | fn2) {
    if (fn.length == 1) {
       fn(7);
    } else {
        fn("foo", 8);
    }
}

Of course the type system would have to follow the same rules for determining a function's length as specified in the ECMAScript standard and described in this MDN description.
Without this functionality I am not aware of a way, besides using a very specific user-defined type guard, for the type system to distinguish between the function types.

Related: #18422


Android compatibility of Lists#newArrayList

Check List:

Fixes #1474

I will have a closer look at other assertions in Java6Assertions later on today.

Closing this since we have decide to deprecate Java6 assertions entry point classes.


Configuration as code: Configure repo-settings with a yml-file

In my organization, we have many repositories with similar settings.
Those settings include:

Only allow squash-merging
Automatically delete branches after PR-merges
The default-branch is develop
Force-pushes and deletion are forbidden for the develop-branch
A required check ci must pass before merging anything into develop
A few other settings...

Now the problem is that those settings become very difficult to manage for a large number of repos.
Ideally, I would like to have a "yml-template" that enforces all those settings for my organization.
It would be much easier to put such a "yml-template" into .github, instead of manually updating GitHub-settings.
After all, "configuration as code" is a common best-practice in many industries.

I’ll have to ask GitHub for this. They aren’t enforceable by extensions but you might be able to create a tool to set up your repos in a batch from the command line.

Yes I could probably write a CLI tool.
On the other hand, I still want a transparent and visible configuration.
If a team wants do apppy an individual repo-setting, then this should be doable without executing any centralized tool.
Perhaps it would be doable via GitHub Actions.


Add chainId external function

Reverts massalabs/massa-as-sdk#314

see my previous comment here https://github.com/massalabs/massa-as-sdk/pull/313#discussion_r1430192373

see my previous comment here #313 (comment)

@sydhds Could you provide a simple unit test to validate that it works?

Done here https://github.com/massalabs/massa-as-sdk/pull/316


Issues  with  building  Vxnaid  code

Dear Team,
I  have  been  having  issues  with  buidling the  vxnaid  code  in  my  Android  studio.  It  looks  like  their  incompatibilities  with gradle  version as  per  attached  error  message. Please  advise  on  how  I  can resolve  this  issue. I am have  Android  studio giraffe  installed  on my  Windows  computer.
error  message.txt

Dear  Team, I am inquiring about the  progress of  this  issue.

Dear  Team, I  upgraded  the  gradle  version to 7.2 and  that  issue  was  resolved. But  now  I  have  another error arising  from unknown property 'SOLIDARIT
error  message.txt
Y_STORE_PASSWORD. Please  see  atatched  file  for  error details.

i was able to run it locally, the issue could be from android sdk dependencies. Lets sit if we get time together and look into it.


⚠ Processors has degraded performance

In f290f4a, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 98 ms

Resolved: Processors performance has improved in 78cada7.


Unable to send IQ token

Hello,
when sending IQ token via Ledger Nano S, I receive an error:

All other tokens were transfered without a problem
What can be done?
Thank you
MB

IQ has transfer fee, try to send smaller amount

I have 311 IQ there and tried to send 10 IQ, same error.

#19 common issue

Fixed in v0.9.3


can this maintain state across reboots?

Nope it can't, there's no persistence support. I recommend APScheduler as an alternative or straight up cron :-)


K23SI Partial Update

Hi, Justin:

Partial update functionality and test cases in SKVClientText have been implemented.

But still leave some problems:
1). The WI bug we discuss in https://github.com/futurewei-cloud/chogori-platform/issues/44 was not well fixed. Considering the logical fitness of the entire k23SI module, I may leave that to you.
2). The TPC-C test has not been modified yet. I will look into it but maybe I do not enough RDMA machines to do the performance test. I'll see what I can do.

The test scenarios is listed below:
Scenario 04 - Partial update with the same schema version
Test setup

start a cluster and write the basic version of data.
_client begins a TXN, and gets the schema version.

Test cases

test case
Expected result
Note

Partial update value fields, with Skipped PartitionKey and RangeKey fields
BadParameter
missing partition key

Partial update value fields, including PartitionKey and RangeKey fields
KeyNotFound
Equals to write another key. Cannot use it to create a new SKVRecord.

Partial update every value， using field index to indicate the fieldsToUpdate
OK
k23si_client do not encode payload in this case. It is a quick path.

Partial update some value fields using field name to indicate the fieldsToUpdate
OK

Partial update some fields with NULL fieldsToUpdate
OK
NULL fieldsToUpdate implies copy of the previous data. All fields are not updated

Partial update while the sematic of excludedFields in record is different from fieldsToUpdate. 1): fieldsToUpdate indicate a field shall be updated, but this field is skipped in the record
BadParameter
must got a value while updating a field

2): fieldsToUpdate indicate  a field shall not be updated, but record has a value of this field
OK
the value in record would be dropped

Scenario 05 - Partial update with different schema versions
Test setup

start a cluster and write the basic version of data.
insert more schema versions.
_client begins a TXN, and gets the schema versions.

Test cases

test case
Expected result
Note

same fields but different orders, copy pervious data (null fieldsToUpdate)
OK

missing a field with same field name but different field type
badParameter

add some fields, but leaving them not updated
badParameter

add some fields, do not contain some of the pre-existing fields
OK

decrease some fields, and update some fields
OK

If you want to save the TPC-C changes for the next PR that is fine. You can use test/integration/test_k23si_tpcc.sh on your local VM to test if the changes work. For performance testing, I recently updated the scripts and README in the cluster directory. You will need to modify the configuration to work on 3 machines, with fewer cores used and fewer TPC-C warehouses used. You don't need to do it for this task but getting setup for performance testing will be very useful soon.

PartialUpdate function modules have been modified according to the comments. But TPCC testing is not yet complete.


Produce stream of counterexamples, incrementally as they are discovered

Requested by @andrey-kuprianov as a high-priority feature for MBT work.
Instead of having to wait until all requested counterexamples have been found, we need to produce a stream of counterexamples up to the requested max/timelimit.
This will need to be implemented first in the checker and exposed by CLI, and the then exposed via a server streaming RPC.

I discussed the urgency for this with the @andrey-kuprianov  and MBT team at their standup today: they said they aren't in a position to use this functionality right away, and we should de-prioritize work on this until they are closer to being able to use the feature.
Let's update this issue with revised urgency needs once we know the need for this is pending!


Still active? And one more question..

Hi! Is this project still active or is dismissed?
How i can the upgrade the framework to the new version? (i have delete the "install" folder,)
Thanks

Hum. Best effort support. I try give support via github (questions/bug fixing) but iam not develop new features.
About your question: inside the install folder there is a updater. Normally you can overwrite your existing installation and open the /install via browser. You should redirected to the Upgrade. (It depends on your current version and if there is something to upgrade since database schema upgrades are rare )


Prompt use of personal CF CLI config if found

Feature idea:
When the extension launches, it checks for the presence of a cf cli config.json file at the default installation directory (~/.cf). If found, a prompt could appear offering to use those values for the CF connection (e.g. copy the contents of the personal config.json into the vsix config.json), obviating the need to log in to CF manually.

@atwoosnam Does that imply keeping the 2 in synch?  If not, could lead to unexpected-to-the-developer behavior.

I would find having to answer that question every time I started VS annoying ... I would prefer that the two environments be separate ...
@atwoosnam : If I start VS and login, and then terminate VS, and immediately restart it .. do I have to login again?  If the tokens are still valid in the cf ".config" file used by VS plugin I shouldn't have to re login correct?

@ccheetham nah I was thinking this would just allow you to log in quickly the first time but then let the 2 stay separate afterward

@dtillman correct - as long as the config.json file stays around between VS sessions there should be no need to reauthenticate (unless you purposefully log out of the CF env in VS)

You may have noticed that the CF connection does not persist between sessions when using the "experimental" VS instance (while debugging this VSIX e.g.) -- I don't remember exactly what causes this (I know I've looked into it and I think it's because the config.json gets wiped on every build), but @zzori-theoriginal and I have tested several times that it isn't the case for "real" VS instances.

@atwoosnam :  I could see value in giving the user an option (i.e. yes/no dialog) to initialize the plugins "cf.config" file from the CLI's "cf.config" file only if the plugins file doesn't exist.   Wording of the dialog would be important ... so not to infer they are kept in sync.


ci: improve interop resiliency to loss and corruption

Description of changes:
This change includes a few small changes to improve the likelihood of interop tests succeeding when they deliberately drop or corrupt packets:

Increased MaxHandshakeDuration from 10 seconds to 60 seconds. Under the heavy loss scenarios tested in interop, a handshake may take longer than 10 seconds to complete
Increased MaxIdleTimeout from 30 seconds to 60 seconds. Under heavy loss, a connection may appear idle for long periods.
Increased connection concurrency from 10 to 20. With the increased limits above, it is possible the tests may bump into the overall maximum time limit for a single interop test to execute. By handling more requests at the same time, we can attempt to avoid this
Disable MTU probing for the ECN test. The ECN interop test requires that every packet sent by the client and server are marked as ECN capable. s2n-quic deliberately only marks the first 10 packets it sends as ECN capable (at the suggestion of QUIC§13.4.2), before stopping marking packets ECN capable briefly while the ECN counts are being validated (see ecn.rs). To increase the chance that the ECN test completes prior to hitting this 10 packet limit, we can disable MTU probing so no MTU probes consume from the 10 packet limit.

Testing:
Interop testing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Do you know if we improved interop? Also which if any of the changes was the most effective?

Do you know if we improved interop? Also which if any of the changes was the most effective?

We'll have to monitor the flakiness of the handshake loss/corruption and ECN tests to see how much we improved. I think increasing the handshake timeout was probably most helpful. My next PR will be enforcing a lot more interop successes :-)


CI tests

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[ ] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

Should the target branch be dev/ianhu/portAprilFixes?

I'm not merging this to anything, its just to run CI


property bindings are lost after connecting qml list models to the .Net models using "model: Net.toListModel()"

ListView in QML needs a ListModel to populate data. Also you need to define a delegate to define how data inside a model should be displayed in the view.  (Link).
After working more than 10 years with Qt, I've found this as one of the best features of Qt/Qml. Most important, you can use property binding of model element in the delegates. It means by changing the model data, all the delegates will update theme-self. No extra refreshes are needed!
Now it seems that these property bindings are no longer working in qml.net. It's a huge drawback if there is no solution considered. I've prepared a simple example (The sample is attached):
This is a ListView in Qml with a simple delegate.

The data are comming from .Net model:

Whenever user clicks on the each row, I try to change title of that row:

The title is changed successfully yet we can't see the change in the view!

(the title is remained fixed though it's changed in the model)
Therefore it seems that the .Net models are making all property bindings gone unless there is a solution I'm not aware of that :) I'll appreciate if anyone can help me.
Example.zip

You are declaring the NotifySignal, but you aren't activating it when the value changes.
See this: https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/Signals.cs

You are declaring the NotifySignal, but you aren't activating it when the value changes.
See this: https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/Signals.cs

Thanks Paul. Now I've added ActiveSignal call but not working yet. Let me know if I'm doing something wrong:

Should I register the "titleChanged" signal or connect it to somewhere?!

You are declaring the NotifySignal, but you aren't activating it when the value changes.
See this: https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/Signals.cs

Thanks Paul. Now I've added ActiveSignal call but not working yet. Let me know if I'm doing something wrong:

Should I register the "titleChanged" signal or connect it to somewhere?!

Paul I've found the issue. The property binding is not working in delegates in qml. However it works when applying to ordinary qml items like Text. How can I make it works in delegates?

Can you give me a minimal repo, maybe a repository somewhere I can clone?

Can you give me a minimal repo, maybe a repository somewhere I can clone?

Check out this: https://github.com/MosiQt/TestQmlDotNet.git
Please check Views/MainFeed.qml (line: 33)

In fact I can reproduce this too. The first signal sent makes the good display (the first one in fact), but when I change other datas (and call this.NotifySignal("xxxChanged") it does not update.
Here is the code snippet :
Main.qml
import QtQuick 2.7
import QtQuick.Controls 1.4
import B129 1.0
import "./Components"

ApplicationWindow {
    visible: true
    width: 800
    height: 600
    title: qsTr("B129")

    AccountsController {
        id: accCtrl

        Component.onCompleted: {
            accCtrl.initialize();
        }
    }

    AccountListItem {
        id: accountDelegate
    }

    Rectangle {
        width: 400
        height: parent.height

        ScrollView {
            anchors.fill: parent

            ListView {
                anchors.fill: parent
                model: Net.toListModel(accCtrl.accounts)
                delegate: accountDelegate
                focus: true
                width: parent.width
            }
        }
    }
}

AccountListItem.qml
import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.0

Component {
    id: acc

    GridLayout {
        id: grid
        rows: 1
        columns: 1

        Text {
            id: position
            text: modelData.getState()
            font.pixelSize: 14
        }
    }
}

AccountsController.cs
using Qml.Net;
using System.Collections.Generic;
using System.Threading.Tasks;
using B129.Front.Interfaces;
using Model = B129.Front.Models;
using B129.Front.Extensions;

namespace B129.Front.Controllers
{
    public class AccountsController
    {
        private readonly IAccountService _accountService;
        private IList<Model.Account> _accounts = new List<Model.Account>();

        public AccountsController(IAccountService accountService)
        {
            _accountService = accountService;
        }

        public Task Initialize()
        {
            return RefreshAccounts();
        }

        [NotifySignal]
        public IList<Model.Account> Accounts
        {
            get { return _accounts; }
        }

        private async Task RefreshAccounts()
        {
            _accounts = (await _accountService.GetAccounts()).ToModel();
            foreach (var acc in _accounts) {
                System.Console.WriteLine($"Login: {acc.Login}, password: {acc.Password}");
            }
            Task.Run(() => {
                System.Console.WriteLine($"Waiting 5s...");
                System.Threading.Thread.Sleep(5000);
                System.Console.WriteLine($"Changed status");
                _accounts[0].AccountState = Logic.Enums.AccountState.CONNECT;
                _accounts[0].AccountState.ActivateNotifySignal(); // I don't know if it goes here but it did not do anything
                 this.ActivateSignal("accountsChanged"); // this neither
            });
            this.ActivateSignal("accountsChanged"); // it is the first, it worked
        }
    }
}

AccountModel.cs
using Qml.Net;
using B129.Logic.Enums;

namespace B129.Front.Models
{
    public class Account
    {
        public int Id {get; set;}

        [NotifySignal]
        public string Login {get; set;}
        public string Password {get; set;}

        [NotifySignal]
        public AccountState AccountState {get; set;}

        public string GetState()
        {
            return ((AccountState)AccountState).ToString();
        }
    }
}

Maybe i'm doing something wrong ?

In fact I can reproduce this too. The first signal sent makes the good display (the first one in fact), but when I change other datas (and call this.NotifySignal("xxxChanged") it does not update.
Here is the code snippet :
Main.qml
import QtQuick 2.7
import QtQuick.Controls 1.4
import B129 1.0
import "./Components"

ApplicationWindow {
    visible: true
    width: 800
    height: 600
    title: qsTr("B129")

    AccountsController {
        id: accCtrl

        Component.onCompleted: {
            accCtrl.initialize();
        }
    }

    AccountListItem {
        id: accountDelegate
    }

    Rectangle {
        width: 400
        height: parent.height

        ScrollView {
            anchors.fill: parent

            ListView {
                anchors.fill: parent
                model: Net.toListModel(accCtrl.accounts)
                delegate: accountDelegate
                focus: true
                width: parent.width
            }
        }
    }
}

AccountListItem.qml
import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.0

Component {
    id: acc

    GridLayout {
        id: grid
        rows: 1
        columns: 1

        Text {
            id: position
            text: modelData.getState()
            font.pixelSize: 14
        }
    }
}

AccountsController.cs
using Qml.Net;
using System.Collections.Generic;
using System.Threading.Tasks;
using B129.Front.Interfaces;
using Model = B129.Front.Models;
using B129.Front.Extensions;

namespace B129.Front.Controllers
{
    public class AccountsController
    {
        private readonly IAccountService _accountService;
        private IList<Model.Account> _accounts = new List<Model.Account>();

        public AccountsController(IAccountService accountService)
        {
            _accountService = accountService;
        }

        public Task Initialize()
        {
            return RefreshAccounts();
        }

        [NotifySignal]
        public IList<Model.Account> Accounts
        {
            get { return _accounts; }
        }

        private async Task RefreshAccounts()
        {
            _accounts = (await _accountService.GetAccounts()).ToModel();
            foreach (var acc in _accounts) {
                System.Console.WriteLine($"Login: {acc.Login}, password: {acc.Password}");
            }
            Task.Run(() => {
                System.Console.WriteLine($"Waiting 5s...");
                System.Threading.Thread.Sleep(5000);
                System.Console.WriteLine($"Changed status");
                _accounts[0].AccountState = Logic.Enums.AccountState.CONNECT;
                _accounts[0].AccountState.ActivateNotifySignal(); // I don't know if it goes here but it did not do anything
                 this.ActivateSignal("accountsChanged"); // this neither
            });
            this.ActivateSignal("accountsChanged"); // it is the first, it worked
        }
    }
}

AccountModel.cs
using Qml.Net;
using B129.Logic.Enums;

namespace B129.Front.Models
{
    public class Account
    {
        public int Id {get; set;}

        [NotifySignal]
        public string Login {get; set;}
        public string Password {get; set;}

        [NotifySignal]
        public AccountState AccountState {get; set;}

        public string GetState()
        {
            return ((AccountState)AccountState).ToString();
        }
    }
}

Result :
Login: mylogin, password: mypassword
Login: kiyuslebg, password: 123
Waiting 5s...
Changed status

Maybe i'm doing something wrong ?

Yes. seems a bug. What do you think Paul? Is it easy to be resolved? @pauldotknopf

Yeah, seems a bug. What do you think Paul? @pauldotknopf

Wow okay I got something. I think we're misusing the library.
Remember my line :
this.ActivateSignal("accountsChanged"); // it is the first, it worked

If I remove it, and let the one inside the Task.Run method, it still doesn't refresh. It stays empty.
I think the event loop refreshes the screen because of the Initialize method.
As I can see, his project here works and I can't find any difference with things we did...

Wow okay I got something. I think we're misusing the library.
Remember my line :
this.ActivateSignal("accountsChanged"); // it is the first, it worked

If I remove it, and let the one inside the Task.Run method, it still doesn't refresh. It stays empty.
I think the event loop refreshes the screen because of the Initialize method.
As I can see, his project here works and I can't find any difference with things we did...

Great. Anyway I'm not still get the solution. What's your solution to my example? (https://github.com/MosiQt/TestQmlDotNet.git)

For your example, try to call :
this.NotifySignal("projectsChanged");

in your ViewModels/FeedViewModel.cs
instead of calling the project's NotifySignal.
I'll make more tests with my example to understand and will get back soon

I think the problem is (in your example) that you have NotifySignal in a class that is already instancied and is already itself having the NotifySignal attribute.
I'm doing the same in my example : AccountsController has [NotifySignal]Accounts which contains itself properties with [NotifySignal]. I think this is a bad practice (even not a practice to say right since it doesn't work).
Correct me if i'm wrong

I haven't looked into this issue, but I use .NET models, async computation, and lists in my app successfully: https://github.com/health-validator/Hammer so maybe look into there for differences too.

I haven't looked into this issue, but I use .NET models, async computation, and lists in my app successfully: https://github.com/health-validator/Hammer so maybe look into there for differences too.

@vadi2 You're using ActivateProperty, what is this for ? What is the difference with ActivateSignal ?
I tried to use it here, look what it did :

Note that it is called in the Task.Run method, in the Component.onCompleted method.

You've got a class within a class? That won't work... already tried it. That's why my issues are now Lists: https://github.com/health-validator/Hammer/blob/master/Program.cs#L169

So when you update a single property in a class containing dozens of it, you must refresh the "master" class via the ActivateSignal("propertyNameOfClass") ?

You can't nest classes within classes as you're saying - I've tried it, it doens't work.

https://github.com/health-validator/Hammer/pull/87 is where we realised the problem and ditched that approach, because just as you, we ran into this issue of properties inside nested classes not updating (and we figure it's not meant to be).

Alright, but why it doesn't update with the Task.Run method then ?
Task.Run(() => {
    System.Threading.Thread.Sleep(1000);
    System.Console.WriteLine($"Changed status");
    _accounts[0].AccountState = Logic.Enums.AccountState.CONNECT;
    this.ActivateSignal("accountsChanged");
});

:man_shrugging: I have not spent time investigating your usecase, sorry - but you're welcome to look at how Hammer does it, it works there.

You have to connect the item changed signal to a function that updates your model, as a workaround/solution.
function updateFunc() {
  myListView.model = Net.toListModel(myModel.view.dataModel);
}
Component.onCompleted: myModel.view.dataModelChanged.connect(updateFunc);

Hey guys, circling back to clean up issues.
First, I would avoid activating properties in background tasks. It should only be done in the GUI/Main thread.
Second, it's unclear if this issue is with Qml.Net, or the binding mechanism in Qml.


How can we make model calls faster

What is the issue?
I used docker to load multiple ollama images and distribute them using nginx, which was much slower than calling the deployed model directly
OS
Linux
GPU
Nvidia
CPU
No response
Ollama version
0.1.34

After I added the "keep_alive": "24h" parameter, after a while I executed the nvidia-smi command, there was no ollama on the card, so I needed to call the interface to display it

Looks like this issue slipped through the cracks.
I don't quite understand what problem you're having.  It sounds like you're running multiple ollama containers, and load balancing them with an nginx in front.  When you say "much slower" are you talking about tokens per second, latency, throughput, something else?


support for FilterPolicyScope on the sns topic subscription

This is will add the new FilterPolicyScope(string) which can be used on the sns to filter on message_attributes or message_body.
https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html#sns-message-filtering-scope

Thank you for the PR. This change was incorporated via the spec 104.0.0 update (6cf6ed95).


Error on startup with latest dev build

I'm getting this error on startup: http://pastebin.com/ufhhAGtW
I'm using the latest dev build + spigot 1.10.02

We no longer support bukkit-based servers, the builds you're trying are for Sponge. Bukkit support was deprecated and moved to https://github.com/prism/Prism-Bukkit


fix bdf parsing fpgabist

Improved BDF parsing to fix issue when trying to find fpga on different platforms.

Are there any things you want to address on this PR, @OPAE/tools

@OPAE/tools @asgibbons @dasm
Want to double back to get this merged in.
Any thing else we want to get resolved?