Uncaught TypeError: Cannot read property 'querySelectorAll' of null

Hello fellow developer!
I am trying to build a Filepond plugin for a platform I am using bubble.is  Everything is going well, the element is rendered and works great  it uploads and does everything it supposes
But I keep getting this error in the console when it is first initialized.
Uncaught TypeError: Cannot read property 'querySelectorAll' of null
    at Object.parse (VM5669 filepond.js:8375)
    at version-test?debug_mode=true:92

which points to this line in the filepond.js
  // parses the given context for plugins (does not include the context element itself)
  var parse = function parse(context) {
    // get all possible hooks
    var matchedHooks = [].concat(
      toConsumableArray(context.querySelectorAll('.' + name)) //ERROR refers to this line
    );

I create the element using an ID that is passed like this.  Could it be the cause
      //create pond instance
      const inputElement = document.getElementById(fileupID);
      FilePond.create(inputElement, jFileup);

Any support will be appreciated

Environment
Version

OS
MacOS / Windows / iOS / Linux / ...

Device
iPhone SE / Galaxy Note 9 / ...

Browser
Safari 11.1.1 / Edge 15 / Chrome

Hi! That's odd, it seems that the parse method is called without a parameter.
Are you sure you're not calling FilePond.parse() somewhere?

Hey @rikschennink
Thanks for getting back to me.  I have just gone through the whole code and couldn't find FilePond.parse() anywhere
For your information, this is the code I am passing
//Load instances
let fileupID = instance.data.fileupID;
let parentDiv = instance.data.parentDiv;

//properties to load
const allow_drag_drop = properties.allow_drag_drop;
let attach_to = properties.attach_to;

// Function to auto adjust height
function autoHeight() {
  const cardHeight = $('#' + fileupID).outerHeight();
  if (cardHeight !== undefined || cardHeight !== null) {
    instance.setHeight(cardHeight);
  }
}

//Notify bubble of error
function bubbleError(errorMessage) {
  console.error(err.toString());
  instance.publishState('error_details', err.toString());
  instance.triggerEvent('error');
}

//Advanced process handeling
//https://pqina.nl/filepond/docs/patterns/api/server/#advanced
let sProcess = (fieldName, file, metadata, load, error, progress, abort) => {
  //function uplodfile callback
  function uploadFileCallback(err, url) {
    if (url) {
      //Update progress to 100%
      console.log(url);
      load(url);
      //TODO: Add trigger to event and only load when not aborted
    } else {
      //Error returned
      console.error(err.toString());
      error(err.toString());
      bubbleError(err.toString());
    }
  }

  if (attach_to) {
    context.uploadContent(
      file.name,
      metadata.base64,
      uploadFileCallback,
      attach_to
    );
  } else {
    context.uploadContent(file.name, metadata.base64, uploadFileCallback);
  }

  // Should expose an abort method so the request can be cancelled
  return {
    abort: () => {
      //TODO: No method exists to cancel or delete the file
      // Let FilePond know the request has been cancelled
      abort();
    },
  };
};

//Initalize fileup json
const jFileup = {
  allowDrop: true,
  allowMultiple: true,
  allowBrowse: true,
  allowReplace: false,
  allowRevert: false,
  instantUpload: false,
  labelIdle:
    'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>',
  maxFiles: null,
  allowFileEncode: true,
  allowImagePreview: true,
  server: {
    url: null,
    process: sProcess,
    revert: null,
    restore: null,
    load: null,
    fetch: null,
  },
};

//run once function Create Fileup
const initFileup = (function() {
  let executed = false;
  return function() {
    if (!executed) {
      executed = true;
      //registerplugins
      //TODO: Consider Dynamic plugins
      FilePond.registerPlugin(
        FilePondPluginImagePreview,
        FilePondPluginFileEncode
      );
      //create pond instance
      const inputElement = document.getElementById(fileupID);
      instance.data.instanceFileup = FilePond.create(inputElement, jFileup);
    }
  };
})();

$(document).ready(function() {
  //start fileup
  if (instance.data.initFileup === undefined) {
    instance.data.initFileup = initFileup;
    initFileup();
  }

  //Update plugin height
  setInterval(function() {
    autoHeight();
  }, 250);
});


Hijack mixin for model with ForeignKey to user

I've used this in many projects before and thought it might be useful enough to include in the package.

Coverage decreased (-1.3%) to 94.203% when pulling 2bdb16970802690a06e0caa35bd144073187250c on Brobin:master into b1af14362f93113d608fe1be5a5d34c1a8ecdc76 on arteria:master.

Coverage decreased (-2.7%) to 92.754% when pulling c931610ff0a8bc6b8003b62eec3cc2a0261c4413 on Brobin:master into b1af14362f93113d608fe1be5a5d34c1a8ecdc76 on arteria:master.

Thanks, @Brobin. Good work!

Coverage decreased (-2.7%) to 92.754% when pulling e0de9a53e1fee371ebf36ccb82f103c38f1552fe on Brobin:master into bc59ac09dad53421a54955ad4c8141650975dae8 on arteria:master.


depreciate default alchemy key

Description
Removed the default alchemy key and also added fallback to the transport.
Frontend:
We check if alchemy key is set via process.env if its present then we do [alchemyRpc, public] (this is the fallback order) , if alchemy key is not set we just use generalRpc.
Hardhat:
Updated all the networks with public rpc URLs (got this public URL's comes from viem/chains) . For forking people will still need to add the alchemy api key.

Thanks all! Merging this for now 🙌 but we can update later.


Ensure x11 DISPLAY env var set properly for java.awt tests

There are currently a large number of failures in the jdk_awt group related to the x11 display not being set properly, in order to run those tests.  Expect the bulk of awt failures to go away after setting correctly.
23:42:59 ACTION: main -- Failed. Execution failed: `main' threw exception: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Double checked this failure only happens to linux(Windows is fine. In Windows, there is always a display).
For Linux we need set the DISPLAY environment variable to the address of X11 server and export that. What is the address of X11 server @gdams @bblondin

Hello, I've been trying to reproduce it using a VM, I went to console mode only on linux and looked for the X server address.

Then doing make test DISPLAY=:0 apparently worked fine.

What do you think if I try to get this address dynamically and set to DISPLAY env var?

Not sure if X11 forwarding is enabled on test machine? If yes we can either update jdk_awt test command to
export DISPLAY=localhost:0.0;$(JAVA_COMMAND) -Xmx512m -jar $(Q)$(JTREG_DIR)$(D)lib$(D)jtreg.jar$(Q)
$(JTREG_BASIC_OPTIONS)  -vmoptions:$(Q)-Xmx512m $(JVM_OPTIONS)$(Q)
-w $(Q)$(TEST_RESROOT)$(D)work$(Q)
-r $(Q)$(TEST_RESROOT)$(D)report$(Q)
-jdk:$(Q)$(JDK_HOME)$(Q)
-exclude:$(Q)$(JTREG_TEST_DIR)$(D)ProblemList.txt$(Q)
$(Q)$(JTREG_TEST_DIR):jdk_awt$(Q);
$(TEST_STATUS)
or export in Makefile should be ok.

Sounds good @sophia-guo. Who has access to check there?

@allandequeiroz best bet is to jump onto Slack and pose the question in the #infrastructure channel.  We can either fix it there, or give you access to the box to go in and see what's happening.

You run your tests under Jenkins. In ci.linaro.org we run with the Xvfb plugin:
https://wiki.jenkins.io/display/JENKINS/Xvfb+Plugin
Disconnections between the Jenkins slave and master can cause issues with Xvfb left behind - that is true for other daemons (jstatd) fired off by JTreg.

After some discussion on Slack, we'd like to consider the following approach:

simplify the Ansible script to add Xvfb as a required package (add to the list here https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/Build/ansible/playbooks/ubuntu_14_16_x86.yml#L138), and remove the X11 set-up code (remove lines 148-169)
Change the testing code to use the DISPLAY env var, rather than hard-coding a specific value (https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/OpenJDK_Playlist/playlist.xml#L257 and anywhere else likewise)
Testing jobs in Jenkins requiring a UI are set-up to use the Xvfb plugin to define and start a useful display for their executor.
We need a nagios check / regular clean-up script to look for growing number of Xvfb processes that need killing off.

Fixing this issue depends on updates to test machines:
https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/184

Closing as now listed in summary issue #346

This was inadvertantly closed when I deleted a branch with a potential fix.  Renaming/reoopening this issue at higher priority, as there seems a great need to get jdk_awt tests running based on recent issues raised in Slack channels over font issues seen.

related: https://github.com/AdoptOpenJDK/openjdk-build/issues/682

#789 and #797 are sufficient for now to mark this as closed.


Support legacy/vendor-prefixed version?

@tabatkins says:

"msapplication-navbutton-color" only allows named and hex colors.
"apple-mobile-web-app-status-bar-style" appears to accept the values
"default", "black", and "black-translucent", which we can define as
meaning, respectively, that the page has no brand color, that the
brand color is black, or that the brand color is rgba(0,0,0,.5)
(spitballing here, if someone can provide the real alpha that would be
great).

Hixie says:

I think it would make sense to allow vendors to treat these all as
independent values (in particular, we wouldn't want IE to be forced to
extend their interpretation of "msapplication-TileColor" and
"msapplication-navbutton-color" to be redundant), but I do think it would
make sense to encourage UAs to draw colours from whichever values are
provided, so that authors don't have to include different values for each
browser.

In https://github.com/whatwg/html/pull/720 we ended up deciding against this for now.


Still having playback issues all is up to date and patched
Videos stops after a few sec of play

Still having playback issue, video stops after few seconds


Critical bug in chrome.tabs.sendMessage for a "Sleeping" tab in Edge browser

Hi, I don't know where to report this because this issue is specific to the Edge browser (Chrome doesn't have a Sleeping tabs feature - and it's Memory Saver feature works correctly).
Steps to reproduce issue:

Enable "Sleeping tabs" setting in Edge settings
Wait for a tab to go to sleep
Open your Manifest V3 extension's Service Worker console
Run await chrome.tabs.query({}) to get all open tabs
Get the tabId of the sleeping tab
Run chrome.tabs.sendMessage(tabId, { type: 'check', }, { frameId: 0 }).then(x => console.log('responded', x)).catch(x => console.log('errored', x))

Expected result:  promise resolves/rejects with an error message like "Receiving end does not exist".
Actual result: promise remains in pending state until the tab is woken up from sleep.
Request: I think this is a bug and we should fix this, but at the very least, there should be a property on the Tab object indicating that this tab is sleeping (so the extension doesn't bother messaging the tab). On Chrome, the discarded property is set to true for a tab that is crashed by the Memory Saver.
This seems to be a Edge specific issue in Extension APIs. Please let me know what is the appropriate forum to report this issue.

Hi @GaurangTandon, you are at the right place.  Apologies for the delay in acknowledging this.
Does this issue persist while operating on the Edge Browser now?
If it does, could you please share some screenshots of the same?

Hi @RanadhirMSFT the issue is still happening in Edge 125. See first screenshot. Notice on the last line the promise is pending. This google.com tab in my Edge browser was sleeping (see second screenshot, the tab is faded):

Thanks @GaurangTandon for bringing this up. We'll get the right team to address this at the earliest.

Hi @RanadhirMSFT any progress on this?

Hi @GaurangTandon, we have forwarded the details of the issue to the designated team for further verification.
Once we have an update, we will get back to you as soon as possible.
Thank you for your understanding.

Facing the same issue here.
If you have periodic tasks that invoke chrome.tabs.sendMessage, your memory usage will continuously increase 😄

Hi @Willis0826, thank you for reaching out to us. We want to assure you that our team is actively working on your concern. While we don’t have an estimated date for resolution yet, we will keep you updated and contact you as soon as we have more information.
Thank you for your patience and understanding.


Bin causing crash

Rightclicking a bin with an empty hand causes Internal server error and boots client from SMP. Server remains active and client can rejoin.
Latest build - 8.1.6-249
EDIT
So long as you have something in your hand, everything is happy.
Leftclick with empty hand also kosher

its already been fixed in dev. You can download a build that i compiled with the fix in #2844 .

Awesome. Thanks


CSV Import

I updated dbeaver to the last version but when I try to import data from a csv file (700k records) only import 1445 records. I used another computer with a lower version and a copy of csv file and import all records, so I return to the first computer and uninstalled last update to a previous version and this fixed the problem.

Hello @LonwoLonwo
I use Oracle 12c SE.
I imported data to an existing table.
I compared CSV settings on both computers and was the same.
When import is done no show any error , when done only import 1445 records.
One month ago I worked in the same computer before update DBeaver (I updated today) whith the same csv file and it worked fine but now after update I cant import all data.


Testing / Issue reproduction attempt -- Extended scenario 2 test with --skip-ssl-verification sub case

This PR is an adjunct to #1620 for #1603.
It contains only the extended test case.
No attempts at fixing are made.
This is an attempt to reproduce the #1603 in our CI.
Created as draft PR, and the change to ready triggers the relevant workflow.

Codecov Report

Merging #1621 (15fc209) into main (11d6947) will decrease coverage by 53.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #1621       +/-   ##
==========================================
- Coverage   62.02%   8.63%   -53.39%
==========================================
  Files         167      83       -84
  Lines       12347    8104     -4243
==========================================
- Hits         7658     700     -6958
- Misses       3696    7358     +3662
+ Partials      993      46      -947

Flag
Coverage Δ

acceptance-api
?

acceptance-apps
?

acceptance-cli
?

unittests
8.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

The test shows that --skip-ssl-verification works for a properly set up LE issuer and certs. The #1603 crash likely originates in a setup error. I suspect that no fix beyond the guard will be required.


Consider making the TLS implementation used in shuttle-shared-db configurable

(Opening this issue based on a question asked on Discord)
Currently the SQLx connection pool provisioned by shuttle-shared-db uses native-tls to establish a secure connection to the database server.
Would it be thinkable to gate these behind features like rustls and native-tls, where one of them is set as the default? (this would be a breaking change)

Looking at the SQLx source code, they use the webpki-roots certificates for their trust anchors.
So if Shuttle installs their own CA certificates, using the rustls feature will break it.

This is especially relevant if you're using sqlx in your application already (e.g. to run migrations or query the database) and don't wish to rely on native-tls as a feature of the crate (i.e. you cannot have the sqlx dependency of shuttle-shared-db built with native-tls and your own version of sqlx with e.g. rustls)

The thing I'm not sure about here is that since we use native-tls everywhere else (which we might also be able to change, but that needs investigation), will using rustls here then conflict? If someone wants to explore this in a PR and prove that it works, I think we can add this feature flag to shuttle-shared-db.

@utterstep awesome! I sent you an invite now to get the triager role on this repo, this should allow you to add labels and set assignments

Closed by #870


Updating migration guide for single-line disable

The multiline comment string doesn't seem to work.
Main docs page is right; JSCS migration guide appears to be wrong.

Thanks for the PR. Can you create this in the eslint/eslint repo instead? The file in this repo is autogenerated from eslint/eslint, so if you only modify it here it will get overwritten after the next release.

no problem

I'm going to close this PR, since another one was filed in the ESLint repository. Thanks.


outdated dependency

The current version of puppetlabs.concat is 4.2.1 but your stm-sendmail module still requires a version (>= 1.2.0 < 3.0.0) for concat.
This creates unresolved dependencies when using stm-sendmail with other modules requiring a newer version of concat.
Please test with a new version of concat and update your dependencies. Thank you.

Fixed in version 1.3.2 of the module, which is now available on the Puppet Forge:
https://forge.puppet.com/stm/sendmail/dependencies

I tried to get your new module with the new concat and got this:
puppetserver ruby "$(which librarian-puppet)" install
NoMethodError: undefined method `source' for nil:NilClass
extract_and_parse_dependencies at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/lockfile/parser.rb:69
extract_and_parse_dependencies at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/lib/librarian/puppet/lockfile.rb:28
parse at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/lockfile/parser.rb:29
load at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/lib/librarian/puppet/lockfile.rb:34
read at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/lockfile.rb:25
run at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/action/resolve.rb:16
run at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/lib/librarian/puppet/action/resolve.rb:10
resolve! at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/lib/librarian/puppet/cli.rb:104
install at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/lib/librarian/puppet/cli.rb:68
run at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/thor-0.19.1/lib/thor/command.rb:27
invoke_command at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/thor-0.19.1/lib/thor/invocation.rb:126
dispatch at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/thor-0.19.1/lib/thor.rb:359
start at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/thor-0.19.1/lib/thor/base.rb:440
bin! at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/cli.rb:26
returning_status at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/cli.rb:31
bin! at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/cli.rb:26
with_environment at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/cli.rb:47
bin! at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarianp-0.6.3/lib/librarian/cli.rb:26
(root) at
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/librarian-puppet-2.2.0/bin/librarian-puppet:7
load at org/jruby/RubyKernel.java:1059
(root) at /opt/puppetlabs/bin/librarian-puppet:1
invoke at jruby_core.clj:259
invoke at jruby_core.clj:253
invokeStatic at ruby.clj:9
invoke at ruby.clj:6
invokeStatic at subcommand.clj:37
invoke at subcommand.clj:26
invokeStatic at ruby.clj:13
doInvoke at ruby.clj:11
invokeStatic at core.clj:646
invokeStatic at main.clj:314
invoke at main.clj:310
invokeStatic at main.clj:421
doInvoke at main.clj:384
No idea whether the problem is on your side or with the concat module
though.
I don't have that issue with sendmail 1.3.0 and concat 2.2.1.
Valère Binet
On Thu, May 17, 2018 at 1:37 AM, Stefan Möding<EMAIL_ADDRESS>wrote:

Closed #17 https://github.com/smoeding/puppet-sendmail/issues/17.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/smoeding/puppet-sendmail/issues/17#event-1631130931,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AlhinJamW6B1C44_zzbzWdkymJCfaa02ks5tzQyUgaJpZM4UB0Sb
.

The error seems to be with librarian-puppet which I don't know. I'm using r10k to deploy the code and I don't see any errors using that tool. I tried removing both the sendmail and the concat module and r10k deploys both modules in their latest version without any problem.


Phasing out SecStatusEngine

A small discussion happened on the Slack #project-modsecurity from OWASP where I pointed out that, with TW changing ownership to OWASP of modsecurity, the domain name might need to be transmitted so that the SecStatusEngine option (https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v2.x)#secstatusengine), if this is still used, is still working as expected.
According to @fzipi, this option should be disabled since a long time ago. This has been done in the default config 2 months ago by @airween (https://github.com/owasp-modsecurity/ModSecurity/commit/f850932f83d47a68137ab207e6db0f217152c707).
@dune73 mentioned that this domain will be still in the hands of TW until Summer 2024, and that TW is not having their status engine in operation for quite some time.
That being said, we all pretty much agree that:

TW status engine will not come back.
This is now disabled by default, so very little people are going to turn it on.
This option will not be useful anymore, and will just pollute (if enabled) the DNS.
This options is not supported in v3 (https://github.com/owasp-modsecurity/ModSecurity/wiki/Reference-Manual-(v3.x)#secstatusengine), and will not be created.
Functionally, it does not bring anything to the end user.

This is where I'm proposing removal of this option from v2, while knowing this operation should be carefully considered so that no configuration gets broken.
Probably we could first warn about this option being deprecated, following by removing the actual logic while keeping the warning, and finally removing this option altogether from the parsing logic and the documentations.

Hi @vloup, thanks for this suggestion. I think this is a useful plan, and a good idea.

I think we can manage to do two steps in one, and that sounds better to me as well:

Deprecate this option and add a warning message.
We directly remove all the code related to this option.

Added https://github.com/owasp-modsecurity/ModSecurity/pull/3157

@marcstern do you think we can close this issue?


[backport] New style triplet

Backport of #3696.

jenkins, test this please.

jenkins, test this please.

jenkins, test this please.

jenkins, test this please.

jenkins, test this please.

LGTM.


yield in try - else/finally

Hello.
I was trying to use a yield in a try's else statement and I got an error saying that I cannot use yield. I looked into the parser's code to see if I could come up with a quick fix, but I wasn't able to. My idea was to have the parser treat the finally node as a new promise generator and then return the result to the parent generator.
So instead of:
_finallies.pop()();
++_state;

It would be
++_state;
return { done: false, value: _finallies.pop()() };

My problem with implementing this was I have no idea how I would translate the node to to become a generator node. I saw that I might need to manipulate the scope's stack and put in-generator as true, but I'm not really sure. The next battle would be to translate the generator to a promise.
Any ideas?

This has been fixed in my community repo

@vendethiel My repo now has gorillascript compiling to native es6-style yields. The output of this:
#(items)**
    try
		yield asdf()
	catch e
		doSomething()
	finally
		yield abc()

Is:
(function () {
  "use strict";
  var __generatorToPromise;
  __generatorToPromise = function (func) {
    function res(iter) {
      return new Promise(function (fulfill, reject) {
        function next(result, handler) {
          var info;
          if (handler == null) {
            handler = "next";
          }
          try {
            info = iter[handler](result);
          } catch (e) {
            return reject(e);
          }
          if (info.done) {
            return fulfill(info.value);
          } else if (info.value instanceof Promise) {
            return info.value.then(
              function (result) {
                return next(result);
              },
              function (e) {
                return next(e, "throw");
              }
            );
          } else {
            return next(info.value);
          }
        }
        return next();
      });
    }
    if (typeof func !== "function" && func.next != null) {
      return res(func);
    } else {
      return function () {
        return res(func.apply(this, arguments));
      };
    }
  };
  __generatorToPromise(function *(items) {
    try {
      return yield asdf();
    } catch (e) {
      return doSomething();
    } finally {
      yield abc();
    }
  });
}.call(this));


Fix several issues, Nullpointer, maven enforcer

Pull request is divided into individual pull requests per issue

Pull request is divided into individual pull requests per issue


borderless fullscreen?

How do I use borderless fullscreen with this program? I usually launch Genshin with these arguments
"C:\Program Files\Genshin Impact\Genshin Impact game\GenshinImpact.exe" -screen-fullscreen 0 -popupwindow -screen-width 1920 -screen-height 1080
And I get fullscreen borderless but I can't seem to do that with this program, it always runs in windowed mode. And when I check Fullscreen, custom resolution, Window mode: Borderless, it still minimizes. It only works when I launch it with my shortcut.

You have to use the popup window option + windows mode borderless

how did you get this window ?

how did you get this window ?

thx
Le dim. 27 août 2023 à 16:04, ByZorks @.***> a écrit :

how did you get this window ?
[image: image]
https://user-images.githubusercontent.com/80073731/263534011-23dd8def-af94-4a61-b424-5f29d3fefd3c.png
—
Reply to this email directly, view it on GitHub
https://github.com/34736384/genshin-fps-unlock/issues/192#issuecomment-1694677402,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCFON654OEODM4HMK5AG6EDXXNHYFANCNFSM6AAAAAA2C76S6A
.
You are receiving this because you commented.Message ID:
@.***>


[BUG] Not able to scroll page using Divi page editor on Tab and Mobile view

Describe the bug
I don't know if Bootscore is compatible with DIVI page builder.
Issue I am facing is I am not able to scroll the page when editing the page on Tab and Mobile view.
Everything is working fine on wordpress default themes.

Steps to reproduce

Activate Divi builder.
Edit using visual builder.
Switch to Tab/Mobile view
Try to scroll

Screenshots and Additional Info
No response
Website link
No response

Hello,
theme is not tested with Divi builder and we do not have this plugin. Bug reports must have a link to reproduce the issue. Please install a test page and share a link to it.

You'll be able to share your credentials using the following URL with the bootScore team. https://bootscore.me/private-info-form/

Information Submitted :)

Login
Go to Homepage.
On Admin bar > Click "Enable Visual Builder".
Click on the Three dots at the bottom center.
Select Different view from the Bottom Left options.
Try to scroll page after setting it to Tab or Mobile view.

Let me know if you have any questions.

Divi adds some inline-styles overflow hidden to <html> and <body> depending on the screen size. Add following snippet to your SCSS and let me know if that helps. I can't do it because theme editor is blocked for me.
#page {
  overflow-y: scroll !important;
}

Yippiee!! that worked 👍
Heartfelt Thanks for the Fix and Admiration for Bootscore!
I wanted to express my sincere gratitude for the fantastic solution you provided to fix the issue. Your expertise and quick response have been invaluable, and I am truly thankful for your assistance.
On another note, I wanted to let you know how much I love the "Bootscore" Its design and user-friendly features , and I am thoroughly impressed with its performance.
Once again, thank you for your outstanding support and for contributing to the success of my online presence. Your dedication to creating and maintaining such a wonderful theme is truly commendable. :)
You are the best :)
Best regards,
Gurpreet Singh
Toronto, Canada

