System.NullReferenceException: „Object reference not set to an instance of an object.”

Error:
System.NullReferenceException: „Object reference not set to an instance of an object.”

Models;
namespace Lib.Culture.Models
{
    public class Country
    {
        public int Id { get; set; }
        public string Name { get; set; }                    // Nazwa kraju Wielka Brytania
        public Language Language { get; set; }              // Język jaki jest używany
        public string ShortName { get; set; }               // Krótka nazwa kraju, np uk
        public string Currency { get; set; }                // Waluta, np USD, PLN etc
        public string CurrencySymbol { get; set; }          // Symbol, np $, zł
        public string DateFormat { get; set; } = "DD-MM-YYYY";  // Format daty, DD-MM-YYYY
        public bool LeftToRight { get; set; } = true;       // Tekst od lewej do prawej (Arabia ma np od prawej do lewej)
    }
}

namespace Lib.Culture.Models
{
    public class Language
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string ShortName { get; set; }
    }
}

Console log:
[18:19:09 INF] Executing endpoint '/EasyData'
[18:19:09 INF] Route matched with {page = "/EasyData", action = "", controller = ""}. Executing page /EasyData
[18:19:09 INF] Executing handler method Crud.Pages.EasyDataModel.OnGet - ModelState is Valid
[18:19:09 INF] Executed handler method OnGet, returned result .
[18:19:09 INF] Executing an implicit handler method - ModelState is Valid
[18:19:09 INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
[18:19:09 INF] Executed page /EasyData in 35.0154ms
[18:19:09 INF] Executed endpoint '/EasyData'
[18:19:09 INF] Request finished HTTP/1.1 GET http://localhost:5021/easydata - - - 200 - text/html;+charset=utf-8 94.8274ms
[18:19:09 INF] Request starting HTTP/1.1 GET http://localhost:5021/api/easydata/models/__default application/json -
[18:19:09 INF] Executing endpoint 'EasyData API'
[18:19:09 INF] Entity Framework Core 6.0.1 initialized 'CultureContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.1' with options: None
[18:19:09 INF] Executed endpoint 'EasyData API'
[18:19:09 INF] Request finished HTTP/1.1 GET http://localhost:5021/api/easydata/models/__default application/json - - 200 - application/json;+charset=utf-8 111.8068ms
[18:19:11 INF] Request starting HTTP/1.1 POST http://localhost:5021/api/easydata/models/__default/sources/Country/fetch application/json 42
[18:19:11 INF] Executing endpoint 'EasyData API'
[18:19:11 INF] Entity Framework Core 6.0.1 initialized 'CultureContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.1' with options: None
[18:19:11 INF] Executed DbCommand (9ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT_BIG(*)
FROM [Culture_Country] AS [c]
[18:19:11 WRN] The query uses a row limiting operator ('Skip'/'Take') without an 'OrderBy' operator. This may lead to unpredictable results. If the 'Distinct' operator is used after 'OrderBy', then make sure to use the 'OrderBy' operator after 'Distinct' as the ordering would otherwise get erased.
[18:19:11 WRN] The query uses a row limiting operator ('Skip'/'Take') without an 'OrderBy' operator. This may lead to unpredictable results. If the 'Distinct' operator is used after 'OrderBy', then make sure to use the 'OrderBy' operator after 'Distinct' as the ordering would otherwise get erased.
[18:19:11 INF] Executed DbCommand (2ms) [Parameters=[@__p_0='?' (DbType = Int32), @__p_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30']
SELECT [c].[Id], [c].[Currency], [c].[CurrencySymbol], [c].[DateFormat], [c].[LanguageId], [c].[LeftToRight], [c].[Name], [c].[ShortName]
FROM [Culture_Country] AS [c]
ORDER BY (SELECT 1)
OFFSET @__p_0 ROWS FETCH NEXT @__p_1 ROWS ONLY

What did I do wrong?
I am using ef core and .net 6
I find it works fine when there is no relationship

Hello,
Currently, EasyData does not Include related entities on the query to the database. So possibly your code accesses Country. Language of an item where there is no Language (you can also see from logs that there is no JOIN in a SQL).
We will investigate how to make it possible to include related entities

Hello,

First of all, it would be great to see the full stack trace of this exception.
Secondly, you didn't mention what exactly you did when the error occurred. Did you just open the Country dataset? Or maybe the dataset was opened without any problem and the error occurred when you filtered it? Please describe the whole setup more in detail.

@korzh  sorry, after recreating the subpage. It doesn't even display anything.
System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=EasyData.EntityFrameworkCore.Relational
  Ślad stosu:
   w EasyData.Services.EasyDataManagerEF`1.<>c__DisplayClass4_1.<FetchDatasetAsync>b__4(MetaEntityAttr attr)

Сould you please also share the whole DbContext and all customization you (probably) make there in OnModelCreating  method.
Or at least all the definitions for the Country and Language DbSets

Culture.zip
I am sending the entire library, it is small and simple so there will be no problems.
Host (useful for support):
  Version: 6.0.0
  Commit:  4822e3c3aa

.NET SDKs installed:
  6.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Base MSSQL
Startup:
        services.AddDbContext<Culture.CultureContext>(options =>
            options.UseSqlServer(dataBase.Main));

Found a bug? I can help? Any recommendations what should I do?

Hello,
Couldn't reproduce bug on an empty dataset. So, the problem must be in the data. Could you please publish a backup of your data, at least for Country and Language tables? A few records will be enough.
To create a data backup you can use our dbtool utility. It's easy to setup and then to export DB data to JSON or XML formats. And it's easy to modify the exported data after that since you get just text files.

@korzh
Use Initialize in CultureContext
    public static void Initialize(CultureContext _context)
    {
        _context.Database.EnsureCreated();

        var language = new List<Models.Language> {
            new Models.Language
            {
                Name = "English",
                ShortName = "en",
            },
            new Models.Language
            {
                Name = "Polish",
                ShortName = "pl",
            }
        };
        if(_context.Language.Any() == false)
        {
            _context.AddRange(language);
            _context.SaveChanges();
        }

        var country = new List<Models.Country> {
            new Models.Country {
                Name = "United Kingdom",
                ShortName = "uk",
                Language = _context.Language.Single(x => x.Name == "English"),
                Currency = "gbp",
                CurrencySymbol = "£",
                DateFormat = "DD-MM-YYYY",
            },
            new Models.Country {
                Name = "United States of America",
                ShortName = "usa",
                Language = _context.Language.Single(x => x.Name == "English"),
                Currency = "usd",
                CurrencySymbol = "$",
                DateFormat = "YYYY-MM-DD",
            },
            new Models.Country {
                Name = "Polish",
                ShortName = "pl",
                Language = _context.Language.Single(x => x.Name == "Polish"),
                Currency = "pln",
                CurrencySymbol = "zł",
                DateFormat = "DD-MM-YYYY",
            },
        };
        if (_context.Country.Any() == false)
        {
            _context.AddRange(country);
            _context.SaveChanges();
        }

        var variables = new List<Models.Variables>
        {
            new Models.Variables
            {
                Name = "Hello {0}",
                Description = "The value {0} replaces the username"
            }
        };
        if (_context.Variables.Any() == false)
        {
            _context.AddRange(variables);
            _context.SaveChanges();
        }

    }

Hello,
We've published version 1.4.1-rc01 (both for EasyData .NET packages and EasyData JS scripts).
This update fixes the issue.

Hello,
It works, when I add / edit I get this error in javascript.
You are doing a great job. A very useful tool.
easydata.min.js:2

       Uncaught TypeError: Cannot read properties of null (reading 'id')
    at t.setupLookupField (easydata.min.js:2:148951)
    at t.addFormField (easydata.min.js:2:155216)
    at t.build (easydata.min.js:2:156267)
    at t.showEditForm (easydata.min.js:2:165933)
    at t.rowDbClickHandler (easydata.min.js:2:166377)
    at Object.callback (easydata.min.js:2:124221)
    at s (easydata.min.js:2:15809)
    at t.fire (easydata.min.js:2:15843)
    at e.fireEvent (easydata.min.js:2:108906)
    at HTMLDivElement.<anonymous> (easydata.min.js:2:120217)

Hello,
Does it occur for the same Country entity we discussed before? Could you please share screenshots of how your "view" page and your "edit" dialog look like?

https://gyazo.com/27373fe80859627ad67c7ed02d49d5f5
The problem occurs wherever there is a relationship.
Above a short video.

Hello,
We've published version 1.4.1-rc02.
The real problem was in shadow properties in model classes, those ones in particular that are created automatically for navigation properties.
For example, when we define the following model class:
public class Culture {
    public Language Lanaguage { get; set; }
    .     .     .     .     .
}

Entity Framework creates a shadow property LanguageId automatically for the Culture entity.
Unfortunately, with the current implementation of the Fetch procedure, we can't get the values for shadow properties, so we just hide them and corresponding navigation properties. This fix is available in 1.4.1-rc02.
If you need to give your users a possibility to define such connections (like Language in our example) you will need to add the corresponding foreign key property explicitly:
public class Culture {
    public Language Lanaguage { get; set; }

    public int? LanguageId {get; set; }  //here we use the type of the primary key of the Language entity
    .     .     .     .     .
}

Great, they work!
It can be done that if it detects a foreign key it automatically appends the Id to the end just like EF core does. In this case, you do not need to define two values in the model. It seems to be possible to do.

Last problem, leave the ID field (if you want to put your own) but do not required. The ID is always auto increment, so if you do nothing it will either do +1 or generate a GUID

Another cool idea is you can insert default values that are in the model. So if we have:
public string DateFormat { get; set; } = "DD-MM-YYYY";

We will get this result:

I have such an error when adding any value.

Great, they work!
It can be done that if it detects a foreign key it automatically appends the Id to the end just like EF core does. In this case, you do not need to define two values in the model. It seems to be possible to do.

No, it will not work this way. Actually, it was the cause of the problem in the first place. EF automatically added those "shadow" properties (like LanguageId) but our "fetch" code can't get a value for such properties (because they don't really exist in the model class). That's why we had to remove them (and the corresponding navigation properties) to avoid the exception.
There can be other solutions: to modify our fetch procedure to make it work directly through SQL and IDataReader or to create a custom type and ask EF to map into that new type instead of the original model class. However, both these options require much more time. We already have an issue (#95 ) about that and it will be implemented in future updates.

Last problem, leave the ID field (if you want to put your own) but do not required. The ID is always auto increment, so if you do nothing it will either do +1 or generate a GUID

We have already fixed that. Please update your JS script to 1.4.1 (https://cdn.korzh.com/ed/1.4.1/easydata.min.js). If you use it already, it's probably a cache problem. The previous version of the script was cached in your browser and so, you didn't use the latest update.

Another cool idea is you can insert default values that are in the model.

Let's create another issue about that. We need to close this one first and then move forward with new features.

@Alerinos Have you checked that problem with ID fields you mentioned before and that we believe is already fixed in the latest easydata.js script?

@korzh
Yes, everything works. There is one problem with another model that I haven't uploaded before, but I will test more and create a new topic.
Great job and support!


(RE-8805) add gpg key auto-import to zypper check

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/3777/

No joy, and now sles-11 doesn't like that flag.
si2tww8crlf7doa.delivery.puppetlabs.net (sles11-64-1) 11:17:39$ zypper se -i --gpg-auto-import-keys --match-exact rsync
      Unknown option       '      --gpg-auto-import-keys

oh, huh, same message in sles-12

oh. it's a positional argument. Try it before the command, ie
zypper --gpg-auto-import-keys se -i --match-exact rsync

wl3crpkjdruzsx8:~ # zypper --non-interactive in rsync
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  rsync

The following package is not supported by its vendor:
  rsync

1 new package to install.
Overall download size: 321.4 KiB. Already cached: 0 B. After the operation, additional 625.4 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package rsync-3.1.0-2.7.x86_64                                                                                (1/1), 321.4 KiB (625.4 KiB unpacked)
Retrieving: rsync-3.1.0-2.7.x86_64.rpm .....................................................................................................................[done]
Checking for file conflicts: ...............................................................................................................................[done]
(1/1) Installing: rsync-3.1.0-2.7 ..........................................................................................................................[done]
wl3crpkjdruzsx8:~ # echo $?
0
wl3crpkjdruzsx8:~ # zypper --non-interactive --no-gpg-checks up rsync
Loading repository data...
Reading installed packages...
No update candidate for 'rsync-3.1.0-2.7.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
wl3crpkjdruzsx8:~ # echo $?
0
wl3crpkjdruzsx8:~ # zypper --gpg-auto-import-keys se -i --match-exact rsync
Loading repository data...
Reading installed packages...

S | Name  | Summary                                           | Type
--+-------+---------------------------------------------------+--------
i | rsync | Versatile tool for fast incremental file transfer | package
wl3crpkjdruzsx8:~ # echo $?
0

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/3778/

@shrug it looks like this workaround doesn't solve the issue:
mgtio2muax79tw4.delivery.puppetlabs.net (sles12-64-1) 14:10:53$ zypper --gpg-auto-import-keys se -i --match-exact rsync
      File 'repomd.xml' from repository 'pl-puppetserver-latest' is signed with an unknown key 'B8F999C007BB6C57'. Continue? [yes/no] (no):       Cannot read input: bad stream or EOF.
      If you run zypper without a terminal, use '--non-interactive' global
      option to make zypper use default answers to prompts.
      Error building the cache:
      [pl-puppetserver-latest|http://nightlies.puppetlabs.com/puppetserver-latest/repos/sles/12/PC1/x86_64/] Valid metadata not found at specified URL
      Warning: Skipping repository 'pl-puppetserver-latest' because of the above error.

    mgtio2muax79tw4.delivery.puppetlabs.net (sles12-64-1) executed in 0.35 seconds
    Exited: 4

Can you try importing the key directly prior to the first operation?
rpmkeys --import http://nightlies.puppetlabs.com/07BB6C57

@shrug looks like this works in my local testing, so I've pushed that change, and we'll see how the automation handles it.
Just to verify, should this work for puppet-external beaker users?

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/3786/

@kevpl Good news, that's the nightly build key, so it is public and available from all the ususal keyservers, so that should work just fine for external users

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/3790/

@puppetlabs-jenkins retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/3792/

LGTM! 👍

@kevpl, @tvpartytonight, and @shrug - we ran into a case where SLES puppet-agent packages from the public PC1 repos were failing with beaker test runs.  Even using the code from this PR didn't help.  We had to manually install the Puppet GPG key per this doc in order for zypper installs to work:
rpmkeys --import https://yum.puppetlabs.com/RPM-GPG-KEY-puppet

Would it be reasonable to add on another line which installs this extra key as well?  Since this PR has been merged already, I could put up a beaker PR for that if that seems reasonable.  WDYT?
/CC @adrienthebo

On Fri, Jun 2, 2017 at 10:11 AM, Jeremy Barlow<EMAIL_ADDRESS>wrote:

@kevpl https://github.com/kevpl, @tvpartytonight
https://github.com/tvpartytonight, and @shrug https://github.com/shrug

we ran into a case where SLES puppet-agent packages from the public PC1
repos were failing with beaker test runs. Even using the code from this PR
didn't help. We had to manually install the Puppet GPG key per this doc
https://puppet.com/blog/updated-puppet-gpg-signing-key in order for
zypper installs to work:

rpmkeys --import https://yum.puppetlabs.com/RPM-GPG-KEY-puppet
Would it be reasonable to add on another line which installs this extra
key as well? Since this PR has been merged already, I could put up a beaker
PR for that if that seems reasonable. WDYT?

For consuming the public repos, you might be better off using the release
packages at the root of http://yum.puppetlabs.com/ - there are separate
packages for each repo ("classic", PC1, soon to be puppet5) but they
install all of our signing keys and get updated whenever there's a new key

/CC @adrienthebo https://github.com/adrienthebo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/puppetlabs/beaker/pull/1381#issuecomment-305854460,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHx84u_vP3tYEdXGt8M5AjrvPvJKuzEks5sAEJFgaJpZM4NJOW7
.

--
Rob Braden
Puppet Release Team


[Feature] Support storing the commit ID and packaging time inside the JAR,when building a JAR package with Paimon

Search before asking

[X] I searched in the issues and found nothing similar.

Motivation
It is necessary to record the commit ID and build time inide jar for easy tracking of code versions when using a jar package built from a specific version of the master branch to experience the latest features.
Solution
No response
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

i wander is this what you want? the image is the git log output

and the META-INF/MANIFEST.MF content:  SCM-Revision: 58cd5a58306cd00b07eff56875206b0e49e38269
Manifest-Version: 1.0
Implementation-Title: Paimon : Common
Implementation-Version: 0.5-SNAPSHOT
Archiver-Version: Plexus Archiver
Built-By: zhujing
Specification-Vendor: The Apache Software Foundation
Specification-Title: Paimon : Common
Implementation-Vendor-Id: org.apache.paimon
Implementation-Vendor: The Apache Software Foundation
SCM-Revision: 58cd5a58306cd00b07eff56875206b0e49e38269
Created-By: Apache Maven 3.9.3
Build-Jdk: 1.8.0_382
Specification-Version: 0.5-SNAPSHOT

Good Job ! @zhu3pang  , this can meet my needs. I haven't found SCM-Revision in the Paimon flink jar yet. Does this require additional development?

@wg1026688210  use the git-commit-id-plugin , then add SCM-Revision property to the maven-jar-plugin, here is the patch
scm.patch

@wg1026688210 @zhu3pang Sounds good to me~

hi~ @zhu3pang Would you like to create a pr to fininsh it.

@wg1026688210 sure, i will create a pr later


Bibha Singh: Individual Project, 2 weeks

The individual project is all about showcasing the skills that we have learned so far. In two weeks, we are targeting to build one quiz application using the Ionic framework.

Week 1
I Need Help With:
As of now, no help is required
What went well?
Creation of project and deployment on netlify
What went less well?
Still working on it. Will conclude later
Lessons Learned
Working with Ionic framework
Sunday Prep Work
ongoing
GitHub repo: https://github.com/bibhasingh/quiz-proj-indv
Netlify app link: https://quizappbibha.netlify.app/home


Got TLS error trying to find package _ at https://pub.dartlang.org

Steps to Reproduce
flutter create -v flutter_test_app

Behind company proxy (http://proxy.our-domain.com:8080) (No HTTPS/SSL)
Environment
OS: Windows 10
HTTP_PROXY and HTTPS_PROXY Env vars are set.
Logs
[  +28 ms] [C:\Users\i01002704\AppData\Local\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +93 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/beta
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git rev-parse --abbrev-ref HEAD
[  +58 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] beta
[   +3 ms] [C:\Users\i01002704\AppData\Local\flutter\] git ls-remote --get-url origin
[  +67 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git log -n 1 --pretty=format:%H
[  +54 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] b397406561f5e7a9c94e28f58d9e49fca0dd58b7
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git log -n 1 --pretty=format:%ar
[  +51 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 9 days ago
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +50 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v0.2.8-0-gb39740656
[ +437 ms] Creating project flutter_test_app...
[  +26 ms]   flutter_test_app\.gitignore (created)
[  +19 ms]   flutter_test_app\.idea\libraries\Dart_SDK.xml (created)
[  +12 ms]   flutter_test_app\.idea\libraries\Flutter_for_Android.xml (created)
[   +3 ms]   flutter_test_app\.idea\modules.xml (created)
[   +5 ms]   flutter_test_app\.idea\runConfigurations\main_dart.xml (created)
[   +4 ms]   flutter_test_app\.idea\workspace.xml (created)
[   +5 ms]   flutter_test_app\.metadata (created)
[   +3 ms]   flutter_test_app\android\app\build.gradle (created)
[   +5 ms]   flutter_test_app\android\app\src\main\java\com\example\fluttertestapp\MainActivity.java (created)
[   +6 ms]   flutter_test_app\android\build.gradle (created)
[   +5 ms]   flutter_test_app\android\.gitignore (created)
[   +2 ms]   flutter_test_app\android\app\src\main\AndroidManifest.xml (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\drawable\launch_background.xml (created)
[   +4 ms]   flutter_test_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
[   +4 ms]   flutter_test_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
[   +5 ms]   flutter_test_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\values\styles.xml (created)
[   +4 ms]   flutter_test_app\android\gradle\wrapper\gradle-wrapper.properties (created)
[   +3 ms]   flutter_test_app\android\gradle.properties (created)
[   +5 ms]   flutter_test_app\android\settings.gradle (created)
[   +3 ms]   flutter_test_app\ios\Runner\AppDelegate.h (created)
[   +3 ms]   flutter_test_app\ios\Runner\AppDelegate.m (created)
[   +2 ms]   flutter_test_app\ios\Runner\main.m (created)
[   +3 ms]   flutter_test_app\ios\Runner.xcodeproj\project.pbxproj (created)
[  +15 ms]   flutter_test_app\ios\.gitignore (created)
[   +3 ms]   flutter_test_app\ios\Flutter\AppFrameworkInfo.plist (created)
[   +3 ms]   flutter_test_app\ios\Flutter\Debug.xcconfig (created)
[   +2 ms]   flutter_test_app\ios\Flutter\Release.xcconfig (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created)
[   +4 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +4 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +4 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]<EMAIL_ADDRESS>(created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created)
[   +4 ms]<EMAIL_ADDRESS>(created)
[   +4 ms]<EMAIL_ADDRESS>(created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created)
[   +3 ms]   flutter_test_app\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
[   +3 ms]   flutter_test_app\ios\Runner\Base.lproj\Main.storyboard (created)
[   +3 ms]   flutter_test_app\ios\Runner\Info.plist (created)
[   +4 ms]   flutter_test_app\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created)
[   +3 ms]   flutter_test_app\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created)
[   +4 ms]   flutter_test_app\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
[   +3 ms]   flutter_test_app\lib\main.dart (created)
[   +7 ms]   flutter_test_app\flutter_test_app.iml (created)
[   +3 ms]   flutter_test_app\flutter_test_app_android.iml (created)
[   +3 ms]   flutter_test_app\pubspec.yaml (created)
[   +3 ms]   flutter_test_app\README.md (created)
[   +4 ms]   flutter_test_app\test\widget_test.dart (created)
[  +21 ms] Wrote 65 files.
[   +5 ms] Running "flutter packages get" in flutter_test_app...
[   +4 ms] Using C:\Users\i01002704\AppData\Local\flutter\.pub-cache for the pub cache.
[   +4 ms] [C:\Users\i01002704\Documents\i01002704\Projects\Android\flutter_test_app\] C:\Users\i01002704\AppData\Local\flutter\bin\cache\dart-sdk\bin\pub.bat --verbosity=warning --verbose get --no-precompile
[+64423 ms] Got TLS error trying to find package cupertino_icons at https://pub.dartlang.org.
[  +23 ms] pub get failed (69) -- attempting retry 1 in 1 second...

Flutter Doctor
[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.15063], locale de-DE)
    • Flutter version 0.2.8 at C:\Users\i01002704\AppData\Local\flutter
    • Framework revision b397406561 (9 days ago), 2018-04-02 13:53:20 -0700
    • Engine revision c903c217a1
    • Dart version 2.0.0-dev.43.0.flutter-52afcba357

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\i01002704\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-P, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    X Android license status unknown.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[!] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at C:\Users\i01002704\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\173.4674.33
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code, 64-bit edition (version 1.22.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code

[!] Connected devices
    ! No devices available

! Doctor found issues in 4 categories.

Sorry for not responding earlier.
Is this still an issue?

I think yes

I tried setting PUB_HOSTED_URL to http://pub.dartlang.org
i still get Got TLS error trying to find package cupertino_icons at http://pub.dartlang.org.

This helped me: https://github.com/dart-lang/pub/issues/1882#issuecomment-415588527

Seems to be a dup of #15014 then. Thanks for the update!

I have the same issue, when I run 'flutter packages get':

Got TLS error trying to find package mime at https://pub.dartlang.org.

Or when I run 'DART_VM_OPTIONS=--root-certs-file=some_file flutter packages get:

===== CRASH =====
version=2.1.2-dev.0.0.flutter-0a7dcf17eb (Tue Feb 12 01:59:15 2019 +0000) on "linux_x64"
si_signo=Segmentation fault(11), si_code=1, si_addr=0x10
thread=10810, isolate=pub.dart.snapshot:main()(0x26b4ad0)
Stack dump aborted because InitialRegisterCheck failed.
Running "flutter packages get" in cbs_receipt_collector...
pub get failed (-6)

Running 'flutter doctor -v':

[✓] Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
• Flutter version 1.2.1 at /home/tom/Flutter/flutter
• Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/tom/Android/Sdk
• Android NDK at /home/tom/Android/Sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at /opt/android-studio
• Flutter plugin version 29.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.32.3)
• VS Code at /usr/share/code
• Flutter extension version 2.25.0
[!] Connected device
! No devices available
! Doctor found issues in 1 category.

Been trying to fix it for about 4 hours now.  dart-lang/pub#1882 (comment) doesn't help, neither does re-installing Flutter. Or anything else you will find googling for this issue.
It used to work just fine. Any tips would greatly help with my sanity at the moment.

Alternative solution here (for Ubuntu 16.04), make sure that your certificates are in order:
sudo apt-get install update-ca-certificates
sudo update-ca-certificates

can anyone tell me how i can get certificate file in windows 10?

Got TLS error trying to find package cupertino_icons at https://pub.dev/.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Can someone help me?

Same error here. Still no solution on windows 10...

Same error here. Still no solution on windows 10...

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.
The error only disappeared after disabling the anti virus kaspersky.

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.
The error only disappeared after disabling the anti virus kaspersky.

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.
The error only disappeared after disabling the anti virus kaspersky.

I don't have any antivirus on the way. Unfortunately it's a corporate proxy/firewall thing.

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.
The error only disappeared after disabling the anti virus kaspersky.

I don't have any antivirus on the way. Unfortunately it's a corporate proxy/firewall thing.

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

Thanks Paul. I'm guessing a corporate firewall was causing the issue.

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

Thanks Paul. I'm guessing a corporate firewall was causing the issue.

yes it's always a proxy/firewall thing. In my case I could not manage to sort it out.


dbcreator_encode: K562 bug

K562 is the cell line that is parsed out of the file names. But sometimes it is labeled as K562b or as K562E, URLs below. These are depreciated cell line names, and are the same as K562.
Can we hard-code these exceptions, so the files are downloaded with the original names but processed specially. E.g.
wgEncodeSydhHistone/wgEncodeSydhHistoneK562bH3k27me3bUcdPk.narrowPeak.gz - should be K562-H3k27me2-Sydh
wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562EfosUniPk.narrowPeak.gz - should be K562-Fos-Uchicago
All noted bugs:
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeSydhHistone/wgEncodeSydhHistoneK562bH3k27me3bUcdPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeSydhHistone/wgEncodeSydhHistoneK562bH3k4me1UcdPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeSydhHistone/wgEncodeSydhHistoneK562bH3k4me3bUcdPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeSydhHistone/wgEncodeSydhHistoneK562bH3k9acbUcdPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562EfosUniPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562Egata2UniPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562Ehdac8UniPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562EjunbUniPk.narrowPeak.gz
hgdownload.cse.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeAwgTfbsUniform/wgEncodeAwgTfbsUchicagoK562EjundUniPk.narrowPeak.gz

At least for the K562E bug, we need to hard code these particular files. Simply repl6acing K562E with K562 will break the "K562Ezh2" files, where Ezh2 is a legitimate factor.
So, even in the wrong files, not only the K562E should be K562, but also the factors should be capitalized, e.g., Fos.

In re K562b - we can rename the files. There is no factors that start with lowercase "b". But there are some factors starting with capital "B", e.g., Btf3. So, if the split algorithms in the dbcreator are case-sensitive (to my knowledge, yes), we should be good with renaming K562b to K562

Won't fix. Temporary solution - delete 'K562b' folders as they contain files the same as in regular 'K562'. The 'K562E' will be processed into correct 'K562' folder, but factor will be like 'Efos' - this can be corrected manually in the 'gf_description' file.

The "K562E" error is fixed. The "K562b" folders should be manually deleted.
The duplicates are:
  2 K562-H3k9acb-SydhHistone.bed.gz
  2 K562-H3k4me3b-SydhHistone.bed.gz
  2 K562-H3k4me1-SydhHistone.bed.gz
  2 K562-H3k27me3b-SydhHistone.bed.gz


Changes to the controls of our robot

This is an open-ended "challenge" for the programmers. We have a problem. The controls of our features are hard to manage, and we need to manually make sure they do not conflict.
We need the ability for Features to have fields that store what buttons or axes correspond to an action and to have a method that OpModes can use to change any conflicting controls, as well as changes to the registerFeature that can check for conflicting controls upon adding the Feature.
There should be a "middleman" method between the Feature trying to read a button and the button being read, with this "middleman" method using a list of controls to say which action requires which button.
Optionally, add an additional optional parameter to allow for bypassing duplicate control checks.
I will use this as somewhat of a learning exercise and I will be willing to walk you through how to solve the problem. Feel free to add a comment with questions or link a PR. Please don't merge PRs for this issue without my approval.

I had a crazy idea on this. What if features could define actions and then the opmode would bind them to a button, like in a video game with keybindings?
ExFeature.java
public class ExFeature extends Feature {
    public void doSomething(boolean buttonPressed) {
        if (buttonPressed) servo.doSomething;
    }

    public void runMotor(int axis) {
        motor0.setPower(axis);
    }
}

ExOpmode.java
public class ExOpmode extends OperationMode implements TeleOperation {
    public void construct() {
        ExFeature feature = new ExFeature();
        feature.bind(controller1.buttonA, doSomething);
        feature.bind(controller1.leftStickY, runMotor);
        registerFeature(feature);
    }

    public void run() {}
}

But IDK how that would even work.

That might not work because you would have to do some complicated reflection. I think what we need is a "middleman" accessor for the controllers, so instead of doing literally controller1.getButtonA() you do something like getButton(ACTION_ID) where ACTION_ID would be some constant stored in the feature, and it returns the value of whichever button/axis is bound. If you find the way you outlined does work then that might be a better way.

Also @24cteahan can you update us on your progress?


fix(protocol-designer): remove flickering in timeline and fix distrib…

…ute details
closes RQA-3630 RQA-3624
Overview
This PR does 2 things:

fixes the step details when you have distributed something
adds fixed box to step summary to avoid flickering, updates copy for terminal steps, and adds a title copy for terminal text

Test Plan and Hands on Testing
Create a protocol and make a distribute step: basically aspirate from 1 well and dispense into multiple wells and add a small volume like 10uL and the distribute path should be selectable. Then click "view details" on the step's overflow menu and see that it looks as expected with no extra blank list items
Then upload the attached protocol and hover through the steps in the timeline, see that there is no flickering
1.0 testing.json
Changelog

only show aspirate list item if there is an aspirate well present
add a fixed box to avoid flickering in protocol steps
add copy to terminal step items

Risk assessment
low

I think we need to format uppercase the DeckInfoLabel deckLabel translation, and omit liquid icon?


Question about extraction a single lane for the road.network.lane_list()

Hi, I am working with the parking-v0 environment, I am trying to config a specific scenario with two parked vehicles and a static goal between them.
To avoid the creation of a random goal I was wondering to modify this line in the parking_env.py file:
lane = self.np_random.choice(self.road.network.lanes_list())
and choose one of the list's lane in particular, but I don't understand how to index a single lane due to the object type.
Can you help me with that? Thanks in advance.

Hi @Andrealberti
A set of parallel lanes is considered as part of a single road segment, which is indexed by two labels representing its start and end locations (these labels are only used for the network topology, to search for connected routes)
In parking, we have 2 rows of parking spots, which are represented by two "roads", the bottom one ("a"->"b"), and the top one ("b"->"c") (here "a" represents the south of the parking, "b" is the middle area, and "c" is the northern region, although it does not really matter in this case since these are not connected roads).
And then, to get a particular lane in the road, you can simply refer to it by an index. In the end, a LaneIndex is a tuple (start label, end label, lane index) used to index any lane in the network.
For instance, to get the 3rd spot of the top row, you can simply call
self.road.network.get_lane(("b", "c", 2))

Thank you so much,  I was trying to use the wrong function with the right indices.

Sorry, another question. I have tried to implement what I was talking about, but I think that the parking environment doesn't take in account collisions with other vehicles/obstacles in the reward computation, in fact I obtained very bad results training the HER algorithm with SAC policy.  @eleurent Have you ever tried to implement a simil scenario?


illegal url for new iframe

I'm trying to implement firebase with my website, using the AngularFire2 library (https://github.com/angular/angularfire2)
It works on all desktop / laptop browsers I've tested and on Android. However, when I try to load it on an iphone, I get this error:
illegal url for new iframe: https://**project id**/firebaseio.com/__/auth/iframe?etcetc
I suspect that mobile ios browsers block cross-domain urls in iframes. Safari on an iphone fails with this error, Chrome on an iphone also fails but I can't remote-debug to see the error.
is this a gapi issue (instead of an AngularFire2 or firebase issue)? is this known? if so, how would you advise me to fix it?

looking back on the error, it's actually:
https://**project id**.firebaseio.com%2F/__/auth/iframe?etcetc
I left a trailing slash in my config json, which got converted to a %2F.


Support grafonnet-lib dashboards

Grafana offers a declarative way for generating Grafana dashboard.
This is a proposal to support dashboards in jsonnet(grafonnet-lib) format.
So, that in addition to raw JSON dashboards it's possible declaring dashboards in jsonnet format using grafonnet-lib.

I've thought about this too. Currently i think you could precompile the jsonnet and then copy the generated json. But supporting jsonnet directly should certainly be possible.

Yes, precompiling is what we're currently doing.

for jsonnet - what would you do?
Add a field in GrafanaDashboardSpec or introduce a new type or reuse json field for jsonnet(as a valid json is a valid jsonnet).

Grafonnet is often used with mixins. The challenge here would be dependency management or allowing multiple jsonnet files in general.

It would definitely be a new field in the Dashboard CR. We wouldn't reuse json for this. As for dependency managedment, i'm not quite sure yet. I need to familiarize myself with jsonnet + grafonnet. Maybe we could ship some commonly used Mixins? Or perhaps it could be handled similar to dashboard plugins where your CR specifies the required mixins and the operator then makes sure they exist in the pod (provided there is some sort of repository for those mixins).

We have an initial implementation for this in #202
This uses Google's jsonnet implemenmtation in Go and the operator comes with the Grafonnet library preinstalled. We were discussing ways to add additional libraries and will probably implement a config map based approach: you can create a config map with a list of repositories of jsonnet libraries. If the operator detects such a library, it will clone/download those libraries and make them available to the jsonnet compiler.
Any feedback welcome!

Good to hear. We'll try that out early July.

@toidi @fischerman Closing off, Grafonnet support has been merged to master :smiley:


Support pub/sub only semantics for Kafka binder

As a developer, I'd like to support only pub/sub semantics for Kafka binder.
Acceptance:
queue semantics are not supported
pub/sub specs are supported and documented with samples

Closed via https://github.com/spring-cloud/spring-cloud-stream/commit/c3758b9dc0d0ccebbf162a7f75affb84a1b08ff0


[Image Resizer] remove old settings

Summary of the Pull Request
What is this about:
0.37 only runs on 1903 and newer, therefore Image Resizer in app settings are obsolete and can be removed.
What is include in the PR:
Removed the in app settings, removed the unused strings and helper functions related to the in app settings.
How does someone test / validate:
Build Image Resizer and verify all expected functionalities are working.
Quality Checklist

[x] Linked issue: #9417
[ ] Communication: I've discussed this with core contributors in the issue.
[ ] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Docs: Added/ updated
[ ] Binaries: Any new files are added to WXS / YML

[x] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

@bricelam
if you have time, can you review it? Thanks.

@bricelam
I'm going to merge it since we need it to unblock other work, but feel free to review it anyway.
Thanks.


munin: 2.0.49 -> 2.0.51

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/munin/versions.
meta.description for munin is: '"Networked resource monitoring tool"'.
meta.homepage for munin is: '"http://munin-monitoring.org/"
Compare changes on GitHub

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.0.51 with grep in /nix/store/smlwa7ic2bln4q6dyr07ify4is1ahh5r-munin-2.0.51

directory tree listing: https://gist.github.com/9d10800bc7443655d555ea4f8e6dbdff

du listing: https://gist.github.com/0d7379ae588a7d6326072d022f434633

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
munin

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/smlwa7ic2bln4q6dyr07ify4is1ahh5r-munin-2.0.51 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A munin https://github.com/r-ryantm/nixpkgs/archive/486ae6b3e8e8a4dd3b90ef2626a3ac0aeb09779e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/smlwa7ic2bln4q6dyr07ify4is1ahh5r-munin-2.0.51
ls -la /nix/store/smlwa7ic2bln4q6dyr07ify4is1ahh5r-munin-2.0.51/bin

Experimental: CVE security report (click to expand)

CVEs resolved by this update:
none
CVEs introduced by this update:
none
CVEs present in both versions:

CVE-2017-6188

cc @domenkozar @bjornfor for testing.

The munin service in NixOS is currently broken due to bug in perl-5.30: https://github.com/NixOS/nixpkgs/issues/70930. Waiting for perl bugfix to be released. (This PR can still be merged, of course, but it'll be more difficult to test.)

I'll wait for the perl changes to be remedied :)

@GrahamcOfBorg test munin


zk: Automatically create /zk root if it doesn't exist.

@alainjobart
Create /zk root as necessary instead of relying on zkctl to do it.
This makes it easier to use Vitess with ZooKeeper servers that aren't
started via zkctl.
Fixes #1779

This change is

LGTM


parameters to use existing search, openai and storage account

Motivation
Options to deploy the solution using an existing resource group, AI Search object, OpenAI object and storage account. This will save money and reduce object sprawl when multiple use cases are deployed.
Requirements
A list of requirements to consider this feature delivered
Deployment parameters to use existing copies of objects that support multiple AI use cases
Parameters should indicate that an existing object is to be used and then use the object name to indicate the existing object and skip creating a new object for those cases.
Thanks in advance.

Hi @guyyardeni this is possible to do. If you are deploying via azd you should use teh following commands: -
azd env new myTest
azd env set key value
for each of the keys. There should be one for resource group, ai search object, storage account etc.

In fact - I believe that this is captured in #652


Change include_lib to include for riak_core headers

Failing compile w/o changes:  http://buildbot-master.den.basho:8010/builders/test-riak_core/builds/57
Passing compile w/ changes: http://buildbot-master.den.basho:8010/builders/test-riak_core/builds/58

This change was already covered by @seancribbs PR 141 https://github.com/basho/riak_core/pull/141


Reader doesn't log 200/204 coming from the Adaptor sometimes

Under certain conditions (unclear yet) the Reader seems to not log (maybe not even receive?) the 200 or 204 confirmations from the Adaptor, while other response codes like 207 or 503 are logged. Further investigation is required.

I would have to investigate this further, but my educated guess is that it is timeout related. When the adaptor receives an event, it handles it synchronously and doesn't send a reply to the reader until it is able to apply the changes to vManage. If this takes longer than the timeout set in the reader, the reply may be missed.

I would have to investigate this further, but my educated guess is that it is timeout related. When the adaptor receives an event, it handles it synchronously and doesn't send a reply to the reader until it is able to apply the changes to vManage. If this takes longer than the timeout set in the reader, the reply may be missed.

Maybe, but I doubt the time out is involved because no timeout error is thrown by the cnwan reader, it just doesn't receive the response from the OpenAPI generated code but just continues working as usual.
I need to re-read that part of the code, it might even just be forgetting to log 200 or something like that.

Adding a bit more to the conversation:

every other code comes immediately, it's just 200 and 204 that do not
when both reader and adaptor run on the same machine, then this error does not happen and every response code is caught immediately.


Converted find_reporting_unit.feature to standalone

Motivation and Context
Converted find_reporting_unit.feature to standalone
How to test?
make acceptance_tests
Links
Trello

 T404:Acceptance Tests:find_reporting_unit.feature


ImplementRV32/64C

It would be something like this

Fetch instruction 32-bit
Check the first 16-bits if it's compressed instruction
Decompress if the instruction is compressed
Increment PC depends on whether the instruction is compressed, 2 for compressed instruction and 4 for non-compressed one

or

Fetch instruction 16-bit
Check if it's compressed instruction
Decompress if the instruction is compressed, or fetch the following 16-bit if it isn't compressed
Increment PC depends on whether the instruction is compressed, 2 for compressed instruction and 4 for non-compressed one

And the current implementation expects fixed 32-bit instruction length at some places. We need to update them.

Regarding the test, I succeeded in building riscv-tests with compressed instructions by replacing -march=rv32/64g with -march=rv32/64gc.

I've reviewed riscv-tests and think the existing rv32/64uc-p-rvc may be good enough now.

Done RV64C. RV32C is not yet.


Flutter fails to build with Android SDK Build-tools 24 installed

With the latest version of the Android build tools installed (24), all my flutter builds were failing, and I didn't know why.
It's easily reproducible after installing Android SDK Build-tools 24. Deleting build tools 24 fixes the issue.
Run the following:
flutter create myapp
cd myapp
flutter run

You'll get output that looks something like this:
flutter run
Building APK in debug mode (android-arm)...
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Oops; flutter has exited unexpectedly: "Exit code 1 from: /Users/spierce7/Android/sdk/build-tools/24.0.0/dx --dex --force-jumbo --output /var/folders/sk/23bc7hkx66l094f_x2npc4qr0000gn/T/flutter_toolsNUIwjs/classes.dex /Users/spierce7/frameworks/flutter/bin/cache/artifacts/engine/android-arm/classes.dex.jar".
Crash report written to /Users/spierce7/workspace/Personal/flutter/myapp3/flutter_01.log;
please let us know at https://github.com/flutter/flutter/issues.

Here is the generated log file:
command
flutter run
exception
Exit code 1 from: /Users/spierce7/Android/sdk/build-tools/24.0.0/dx --dex --force-jumbo --output /var/folders/sk/23bc7hkx66l094f_x2npc4qr0000gn/T/flutter_toolsNUIwjs/classes.dex /Users/spierce7/frameworks/flutter/bin/cache/artifacts/engine/android-arm/classes.dex.jar
package:flutter_tools/src/base/process.dart 144                   _runWithLoggingSync
package:flutter_tools/src/base/process.dart 81                    runCheckedSync
package:flutter_tools/src/commands/build_apk.dart 104             _ApkBuilder.compileClassesDex
package:flutter_tools/src/commands/build_apk.dart 315             _buildApk
package:flutter_tools/src/commands/build_apk.dart 540             buildAndroid.<async>
dart:async                                                        _SyncCompleter.complete
package:flutter_tools/src/flx.dart 305                            buildFlx.<async>
dart:async                                                        _SyncCompleter.complete
package:flutter_tools/src/flx.dart 461                            assemble.<async>
===== asynchronous gap ===========================
dart:async                                                        _Completer.completeError
package:flutter_tools/src/commands/build_apk.dart 557             buildAndroid.<async>
dart:async                                                        _SyncCompleter.complete
package:flutter_tools/src/flx.dart 305                            buildFlx.<async>
dart:async                                                        _SyncCompleter.complete
package:flutter_tools/src/flx.dart 461                            assemble.<async>
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/commands/build_apk.dart                 buildAndroid
package:flutter_tools/src/commands/build_apk.dart 567             buildApk.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/build_apk.dart                 buildApk
package:flutter_tools/src/commands/run.dart 181                   startApp.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/run.dart                       startApp
package:flutter_tools/src/commands/run.dart 129                   RunCommand.runInProject.<async>
===== asynchronous gap ===========================
dart:async                                                        Future.Future.microtask
package:flutter_tools/src/commands/run.dart                       RunCommand.runInProject
package:flutter_tools/src/runner/flutter_command.dart 172         FlutterCommand._run.<async>
dart:async                                                        _SyncCompleter.complete
package:flutter_tools/src/cache.dart 121                          Cache.updateAll.<async>
===== asynchronous gap ===========================
dart:async                                                        _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command.dart             FlutterCommand._run
package:flutter_tools/src/runner/flutter_command.dart 103         FlutterCommand.run
package:args/command_runner.dart 176                              CommandRunner.runCommand.<fn>
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 129                              CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 180  FlutterCommandRunner.runCommand
package:args/command_runner.dart 103                              CommandRunner.run.<fn>
dart:async                                                        Future.Future.sync
package:args/command_runner.dart 103                              CommandRunner.run
package:flutter_tools/src/runner/flutter_command_runner.dart 123  FlutterCommandRunner.run
package:flutter_tools/executable.dart 88                          main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace                                               Chain.capture
package:flutter_tools/executable.dart 82                          main.<async>

flutter doctor
[✓] Flutter (on Mac OS, channel alpha)
    • Flutter at /Users/spierce7/frameworks/flutter
    • Framework revision 6d2d495369 (2 weeks ago), engine revision a943c732d5

[✓] Android toolchain - develop for Android devices (Android SDK 24.0.0)
    • Android SDK at /Users/spierce7/Android/sdk
    • Platform android-N, build-tools 24.0.0
    • Java(TM) SE Runtime Environment (build 1.7.0_80-b15)

[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
    • XCode at /Applications/Xcode.app/Contents/Developer
    • Xcode 7.3.1, Build version 7D1014

[✓] Atom - a lightweight development environment for Flutter
    • flutter plugin version 0.2.2
    • dartlang plugin version 0.6.22

Thanks for the detailed report and diagnosis.

FYI @jason-simmons

Which version of the Java runtime is in your path?
I believe the version 24 build tools require Java 1.8

@jason-simmons My JAVA_HOME is set to 1.7. Maybe that's it?

I ran into the same problem, and I can confirm that after installing JDK8, the flutter build apk successfully builds the apk.

I believe flutter tool now checks for SDK 25. Closing this as we haven't heard reports of this issue in quite a while. Please let us know if it continues to happen.


[Bug] Creating more than 1 createCustomError() overwrites the "name" of the error.

This appears to be because the prototype of the function passed here to the _createCustomError is always the same and the _createCustomError is replacing it here

I bumped this to a P1 as this is actually corrupting the main "Error" prototype name assigning the last custom error name to the Error.prototype.name so event new Error() will be assigned / use this name.


Deflake more integration tests

How to categorize this PR?

/area testing
/kind flake
What this PR does / why we need it:
Deflake more integration tests

ExposureClass controller
ControllerDeployment controller
cloudprovider webhook

Which issue(s) this PR fixes:
Fixes https://github.com/gardener/gardener/issues/6496

Let's get this in, presubmits are very flaky these days.
/approve


Add a random worker selection once the pull is full strategy.

Not sure it will be useful for a real world workload but it was quick to
implement ;)
Signed-off-by: Jérôme Benoit<EMAIL_ADDRESS>
PR Checklist

[x] Please add a description of your changes.
[ ] We need your changes to come with unit tests in order to keep this project in quality and easy to maintain.
[ ] Please add a link to the open issue or task that this pull request will resolve.
[ ] Add a note to the changelog to indicate the change.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

If yes please indicate it and migration info into the CHANGELOG.md file.

Thanks for your submission Jerome, I Will look more deeply tomorrow but please note that there are two security hotspots on sonar

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

Thanks for your submission Jerome, I Will look more deeply tomorrow but please note that there are two security hotspots on sonar

It's because we call Math.random(). But we are not affected by any vulnerabilities and have not security code here. So you @pioardi can go to SonarCloud and just disable this warning.

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

I also thought that :thinking:
The code itself is okay, but the need... :shrug: Not really :thinking:

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

It's useful for testing purpose, especially for internal benchmarking on selection strategies as a kind of worst case.

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

It's useful for testing purpose, especially for internal benchmarking on selection strategies as a kind of worst case.

mmmmm I really don't see this needed for testing purposes, I mean why we need a worst case ?
I am sorry I just really do not see any benefit providing this feature, rather it could be misleading for end users

I also agree with @pioardi
Also, and now you see hopefully the problem, you are doing multiple things in one PR again.
Some little code snippets are okay but they are in this big branch and you need to extract them now into a new PR if we want them :slightly_frowning_face:
@jerome-benoit If you provide a new feature (like a new strategy) you should also think about creating an issue for that so we can talk about it before wasting time implementing it
Instead we could implement a way that users can pass their own strategy. Currently the switch-case only allows poolifier internal strategies and prevent the user from trying they own strategy

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

It's useful for testing purpose, especially for internal benchmarking on selection strategies as a kind of worst case.

mmmmm I really don't see this needed for testing purposes, I mean why we need a worst case ?
I am sorry I just really do not see any benefit providing this feature, rather it could be misleading for end users

It's a performance evaluation thing, it's like fault injection for security: you do things unexpected in a code path and you fix its impact. And you keep it as a landmark for non regression on the code path.
It's ok to change the API to allow to pass that strategy for performance evaluation instead of providing it in poolifier.

@jerome-benoit If you provide a new feature (like a new strategy) you should also think about creating an issue for that so we can talk about it before wasting time implementing it
Instead we could implement a way that users can pass their own strategy. Currently the switch-case only allows poolifier internal strategies and prevent the user from trying they own strategy

It's way more efficient to discuss around a piece of code than around an issue.
GitHub implied code flow is not efficient but I can't change it. I will try to use stgit in a future to split implementation in small logical pieces that could be submitted as a GitHub PR (the inefficient GitHub understanding of it ... unfortunately)

@jerome-benoit I think you are confusing efficient with fast

I am not sure we really Need this guys, i am thinking to a real scenario where this can be really a benefit mmmmm

It's useful for testing purpose, especially for internal benchmarking on selection strategies as a kind of worst case.

mmmmm I really don't see this needed for testing purposes, I mean why we need a worst case ?
I am sorry I just really do not see any benefit providing this feature, rather it could be misleading for end users

It's a performance evaluation thing, it's like fault injection for security: you do things unexpected in a code path and you fix its impact. And you keep it as a landmark for non regression on the code path.
It's ok to change the API to allow to pass that strategy for performance evaluation instead of providing it in poolifier.

I think having the possibility to pass a strategy and then pass the random strategy from a test would be a great trade-off.

@jerome-benoit I think you are confusing efficient with fast

Not at all, have a look at the way PRs are done on git, Linux Kernel, OpenWrt (when GitHub is not used), glibc, etc. PRs here huge and review is done at the commit level.

@jerome-benoit I think you are confusing efficient with fast

Not at all, have a look at the way PRs are done on git, Linux Kernel, OpenWrt (when GitHub is not used), glibc, etc. PRs here huge and review is done at the commit level.

You compare big-sizes repos with great amount of developers with a 3-member small-sized JS-lib :eyes:

@jerome-benoit I think you are confusing efficient with fast

Not at all, have a look at the way PRs are done on git, Linux Kernel, OpenWrt (when GitHub is not used), glibc, etc. PRs here huge and review is done at the commit level.

You compare big-sizes repos with great amount of developers with a 3-member small-sized JS-lib 👀

A code flow does not change because of the community size or code size, it changes because of the tooling and project rules regarding it.
When you use GitHub, you are stuck to PR based level review and that's not efficient.

@jerome-benoit  if you can jump into the chat I would love a discussion about the last message you sent :)

IMO this PR is superseded by #234
I will close it


Let an author add new fields during the automation process

This starts addressing some of things needed for #497 to be completed

Going to merge for now but welcome feedback after the fact


Update classes.md to fix a few issues.

I'm no Python expert, so let me know if I have this wrong, but...

I've removed the member variables defined in the classes (rather than in the constructor). These are static members and thus aren't the ones being used in the methods.
I've corrected the error that's generated when you try to access a private (ie name mangled) member
I've removed the section on structural typing - that doesn't look right.  The code as presented works just fine for me.
I've tried to clarify that the single underscore meaning 'protected' is just a convention. Python won't stop you accessing the member anyway.

[Or have I misunderstood and is Microbit Python a little 'non-standard' due to it needing to convert to/from JS?  I've tried to test out the code in MakeCode but have been running into issues like https://github.com/microsoft/pxt-microbit/issues/4201

Alas, I can't sign the CLA due to restrictions from my employer.  I'll withdraw this PR and file a bug instead.

Filed: https://github.com/microsoft/pxt/issues/8252


unwind-sys fails to build with RC pkg-config

When building with pkg-config 1.7-rc1, we end up trying to cast the string 7-rc1 to a u32 here:
https://github.com/sfackler/rstack/blob/master/unwind-sys/build.rs#L16
Simply adding .replace("-rc","") seems to work around the issue for now but does screw up the minor version
Might make a PR myself but I haven't looked closely enough to determine the most reasonable way to solve this

It seems this was fixed in https://github.com/sfackler/rstack/commit/2c991d89c8c80377a71ce5dc99a2609c09bcaeb8, but there hasn't been a new release of libunwind or libunwind-sys with these changes. Would it be possible to cut a new release with the fixes?

Published!

@sfackler Thanks very much for the quick release!

Originally ran into this while building https://github.com/servo/servo - this fix being pushed out will make it a bit easier for new folks to build the app and contribute!


Allow is_flag=True, multiple=True with non-bool flag_value

Allow creating options with is_flag=True and multiple=True if
flag_value is also set to a non-bool value.
Fixes #2292
Checklist:

[x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
[ ] Add or update relevant docs, in the docs folder and in code.
[x] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[ ] Add .. versionchanged:: entries in any relevant code docs.
[x] Run pre-commit hooks and fix any issues.
[x] Run pytest and tox, no tests failed.

Ended up fixing the issue in #2550 instead of raising any error at all.


Wonderbrush 64bit crash when clicking settings tab by first start

Installed Wonderbrush with HaikuDepot opened it and tried to change settings... it crashed
after reboot next day no more crash!?

Maybe it crashed while creating a settings file and once it's there it doesn't crash anymore?

Now it crashes when trying to open the language Tab again, nothing I changed. How and where to upload the crash report?

Please try Haiku hrev54798 or later.

works now will have to deinstall and clear the settings file and install again to investigate further...
now on hrev54798 64bit

ok all bugs solved, found no more atm...
Great work, very very happy I am, thx


feat: add repo structure check

title: 'feat: implementation of repo structure check'
Description
PR introduces a new tractusx-quality-check feature validating repository structure as per TRG 2.03 guideline .
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:

[V] DEPENDENCIES are up to date. Dash license tool. Committers can open IP issues for restricted libs.
[V] Copyright and license header are present on all affected files

Additional information

To request a review, check out who's involved to see a list of contributors and committers
Use the mailing list if you are unsure, who to contact, or if want to engage in a general discussion
Check out our guide on how to contribute
Check out our Release Guidelines
Check out the Eclipse Foundation contribution guidelines

Code looks good to me. A note on the failing Quality Checks:
The issue is, that we are very strictly check for /docs and /charts. But not every repository does need these. Instead, only the leading repos do need this, if I am not mistaken.
So I'll merge the code, but we should work on a more resilient version.


Add plink converter function

Add function for converting data to PLINK format
fix variant_allele error in biallelic_snp_calls

Hey Tristan. Nice work!
Ill save comments for now but FYI - when you add notebooks to malariagen_data, make sure you have cleared all outputs, otherwise they can become quite hefty in size and then the repo balloons in size over time (all of it is stored in git history).

I've found the source of the AssertionError (also see issue #516) - something to do with how dask.array.map_blocks computes variant_allele at line 1629 of snp_data.py.
I haven't managed to get to the bottom of it yet but in this PR there's a temporary fix that just applies apply_allele_mapping to an in-memory np array of variant_allele, and I've now added biallelic_snp_calls to to_plink.py instead of calling snp_calls and thinning them manually.

I've (I hope!) made a fix to the above error (issue #516), and described it in more detail there

Hi Jon,
Thanks! Will tidy further and add the test. Cheers :)

Hi @jonbrenas, I had a tidy and removed some redundant code from to_plink.py. I also added a test (test_plink_converter.py) to make sure the files are created. Let me know if this is sufficient or if you want me to add any more. Hope this works ok!
Thanks
-t

Great job @tristanpwdennis !
I may be misunderstanding the way the PLINK format work but shouldn't it work with any biallelic site and not only with those where the alleles are ref and 1st alt. Is there a reason why, you select only those?
Also, bed_reader needs to be added to the list of packages installed before it is imported. This can be done by modifying the pyproject.toml file.

It might also be a good idea to have a check that the data in the files is correct for "dummy" data. For example, looking at only the first 5 samples of 'AG1000G-AO' and the region 'X:10_000_000-10_000_500', I find only 3 biallelic sites. With such small data, it should be fairly simple to figure out what the PLINK files should be and check that it is correct. You could, obviously, use any other of "dummy" data that you like.

Hi Jon
Good spot! Selecting the REF and 1st ALT is a relic from before I used .biallelic_snp_calls and had to manually modify the alleles dimension. It didn't change anything being there (e.g. it was selecting the first two alleles of a dataset that already only had two alleles), but it's redundant now and I've removed it.
I've updated the tests to include the feedback above, making sure that the exported dummy data match the data pre-export, both in terms of dimensions and actual content. Please take a look and let me know if there's anything else you think I can add.
Apologies also for the long time taken and revisions needed - you can probably tell that I am quite new to this. Thanks for your feedback and help!
-t

Thank you very @tristanpwdennis. It passes the eye-test so I merged it into a shadow PR to see whether it passes the various tests. It hasn't but I haven't checked yet whether there is something big that is going wrong or if it's the result of small conflicts between recent code. I'll come back to you if there is something significant in the code that needs to be addressed.

Hi @tristanpwdennis . Sorry, I had misinterpreted the error. base_params.chunks_default has been made obsolete in the main repository since you created your branch and I thought it was a parameter that you had added. I have corrected it. I will come back to you if there is anything else that needs your input. Thank you for the hard work!

Re: issue #248

Hi @jonbrenas - thank you for offering! Sorry for the delay, been a bit tied up the last few weeks but I think I can get to it over the weekend - I'll let you know if I run into any issues but looks straightforward enough!

Thanks so much @tristanpwdennis!
I took the liberty to resolve merge conflicts and add you as a project author.
I'll take a closer look ASAP.

Also took the liberty to run poetry update to make sure the new dependencies are included in the poetry lock file.

Also took the liberty to fix a relative import.

Thank you @tristanpwdennis for the quick reaction. It looks we are almost there. The same parameter name change ( results_dir should be output_dir) is creating a problem in the notebook. If you can solve that, everything should be a-OK.

Btw have taken the liberty to edit the PR title and description just so this PR will look good in the release notes :)

Addressed comments and feeling the urge to merge

Accepted corrections :)

Thanks @tristanpwdennis. You probably saw that the tests failed. It looks like the 'tmp_pathused during the tests ends up being apathlib.PosixPathinstead of the requiredstr`.

Wooohoo!

Hooray, thanks guys! I wonder if I get a GH badge for being the longest open PR on a given repo...


Add 10 min configurable reminder

Add a reminder to update the check the timers are OK
The period is saved in preferences or fetched from a method

Fixed in https://github.com/Kigamba/StopTimer/pull/24


Need to Update README

Just pointing out the obvious :)

See pull request #97

Should we close this one, now that #97 is merged?

Yes


Test parser is missing some tests

Folders with subfolders like Shanghai / VMTests seem to be ignored when running eth_test_parser as they don't have any files at their top level.
As they contain dedicated tests for the logic / arithmetic STARK modules, and tests for the LOG opcodes that will be integrated soon (cf https://github.com/mir-protocol/plonky2/pull/1097), we'd probably want to fix this.

I should have a few free cycles in the next 24 hours and I'll take a look at this. :+1:


Maybe we should share the date with the session sharing

Oveview
Sorry if this is unnecessary 🙇
Currently, the following is shared when you share, but I thought it might be better to have a date.
[Jellyfish] 10:00 - 10:15
Welcome Talk
https://2024.droidkaigi.jp/timetable/85841558-4423-4ce9-859a-83a2a11235c6

https://github.com/DroidKaigi/conference-app-2024/blob/390a9956c22c6fd04366457a49f062ae45a226c0/app-android/src/main/java/io/github/droidkaigi/confsched/KaigiApp.kt#L356-L362

I don't remember exactly, but this may be the reason why I did not add the date. :thinking:
https://github.com/DroidKaigi/conference-app-2023/pull/1029#discussion_r1310517689

Thanks. I don't think it's a bad idea to have a method just for sharing.

If it's okay to add this feature, I'd like to do it. 🙋

Thanks!


Use containerd service built in COS and Ubuntu instead of forking the cloud init.

We should be able to reuse the systemd service and only replace binaries and reconfigure them.

PR #1429 opened the issue/discussion


Assignability of callback parameter defined with conditional tuple type

TypeScript Version:  3.1.0-dev.20180727
Code
// ConditionalTuple could also return just [] in the false branch, issue still repros
type ConditionalTuple<T> = [T] extends [undefined] ? [] : [T];

// works fine!
declare var f1: (...args: any[]) => void;
declare var f2: <T>(...args: ConditionalTuple<T>) => void;
declare var f3: (...args: ConditionalTuple<number>) => void;
f2 = f1;
f3 = f1;

// but if we move the signatures above into a callback parameter with that signature,
// assignability breaks - the types of cb are incompatible.
declare var cb1: (cb: (...args: any[]) => void) => void;
declare var cb2: <T>(cb: (...args: ConditionalTuple<T>) => void) => void;
declare var cb3: (cb: (...args: ConditionalTuple<number>) => void) => void;

cb2 = cb1; // can't assign to cb2
cb3 = cb1; // this works though

Expected behavior:
I am able to construct callback signatures with generic conditional types and tuples that are assignable with the maximally general callback signature (cb1).
Actual behavior:
cb1 cannot be assigned to cb2, but removing the generic parameter ala cb3  makes assignability work as expected.

For cb1 to be assignable to cb2, the callback of cb2 needs to be assignable to the callback of cb1 (contravariance).  This isn't working because the following code in src/compiler/checker.ts compareSignaturesRelated around line 10564 is triggering, because the source rest type ConditionalType<T> is generic and the target rest type any[] is not:
            const sourceCount = getParameterCount(source);
            const sourceGenericRestType = getGenericRestType(source);
            const targetGenericRestType = sourceGenericRestType ? getGenericRestType(target) : undefined;
            if (sourceGenericRestType && !(targetGenericRestType && sourceCount === targetCount)) {
                return Ternary.False;
            }

I'm unsure what this code is supposed to be doing.

@ahejlsberg was working on a fix for assigning a type to a conditional type if it is assignable to the two branches.

The conditional type is irrelevant here. The examples can be simplified to just:
declare var f1: (...args: any[]) => void;
declare var f2: <T extends any[]>(...args: T) => void;
f1 = f2;  // Ok
f2 = f1;  // Ok

declare var cb1: (cb: (...args: any[]) => void) => void;
declare var cb2: <T extends any[]>(cb: (...args: T) => void) => void;
cb1 = cb2;  // Ok
cb2 = cb1;  // Error

In the second example, the args parameter is co-variant, i.e. it is in an output position (a parameter in a callback parameter is effectively checked in the same manner as a return type). So, we're dealing with something similar to:
declare var ff1: () => any[];
declare var ff2: <T extends any[]>() => T;
ff1 = ff2;  // Ok
ff2 = ff1;  // Error

The second assignment fails because any[] is not assignable to T which seems entirely reasonable. So, I don't think there is a bug here.
@mattmccutchen The code you're looking at is indeed the place we error. It basically says that a generic rest parameter in the source must be matched by a generic rest parameter in the target, because only another generic type could be assignable here (i.e. for a source T extends any[], only a related U extends T would ever be assignable to T).

The second assignment fails because any[] is not assignable to T which seems entirely reasonable.

This is inconsistent with the behavior when the rest parameter is a non-generic tuple type.  For example:
declare var cb1: (cb: (...args: any[]) => void) => void;
declare var cb2: (cb: (...args: [any]) => void) => void;
cb1 = cb2;  // Ok
cb2 = cb1;  // Ok

declare var ff1: () => any[];
declare var ff2: () => [any];
ff1 = ff2;  // Ok
ff2 = ff1;  // Error

So I think there is a bug here: either cb2 = cb1 should be an error in this example, or it should be allowed in the previous example.

@mattmccutchen that's because that effectively gets flattened to
declare var cb1: (cb: (...args: any[]) => void) => void;
declare var cb2: (cb: (arg0: any) => void) => void;

cb1 = cb2;
cb2 = cb1;

and

When comparing call or construct signatures, parameter names are ignored and rest parameters correspond to an unbounded expansion of optional parameters of the rest parameter element type.

Which is definitely an inconsistency in how tuple types and parameter lists are compared.

The thing is that you really don't know whether T will be instantiated with some subtype of Array<any> (e.g. imagine a MySuperCoolArray<T> which has an extra member). I do think it's reasonable to say any[] is not assignable to a T extends any[], but I'm not sure how to otherwise write the code @bterlson  is aiming for.

The thing is that you really don't know whether T will be instantiated with some subtype of Array<any> (e.g. imagine a MySuperCoolArray<T> which has an extra member).

TypeScript doesn't normally allow that:
interface MySuperCoolArray<E> extends Array<E> {
    hello: number;
}

// Error: A rest parameter must be of an array type.
declare var cb2: (cb: (...args: MySuperCoolArray<any>) => void) => void;

So in principle, when we see:
declare var cb2: <T extends any[]>(cb: (...args: T) => void) => void;

we should have a constraint that T be an array or tuple type.  TypeScript has no way to express such a constraint, but IMO the least bad thing we can do is allow an any[] rest parameter to be assigned to a T rest parameter, like we allow it to be assigned to any specific type that is a valid type for a rest parameter.
As an aside, this isn't an error on the playground and it probably should be:
interface MySuperCoolArray<T> extends Array<T> {
    hello: number;
}

declare var cb2: <T extends MySuperCoolArray<any>>(cb: (...args: T) => void) => void;


example: Token transfer with PDA

Problem
There's no program-test example that uses spl-token, and I want to demo one.
Solution
Add a simple example "giver" program that simply transfers tokens from a PDA-owned account.
Fixes  #829

$ cd
$ cargo build-bpf --dump


Trim git clone in command palette

This is a small request to accept the whole git clone SSH inside the command palette.
So pasting the entire string in the Git: Clone command should resolve properly (rather throwing a permissions error, like i got last time).
Thanks

Can you please explain the issue and the desired behaviour a little further.

The Git: Clone command shows an input box to insert the repository to clone. The user wants to be able to paste git clone URL instead of just URL and have it simply work.

@rajathans Are you still interesting at this issue? I would like to give it a try.

yes @hwhung0111 I've started working on this

The Git: Clone command shows an input box to insert the repository to clone. The user wants to be able to paste git clone URL instead of just URL and have it simply work.

exactly @joaomoreno .
I've been thinking about the UX part @rajathans , and I think it would be nice if the paste command returned a processed string rather than allow for the full command to be inserted.
so on paste, the command palette would show REPO@REPO instead of git clone REPO@REPO
Thanks a lot everyone

Hey @hwhung0111 you can go ahead with it. I've not been getting enough time lately.


message input field loses focus after posting message

in firefox

retested this just now, is fixed on master/matchat already


feat: allow includeCollections option in constructor

Added includeCollections option in constructor to be able to specify which collections of the database will be included in the snapshots

This allows users to avoid taking snapshots of unneeded collections

Thank you for the contribution.
You can already do it, using 'collections' property. take a look here:
https://github.com/lihaibh/ditto/blob/master/src/connectors/Connector.ts
you can filter collections either on your target connector or on your source connector, or both.


Portuguese translations

Description
Portuguese and Portuguese as used in Portugal translations.
cc @xster
Related Issues
#13452
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] I signed the [CLA].
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

Waiting for this PR to land first: https://github.com/flutter/flutter/pull/32513. It provides an initial set of Cupertino translations for all supported languages (including Portuguese).

@HansMuller can you pull from TC at some point again? I already moved these suggestions in a few weeks ago.

@xster Yes, will do

I added GlobalCupertinoLocalizations.delegate and Locale ('pt'), however I still get in my cupertinoTimerPicker:
The following assertion was thrown building CupertinoTimerPicker (dirty, dependencies:
flutter: [_LocalizationsScope- [GlobalKey # e9e55], Directionality], state: _CupertinoTimerPickerState # b4279):
flutter: A non-null String must be provided for a Text widget.
flutter: 'package: flutter / src / widgets / text.dart': Failed assertion: line 241 pos 10: 'data! = null'


5. Add Jfitzerg33's file

created a branch, created a file and made a commit, and opened a pull request


⚠ ClamAV has degraded performance

In 3d80020, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 76 ms

Resolved: ClamAV performance has improved in fd119c3.


added import CoreImage to VisionNative.swift to get rid of error

I opened up the project after not using it for a while and I was getting an Error: “use of unresolved identifier” for CIImage error on the VisionNative.swift script on line 93
        // Create an image from the current state of the buffer         guard let image = CIImage(mtlTexture: texture, options: nil) else { return false }
my xcode is Version 11.0 (11A420a)
adding a simple import CoreImage to the top fixed my error. I really don't know why this error happened...

This pull quest should be accepted.


Adopt Poetry for development and build

Add werkit.aws_lambda.build.export_poetry_requirements()

Yea, I think I'm going to need to add requirements files to the example lambda project.

This is now exporting the Lambda requirements through a Poetry extra. I've added a convenience function for invoking poetry export which can be used by library users, too.


Add "SaveBaseOld"

This new attribute will allow the user of a class to handle changing base types by marking a given version as having a given base type.

The new feature SaveBaseMembers no longer requires this attribute


Unable to 'remove' certificate

Hi
I am calling openxpkiadm as follows to remove a certificate :
openxpkiadm certificate remove --realm ca-one --name <cert identifier>
See the following error:
I18N_OPENXPKI_SERVER_CONTEXT_CTX_OBJECT_NOT_DEFINED    OBJECT: api2
I am copying and pasting identifier as displayed by openxpki webui
I am running openxpki (v1.20.2) in docker

The 1.x branch is deprecated and will receive only fixed for severe bugs. Please upgrade to the 2.x release. To fix it yourself you need to add "api2" here
https://github.com/openxpki/openxpki/blob/release/v1/core/server/bin/openxpkiadm#L1272

Still happening on 3.20.0 fwiw


How to get absolute url form a TargetType value?

I want to cache some response data for urls, and get cached data by url. But I use a TargetType value to make a request, and I don't find an easy way to get absolute url from this value.

@ufosky Can you use TargetType's two propertiesbaseURL & path to form the absolute URL? You could add an extension to TargetType to make this easier for you across all of your targets.

I just remembered that Moya also has a URL extension to initlaize a URL with a TargetType. You can check out the source file for this. It could help 😃

But this way only get url from baseURL & path, if some parameters in the url, like http://www.example.com/path?param1=test, only get result http://www.example.com/path

Sorry @ufosky you're right. I'm not sure of any easy way of doing this at the moment. The final URLRequest is constructed through the Endpoint class 🤔

I use this code currently:
if let request = try? MoyaProvider.defaultEndpointMapping(for: target).urlRequest(),
  let url = request.url {
  let key = url.absoluteString
  return key
}

And you could extend your TargetType maybe to wrap this in a variable 👍
Sent with GitHawk

happy we could help @ufosky!


Use the accent color to highlight selected text

This makes selections easier to see, while making them fit better within the editor theme.
This closes #22552.
Preview
Documentation (Default theme)

LineEdit (Grey theme)

Looks great

Thanks!

Cherry-picked for 3.1.1.


ADGroup: unable to remove trusted domain members from group

Details of the scenario you tried and the problem that is occurring

DomainA and DomainB are trusting each other with external trusts. Using the ADGroup resource, I can add DomainA\TestUser to DomainB\group, but removing the same DomainA\TestUser from DomainB\group generates the error:
Cannot find an object with identity: 'CN=TestUser,DC=DomainA,DC=local' under: 'DC=DomainB,DC=local'.

I've tested both using the Members and MembersToExclude properties, with the same result.
Verbose logs showing the problem
DETTAGLIATO: [DC2]: LCM:  [ Start  Resource ]  [[ADGroup]testgrp]
DETTAGLIATO: [DC2]: LCM:  [ Start  Test     ]  [[ADGroup]testgrp]
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Retrieving group membership based on 'DistinguishedName' property. (ADG0001)
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Group membership is NOT in the desired state. (ADG0002)
DETTAGLIATO: [DC2]: LCM:  [ End    Test     ]  [[ADGroup]testgrp]  in 0.2350 seconds.
DETTAGLIATO: [DC2]: LCM:  [ Start  Set      ]  [[ADGroup]testgrp]
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Retrieving group membership based on 'DistinguishedName' property. (ADG0001)
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Updating AD Group 'testgrp'. (ADG0006)
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Retrieving group membership based on 'DistinguishedName' property. (ADG0001)
DETTAGLIATO: [DC2]:                            [[ADGroup]testgrp] Removing '3' member(s) from AD group 'testgrp'. (ADG0004)
Cannot find an object with identity: 'CN=TestUser,DC=DomainA,DC=local' under: 'DC=DomainB,DC=local'.
    + CategoryInfo          : ObjectNotFound: (CN=TestUser,DC=DomainA,DC=local:) [], CimException
    + FullyQualifiedErrorId : SetADGroupMember.ValidateMembersParameter,Microsoft.ActiveDirectory.Management.Commands.RemoveADGroupMember

Suggested solution to the issue
Looking at the resource code with my limited skills it seems to me that we're adding users with the  Add-ADCommonGroupMember function and we're removing users with the Windows built-in AD Remove-ADGroupMember cmdlet.
Outside ADGroup, I can reproduce the same error using the Windows AD powershell cmdlet, both trying to Add and Remove DomainA\TestUser to/from DomainB\TestGrp. The following commands ran on DomainB domain controller both generate the same error:
Add-ADGroupMember -Identity TestGrp -Members 'CN=TestUser,DC=DomainA,DC=local'

Add-ADGroupMember : Cannot find an object with identity: Cannot find an object with identity: 'CN=TestUser,DC=DomainA,DC=local' under: 'DC=DomainB,DC=local'.

Remove-ADGroupMember -Identity TestGrp -Members 'CN=TestUser,DC=DomainA,DC=local'

Remove-ADGroupMember : Cannot find an object with identity: Cannot find an object with identity: 'CN=TestUser,DC=DomainA,DC=local' under: 'DC=DomainB,DC=local'.

Could the same code used in the Add-ADCommonGroupMember fuction be used with minor changes to have a working Remove-ADCommonGroupMember function ? I've tried, but failed with my basic powershell skills.
The DSC configuration that is used to reproduce the issue (as detailed as possible)

# This code succesfully adds both DomainA\TestUsers and Domain\B TestUser to
# DomainB\TestGrp ADGroup "testgrp". Removing the 'CN=TestUser,DC=DomainA,DC=local'
# user from the Members list afterwards generates the error:

ADGroup "testgrp"
            {
            GroupName           = "testgrp"
            GroupScope          = 'DomainLocal'
            Category            = 'Security'
            Ensure              = 'Present'
            Path                = "OU=Groups,DC=DomainB,DC=local"
            MembershipAttribute = 'DistinguishedName'
            Members             = @(
                                   'CN=TestUser,DC=DomainA,DC=local'
                                   'CN=TestUser,DC=DomainB,DC=local'
                                   )
            }

The operating system the target node is running

OsName               : Microsoft Windows Server 2016 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.3297.amd64fre.rs1_release_1.191001-1045
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Name                           Value

PSVersion                      5.1.14393.3053
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.3053
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
Version of the DSC module that was used
ActiveDirectoryDsc version 6.0.0

It is the function Add-ADCommonGroupMember that calls Add-ADGroupMember but have logic to handle multiple domains.
https://github.com/dsccommunity/ActiveDirectoryDsc/blob/4cbeae1da770cf29376e83e00dd912d2aa6a15c6/source/Modules/ActiveDirectoryDsc.Common/ActiveDirectoryDsc.Common.psm1#L1261-L1336
Would it be so easy to create Remove-ADCommonGroupMember with the same logic expect replace Add-ADGroupMember to Remove-ADGroupMember? 🤔