Thank you! Close this issue as completed now.


Malicious node(s) strategy

Some scenarios benefit from a malicious node exhibiting one or more behaviors that the network should be resilient against. We currently lack a creditable strategy to create and support such malicious nodes. Designing and maintaining such nodes incurs a significant cost over time.

Recommend converting this to an Epic and starting planning, design, and implementation at the beginning of Q3. This is a SRE + Core combined deliverable, to be led by @Fraser999 and myself in conjunction with @sacherjj and @thamps-casp.


Remove filtering of custom tags

Hi, can you comment a bit? PR without a comment is not really polite and acceptable.

@w-vi Sorry my bad, did not realise default is to compare to original repo. This is meant only internal thing, just so we can add any custom tags and wasn't meant as an official PR to upstream repo as we are still evaluate our options. I will close this and maybe reopen in the future if necessary and in acceptable state.

No problem, I'd welcome a PR which would make the filtering easily configurable :)


Add Twitch Games support

With Twitch Prime, you can obtain some games. To play with them, you need to download the Twitch App and install games.
Adding a support for this twitch app, especially for game would be awesome.

Twitch platform definition is already on the list of supported platform, see https://github.com/gogcom/galaxy-integrations-python-api/blob/master/src/galaxy/api/consts.py

I cannot add twitch in GOG Galaxy 2


Packages that require laravel-data throw ($throwWhenMaxDepthReached) must be of type bool, null given

✏ Describe the bug
Seems that in packages that require laravel-data, we have to set the following for tests to work.
config()->set('data.throw_when_max_transformation_depth_reached', true);

Related to: #699

Comments in the related issue also experience this

↪ To Reproduce
Create new package
Create dto
Try convert to array
class BaseData extends Data
{
    public function __construct(
        public bool $something,
    ) {
    }
}

$data = BaseData::fromArray([
    'something' => false,
]);

$data->toArray(); // Error is thrown here

Spatie\LaravelData\Support\Transformation\TransformationContext::__construct(): Argument #11 ($throwWhenMaxDepthReached) must be of type bool, null given, called in /***/vendor/spatie/laravel-data/src/Concerns/TransformableData.php on line 24
✅ Expected behavior
DTO to be converted to Array successfully
🖥 Versions
Laravel: 11
Laravel Data: 4.4.1
PHP: 8.3

Ensure you've got the data service provider running within your package:
    protected function getPackageProviders($app)
    {
        return [
            LaravelPackagePlaygroundServiceProvider::class,
            LaravelDataServiceProvider::class
        ];
    }

We've got some new docs on this will be publishing later today.


"Take photo" action fails to save and upload photo on Android 6 (API 23)

Apparently the save button (check mark) does not work for Android 6 as it does for older Android. I tried Nexus 5 (Android 6) and an emulator (Android 6, API level 23), and experienced the issue with both. Another emulator with Android 5.1, API level 22 went without the issue.
Instead, on Android 6 I was able to take a photo with the default Camera app directly, and go back to the Commons app to find it in the gallery and upload, though.
See also https://groups.google.com/d/msg/commons-app-android/Dtxo2j4ylrg/gu3xRiDuBAAJ

Oh, thanks for letting us know! My real device is using an older version of Android, so I didn't notice the problem.

Um, actually I am not able to reproduce it any more.
I am guessing that I might have been on the build of a local, possibly broken branch. Sorry if that was the case.

Does the current release (v1.17) work properly in your real device then? I can't reproduce the bug on emulator, but I don't have a real device with api 23 to test with.

Here are latest test results. This time it looks like stably reproducible.
This time, I downloaded the app from Play Store on a physical device with Android 6.0.1. Followed this procedure: 1. Initial settings of the app -> 2. "Take photo" -> 3. Enter title and description -> 4. Tap "Share" button. Saw a crash. File was not uploaded.
After the crash, I manually gave the app the "storage" permission. The next attempt (2., 3., 4.) went fine.
And then, I manually revoked the app's permission, and the crash would happen again under the same procedure (2., 3., 4).
By the way, I am seeing the same crash pattern on emulator as well after I turned off the storage permission.

Thanks @whym ! Will look into it.

Managed to reproduce the bug and got the crash log:
07-12 17:05:00.097: E/DatabaseUtils(2035): Writing exception to parcel
07-12 17:05:00.097: E/DatabaseUtils(2035): java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/74 from pid=3802, uid=10058 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605)
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480)
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:471)
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:416)
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:313)
07-12 17:05:00.097: E/DatabaseUtils(2035): 	at android.os.Binder.execTransact(Binder.java:453)
07-12 17:05:00.097: E/ImageLoader(3802): Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/74 from pid=3802, uid=10058 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
07-12 17:05:00.097: E/ImageLoader(3802): java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/74 from pid=3802, uid=10058 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.os.Parcel.readException(Parcel.java:1599)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:692)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1104)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:942)
07-12 17:05:00.097: E/ImageLoader(3802): 	at android.content.ContentResolver.openInputStream(ContentResolver.java:662)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStreamFromContent(BaseImageDownloader.java:156)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStream(BaseImageDownloader.java:88)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.getImageStream(BaseImageDecoder.java:84)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:70)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:290)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:250)
07-12 17:05:00.097: E/ImageLoader(3802): 	at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:131)
07-12 17:05:00.097: E/ImageLoader(3802): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
07-12 17:05:00.097: E/ImageLoader(3802): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
07-12 17:05:00.097: E/ImageLoader(3802): 	at java.lang.Thread.run(Thread.java:818)

Hmm. Actually, when you enter the title/desc screen, storage permissions are checked and the user is prompted to accept them. I don't think there is anything we can do if the user refuses? I could wrap the relevant code in something that doesn't crash but instead says 'Sorry, can't upload this picture without storage permissions' I guess?

Yes, explain why the permission is needed, before asking for it again. I wonder if looping on this is OK regarding to Android guidelines.

Might be a bit tricky, since we have to catch the exception in UploadController (for camera) or ContributionController (for gallery), and AFAIK runtime permissions can only be requested/granted in an activity or fragment. Is it okay to just say 'Please accept the storage permission and try again'?

Alternatively, what do you think of the 'Permission Everywhere' library suggested at http://stackoverflow.com/questions/32292675/how-to-request-permissions-from-a-service-in-android-marshmallow ?

PermissionEverywhere looks useful indeed!
And it is Apache 2.0
On Tue, Jul 12, 2016 at 3:41 PM, Josephine Lim<EMAIL_ADDRESS>wrote:

Alternatively, what do you think of the 'Permission Everywhere' library
suggested at
http://stackoverflow.com/questions/32292675/how-to-request-permissions-from-a-service-in-android-marshmallow
?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nicolas-raoul/apps-android-commons/issues/164#issuecomment-231950935,
or mute the thread
https://github.com/notifications/unsubscribe/AAGFBk6aysUETvhPcN-Wl4D2YM-Kg_v9ks5qUzcygaJpZM4JIiuJ
.

If the storage permission is required for both of the upload and gallery functions, can it be requested earlier? (e.g., the initial step where you input account name and password.) I think it's reasonable, because without the two features the app is almost useless.

PermissionsEverywhere requires min SDK to be 15. Currently ours is 11. That's 4.0.3, which excludes only 0.6% of our app's users according to the Google Play statistics. Should be okay?

Okay, I've implemented a check where if the user clicks the Upload button without the appropriate permissions, he will be asked for it again and won't be allowed to proceed until he accepts. 'Permission Everywhere' wasn't required for the camera fix since I could put the permission check in ShareActivity.
If anyone with a API 23 real device could please test the pull request on your device (@whym ?), would be really grateful. I've submitted so many blank/useless camera photos (because there's nothing else I can submit with an emulator) that the Commons folks must be quite pissed at me, lol.

Sorry @nicolas-raoul , I'll reopen this in hopes of getting real device feedback on the code. :)

I would be against introducing a new dependency just for fixing this bug. Every new dependency increases the maintenance cost in the long run (and also the APK size).
For this bug, I think there are other approaches worth considering:
If the storage permission is needed for both of the photo feature and gallery feature to be functional, then why not request it at an earlier point? (e.g., installation, first log in/account creation, etc.) When it becomes a part of the installation/initialization step, this issue will disappear.
On the other hand, if the permission is not absolutely needed (=if the photo feature and gallery feature can function to a certain extent without it, probably by having everything on memory), then crash should not happen even when the user does not give the permission. An "infinite loop" for asking for it should not happen either.

The new dependency was not introduced, as I found a way around it.
I think the user can still browse their old pictures if they really want to without the storage permission, they just cannot upload. Hence the block at the upload (title/desc) screen. An infinite loop should not happen, please do let me know if it does.

The new dependency was not introduced, as I found a way around it.

Sorry for not realizing that. If it was not introduced, can this line for repositories be reverted as well, I guess?
https://github.com/nicolas-raoul/apps-android-commons/blob/00ab7dc339fe796b7d6316c2aa740dc68e4dc47d/app/build.gradle#L3
I tested this (00ab7dc339fe796b7d6316c2aa740dc68e4dc47d) on the physical device and went fine. Saw a dialog for permission after pressing "Share". First declined and then accepted. File was uploaded. Good work!

Thanks @whym ! And thanks for fixing the gradle script, I missed that line indeed. :)


Can't view C# Source Code after Decomplication Enabled

Hello,
I cannot view the c# source code with the standard libraries in C#. Here are the steps to reproduce.
Steps to reproduce

Open vscode.
Go to settings -> extensions -> and -> C# -> Omnisharp -> Omnisharp: Enable Decomplication Support
Click on the checkbox next to "Enables support for decompiling external references instead of viewing metadata":

Type any c# line using standard functions or classes. For example: var list = new List(); Then right click on List and select "Go to implementations".

Expected  behavior
This should go to the source code for the generic List class in System.Collections.Generic
Actual behavior
This does not actually go to source code and just says "No implementation found for List":

Additional context
I have seen other posts about this such as the following: https://github.com/dotnet/vscode-csharp/issues/4817
but not actually able to find where to put the following command: "CSharp: Show the decompiler terms agreement"

If you're not using O#, the correct option is this:

However, we currently we don't decompile source from the SDK.  That is tracked by https://github.com/dotnet/vscode-csharp/issues/6784


request help: HttpRequest cannot get the request body

HttpRequest cannot get the request body. Is it my wrong operation? or is it not supported by java-plugin.

see: https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md#the-functions-must-be-implemented-of-filter-execution

@tzssangglass
I tried to log request's body but it returned null:
the filter function :
```
public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) {
String configStr = request.getConfig(this);
Gson gson = new Gson();
Map<String, Object> conf = new HashMap<>();
// convert according to the actual configured conf type
conf = gson.fromJson(configStr, conf.getClass());
    // get extra info
    String remoteAddr = request.getVars("remote_addr");
    String serverPort = request.getVars("server_port");
    String body = request.getBody();
    logger.info("this is request Body " +body);  // use to log request's body
}

the request body that I passed in api call :

{
"from": "mars",
"condition": "no oxygen"
}
apisix's log :
![Untitled](https://github.com/apache/apisix-java-plugin-runner/assets/104362897/23588fe0-3efd-41e5-8f45-ba058e6ac424)

_APISIX version : 3.3.0
Java runner version : 0.4.0_

Expected result :
apisix's log has request's body
Actual result : null body

I tried to log request's body but it returned null:
the filter function :
```public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) {
String configStr = request.getConfig(this);
Gson gson = new Gson();
Map<String, Object> conf = new HashMap<>();
// convert according to the actual configured conf type
conf = gson.fromJson(configStr, conf.getClass());
    // get extra info
    String remoteAddr = request.getVars("remote_addr");
    String serverPort = request.getVars("server_port");
    String body = request.getBody();
    logger.info("this is request Body " +body);  // use to log request's body
}```

the request body that I passed in api call :
        "from": "mars",
        "condition": "no oxygen"
}```
apisix's log :
![Untitled](https://github.com/apache/apisix-java-plugin-runner/assets/104362897/56efe032-1b84-416a-8412-b34eca0e8161)

_APISIX version : 3.3.0
Java runner version : 0.4.0_

Expected result :
apisix's log has request's body
Actual result : null body

@tzssangglass
I tried to log request's body but it returned null:
the filter function :
public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) {
    String configStr = request.getConfig(this);
    Gson gson = new Gson();
    Map<String, Object> conf = new HashMap<>();
    // convert according to the actual configured conf type
    conf = gson.fromJson(configStr, conf.getClass());

    // get extra info
    String remoteAddr = request.getVars("remote_addr");
    String serverPort = request.getVars("server_port");
    String body = request.getBody();
    logger.info("this is request Body " +body);  // use to log request's body
}

the request body that I passed in api call :
{         "from": "mars",         "condition": "no oxygen" }
apisix's log :

APISIX version : 3.3.0
Java runner version : 0.4.0
Expected result :
apisix's log has request's body
Actual result : null body

my back-end func got request body from api call :

my apisix route :

my upstream :


Log4j issue deploying maven overlay on Tomcat7

For some reason, I'm unable to deploy a simple maven overlay using CAS 4.1.0-SNAPSHOT on Tomcat 7 (Amazon Linux on an EC2 instance) with  java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/appender/AbstractAppender
I'm including cas-server-support-ldap as a dependency, other than that the pom is almost identical to the standard template (https://github.com/UniconLabs/simple-cas4-overlay-template).
Full stacktrace:
http://pastebin.com/m2VXf2hS
pom.xml
http://pastebin.com/sxDpn6Ex
I've also tried including the log4j-core dependency explicitly in the pom, but to no avail.
Any help would be much appreciated.

I've managed to deploy the same war on a different instance. I haven't managed to identify the cause of the issue but it's possibly due to a conflicting log4j version in another app on the same tomcat instance. Anyway, I'll close this issue unless I manage to reproduce it reliably.


Add support for file upload

API commands like those for uploading a CAT to SS require the ability to upload a file.

Added in v3.0.2


feat: add cluster metrics

Add cluster metrics.
Test results:
# HELP kubeadmiral_controller_manager_cluster_cpu_allocatable_number
# TYPE kubeadmiral_controller_manager_cluster_cpu_allocatable_number gauge
kubeadmiral_controller_manager_cluster_cpu_allocatable_number{cluster_name="kubeadmiral-member-1"} 4
kubeadmiral_controller_manager_cluster_cpu_allocatable_number{cluster_name="kubeadmiral-member-2"} 4
kubeadmiral_controller_manager_cluster_cpu_allocatable_number{cluster_name="kubeadmiral-member-3"} 4
# HELP kubeadmiral_controller_manager_cluster_cpu_available_number
# TYPE kubeadmiral_controller_manager_cluster_cpu_available_number gauge
kubeadmiral_controller_manager_cluster_cpu_available_number{cluster_name="kubeadmiral-member-1"} 3.0500000000000003
kubeadmiral_controller_manager_cluster_cpu_available_number{cluster_name="kubeadmiral-member-2"} 3.0500000000000003
kubeadmiral_controller_manager_cluster_cpu_available_number{cluster_name="kubeadmiral-member-3"} 3.0500000000000003
# HELP kubeadmiral_controller_manager_cluster_memory_allocatable_bytes
# TYPE kubeadmiral_controller_manager_cluster_memory_allocatable_bytes gauge
kubeadmiral_controller_manager_cluster_memory_allocatable_bytes{cluster_name="kubeadmiral-member-1"} 8.241246208e+09
kubeadmiral_controller_manager_cluster_memory_allocatable_bytes{cluster_name="kubeadmiral-member-2"} 8.241246208e+09
kubeadmiral_controller_manager_cluster_memory_allocatable_bytes{cluster_name="kubeadmiral-member-3"} 8.241246208e+09
# HELP kubeadmiral_controller_manager_cluster_memory_available_bytes
# TYPE kubeadmiral_controller_manager_cluster_memory_available_bytes gauge
kubeadmiral_controller_manager_cluster_memory_available_bytes{cluster_name="kubeadmiral-member-1"} 7.937159168e+09
kubeadmiral_controller_manager_cluster_memory_available_bytes{cluster_name="kubeadmiral-member-2"} 7.937159168e+09
kubeadmiral_controller_manager_cluster_memory_available_bytes{cluster_name="kubeadmiral-member-3"} 7.937159168e+09
# HELP kubeadmiral_controller_manager_cluster_offline_state
# TYPE kubeadmiral_controller_manager_cluster_offline_state gauge
kubeadmiral_controller_manager_cluster_offline_state{cluster_name="kubeadmiral-member-1"} 0
kubeadmiral_controller_manager_cluster_offline_state{cluster_name="kubeadmiral-member-2"} 0
kubeadmiral_controller_manager_cluster_offline_state{cluster_name="kubeadmiral-member-3"} 0
# HELP kubeadmiral_controller_manager_cluster_ready_state
# TYPE kubeadmiral_controller_manager_cluster_ready_state gauge
kubeadmiral_controller_manager_cluster_ready_state{cluster_name="kubeadmiral-member-1"} 1
kubeadmiral_controller_manager_cluster_ready_state{cluster_name="kubeadmiral-member-2"} 1
kubeadmiral_controller_manager_cluster_ready_state{cluster_name="kubeadmiral-member-3"} 1
# HELP kubeadmiral_controller_manager_cluster_joined_state
# TYPE kubeadmiral_controller_manager_cluster_joined_state gauge
kubeadmiral_controller_manager_cluster_joined_state{cluster_name="kubeadmiral-member-1"} 1
kubeadmiral_controller_manager_cluster_joined_state{cluster_name="kubeadmiral-member-2"} 1
kubeadmiral_controller_manager_cluster_joined_state{cluster_name="kubeadmiral-member-3"} 1
# HELP kubeadmiral_controller_manager_cluster_schedulable_nodes_total
# TYPE kubeadmiral_controller_manager_cluster_schedulable_nodes_total gauge
kubeadmiral_controller_manager_cluster_schedulable_nodes_total{cluster_name="kubeadmiral-member-1"} 1
kubeadmiral_controller_manager_cluster_schedulable_nodes_total{cluster_name="kubeadmiral-member-2"} 1
kubeadmiral_controller_manager_cluster_schedulable_nodes_total{cluster_name="kubeadmiral-member-3"} 1
# HELP kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds
# TYPE kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds summary
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-1",quantile="0.5"} 0.049269051
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-1",quantile="0.95"} 0.234076325
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-1",quantile="0.99"} 0.234076325
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_sum{cluster_name="kubeadmiral-member-1"} 1.969726718
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_count{cluster_name="kubeadmiral-member-1"} 26
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-2",quantile="0.5"} 0.063357662
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-2",quantile="0.95"} 0.207740015
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-2",quantile="0.99"} 0.207740015
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_sum{cluster_name="kubeadmiral-member-2"} 1.8967318360000003
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_count{cluster_name="kubeadmiral-member-2"} 26
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-3",quantile="0.5"} 0.056204847
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-3",quantile="0.95"} 0.09410731
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds{cluster_name="kubeadmiral-member-3",quantile="0.99"} 0.09410731
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_sum{cluster_name="kubeadmiral-member-3"} 1.575615451
kubeadmiral_controller_manager_cluster_sync_status_duration_seconds_seconds_count{cluster_name="kubeadmiral-member-3"} 25

/cc @mrlihanbo
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-1",result="success",quantile="0.5"} 0.579804021
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-1",result="success",quantile="0.95"} 0.802511839
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-1",result="success",quantile="0.99"} 0.802511839
kubeadmiral_controller_manager_cluster_joined_duration_seconds_sum{cluster_name="kubeadmiral-member-1",result="success"} 1.3823158599999998
kubeadmiral_controller_manager_cluster_joined_duration_seconds_count{cluster_name="kubeadmiral-member-1",result="success"} 2
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-2",result="success",quantile="0.5"} 0.754774227
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-2",result="success",quantile="0.95"} 0.821534506
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-2",result="success",quantile="0.99"} 0.821534506
kubeadmiral_controller_manager_cluster_joined_duration_seconds_sum{cluster_name="kubeadmiral-member-2",result="success"} 1.5763087329999999
kubeadmiral_controller_manager_cluster_joined_duration_seconds_count{cluster_name="kubeadmiral-member-2",result="success"} 2
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-3",result="success",quantile="0.5"} 1.033697344
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-3",result="success",quantile="0.95"} 1.033697344
kubeadmiral_controller_manager_cluster_joined_duration_seconds{cluster_name="kubeadmiral-member-3",result="success",quantile="0.99"} 1.033697344
kubeadmiral_controller_manager_cluster_joined_duration_seconds_sum{cluster_name="kubeadmiral-member-3",result="success"} 1.033697344
kubeadmiral_controller_manager_cluster_joined_duration_seconds_count{cluster_name="kubeadmiral-member-3",result="success"} 1


Understanding Eq. 1 and 2

Congratulations on achieving this great work! The demo and results are very impressive, and it has been a big hit! I really like the idea of using a quasi-3D representation and ignoring the ambiguities because they are not important to the problem.
I'm trying to understand Eq. 1 and 2 from the paper and can't understand why we use the same points in the source $x_i^k$ and target frame $x_j^k=\mathcal{T}_j^{-1}\circ\mathcal{T}_i(x_i^k)$ and hope I can get some clarifications.
In my understanding, if the points $x_j^k$ are the same points as $x_i^k$ in the canonical frame, then the occlusion relationship would not change across frames as the camera ray still passes through the same set of points in the same order. Since $\sigma_k$ is stored in $G$ and does not change across frames, I don't understand why OmniMotion can handle occlusions.
So my question is, why are we computing $x_j^k$ as $\mathcal{T}_j^{-1}\circ\mathcal{T}_i(x_i^k)$ instead of sampling from a new ray in $j$-th frame and map that to the same canonical space? Why does the model work so well despite $M_\theta$ cannot change the occlusion relationship?

Please correct me if my understanding is wrong:

The occlusion relationship can change, as two different samples $x_j^m$ and $x_j^n$ may swap orders in the frame $j$

If $x_i^m$ is closer than $x_i^n$, that means $m\lt n$, and $T_m\cdot\alpha_m=1$ and $T_n\cdot\alpha_n=0$ for both the frames $i$ and $j$. This will not change the occlusion relationship even if the depth order changes between the two frames. Unless you re-order $x_j$ by depth.

it ($x_j^n$) is farther away than $x_j^l$, and that's how it gets occluded

Because both $x_j^l$ and $x_i^l$ map to the same point in the canonical volume, they would get exactly the same color and density right? Consider in a rigid scene, something that was not occluded in frame $i$ ($x_i^n$ is closer than $x_i^l$) is occluded in frame $j$ ($x_j^l$ is closer than $x_j^n$) due to only camera motion. The only way OmniMotion would works is that $x_i^l$  is already in the camera ray, hiding behind $x_i^n$ even though in reality the occluding object should not be in the camera ray in frame $i$. Is my understanding correct? I believe that this is why it is called a quasi-3D representation in the sense that it is geometrically incorrect but suits well for the dense tracking task.

According to sections 4.1 and 4.2, I believe that $F_\theta$ is independent of the frame. $M_\theta$ is parameterised by $\phi_i$, which gives different $\mathcal{T}_i$ functions for different frames. Since both $x_i^l$ and $x_j^l$ map to the same point in the canonical volume, they are guaranteed to get the same color and density.

In section 4.3 it says

density and colour can be written as $(\sigma_k, c_k) = F_\theta (M_\theta(x^k_i ; \psi_i)) $

so it seems perfectly possible to get different colour and density for the same point in different frames.

Hi Tengyu,
The first part is correct. However, I think there is some misunderstanding here:

The only way OmniMotion would work is that $x_i^l$ is already in the camera ray, hiding behind $x_i^n$ even though in reality the occluding object should not be in the camera ray in frame i.

I don't understand why that's the only way OmniMotion would work. $x_i^n$ and $x_i^l$ do not need to be on the same ray in frame $i$. They can be at different pixel locations and both of them can be visible. Let me give you an example using the online demo:

In this example, the blue point is occluded by the red point in the second image (let's assume they are at the same pixel location), but their corresponding pixel locations in the first image are different and both of them are visible.

@boxraw-tech Tengyu is correct, if two local points map to the same point in the canonical volume, then they are guaranteed to get the same color and density.

Hi @qianqianwang68  @tengyu-liu
I am still trying to wrap my head around the discussion. Could you guys help to clarify them for me, particularly

If $\mathbf{x}_i^{m}$ is closer than $\mathbf{x}_i^{n}$, that means m<n, and $T_m$ $\circ$ $\alpha_m$=1 and  $T_n$ $\circ$ $\alpha_n$=0 for both the frames i and j. This will not change the occlusion relationship even if the depth order changes between the two frames. Unless you re-order $\mathbf{x}_j$ by depth.

Following your discussion, assuming m<n, the corresponding surface for $\mathbf{p}_i$ is $\mathbf{x}_i^n$, thus $\sigma_i^n$=1 and the rest is 0 ($\sigma_i^m$=0), isn't $T_m$ $\circ$ $\alpha_m = 0$ and $T_n$ $\circ$ $\alpha_n$=0 since $\alpha_m = 1 - \exp(0)$=0 and since $T_k$ considers the product over the $k-1$ points, thus $T_n$ $\circ$ $\alpha_n$ should be 0 as well.

I think I have finally figured out the occlusions :). For a given point p_i in the first image, you always get the same positions in the canonical volume, same colors and densities.  Then for the second image you do the "alpha compositing" to get a single point x_j (that is the 2D point p_j and its "depth").  You don't get the occlusion state yet. They don't mention how to get the occlusion state in the paper, but I think I have found it in the code.
To get the occlusion, they project the p_j back to the cannonical space (constructing samples, projecting) to get the densities and thus the "depth" (i.e. something like picking the sample on the p_j ray with the biggest density gives you "depth"). Finally they compare this "depth" in the second image with the "depth" of the point p_i projected into the second image.
So in the swing example, you first project the blue point on the lady into the second image to get the position on the swing frame + a "depth" prediction. Then you go backward from this position (into the cannonical frame to get densities and thus "depth") to check if the predicted "depth" is as expected (in this case it is not). The important think is that the red point does not matter at all. The occluder may not even be visible in the first image.


Add Bamba Model

This is the companion PR to an huggingface PR for adding Bamba, which is a hybrid mamba2 architecture with SwiGLU. The checkpoints are jointly trained by IBM, Princeton, and UIUC.
In this PR we have

created the bamba model inference architecture, which we would like acknowledge the jamba team for referencing their implementation, whereby we modified to support full attention layers with RoPE and mamba v2.
For this implementation note that TP and chunked prefill are currently being worked on.
copied over the mamba v2 scan kernels into vllm/model_executor/layers/mamba/ops, those that start with ssd_.
created tests/models/decoder_only/language/test_bamba.py with an initial ibm-fms/Bamba-9.8b-1.8T-hf. This is practically identical to test_mamba.py, only chunked prefill tests are disabled as it is currently not supported.

We would like to also acknowledge the draft codestral mamba PR from @tlrmchlsmth, which we also referenced the mixer.

we made a few simplications for bamba (simplified mixer from mamba v2)
Cuda graph capturing seems to be working, but we understand that cudagraphs are disabled for long sequence lengths. For SSM models the strength is in this regime, so can we handle it better?

Hope to discuss the following with the maintainers

do we have to remove all the bwd kernels?
for the full attention layers, we increase the sin_cos cache to cover the sequence length, if it is longer than max_sequence_len. This differs for other current models (e.g., llama). How can we better support long sequence lengths?
have some ideas to support chunked pre-fill, but will appreciate some discussion with the maintainers on how to proceed.
since the mixer2 is simplified from mamba, should we rename it?

cc: @ani300, @raghukiran1224, @cyang49, @njhill

Hi @fabianlim, thanks for the PR! It's really great to see progress being made on state-space models, especially for me as I unfortunately haven't been able to prioritize support for Mamba2
I'm happy to shepherd this PR and discuss any questions you have, especially to support chunked prefill. If you haven't already, can you join the developer slack for quicker discussion? (https://communityinviter.com/apps/vllm-dev/join-vllm-developers-slack)

@tlrmchlsmth i have addressed most of your comments now, not rebasing yet, waiting for you to look first. But I realized test_jamba.py has changed so I will need to do the rename and test again.

@tlrmchlsmth I have now marked the PR as ready and have addressed the remaining items, in particular the chunked prefill is the biggest change. This requires changes into the kernels. To test this, I have added unit tests for various chunked prefill scenarios.
Know is the holiday season and pls take your time. Happy holidays!


added flag csv separator for db create command

Added a flag for a custom separator in the db create command.
Addressing  #811
Example Usage:
turso db create --from-csv temp.csv --csv-table-name "Employee" --csv-separator ";"

Thanks.

Thanks for the review, @athoscouto
I have made the required changes, it looks a lot cleaner now.
Let me know if there are any other improvements to be made.
Thanks

Thank you @Mr-Destructive!


Is there a way to use a specific Ruby version?

I have some gems that require Ruby 3, but I think this action is hard-coded to use 2.7.
Can you add a way to specify the Ruby version?

Hi @MattUnderscoreZhang
Thanks for your good issue, so sorry for the late reply, currently it's hard-coded to use 2.7, I am trying to let this action better to support a specific Ruby version. And welcome to star this project for further updates in the future. : )
Thanks & Regards

Hi @MattUnderscoreZhang
With the latest version v0.6.0, you can use a specific Ruby version by the option ruby_ver, hope this helpful to you.
Thanks & Regards


Unable to sync using RESTORE_SNAPSHOT

OS
Your OS: Debian 11
Versions
The db-sync version (eg cardano-db-sync --version): 13.0.4
PostgreSQL version: 11.5-alpine
Build/Install Method
The method you use to build or install cardano-db-sync: docker-compose
Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): sudo docker-compose up -d
Additional context
Here is my docker-compose file:
version: "3.5"

services:
  postgres:
    image: postgres:11.5-alpine
    environment:
      - POSTGRES_LOGGING=true
      - POSTGRES_DB_FILE=/run/secrets/postgres_db
      - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
      - POSTGRES_USER_FILE=/run/secrets/postgres_user
    secrets:
      - postgres_password
      - postgres_user
      - postgres_db
    ports:
      - ${POSTGRES_PORT:-5432}:5432
    volumes:
      - postgres:/var/lib/postgresql/data
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"

  cardano-node:
    image: inputoutput/cardano-node:1.35.3-configs
    environment:
      - NETWORK=${NETWORK:-mainnet}
    volumes:
      - node-db:/data/db
      - node-ipc:/ipc
      - ./dlcweapons:/dlcweapons
      - ./projects:/projects
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"

  cardano-db-sync:
    image: inputoutput/cardano-db-sync:13.0.4
    environment:
      - NETWORK=${NETWORK:-mainnet}
      - POSTGRES_HOST=postgres
      - POSTGRES_PORT=5432
      - RESTORE_SNAPSHOT=${RESTORE_SNAPSHOT:-}
      - RESTORE_RECREATE_DB=N
    depends_on:
      - cardano-node
      - postgres
    secrets:
      - postgres_password
      - postgres_user
      - postgres_db
    volumes:
      - db-sync-data:/var/lib/cexplorer
      - node-ipc:/node-ipc
      - ./snapshots:/snapshots
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        max-size: "200k"
        max-file: "10"

  cardano-wallet:
    image: inputoutput/cardano-wallet:2022.8.16
    volumes:
      - wallet-${NETWORK}-db:/wallet-db
      - node-ipc:/ipc
    expose:
      - "8090"
    entrypoint: []
    command: bash -c "
        ([[ $$NETWORK == \"mainnet\" ]] && $$CMD --mainnet) ||
        ($$CMD --testnet /config/${NETWORK}/genesis-byron.json)
      "
    environment:
      CMD: "cardano-wallet serve --node-socket /ipc/node.socket --database /wallet-db --listen-address <IP_ADDRESS>"
      NETWORK:
    restart: on-failure
    logging:
      driver: "json-file"
      options:
        compress: "true"
        max-file: "10"
        max-size: "50m"
    networks:
      - proxy

secrets:
  postgres_db:
    file: ./config/secrets/postgres_db
  postgres_password:
    file: ./config/secrets/postgres_password
  postgres_user:
    file: ./config/secrets/postgres_user

volumes:
  db-sync-data:
  postgres:
  node-db:
  node-ipc:
  wallet-mainnet-db:

networks:
  proxy:
    external: true

Problem Report
So I thought it would be a good idea to upgrade to Cardano node 1.35 and I regret it already (second time I regret a node upgrade). However, this time the node is fine but Cardano db sync doesn't want to sync the next epoch.
I used the following vairable in my ENV to restore the second latest snapshot (also tried latest, third latest etc.):
RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13/db-sync-snapshot-schema-13-block-7749373-x86_64.tgz

You can find the full log here: http://displee.com/upload/cardanodbsync.txt
A few things stick out:

Some SQL queries do not get executed and end up with the error No space left on device while I have 300GB SSD free before syncing. I have an SSD of 500GB.
Syncing keeps getting cancelled:

cardano-db-sync_1  | [db-sync-node:Info:70] [2022-09-17 23:24:45.21 UTC] Starting at epoch 363
cardano-db-sync_1  | [db-sync-node:Error:70] [2022-09-18 01:00:54.97 UTC] runDBThread: DbInsertException "Many TxIn" (SqlError {sqlState = "42704", sqlExecStatus = FatalError, sqlErrorMsg = "constraint \"unique_txin\" for table \"tx_in\" does not exist", sqlErrorDetail = "", sqlErrorHint = ""})
cardano-db-sync_1  | [db-sync-node:Error:69] [2022-09-18 01:00:54.98 UTC] recvMsgRollForward: AsyncCancelled
cardano-db-sync_1  | [db-sync-node:Error:62] [2022-09-18 01:00:54.98 UTC] ChainSyncWithBlocksPtcl: DbInsertException "Many TxIn" (SqlError {sqlState = "42704", sqlExecStatus = FatalError, sqlErrorMsg = "constraint \"unique_txin\" for table \"tx_in\" does not exist", sqlErrorDetail = "", sqlErrorHint = ""})

It says that a unique constraint is missing, but if I look at the tx_in table in the cexplorer db it is there?
3. It does not matter which snapshot I use to restore. I keep getting the message that the unique_txin constraint is missing in the tx_in table even though it is there.
4. I always drop the cardano-db-sync_db-sync-data and cardano-db-sync_postgres volumes before syncing. Does not help.
Things I haven't tried yet:

Downgrading Cardano db sync and the node

Any suggestions?

Restoring from a snapshot requires tons of free space. Possibly it's what's causing the issue.

root@vmi781137:~/docker/cardano-db-sync$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             15G     0   15G   0% /dev
tmpfs           3.0G  1.2M  3.0G   1% /run
/dev/sda1       394G  104G  275G  28% /
tmpfs            15G     0   15G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/sda15      124M  5.9M  118M   5% /boot/efi
tmpfs           3.0G     0  3.0G   0% /run/user/1001

275 GB not enough? How much do you think is needed?

I have increased my disk space and it seems to fix it. I now have a 1.1TB SSD with 400GB usage (clean Debian 11 install + docker engine + docker compose + cardano-db-sync).


Add --prune to stack deploy

Fixes #29898
cc @vdemeester

Should we have a --remove-orphans alias to make adoption easier for those that are used to docker-compose?

should docker system prune prune stacks as well ?

Perhaps documenting it somewhere (some sort of migration guide) could work

Should we have a --remove-orphans alias to make adoption easier for those that are used to docker-compose?

I think there are enough CLI differences already that no one should expect the same flags.

should docker system prune prune stacks as well ?

There is no object on the server yet, so I don't think so. We don't have prune for services either, right?

Design OK.

Moved to code review

/cc @thaJeztah for docs review

@dnephin can you update the reference docs for the new flag?

https://github.com/docker/docker/blob/master/docs/reference/commandline/stack_deploy.md
https://github.com/docker/docker/blob/master/docs/reference/commandline/deploy.md

This also needs an update to the bash/zsh completion scripts

I think this part of the command line reference is generated now, but I've added them anyway.

may need to be squashed though 😇

rebased

All green 👍


Parsing binary includes is broken

Parsing a dts containing a binary include (/incbin/) gives me the following exception using python 3.7 and pyFDT 0.3.3:
Traceback (most recent call last):
  File "./test.py", line 9, in <module>
    tree = fdt.parse_dts(dts)
  File "<...>/python3.7/site-packages/fdt/__init__.py", line 505, in parse_dts
    prop_obj = PropIncBin(prop_name, prop_data, os.path.split(file_path)[1])
  File "<...>/python3.7/site-packages/fdt/items.py", line 469, in __init__
    super().__init__(name, data)
  File "<...>/site-packages/fdt/items.py", line 378, in __init__
    self.data = bytearray(args)
TypeError: 'bytes' object cannot be interpreted as an integer

Code to reproduce:
import fdt

dts = """/dts-v1/;

/ {
  data = /incbin/("data.bin");
};
"""

tree = fdt.parse_dts(dts)

I believe this is broken in this commit: https://github.com/molejar/pyFDT/commit/bcf94d955939394aeb0c576683eca87208e5a5a9
Since this change the PropBytes's initializer takes *args in addition to data:
-    def __init__(self, name, data=None):
+    def __init__(self, name, *args, data=None):

Test code is adjusted accordingly:
-    prop1 = fdt.PropBytes('prop', [0x10, 0x50, 0x00])
+    prop1 = fdt.PropBytes('prop', data=b"\x10\x50\x00")

But there is no corresponding change in the initializer of PropIncBin:

https://github.com/molejar/pyFDT/blob/90186c53ee2fba25a7a515fba5debde2e07f9c08/fdt/items.py#L469

(And apparently no test coverage for PropIncBin ;))


Make the print function in the riscv runtime crate a proper macro

The idea is that we are able to use print in the same way as we can use print!() from std.
But it should not allocate.

Can this be closed, @lvella ?


Tooltip content function and size-related functions for scatter plots

In a recent project, we needed finer-grained control over dot sizes and create fancy tooltips. I added some wiring from the scope properties to the NVD3-functions.

Just an update, before we take in any further pull requests, we are going to put in place some unit tests to help us maintain stability.  Until that time, pull requests will be waiting.

Looks like a good change.  There is another PR (#309) addressing the tooltip content.  Can you resubmit this PR just adding size domain and size range, with unit tests for it?  :)


FormLayout inside VerticalLayout changes its width depending on form-items number

I'm not sure whether this is a VerticalLayout  issue or FormLayout .
Please move it in the proper repository if needed.
The original issue is : https://github.com/vaadin/flow/issues/4924.
Steps to reproduce:

create a vertical layout: var layout = document.createElement('vaadin-vertical-layout');
create a form layout: var formLayout = document.createElement('vaadin-form-layout');
append form layout to vertical layout : layout.appendChild(formLayout);
add two form items:

var formItem1 = document.createElement('vaadin-form-item');
var field = document.createElement('vaadin-text-field');
formItem1.appendChild(field);
var lbl = document.createElement('label');
lbl.slot="label";
lbl.innerText="A"
formItem1.appendChild(lbl);
formLayout.appendChild(formItem1);
repeat the same for formItem2.

check that the width of the resulting formLayout  is not 100%.
repeat the previous step with two more items.

The result is: the formLayout increases its width.
Depending on your browser window size the formLayout will increase its width one more time if you repeat adding two items one more time.

Note: width: fit-content from the above example kinda makes sense, but is not the viable option for us, as it is not supported by IE11 and Edge: https://caniuse.com/#feat=intrinsic-width
We will re-iterate on the possible solution later this week.


[WIP] 269 new access control

I'm opening a pull request early so I can make some comments on issues that will need to be addressed.

NOTE The branch is currently on hold. I'm closing the pull request at this time. Either this will be revisited or replaced by other work to be determined.


CHEBI:74098, there is a wrong reference linked to this compound

Hi Gareth and Steve,
There are three references linked to this compound, but pmid:27114550 does not belong, as it is linked to CHEBI:137373 and others.
Cheers,
Kristian

Hi Kristian,
Thanks for letting us know - I've deleted the bad PMID from CHEBI:137373.
Best regards,
Gareth


Relax rule about super followed by member access

I have a method that takes a class type. I can pass an explicit class name to it Foo, or I can pass this, but I cannot pass super because of the ts error:

'super' must be followed by an argument list of member access.

Is there a specific design goal behind disabling this?
TypeScript Version:  2.4.1

Is there a specific design goal behind disabling this?

It's not in any sense "disabled" as much as simply not existing in the first place - it's not legal ES6 code to nakedly reference super, and there's not an immediately obvious ES5 transpilation.

I see, I'll close this then. Thanks for the quick reply!


Added !cmd as default command #96

Is there more to it?
I didn't see it fit to add it to the list of returned commands from the CommandsCommand, when it is more of an alternative to !commands (like !points is a not-listed alternative for !coins for the CoinsCommand).

This is literally all that's required for now. Well done.


Readiness/liveness check for non-Kubernetes?

Information
We have https://tsed.io/tutorials/terminus.html but is there a readiness/liveness for non-Kubernetes systems?
Acceptance criteria

[ ] Criteria 1

Hello @Romakita
I'm sorry but I don't understand your question but it seems to be addressed to terminus developer team. Ts.ED just wrap the @godaddy/terminus npm module ;)
See you

https://www.npmjs.com/package/@godaddy/terminus

@Romakita ya terminus is for K8 only. I guess wrapping https://www.npmjs.com/package/lightship would probably be an alternative because it supports normal, containerized and k8 all in one package.

Ok I didn't know that ^^. I use terminus for a normal dockerized app. Maybe not on all features ^^.
Tell me if you need help for lightship integration ;).
See you


Help getting build working

Thanks again for this fab project!
I'm trying to rebuild the data to submit a PR, but I'm struggling to get the build script working. I'm on MacOS v13.6.6 and so far I've managed the following:
Install the required version of PHP (7.3) - instructions here
Install Composer locally - instructions here
I've successfully installed the project dependencies with ./composer.phar install
But now I'm having trouble running the build script. The readme says to run docker-compose run php /var/www/html/bin/build -v but that doesn't seem right, as I don't have a docker-compose command, nor a /var/www/html/bin/build directory. I've tried just running php bin/build -v which seems to run a bit, but then produces the following errors:
PHP Warning:  The use statement with non-compound name 'Locale' has no effect in /Users/jack/workspace/country-list/bin/build on line 4

Warning: The use statement with non-compound name 'Locale' has no effect in /Users/jack/workspace/country-list/bin/build on line 4
[file+] /Users/jack/workspace/country-list/bin/../data/af/country.json
[file+] /Users/jack/workspace/country-list/bin/../data/af/country.xliff
[file+] /Users/jack/workspace/country-list/bin/../data/af/country.xml
[file+] /Users/jack/workspace/country-list/bin/../data/af/country.txt

In AbstractPostgreSQLDriver.php line 79:

  [Doctrine\DBAL\Exception\DriverException]
  An exception occurred in driver: SQLSTATE[08006] [7] could not translate host name "pgsql" to address: nodename nor servname provided, or not known

Exception trace:
  at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:79
 Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169
 Doctrine\DBAL\DBALException::wrapException() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:155
 Doctrine\DBAL\DBALException::driverException() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:48
 Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356
 Doctrine\DBAL\Connection->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:422
 Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:382
 Doctrine\DBAL\Connection->detectDatabasePlatform() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:324
 Doctrine\DBAL\Connection->getDatabasePlatform() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:85
 Umpirsky\ListGenerator\Exporter\SqlExporter->exportCreateTable() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:23
 Umpirsky\ListGenerator\Exporter\SqlExporter->export() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Builder/Build.php:81
 Umpirsky\ListGenerator\Builder\Build->execute() at /Users/jack/workspace/country-list/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:987
 Symfony\Component\Console\Application->doRunCommand() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /Users/jack/workspace/country-list/bin/build:25

In PDOConnection.php line 31:

  [Doctrine\DBAL\Driver\PDOException (7)]
  SQLSTATE[08006] [7] could not translate host name "pgsql" to address: nodename nor servname provided, or not known

Exception trace:
  at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31
 Doctrine\DBAL\Driver\PDOConnection->__construct() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:24
 Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356
 Doctrine\DBAL\Connection->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:422
 Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:382
 Doctrine\DBAL\Connection->detectDatabasePlatform() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:324
 Doctrine\DBAL\Connection->getDatabasePlatform() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:85
 Umpirsky\ListGenerator\Exporter\SqlExporter->exportCreateTable() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:23
 Umpirsky\ListGenerator\Exporter\SqlExporter->export() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Builder/Build.php:81
 Umpirsky\ListGenerator\Builder\Build->execute() at /Users/jack/workspace/country-list/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:987
 Symfony\Component\Console\Application->doRunCommand() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /Users/jack/workspace/country-list/bin/build:25

In PDOConnection.php line 27:

  [PDOException (7)]
  SQLSTATE[08006] [7] could not translate host name "pgsql" to address: nodename nor servname provided, or not known

Exception trace:
  at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27
 PDO->__construct() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27
 Doctrine\DBAL\Driver\PDOConnection->__construct() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:24
 Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356
 Doctrine\DBAL\Connection->connect() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:422
 Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:382
 Doctrine\DBAL\Connection->detectDatabasePlatform() at /Users/jack/workspace/country-list/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:324
 Doctrine\DBAL\Connection->getDatabasePlatform() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:85
 Umpirsky\ListGenerator\Exporter\SqlExporter->exportCreateTable() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Exporter/SqlExporter.php:23
 Umpirsky\ListGenerator\Exporter\SqlExporter->export() at /Users/jack/workspace/country-list/vendor/umpirsky/list-generator/src/Umpirsky/ListGenerator/Builder/Build.php:81
 Umpirsky\ListGenerator\Builder\Build->execute() at /Users/jack/workspace/country-list/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:987
 Symfony\Component\Console\Application->doRunCommand() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /Users/jack/workspace/country-list/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /Users/jack/workspace/country-list/bin/build:25

Is there something else I need to do to get this working? Thanks for your time.

I didn't run it for quite some time, I might try when I have time and update it a bit. Looks like for PostgreSQLDriver some additional setup is needed.

I got it running,

I don't have a docker-compose command

Do you have Docker Desktop installed?

nor a /var/www/html/bin/build directory

This is a path from inside the docker container.
Try
  ./composer.phar self-update --2.2

here are the Docker files that I was able to make.
I can't upload the vendor files as they are too big. I can send them to you via wetransfer if you want.
@jackocnr I have some experience with Docker but very little with PHP.
After the rebuild, the output files were the same.
ac: "Ascension Island",
xk: "Kosovo",

These weren't added
From my little understanding of PHP it looks like the data is coming from here.
Ps I am running MacOS 14.4.1 (23E224)


ASU-1541 | Make project detail API query faster

Changed "has_multiple_winning_apartments" field in project detail API query reservation data to be resolved with DB annotations. The result requires fewer DB and Elastic Search queries than the original solution, and it performs quite a bit faster (1 sec vs 12 sec in one not very uncomprehensive test).

Codecov Report

Merging #247 (04e62f6) into develop (85e168e) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #247      +/-   ##
===========================================
+ Coverage    93.35%   93.39%   +0.03%
===========================================
  Files          118      118
  Lines         4081     4073       -8
  Branches       359      357       -2
===========================================
- Hits          3810     3804       -6
+ Misses         201      200       -1
+ Partials        70       69       -1

Impacted Files
Coverage Δ

apartment/api/serializers.py
100.00% <100.00%> (ø)

application_form/api/sales/serializers.py
95.16% <100.00%> (+1.17%)
:arrow_up:

Continue to review full report at Codecov.

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


MAINT: sparse.linalg: bnorm only calculate once

Reference issue

What does this implement/fix?

For a given right-hand side b, np.linalg.norm(b) only need to be calculated once in demo_lgmres.py. In addition, relative residual is specified.
Additional information

Thank you for your review! 😀


v2.2.0 is not working

After upgrading, my validation stopped working.

Seeing this aswell. data is undefined in my validation functions.

Likewise on 2.1.0, reverting to 2.0.0 fixed the issue for me.

2.1.0 works for me

De: Nick<EMAIL_ADDRESS>Enviada em: 13/10/2015 23:38
Para<EMAIL_ADDRESS>Cc: Luís<EMAIL_ADDRESS>Assunto: Re: [redux-form] v2.2.0 is not working (#127)
Likewise on 2.1.0, reverting to 2.0.0 fixed the issue for me.

Reply to this email directly or view it on GitHub:
https://github.com/erikras/redux-form/issues/127#issuecomment-147906968

Thanks guys. Will investigate.

Try v2.2.1.


fix some Chinese translation problem

Hi，Wwarby， I find some words are not correctly translated for the small difference。I fixed it.

Hi Chuanyi,
Thanks very much for taking the time to actually fix the translation rather than just reporting it, I really appreciate it. I’ll push out a release with the updated translation shortly.
Best regards,
William
Sent from my iPhone

On 19 Jun 2021, at 18:00, Chuanyi @.***> wrote:

Hi，Wwarby， I find some words are not correctly translated for the small difference。I fixed it.
You can view, comment on, or merge this pull request online at:
https://github.com/wwarby/walker/pull/1
Commit Summary
fix some Chinese translation problem
File Changes
M resources-zhs/strings.xml (18)
Patch Links:
https://github.com/wwarby/walker/pull/1.patch
https://github.com/wwarby/walker/pull/1.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

In Chinese, both pace and speed can be translated to 速度 generally. But if we use them together, it is better to translate pace as 配速 and speed as 速度. The main difference is the unit.


Form edition do not handle all inputs correctly

Hi,
When editing a form, I experience some issues with custom controls.
When I submit the form after editing some fields, the fields I did not edit (not even touch, so onBlur is not called) are now considered $unset.
This is related to the onSubmit callback of the Form component there.
The  data object configured just before is incorrect.So when you compute the fields, some of them are missing, and they end up in the unset field even if I did not delete the value.
I can't tell what function is responsible, there are a few calls to define this data object. My guess rn is that when you define the data object the first time, you rely on Formsy, which actually misses some controls.
Also a side note: the FormComponent inputs are uncontrolled (rely on onBlur instead of onChange) but when editing they got a value. React should have warned, but since there is a callback onChange that counts chars, it thinks it's ok. We should either should uncontrolled or controlled.
According to @ErikDakoda  and from React docs controlled should be preferred, however I don't know which is the longest to implement. Controlled can also have perf issues if you do heavy computations, like validation, on each keypress.

Components like the form upload use addToAutofilledValues  during mount:   this.context.addToAutofilledValues({[this.props.name]: newValue});. That is why they work as expected.
This call is actually mandatory for custom controls to work as expected during edit. So there seems to be 2 solutions:

complete the doc about custom controls
make this call unnecessary

If the user never changed the value of a given control through updateCurrentValues, it should not be considered as unset, but instead be set at its current value or ignored. I don't know how to implement this, maybe this.autofilledValues should be initialized differently in edit mode ?

One thing I do on my forms is to pre-fill the values by passing the document to SS to generate a default set of values, and then strap this to the form.  I have a custom setup, so not sure how this might work with SmartForm instead, but seems like you are most of the way there already.

Sadly it does not seem to work for objects :/
My autofilledValues is correctly set to { address: {...}} in the Form component, but then the address field is still unset during submit. I am trying to figure out why.
It works for other custom components though.

I have to confess I haven't had time to take another look at the form code recently. If this can be fixed easily I'd accept a PR, but if it requires a bigger refactoring then it'll probably have to wait a little…

Yes of course, it would even be a better idea to wait a little, because those issues might disappear by themselves next time someone works back on the forms. I'd like to help but I need a better understanding of how Formsy works first, I think this might need some non trivial refactor. In the meantime it is not that hard to quickfix using updateCurrentValues.
I'll try to update the example-forms.

I am willing to throw some time at this, just need a good "broken" example to review.  @eric-burel any chance of a repo to pull down and test against?

Thanks @vincro , that would be nice. Actually the bug should be reproducible in the example-forms I created in the Vulcan-starter (in a PR not merged yet), it concerns the ObjectForm.
If you don't touch an address field during an edit, you will observe this issue (you may need to add a DataTable to see the data, I did not add one in the example).

@eric-burel will grab the merging branch and review later on today.

Also a side note: the FormComponent inputs are uncontrolled (rely on onBlur instead of onChange) but when editing they got a value. React should have warned, but since there is a callback onChange that counts chars, it thinks it's ok. We should either should uncontrolled or controlled.

I was revisiting this today and now I remember that the reason I used onBlur instead of onChange is because the Formsy inputs became super slow when I tried onChange. I agree onBlur is not great though because there are edge cases where you might submit a form without triggering the blur event. I'm not sure what the best solution is here…

For now I think I'll use onChange, but debounce it. For some reason I can't get Formsy's debounce to work so I'll just do it at Vulcan's level.

Hi @SachaG, the lack of performance might also come from unexpected renders fired by rapid changes due to onChange, so you may want to check if debouncing actually solve the slowness issue on a non-trivial example.
I'll work back on forms when I have more time, I'll have a clearer agenda/roadmap in the weeks to come.