[SPARK-29387][SQL] Support * and / operators for intervals

What changes were proposed in this pull request?
Added new expressions MultiplyInterval and DivideInterval to multiply/divide an interval by a numeric. Updated TypeCoercion.DateTimeOperations to turn the Multiply/Divide expressions of CalendarIntervalType and NumericType to MultiplyInterval/DivideInterval.
To support new operations, added new methods multiply() and divide() to CalendarInterval.
Why are the changes needed?

To maintain feature parity with PostgreSQL which supports multiplication and division of intervals by doubles:

# select interval '1 hour' / double precision '1.5';
 ?column?
----------
 00:40:00

To conform the SQL standard which defines those operations: numeric * interval, interval * numeric and interval / numeric. See 4.5.3  Operations involving datetimes and intervals.
Improve Spark SQL UX and allow users to adjust interval columns. For example:

spark-sql> select (timestamp'now' - timestamp'yesterday') * 1.3;
interval 2 days 10 hours 39 minutes 38 seconds 568 milliseconds 900 microseconds

Does this PR introduce any user-facing change?
Yes, previously the following query fails with the error:
spark-sql> select interval 1 hour 30 minutes * 1.5;
Error in query: cannot resolve '(interval 1 hours 30 minutes * 1.5BD)' due to data type mismatch: differing types in '(interval 1 hours 30 minutes * 1.5BD)' (interval and decimal(2,1)).; line 1 pos 7;

After:
spark-sql> select interval 1 hour 30 minutes * 1.5;
interval 2 hours 15 minutes

How was this patch tested?

Added tests for the multiply() and divide() methods to CalendarIntervalSuite.java
New test suite IntervalExpressionsSuite
by tests for Multiply -> MultiplyInterval and Divide -> DivideInterval in TypeCoercionSuite
updated datetime.sql

Test build #112124 has started for PR 26132 at commit 014cde5.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17119/
Test PASSed.

Test build #112124 has finished for PR 26132 at commit 014cde5.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112124/
Test PASSed.

Test build #112182 has started for PR 26132 at commit 049f428.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17173/
Test PASSed.

Test build #112182 has finished for PR 26132 at commit 049f428.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112182/
Test FAILed.

Test build #112187 has started for PR 26132 at commit 1ca7c89.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17178/
Test PASSed.

Test build #112187 has finished for PR 26132 at commit 1ca7c89.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112187/
Test PASSed.

@wangyum @cloud-fan @srowen Please, review this PR.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17217/
Test PASSed.

Test build #112230 has started for PR 26132 at commit 9e6745a.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17219/
Test PASSed.

Test build #112231 has started for PR 26132 at commit b428070.

Test build #112230 has finished for PR 26132 at commit 9e6745a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112230/
Test PASSed.

Test build #112231 has finished for PR 26132 at commit b428070.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112231/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17270/
Test PASSed.

Test build #112287 has started for PR 26132 at commit 8ad4001.

Test build #112287 has finished for PR 26132 at commit 8ad4001.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
            s\"Failed to get main class in JAR with error '$
        error(\"No main class set in JAR; please specify one with --class.\")
abstract class EventLogFileReader(
class SingleFileEventLogFileReader(
class RollingEventLogFilesFileReader(
abstract class EventLogFileWriter(
class SingleEventLogFileWriter(
class RollingEventLogFilesWriter(
 class DriverEndpoint extends IsolatedRpcEndpoint with Logging
case class ShuffleBlockBatchId(
        require(probability != null, \"probability of each class can not be null\")
class _LinearSVCParams(_JavaClassifierParams, HasRegParam, HasMaxIter, HasFitIntercept, HasTol,
class LinearSVC(JavaClassifier, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class LinearSVCModel(JavaClassificationModel, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class _LogisticRegressionParams(_JavaProbabilisticClassifierParams, HasRegParam,
class LogisticRegression(JavaProbabilisticClassifier, _LogisticRegressionParams, JavaMLWritable,
class LogisticRegressionModel(JavaProbabilisticClassificationModel, _LogisticRegressionParams,
class _NaiveBayesParams(_JavaPredictorParams, HasWeightCol):
class NaiveBayes(JavaProbabilisticClassifier, _NaiveBayesParams, HasThresholds, HasWeightCol,
class NaiveBayesModel(JavaProbabilisticClassificationModel, _NaiveBayesParams, JavaMLWritable,
class _MultilayerPerceptronParams(_JavaProbabilisticClassifierParams, HasSeed, HasMaxIter,
class MultilayerPerceptronClassifier(JavaProbabilisticClassifier, _MultilayerPerceptronParams,
class _LinearRegressionParams(_JavaPredictorParams, HasRegParam, HasElasticNetParam, HasMaxIter,
class LinearRegression(JavaPredictor, _LinearRegressionParams, JavaMLWritable, JavaMLReadable):
class LinearRegressionModel(JavaPredictionModel, _LinearRegressionParams, GeneralJavaMLWritable,
class _IsotonicRegressionParams(HasFeaturesCol, HasLabelCol, HasPredictionCol, HasWeightCol):
class IsotonicRegression(JavaEstimator, _IsotonicRegressionParams, HasWeightCol,
class IsotonicRegressionModel(JavaModel, _IsotonicRegressionParams, JavaMLWritable,
class _GeneralizedLinearRegressionParams(_JavaPredictorParams, HasFitIntercept, HasMaxIter,
class GeneralizedLinearRegression(JavaPredictor, _GeneralizedLinearRegressionParams,
class GeneralizedLinearRegressionModel(JavaPredictionModel, _GeneralizedLinearRegressionParams,
case class BitwiseCount(child: Expression) extends UnaryExpression with ExpectsInputTypes
abstract class ExtractIntervalPart(
case class ExtractIntervalMillenniums(child: Expression)
case class ExtractIntervalCenturies(child: Expression)
case class ExtractIntervalDecades(child: Expression)
case class ExtractIntervalYears(child: Expression)
case class ExtractIntervalQuarters(child: Expression)
case class ExtractIntervalMonths(child: Expression)
case class ExtractIntervalDays(child: Expression)
case class ExtractIntervalHours(child: Expression)
case class ExtractIntervalMinutes(child: Expression)
case class ExtractIntervalSeconds(child: Expression)
case class ExtractIntervalMilliseconds(child: Expression)
case class ExtractIntervalMicroseconds(child: Expression)
case class ExtractIntervalEpoch(child: Expression)
case class AnalyzeTableStatement(
case class AnalyzeColumnStatement(

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112287/
Test PASSed.

@srowen @cloud-fan Is this PR blocked by https://github.com/apache/spark/pull/26134 ?

Test build #112672 has started for PR 26132 at commit 91337e5.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17628/
Test PASSed.

Test build #112673 has started for PR 26132 at commit 2bb916f.

Merged build finished. Test PASSed.

Test build #112672 has finished for PR 26132 at commit 91337e5.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17629/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112672/
Test FAILed.

Test build #112673 has finished for PR 26132 at commit 2bb916f.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112673/
Test FAILed.

Test build #112682 has started for PR 26132 at commit 6ba53f0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17638/
Test PASSed.

Test build #112682 has finished for PR 26132 at commit 6ba53f0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112682/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18016/
Test PASSed.

Test build #113100 has started for PR 26132 at commit 690d9c1.

Test build #113100 has finished for PR 26132 at commit 690d9c1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113100/
Test FAILed.

Test build #113107 has started for PR 26132 at commit 5b25432.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18024/
Test PASSed.

Test build #113107 has finished for PR 26132 at commit 5b25432.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113107/
Test FAILed.

jenkins, retest this, please

Test build #113109 has started for PR 26132 at commit 5b25432.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18026/
Test PASSed.

Test build #113109 has finished for PR 26132 at commit 5b25432.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113109/
Test PASSed.

Maybe best to wait?

@srowen @cloud-fan @dongjoon-hyun @HyukjinKwon Since #26134 has been already merged, please, take a look at this PR.

Test build #113202 has started for PR 26132 at commit 2265449.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18113/
Test PASSed.

Test build #113202 has finished for PR 26132 at commit 2265449.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class GangliaReporter extends ScheduledReporter
   public static class Builder

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113202/
Test PASSed.

Test build #113255 has started for PR 26132 at commit 35ab9c0.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18166/
Test PASSed.

Test build #113265 has started for PR 26132 at commit b70c0f8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/18173/
Test PASSed.

Test build #113255 has finished for PR 26132 at commit 35ab9c0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113255/
Test PASSed.

Test build #113265 has finished for PR 26132 at commit b70c0f8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1722

Questions ?
Please refer to the Backport tool documentation


License?

I'd appreciate if the license to reuse/redsitribute the code is explicit.  I ported the code to Scheme for private benchmarks, but can't distribute it without knowint the original license.   Mahalo.

Its 2-clause BSD license.
https://code.google.com/archive/p/aobench/
PR to add license info to ao.c is much appreciated!


Transfer clevelandlots.org and clelots.org to Open Cleveland control

I currently have clevelandlots.org and clelots.org registered under my personal account with NearlyFreeSpeech.net. clevelandlots.org needs to be renewed on April 3, so now is probably a good time to transfer those domains to Open Cleveland control.
The easiest thing would probably be to register the domains under our Amazon AWS account for<EMAIL_ADDRESS>- I think their DNS / domain name offering is Route 53. I don't know the steps to transfer the names but if we agree to move them to Amazon then we can figure the steps out.
If we transfer the domains to Open Cleveland control, will Code for America pay for them? The yearly expense is very small and I'm happy to cover it but depending on one person for that is probably not sustainable in case I get busy and disappear, so securing funding for Open Cleveland is probably safer.

(I'm following up with @pkoepke to finally complete this).


Swashbuckle.Dummy.Webhost not working

I am trying to unserstand more about how Swashbuckle should best be used, and forked Swashbuckle. However, when i clone and try to run the standard web examples, lots of javascript resources from /lib are missing. Am I supposed to fetch jquery, swaggerui, etc, from somewhere else? If so, where do I put them to make stuff work?
 Automatically embed swagger-ui files. Construct name so resource can be retrieved by swagger-ui relative path -->
  <ItemGroup>
    <EmbeddedResource Include="..\swagger-ui\dist\**\*.*">
      <LogicalName>%(RecursiveDir)%(FileName)%(Extension)</LogicalName>
      <InProject>false</InProject>
    </EmbeddedResource>
  </ItemGroup>

So, solution was to copy swagger-ui's "dist" folder into the "swagger-ui" folder of swashbuckle, and everything worked fine!!! Cased closed. Some hours of my life I'll never get back...

Hey man - sorry about that. I really need to add a quick note to the readme.
Actually, the swagger-ui is embedded into the solution as a git submodule tied to a specific version (2.1.1-M1). To pull down the correct bits, you just need to execute the following from the solution root
git submodule update

Thanks

No sweat. But a note would be good. So, there is such a thing as git submodules? Nice to know... Learning more about git every day :) I'll remove the manually downloaded bits and exchange with the submodule. Thanks for the clarification.

你这个坑挖的真好！！！！！！
简直干的漂亮！！！！！！！！
~！！！！！！！！！！！！！
！！！！！！！！

It would be really great if the docs could be updated to mention the manual copying of the dist folder. I had exactly the same issue - downloaded the ZIP of this repo (company policy prevents cloning from here) and I couldn't get it working due to the 404 on all .js files.
Got it fixed by also downloading the ZIP of the main swagger-ui repo and copying the dist folder over as suggested by @erikbra.


KBC-1337 add configuration row version rollback tests

Jira: KBC-1337
KBC: https://github.com/keboola/connection/pull/3095
Before asking for review make sure that:

[x] New client method(s) has tests
[ ] Apiary file is updated ?? děláme nějaký update pro dev branche?
[x] You declared if there is a BC break or not (will affect next release of a client)

Api doc přidaný


.hgignore should never consider 'syntax: glob' as "never used"

With version 0.9, the .ignore plugin considers the line syntax: glob as "never used".
Removing this entry (the suggested action) results in Mercurial mistakenly considering the glob entries as regex entries.
Therefore, syntax: glob must never be considered as "never used".

Hello @pepoluan
Thank you for reporting it. It has been already fixed ant is waiting for release.
In next released version there will be available syntax: support and switching between regexp and glob syntax modes (regexp by default).
I have to finish one more feature and it'll be published tomorrow I think.


if the text too long, the toast will overflow.

Description
How to make it wrap automatically
CodeSandbox/Snack link
https://gluestack.io/ui/docs/components/feedback/toast
Steps to reproduce
it's can be reprodced by official documents.
Link: https://gluestack.io/ui/docs/components/feedback/toast

gluestack-ui Version
3.3.1
Platform

[X] Expo
[ ] React Native CLI
[ ] Next
[ ] Web
[ ] Android
[ ] iOS

Other Platform
No response
Additional Information
No response

Hey @xiaohuantech, Thanks for reporting this issue. It's layout issue in example not a toast. We have fixed it. It will be live soon.


Inheritance and override

When I create an inherited class, I can't see methods and fields of its parent. Also, when I override some methods, it shows nothing.
Please, add a more comfortable way to work with inheritance🙏🏻

Thanks for the report. Could you please add the information in the report as described in the troubleshooting guide?

When I create an inherited class, I can't see methods and fields of its parent. Also, when I override some methods, it shows nothing.
Please, add a more comfortable way to work with inheritance🙏🏻

for example?

@SarahLightBourne I just tried it and it works as expected. can you reopen the issue if you have repro steps we can follow to see the issue?


Implemented pension/ss and defined value floors/ceilings for all valid spending methods.

Added a defined value and pensions/ss floor to the following spending methods:

Not Inflation Adjusted
% of Portfolio
Hebeler Auto Pilot
Variable Spending
Guyton-Klinger

Added a defined value ceiling to the following spending methods:

Not Inflation Adjusted
Hebeler Auto Pilot

I changed the "calcSumOfAdjustments" to be ran before the "calcSpending" function so the pension floors could be used in the spending calculations.  Also added a field to the simulations array to hold a calculated pensions/ss amount.

This is all superb work.  I'm not 100% sure yet, but I think this is a good start toward separating "spending" from "withdrawals" when talking about floors/ceilings and calculating variable spending methods.
Read a little here: http://<IP_ADDRESS>/phpBB3/viewtopic.php?f=6&p=16443&sid=b933e76cd1d858bb2c499aefebe22e2b#p16425
That will be something that myself or you must tackle soon.


Substitute vars in tests

Substitute the path variables used in the tests. This makes the tests a lot easier to read, because I don't need to do the substitution in my head.
Add some doctests for relative paths, because it wasn't clear from reading the docs what the behavior would be.

Oops, should have waited for all CI to pass
---- src\lib.rs - diff_paths (line 18) stdout ----
Test executable failed (exit code: 101).

stderr:
thread 'main' panicked at src\lib.rs:16:1:
assertion `left == right` failed
  left: Some("..\\..\\..\\baz")
 right: None
stack backtrace:
   0:     0x7ff6b7cbdc2a - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:99
   1:     0x7ff6b7cbdc2a - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff6b7cbdc2a - std::sys_common::backtrace::_print_fmt
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common\backtrace.rs:68
   3:     0x7ff6b7cbdc2a - std::sys_common::backtrace::_print::impl$0::fmt
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common\backtrace.rs:44
   4:     0x7ff6b7ccb8fb - core::fmt::rt::Argument::fmt
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt\rt.rs:142
   5:     0x7ff6b7ccb8fb - core::fmt::write
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\core\src\fmt\mod.rs:1153
   6:     0x7ff6b7cbaf91 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\io\mod.rs:1843
   7:     0x7ff6b7cbda16 - std::sys_common::backtrace::print
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\sys_common\backtrace.rs:[34](https://github.com/Manishearth/pathdiff/actions/runs/9490348669/job/26155430777#step:4:35)
   8:     0x7ff6b7cbfaaf - std::panicking::default_hook::closure$1
                               at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library\std\src\panicking.rs:272

Opened https://github.com/Manishearth/pathdiff/pull/12 to undo that test. If you can investigate what's going on there we can add it again either as a cfg'd test or as a regular test with some behavior fixed.


feat(broadcom_sslva): Support broadcom SSLVA

:tada: This PR is included in version 1.59.0-develop.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


nginx image fail to build -- adduser: group 'www-data' in use

Info:

Docker version ($ docker --version): Docker version 18.09.2, build 6247962
Laradock commit ($ git rev-parse HEAD): 9e537ee16ba90d782a9ab4614c520a5aa1118296
System info (Mac, PC, Linux):
System info disto/version:
'c.
,xNMM.          ----------------------------------------
.OMMMMo           OS: macOS Mojave 10.14.5 18F132 x86_64
OMMM0,            Host: MacBookPro14,3
.;loddo:' loolloddol;.      Kernel: 18.6.0
cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 4 days, 23 hours, 48 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 169 (brew)
XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.7.1
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1920x1080, 1440x900, 1920x1080
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: chunkwm
kMMMMMMMMMMMMMMMMMMMMMMMMWd.    Terminal: iTerm2
.XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal Font: AurulentSansMonoNerdFontC-Regular 14
.XMMMMMMMMMMMMMMMMMMMMMMMMK.   CPU: Intel i7-7920HQ (8) @ 3.10GHz
kMMMMMMMMMMMMMMMMMMMMMMd     GPU: Intel HD Graphics 630, Radeon Pro 560, Radeon RX Vega 64
;KMMMMMMMWXXWMMMMMMMk.      Memory: 9270MiB / 16384MiB
.cooc,.    .,coo:.

Issue:

nginx image can not be built
Expected behavior:

nginx image should be built
Reproduce:

use the newest nginx:alpine to build
Relevant Code:
docker-compose build --no-cache nginx

The newest nginx:alpine image already has the www-data group, so maybe consider update the nginx Dockerfile to attach the www-data user to that existing group by -Gwww-data?

Colleague is experiencing this today too. Not sure how to do the suggested change. I told him to change the FROM line of the nginx Dockerfile to
FROM nginx:alpine:1.15.12
Should solve the issue in the meantime.

@lionslair I mean change the https://github.com/laradock/laradock/blob/HEAD/nginx/Dockerfile#L20 to adduser -D -H -u 1000 -s /bin/bash -Gwww-data www-data. You are right, lock the nginx version will help as well.

Would the new line be
&& adduser -G www-data

ERROR: Service 'nginx' failed to build: The command '/bin/sh -c apk update     && apk upgrade     && apk --update add logrotate     && apk add --no-cache openssl     && apk add --no-cache bash     && adduser -D -H -u 1000 -s /bin/bash -G www-data' returned a non-zero code: 1

who can help me.....

Same problem here.
In my case trying to make the build in google cloud.

Works! Thank you!

In nginx Dockerfile i used FROM nginx:1.15.12-alpine` and it worked for me.

Colleague is experiencing this today too. Not sure how to do the suggested change. I told him to change the FROM line of the nginx Dockerfile to
FROM nginx:alpine:1.15.12
Should solve the issue in the meantime.

Hi @bestlong I think it's time to make a release because 7.14 has this issue

One of the correct way to solve this problem is:
&& adduser -D -H -u 1000 -s /bin/bash www-data -G www-data

@hokhyk Thanks!
To clarify I changed /nginx/Dockerfile:19 from:
&& adduser -D -H -u 1000 -s /bin/bash www-data
to
&& adduser -D -H -u 1000 -s /bin/bash www-data -G www-data

In nginx Dockerfile i used FROM nginx:1.15.12-alpine and it worked for me.

Colleague is experiencing this today too. Not sure how to do the suggested change. I told him to change the FROM line of the nginx Dockerfile to
FROM nginx:alpine:1.15.12
Should solve the issue in the meantime.

it worked for me too

it worked me too.

it worked me too.

It Worked!!

It worked me too

It worked for me too !
nginx Dockerfile:  FROM nginx:1.15.12-alpine

This bug is back

addgroup -g 82 -S www-data
addgroup: group 'www-data' in use
adduser -u 82 -D -S -G www-data www-data
adduser: user 'www-data' in use
exit 1

This happens again in Alpine 3.14.
I added a non-failing delgroup command before the adduser in my Dockerfile which fixed the problem.
(delgroup www-data || true) && \
adduser -D www-data && \

adduser -u 82 -D -S -G www-data www-data


Request: Using vars for Grid/Breakpoints

I'm curious to hear thoughts about making the grid and breakpoints using adjustable variables at run time?  Some benefits include:

not locked in to the lg breakpoint for grid
ability to use non default breakpoints in projects without recompiling

I would like a have a propper grid system in Pico.

If we introduce a grid in Pico, it must be fully responsive with the option to define a column size according to the breakpoint.
#117

Not so easy to find the right balance as I would like to avoid a gigantic component (to stay in the lightweight side).
I will close this issue as we already have:

a PR opened here
an issue here

@lucaslarroche  My question was a bit different than those requests. I am specifically referring to these lines of code below and wondering if there is a better way... Hardcoding the existing Grid breakpoint at lg seems a bit restrictive and arbitrary. I 'm not requesting a full on grid system, which I agree is too much. Just some adaptation of the existing grid.  Perhaps something as simple as using  (an overwriteable) CSS custom property to decide the breakpoint.
--grid-breakpoint: lg
Somewhere here:

https://github.com/picocss/pico/blob/6b05b161ef3a00e2e9b1135b88e302a4c32f4519/scss/layout/_grid.scss#L15


requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.chinacloudapi.cn', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002D69BECF430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Describe the bug
Command:
az login
The command can be used after installation. But after restarting my computer, it shows this error when login.
Related command
az login
Errors
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.chinacloudapi.cn', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002D69BECF430>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
Issue script & Debug output
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000002D69BA745E0>]
Expected behavior
none
Environment Summary
azure-cli                         2.51.0
core                              2.51.0
telemetry                          1.1.0
Dependencies:
msal                            1.24.0b1
azure-mgmt-resource             23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\jbian3.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response

Thank you for opening this issue, we will look into it.


Fix error produced by InteractiveTable component when switching table pages

Fixes the error that occurs when the optional TableOptions filer doesn't exist and you switch pagination pages:
Error in v-on handler: "<chartName>TableOptions is not a valid filter"

LGTM. merging and deploying


Link on login page goes to incorrect version of the product and guides pages on the website

For example:
When I click from http://scope.weave.works/#/login?_k=vlomtv to go to the website, the product page take me here:
http://weave.works/scope/index.html
When in fact, it should go here:
http://weave.works/product/scope/
Likewise, the link to the AWS is going to an older version of the guides.
Is there any reason for this?

fixed via  commit 5924a88
(now redirects to correct page)


[CARBONDATA-3367][CARBONDATA-3368] Fix multiple issues in SDK reader

Problem:
[CARBONDATA-3367] OOM when huge number of carbondata files are read from SDK reader
Cause:
Currently, for each carbondata file, one CarbonRecordReader will be created. And list of CarbonRecordReader will be maintained in carbonReader. so even when CarbonRecordReader is closed, the GC will not happen for that reader as list is still referring that object.
so, each CarbonRecordReader needs separate memory , instead of reusing the previous memory.
Solution : Once CarbonRecordReader.close is done, remove it from the list
problem:
[CARBONDATA-3368]InferSchema from datafile instead of index file
cause:
problem : In SDK, when multiple readers were created with same folder location with different file list, for inferschema all the readers refers same index file, which was causing bottle neck and JVM crash in case of JNI call.
solution: Inferschema from the data file mentioned while building the reader.
problem :
Support list interface for projection, when SDK is called from other languages, JNI interface supports only list from other languages. so need to add list interface for projections.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed? NA

[ ] Any backward compatibility impacted? NA

[ ] Document update required? NA

[ ] Testing done. Done

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.  NA

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3038/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11302/

@kumarvishal09 , @ravipesala : please review

@xubo245 @kumarvishal09 : please check

LGTM

@ravipesala : PR is ready please check.

LGTM


Support macOS

[Current coverage][cc-pull] is 92.10%

Merging [#11][cc-pull] into [master][cc-base-branch] will increase coverage by 0.02%

@@             master        #11   diff @@
==========================================
  Files            37         37
  Lines          1920       1925     +5
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1768       1773     +5
  Misses          152        152
  Partials          0          0

Powered by Codecov. Last updated by [279faee...d0f6855][cc-compare]
[cc-base-branch]: https://codecov.io/gh/linkedin/LayoutKit/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/linkedin/LayoutKit/compare/279faee66c0835c13f49793d3a9978acbfccac39...d0f68553b4a5b6498101925bb86a6301c0d4f004
[cc-pull]: https://codecov.io/gh/linkedin/LayoutKit/pull/11?src=pr

I'm done with comments, thanks!


ci: Bump to F28

Let's skip over a whole release and go straight to F28.

LGTM

@rh-atomic-bot r+ 8bd4807


Avoid using singletons in KSystem

This can help improve future integration and maintainability while avoiding annoying pitfalls for at the very least, testing. This can help scenarios where Kinoko is being used in the library scenario rather than through the main CLI frontend.
Instead, main() can simply create an instance of the system and run the system object's main function.

For reference, the current approach mimics in-game behavior. See 0x8000b6b0 PAL (main), which branches to 0x80008ef0 PAL (RKSystem::main), which references 0x802a4080 PAL (RKSystem::sInstance).
This is likely a good idea to scale up in the future.

We'll need to address how RaceConfig can have visibility to the TestDirector instance then. Right now RaceConfig::initRace() uses the KSystem singleton to retrieve the TestDirector.

It will require SceneManager and TestDirector singletons be made.

We'll need to address how RaceConfig can have visibility to the TestDirector instance then. Right now RaceConfig::initRace() uses the KSystem singleton to retrieve the TestDirector.

My guess (and you'll need this for non-TestDirector[^1] based scenarios anyway) is that RaceConfig could probably be initialized with the proper values in the constructor or similar place (I'm about to sleep but will check to see what the game actually does here later today), so there needn't be any dependency from RaceConfig to the system global anyway I don't think?
I get that this also probably deviates significantly from how the game does it as well.
[^1]: I'm assuming that the TestDirector stuff in general is mostly... for... well... testing syncing mostly? Correct me if I'm totally off base here though.

In the base game, RaceConfig has a dependency on the UI page to supply the initial RKG to work with. In Kinoko, we instead give RaceConfig a dependency to TestDirector.
Ideally, TestDirector is entirely independent to scenes and would run on another thread (the race scene would continuously push into a queue), but I think that's beyond my ability for now.


TLS handshake errors caused by Controller ELB running tcp healthchecks to 443

We are seeing a lot of "TLS handshake error" on kube-apiserver and authproxy

Anyone have any ideas why this is happening?

check from the client side, there should be  more informative error

Client side works and I dont see any errors

there must be, these IPs belong to pods right? and something there failed to established connection

huh, ok I think I can pin it to a service and ELB healthcheck. ty!

This happens because we are doing TCP healthcheck on SSL listener

The apiserver requires a client certificate the ELB doesn't have, so the ELB can only do a TCP connect healthcheck, and that connect/disconnect triggers those errors in the logs. I get them too. It would be nice if there were someway to suppress them, or not log on a zero-data connect/disconnect.

Thanks for the info @whereisaaron!
How about allowing unauthenticated http accesses to apiserver from ELB in a security group so that we can use http health checks instead of tcp checks?

Enabling any unauthenticated/anonymous access to the API makes be a bit uneasy @mumoshu !
It is possible for failed client-cert requests to fall back to anonymous, but I don't see that you can restrict those anonymous requests to just the ELB, so everyone with access to the API (from either side of the ELB) could make anonymous requests. These would map to the system:unauthenticated RBAC group and so access could be restricted by RBAC. But if you didn't have RBAC enabled, you'd have the whole cluster open for unauthenticated admin access.
So --anonymous-auth=true combined with RBAC authorization then you could enable successful HTTPS health checks by the ELB. That would also avoid these false-positive log entries.
I personally think these log entries are inappropriately conflating an empty TCP connect with real TLS negotiation errors. If the client doesn't send a single byte, I am not sure you could claim they are trying to negotiate anything. It is kind of like someone visits your website login page, but doesn't try to login at all, and then claiming that is a failed login. Seems like a specious stance. Fixing that would require a patch to the authproxy though.

Thanks @whereisaaron!
How about --insecure-port then? I guess we can restrict accesses to the insecure port of a kube-apiserver with a security group so that only ELBs are allowed to access the insecure port.

Ah, doing so would enable attackers to access an insecure port via cracked pods on controller nodes?

do we have any other ports opened by apiserver which can be checked by ELB?

/etc/kubernetes/manifests/kube-apiserver.yaml says:
- containerPort: 443
  hostPort: 443
  name: https
- containerPort: 8080
   hostPort: 8080
   name: local

8080 is used for the liveness probe too (/healthz).

AFAIK 8080 is the insecure port (bound to <IP_ADDRESS> by default), so I don't think using this port would work.

This seems to have been fixed by SSL healthchecks. See #604
@sasso @danielfm @c-knowles @redbaron @whereisaaron Could you confirm? Thanks!

Anyone seeing this again with a more recent version of kube-aws like 0.10.0?

Hi @c-knowles I think this fix was specific to the 'classic' ELB. Have you (like me) switched to the ELBv2 option that kube-aws offers now? That currently configures with a TCP healthcheck, which would have the same problem.
ELBv2 load balancers do support HTTP(S) health checks, even on TCP load balancers. So a similar fix may be possible for the ELBv2 configuration.

@whereisaaron nope, we haven't swapped unless kube-aws changed the default. I'll investigate further, for now all the info I have it this seems to be re-occurring and not entirely sure why. My current guess is this is healthchecks we have inside the cloud init scripts/systemd unit and the nodes were unhealthy at the time (unrelated health issues).

I'm using kube-aws v0.10.2, a classic ELB for a single API endpoint and I'm seeing the TLS errors:
I0720 16:09:21.904678       1 logs.go:41] http: TLS handshake error from <IP_ADDRESS>:34902: EOF
I0720 16:09:31.904127       1 logs.go:41] http: TLS handshake error from <IP_ADDRESS>:34940: EOF
I0720 16:09:41.904106       1 logs.go:41] http: TLS handshake error from <IP_ADDRESS>:34970: EOF
I0720 16:09:51.904188       1 logs.go:41] http: TLS handshake error from <IP_ADDRESS>:35010: EOF

Maybe this is a regression?

When you dominate a market, you don't really care about small details like this. So what if the LB can send only TCP healthchecks? Just change the source code from apps so that it doesn't throw EOF errors when TCP healthchecks come in.
EASY!


RpcContext Attatchment Bug in ObjectToStringMap for dubbo 2.7.6

[x] I have searched the issues of this repository and believe that this is not a duplicate.
[ ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6
Operating System version: any
Java version: 1.8

Steps to reproduce this issue
public class DubboTest {

    public static void main(String[] args) {
        RpcContext.getContext().getAttachments().put("a", "b");

        System.out.println("before");
        for (Map.Entry<String, String> entry : RpcContext.getContext().getAttachments().entrySet()) {
            System.out.println(entry.getKey() + "==>" + entry.getValue());
        }

        System.out.println("after");
    }
}

execute result:

the reason is ObjectToStringMap implements has serious problem.
I will make a PR to fix this
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps？
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
Just put your stack trace here!

可以用 getObjectAttachments() 替换的吧？
（getAttachments()已经被标记为 Deprecated）

可以用 getObjectAttachments() 替换的吧？
（getAttachments()已经被标记为 Deprecated）

可以用这个替换，老项目没法一次性替换完成，只能保持兼容

Try it with the latest version, if you still have problems, you can reopen the issue


Syntax highlighting for fstab

Description of the problem or steps to reproduce
Micro appears to have no syntax highlighting for fstab files. Meanwhile, Nano at least highlights comments in them.
Specifications
Commit hash: 225927b
OS: Fedora 38
Terminal: Konsole

A possible solution could be to represent it with the ini filetype by adding it to runtime/syntax/ini.yaml.

Currently I suggest to do it more or less the same as nano does, but the micro way.

I'm currently working on a basic default/fallback highlighting. Maybe it will fit the needs.

Do fstab files not have an extension?

Nope, they don't.
A longer discussion in #2933 is ongoing what's needed or not in the default.yaml.
I would appreciate your opinion too. :)

Currently I'm unsure if closing this ticket with #2933 was a good decision, since the initial issue isn't really fixed. We now only have a default fallback doing some minimal highlighting for plain text.
Would this fit your needs...
{
    "/etc/*": {
        "filetype": "ini"
    },
    [...]
}

...in ~/.config/micro/settings.json?


add simple_grasping to rosdistro

Please Add This Package to be indexed in the rosdistro.
simple_grasping
The source is here:
https://github.com/mikeferguson/simple_grasping
Checks

[x] All packages have a declared license in the package.xml
[x] This repository has a LICENSE file
[x] This package is expected to build on the submitted rosdistro

This package existed in ROS 1 - and has been ported to ROS 2 for a while - getting ready to release it before ROSCON when it will be mentioned as part of a talk.


[WIP] Add mutating webhook

What this PR does / why we need it:

[x] set VMI defaults from mutating webhook
[ ] apply presets
[ ] apply cluster defaults
[ ] add unittests

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1278
Special notes for your reviewer:
Release note:

Introduce mutating webhook

Signed-off-by: Artyom Lukianov<EMAIL_ADDRESS>

I like it, but we still will have the same problem when a user will update a VM object. @davidvossel Do you know if we can configure k8s to apply webhooks also on an object update?
Currently, I can see that if I will update a VM template with some illegal value and will start the VM, I will see the validation error only under virt-controller log(VMI one).
I think it absolutely valid operation from a user perspective to update a VM preset(or template) after creation, so I do not think that we need to restrict it, but I do not sure how we can validate it(maybe we can forward admissionResponseError from VMI to VM).

@cynepco3hahue hey, not sure what is our approach here, but we don't need to implement the whole admission server, we can use a framework hosted under openshift repo https://github.com/openshift/generic-admission-server/. I used it for my mutating webhook and it works well.

Can't say if I am for or against it. But let's keep in mind that they also vendor k8s dependencies. It may get hard for us to synchronize k8s dependencies in the vendor folder.

Please make the title more descriptive.
"Add mutatoing webhook in order to …"

Please also make the release note more descriptive.

@fabiand Will update the title, description and release note when we will decide what future course of this change regarding presets.

hey, not sure what is our approach here, but we don't need to implement the whole admission server, we can use a framework hosted under openshift repo https://github.com/openshift/generic-admission-server/. I used it for my mutating webhook and it works well.

I'm hesitant to pull in this dependency when there's not much code for us to leverage there. This might not justify the maintenance required to keep the dependency in sync even.

k8s to apply webhooks also on an object update

@cynepco3hahue good point. Validation webhooks can occur on update. However, I just checked and we're only registering validation webhooks for the create operation. We need to add update and patch to the operation list there.

need to add update and patch to the operation list there.

And update and patch should basically not allow any changes to the spec section since right now the vmis are immutable.

And update and patch should basically not allow any changes to the spec section since right now the vmis are immutable.

Only in VMI case, we still have VM and VMIRS.

Looks like that I will need to create a separate endpoint for the VMI update, because in both cases(create or update), request use POST method, so I can not differentiate them.

@davidvossel I think instead of introducing presets for VM's and VMIRS's, I will improve validation.
Because if we will apply preset on VM template spec, it already will be part of the VM object and not of a preset object that can be a problem if a user will want to replace presets.
So my plan is, to apply presets(if exists) to a template spec, create dummy VMI object from this spec and send it to ValidateVirtualMachineInstanceSpec, I think it will get as the desired behavior.

I think instead of introducing presets for VM's and VMIRS's, I will improve validation.
Because if we will apply preset on VM template spec, it already will be part of the VM object and not of a preset object that can be a problem if a user will want to replace presets.
So my plan is, to apply presets(if exists) to a template spec, create dummy VMI object from this spec and send it to ValidateVirtualMachineInstanceSpec, I think it will get as the desired behavior.

This still won't catch the scenario where a preset value changes between the time a VM is posted and the VMI is started.
What I'm hung up on with all of this preset logic is that it's possible for a VM to start VMIs with different specs between runs if a VMIPreset changes.
Coming from a k8s background, that concept isn't strange to me. For example, if my Deployment is spinning up Pods and I change a PodPreset, then I'd expect new pods being created in my Deployment to pick up the preset change if it matches.
However, coming from a VM background this gets weird. If I stop a VM then start it again, I'd expect the exact same behavior... but with VMIPresets we're saying that between starting and stopping a VM, something can change. I've never seen this kind of behavior before in the VM world and it would surprise me as a user.
@rmohr @fabiand do either of you have thoughts on this?

@davidvossel hm I see, currently, we do not spawn new VMI from the VM on the VM template spec change, it will need some additional logic under VM controller and we need to consider if we want it at all, so let's put it aside.
About validation, on the preset update, I can check all VM's and VMIRS's that uses this preset(do not sure how resource consumable will it be on the large scale, also with cache usage), under the validation I will apply new preset on the VM template spec and validate it, in case of error I will deny updating the preset.

First: Presets should only be applied to VMIs, not VM's VMI templates.

What I'm hung up on with all of this preset logic is that it's possible for a VM to start VMIs with different specs between runs if a VMIPreset changes.

That at least makes a validation during VM creation moot, but in general this behavior is as intended, as in that a VMI will "receive new updates done to it's corresponding preset".
IIUIC the goal is to validate the VM during creation, including the VMI template, including tany potential preset.
First: I'd check what Kubernetes does with PodPresets, if they get validated during i.e. Deployment creation. I'd doubt that they do this.
However, what again becomes interesting in this context is a dry-run for VMIs.
This would allow a user or (UI) system to create the VM, then use the dry-run in order to understand the final VMI - including it's validation and getting error feedback.

Coming from a k8s background, that concept isn't strange to me. For example, if my Deployment is spinning up Pods and I change a PodPreset, then I'd expect new pods being created in my Deployment to pick up the preset change if it matches.

It's worth a discussion to see if this should apply to VMs, or rather to VMIRS like controllers.

I've never seen this kind of behavior before in the VM world and it would surprise me as a user.

I'd also not expect the "principal" presets to be volatile or changing often.
I.e. modifying a preset could be comparable to modify an instance type in OS.

That at least makes a validation during VM creation moot, but in general this behavior is as intended, as in that a VMI will "receive new updates done to it's corresponding preset".

We should limit presets to cases where the VMI template standalone is already valid and and the preset itself is also a valid subset, based on the extension points which we allow the presets to expand.
Considering how k8s and kubevirt works, templates or other solutions at the same level (before creating a VM or VMI) are a better fit for representing nont-necessarily already valid VMs and VMIs.

IIUIC the goal is to validate the VM during creation, including the VMI template, including tany potential preset.
First: I'd check what Kubernetes does with PodPresets, if they get validated during i.e. Deployment creation. I'd doubt that they do this.

Only validated on creaton. Presets can be changed anytime, so even if the validation would fail right now, it might work later when you actually create the Pod.

However, what again becomes interesting in this context is a dry-run for VMIs.
This would allow a user or (UI) system to create the VM, then use the dry-run in order to understand the final VMI - including it's validation and getting error feedback.

Having a dry-run query parameter is also common in k8s.

This still won't catch the scenario where a preset value changes between the time a VM is posted and the VMI is started.
What I'm hung up on with all of this preset logic is that it's possible for a VM to start VMIs with different specs between runs if a VMIPreset changes.
Coming from a k8s background, that concept isn't strange to me. For example, if my Deployment is spinning up Pods and I change a PodPreset, then I'd expect new pods being created in my Deployment to pick up the preset change if it matches.
However, coming from a VM background this gets weird. If I stop a VM then start it again, I'd expect the exact same behavior (same spec used)... but with VMIPresets we're saying that between starting and stopping a VM, something can change. I've never seen this kind of behavior before in the VM world and it would surprise me as a user.

In general I share your concerns. I would still want to keep presets where they are and limit their capabilities to preset fields to not-strictly required fields (e.g. not memory). Mostly the features section, disks and networks are good fits.
I see presets as a way to configure common parts in a way so that they are explicitly picked up if they are changed. For the other cases I think templates or other mechanism on the same level where templates act  are a better fit.

@davidvossel @rmohr @fabiand I do not sure that I want to make this PR bigger than it now, so I prefer to be sure that all preset logic continue work as with controller and additional features leave to other PR's.
Things that we need to consider

I think that's always good. One PR for one thing :)

@davidvossel @rmohr @fabiand I do not sure that I want to make this PR bigger than it now, so I prefer to be sure that all preset logic continue work as with controller and additional features leave to other PR's.

yep, sorry for getting us side tracked. There's nothing blocking us from moving the existing preset logic to mutation webhooks.
@cynepco3hahue for the scope of this PR, your approach looks good.  I'll give it another detailed review today and we'll move this forward as is.

ci test please

We have a lot of failures on fedora repository
Step 3/11 : RUN dnf -y install   socat   genisoimage   util-linux   libcgroup-tools   ethtool   net-tools   sudo && dnf -y clean all &&   test $(id -u qemu) = 107 # make sure that the qemu user really is 107
 ---> Running in a7c983ae1435

Fedora 28 - x86_64 - Updates                    2.1 MB/s |  24 MB     00:11
Virtualization packages from Rawhide built for  110 kB/s |  57 kB     00:00
Error: Failed to synchronize cache for repo 'fedora'

Tests look much better, so I will merge this one.


Email remission address for Central Office

change email address from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>when copy is changed (797)

<EMAIL_ADDRESS>@dthomps1

Also scotland address needs adding for HWF


[Candidate 2v2 Tournament D ZH v1] Player spots have urban city ambient sounds on desert jungle terrain

Observed behavior
Player spots have urban city ambient sounds on desert jungle terrain.
Expected behavior
Player spots have natural ambient sounds on desert jungle terrain.
Videos
https://github.com/TheSuperHackers/GeneralsRankedMaps/assets/4720891/e534488d-ea19-4d0a-a53c-8c5c48bf8179

I'll change this


External changing of starting folder creates a package with "_SRC"

Observed a strange bug.

I had a repo with the source in the root
moved all (*.abap, *.xml) to the src subfolder and changed .abapgit.xml appropriately - externally, not via abapgit !
Pulled the change into the system
AG created a subpackage with _SRC suffix. An empty one.

.abapgit content just in case
  <DATA>
   <MASTER_LANGUAGE>E</MASTER_LANGUAGE>
   <STARTING_FOLDER>/src/</STARTING_FOLDER>
   <FOLDER_LOGIC>PREFIX</FOLDER_LOGIC>
   <IGNORE>
    <item>/.gitignore</item>
    <item>/LICENSE</item>
    <item>/.travis.yml</item>
    <item>/changelog.txt</item>
    <item>/abaplint.json</item>
    <item>/README.md</item>
    <item>/CONTRIBUTING.md</item>
   </IGNORE>
  </DATA>

might be related to #2113

Tried to re-create. No extra packages created. So seems to work now. Closing.


not working Sign in

all done in itemized
not working Sign in
http://bilbtc.com -

Hello nailtaras... you need to view the PHP error logs for the auth library. You might be getting a DB error. Have you run all the DB update SQL files after 1.13? They are in the main repository.


Inconsistent meaning of rgi_id?

Several attributes like surge_type, are available in the Glacier product, but are missing from the Centerlines product, so I would like to use the rgi_id field, which is available in both products, to link the two. However, is my interpretation correct that rgi_id means something different for the two products? It appears that rgi_id in the Glacier product more closely matches rgi_g_id in the Centerlines product.
I'm seeking clarity on what exactly is meant by rgi_id and if there's any way to link attributes from the Glacier product to the glaciers in the Centerlines product.

This should be possible with the rgi_g_id attribute:
https://www.glims.org/rgi_user_guide/products/centerlines_product.html#full-list-of-attributes
Let me know if something's amiss.

Thanks @fmaussion. I will use rgi_g_id in the Centerline product to get attributes corresponding to rgi_id of the Glacier product.


Add option to pass a collection prefix to MongoObserver

See issue #700.

Added a new argument collection_prefix to the constructor MongoObserver.
Runs will be stored in collection f'{collection_prefix}_runs' (or runs if no prefix provided)
Metrics will be stored in collection f'{collection_prefix}_metrics' (or metrics if no prefix provided)
Argument collection is now deprecated in favor of collection_prefix.
Name blacklist checks are currently obsolete because there is no way to come up with a name from the blacklist using a prefix. Nevertheless I kept them in case the blacklist changes at some point.

Let me know if there's anything else I could/should do :)

@danielzuegner thanks for the contribution! You probably need to run the pre-commit hooks again as described in https://github.com/IDSIA/sacred/blob/master/CONTRIBUTING.rst#get-started

Could you add some simple tests as well. Otherwise looks good to me!

Looks good to me :)


Group capstone: Kanban board set up

Projects link
There are 2 (two) members in our team.

Hi Team,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights 💯

Descriptive info ✔
Tasks distributed equally ✔

Optional suggestions
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


docs(css): fix loaderOptions example

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[x] Docs
[ ] Underlying tools
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

Question:
Do I need to do the same PR for the next branch as well?

The example was correct. Semicolons are for the scss syntax, not sass.


Index="all" deleted .kibana_1

what
Using the default index name of "all", the lambda is supposed to leave the .kibana index alone. While technically it performs as advertised, when using AWS Elasticsearch 6.5 with built-in Kibana, the index is named .kibana_1 and this lambda deletes it.
solution
When given an index name of "all", the lambda probably should skip all indexes with names starting with .kibana, not just the 1 index exactly named .kibana

I submitted a PR to do exactly that - https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/pull/12

The issue of what to do with the .kibana_N indexes is not clear cut. The Kibana 6.5 docs suggest that you will accumulate multiple indexes over time (.kibana_1, .kibana_2, .kibana_3, ...) and may or may not want to keep older versions to enable rolling back to previous versions.
The solution upstream is to explicitly list which indexes to skip when specifying delete all. That is dodgy, in that it makes it most likely that the newest and in-use index could get deleted if you forget to update the skip list first.
For now, #14 closes this specific issue, in that it excludes .kibana_1, but we still recommend explicitly listing which indexes to delete (e.g. "logstash") instead.

Closing due to #14, move further discussion to #12


Can the original battery icon be replaced?

There are various programs [like PC Search] that can replace the original Windows icons. Can you do the same?

Hi @Y-PLONI thanks for the feedback.
I am not a native Windows developer therefore I don't know how I can replace the built-in battery icon in Windows 11. The best I can do is to register a new tray icon to display the information this app can provide.


Add support for Node.js version 18

@andrewrmiller I Just took a look at the PR. Everything looks good, but I'd recommend further testing on this as nodejs 18 switched to supporting mjs files and ESM, etc. So I am not 100% sure how it would interact with how fusebit builds code.


Polymer 404: showing existing "entry point" file instead of missing poly file

Originally opened as dart-lang/sdk#20337
This issue was originally filed by<EMAIL_ADDRESS>
What steps will reproduce the problem?
Add a link to a non existing polymer html, inside the entry point file
eg.
<link rel="import" href="../poly/migrationActions.html">
What is the expected output?
404 Not Found - Could not find asset web/poly/migrationActions.html in package dartabase_migration.
What do you see instead?
404 Not Found - Could not find asset web/tool/index.html in package dartabase_migration.
What version of the product are you using?
polymer: '>= 0.11.1-dev < 0.12.0'
Please provide any additional information below.
would be nice to see the missing file path instead of the existing entry point file path

 Comment by zoechi

Polymer is on 0.12.0+6. Have you tried it?
I'm pretty sure there are more warnings/errors in the 'Tools Output' window (if you use DartEditor with more detailed information about the cause of the error.
Is the code that allows to reproduce the problem available somewhere?

 Comment by jakemac53

As of dart-lang/sdk@1e96833d2321a39585c69dcf12d62b35344a1bf1 (0.12.0-dev) the app should still try to build and will inject a little element in the bottom right showing you any logs which should put the actual error front and center.

 Comment by jakemac53

This is happening because currently missing html imports are treated as errors in the build process, so it stops the entire app from being built and you get a 404 on the main page. However, that should be changing soon with a slightly different way we are treating logging within polymer transformers so that we stop passing any errors to the actual transform loggers so the app will always attempt to build/run. Stay tuned for updates in issue dart-lang/sdk#20319.

Set owner to @jakemac53.
Added Accepted label.
Marked this as being blocked by dart-lang/sdk#20319.

 Comment by jakemac53

Added Fixed label.
Unmarked this as being blocked by dart-lang/sdk#20319.

 Comment by kasperl

Added Area-Pkg, Pkg-Polymer, Triaged labels.


Item icons not appearing

Addon Version
0.1.91
World of Warcraft Version
Retail
Describe the bug
When bags open, Icon colours appear for item rarity's along with ilevel, but no icons appear for individual items, except for 3 specific items (Distilled Titan Essence, Remnant of the Void and Spellbound Jewellery Box)
Can't see a Lua error explaining it in bugsack
Steps to reproduce
Open Bags or bank

Fault discovered in Masque integration, when removed everything reappears.


Add info on terminating arrays to OSSL_PARAM documentation

Examples in the docs were not up-to-date with recommended style and the need for terminating values was not emphasized.
Documentation overlaps somewhat with the constructors in OSSL_PARAM_int. That documentation was left as a more comprehensive explanation, but as pointed out in the ticket this terminator is unexplained and relevant within this doc as well.
Fixes #11280
CLA: trivial

Checklist

[x] documentation is added or updated

This is beyond trivial.

Could you please amend the commit message with git commit --amend to remove the CLA: trivial line?

... 'xcept this particular manual page describes OSSL_PARAM in raw terms, and only including <openssl/core.h>...  In the example, a perfectly valid terminator is replaced with OSSL_PARAM_END.
As a possible solution I would suggest that the macro definition for OSSL_PARAM_END gets moved to include/openssl/core.h, placed near the definition of OSSL_PARAM.

@levitte, you are correct, this is the raw version.
A better fix is to remove raw access to params 😁

A better fix is to remove raw access to params :grin:

Grin noted, I'll leave it at that :wink:

This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago

Looking at this now, I noticed that the added text is misplaced.  It is not a data type

This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago

Closing as this was fixed with the alternative in #13478, thanks @J-Montgomery to working on this and inspiring the work that was ultimately merged!

Closing as this was fixed with the alternative in #13478, thanks @J-Montgomery to working on this and inspiring the work that was ultimately merged!


Added multithreading support.

I added multithreading support that works for Python 2.7 and 3.X. It prefers to use concurrent.futures.ThreadPoolExecutor which can be installed by using python2.7 -m pip install futures. This PR adds an optional parameter (-t/--threads) that is only to be used when --list is defined and creates a thread pool that executes scanning/exploiting on each url in the provided list.

Hi @GoodiesHQ
Thanks for the pull request.
I have tested the code. I'm receiving output errors when using 10 threads as the following:
[*] URL: http://localhost/orders/3?15
[*] Status: Vulnerable!

[*] URL: http://localhost/orders/3?64
[*] Status: Vulnerable!

[*] URL: http://localhost/invalid/3?57
[*] Status: Not Affected.

[*] URL: http://localhost/invalid/3?99
[*] Status: Not Affected.
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!
[*] Status: Vulnerable!

The output is quite confusing as you see. Feel free to fix it and push it to me, and I will merge the pull request.

Closing the ticket due to lack of response. Please reopen the ticket when you're available. Thanks


Fix postgres migrations and add to PR checks

This PR fixes a regression that was introduced recently into PostgreSQL migrations. The issue first occurred when this column: https://github.com/hyperledger/firefly/commit/7b02d90d85c1632b65c11f73667a1f35f9f5ac20#diff-82f358c5324231f24dc3e9c111774d51966d3b0dce7e0fb78fc1b554ff2b54eeL11 was removed from our migrations. A later postgres migration referenced this column but it was no longer, so it failed to migrate the database.
A misguided attempt to fix this issue was merged in https://github.com/hyperledger/firefly/pull/683, however that didn't work. This PR undoes that fix, fixes the original problem, and also adds postgres to the test matrix for PR approval which should prevent us from winding up in this situation again.

Codecov Report

Merging #690 (dca124f) into main (1c688c2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #690   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          317       317
  Lines        19485     19485
=========================================
  Hits         19485     19485

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 1c688c2...dca124f. Read the comment docs.


Resources should be future-proofed

Several resources are twitter threads, which are unstable for a whole host of reasons (tweets can be deleted, accounts get suspended or deleted all the time, etc). For longevity, extract all links and any relevant text from these threads and store them in an archival-friendly format.

Several resources are youtube playlists, which are unstable for similar reasons to twitter threads. For longevity, extract all video links from each youtube playlist to a separate file (preferably markdown) and link them beneath the playlist, just in case a playlist gets lost. A tutorial on how to extract a youtube playlist: https://dtomoffcpa.medium.com/youtube-playlist-to-linked-list-in-excel-why-not-3a96297e980c

The internet archive is your best friend and is a great place to start, though it is not a silver bullet as sub-links are sometimes missed in the archival process.

The simplest method, which is also most likely used like this in scientific papers, is to save Twitter threads via PDF. AFAIK, there is no external tool for this, but there are Twitter bots like "unrollthread" or "threadreaderapp" that do this job. Maybe one of them will help.
Of course, all linked web pages should also be saved as PDFs in case they are sooner or later no longer operated, the domain expires or are purged.
It would be extremely helpful if a page or thread is deleted, it remains as a PDF here in this repository. But I have no idea if that would be legally okay.
Helpful links:
https://techpp.com/2021/10/27/how-to-save-twitter-threads-guide/
https://www.businessinsider.com/guides/tech/how-to-save-a-webpage-as-a-pdf-on-windows

Good lead - printing the output from threadreader as a pdf is fitting for archival purposes. Archived a thread for testing purposes; this will do perfectly for improving the longevity of this resource.


Plot viewer showscolor banding and performs slowly with large matplotlib pcolormesh

Does this issue occur when all extensions are disabled?: Yes

Issue Type: Bug
The VS Code plot viewer struggles with large matplotlib pcolormesh plots. The viewer introduces visual artifacts in the form of grey color banding, and becomes incredibly slow and unresponsive. These issues only occur in VS Code's plot viewer. They do not occur in the interactive terminal or Matplotlib's own viewer (when the MVP below is ran in a regular terminal).
Steps to repoduce

Run the following MVP in the Python Interactive Window:

import matplotlib.pyplot as plt
from random import randint

# generate placeholder data
x_len = 500
y_len = 75
data = [[randint(0,y+1) for _ in range(x_len)] for y in range(y_len)]

fig = plt.figure(figsize=(10,6))
ax = fig.add_subplot(111)
plt.pcolormesh(data, cmap="magma")
plt.show()

The plot shows correctly in the Interactive Window.
Double click the plot in the plot viewer and wait for it to load (this can take several minutes).
Notice the vertical color banding on the plot in the plot viewer.

The cmap kwarg does not affect the color banding, but this one shows it the clearest.
Finally, here's a screenshot comparing the plot viewer and interactive terminal. Notice the vertical, grey banding in the plot viewer.

VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.91GB (2.58GB free)

Process Argv
--folder-uri file:///c%3A/Users/redacted/Documents/Repositories/modality-reader

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

code-runner
for
0.11.4

plantuml
jeb
2.15.1

python
ms-
2021.6.944021595

vscode-pylance
ms-
2021.6.3

jupyter
ms-
2021.6.999662501

vsliveshare
ms-
1.0.4498

material-theme
zhu
3.10.14

@sbatten, this behavior is due to the fact that the plot viewer makes use of a generated SVG (scalable vector graphics) file instead of a simple PNG or JPG to support better visualization fidelity in the plot viewer. The resulting SVG file from this plot is much larger than that of what is displayed in the IW file.
That being said, this functionality has caused numerous complaints concerning ipynb file sizes that contain such images. We will address this problem with the in the near future.


Score Handler

Should be able to do the following:

Accumulate a score to show to the player
Have an accessible interface for developer made scripts
Handle high scores

No longer relevant to the  Core package. Closing.


Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble Requirements for tesla_custom not found: ['teslajsonpy==3.7.4'].

Home Assistant 2023.1.4
Supervisor 2023.03.1
Operating System 9.5
Frontend 20230110.0 - latest
I cannot get past the subject error to config. This started after updating HACS.
I had it working perfecttly before as i have te app for refresh tokens.
Now I cannot add them
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 148, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 229, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 247, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 847, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 381, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 51, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 185, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 245, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 270, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for tesla_custom not found: ['teslajsonpy==3.7.4'].

If you also recently updated HA, it actually wipes out custom component dependencies. This means you need to either readd the component (and cancel the installation) or remove and readd the existing account. HA triggers a new download of any dependencies when a component is added.

I'm getting the same error on HA Core 2023.1.7 after updating to HACS 1.31.0 and Tesla_Custom v3.10.3

I'm getting the same error on HA Core 2023.1.7 after updating to HACS 1.31.0 and Tesla_Custom v3.10.3 Removing and re-adding as suggested won't work, will run into 500 right away.

Then you may have a different issue. Show me logs, otherwise I can only answer the question that has been posed in this thread.

After updating Hassio to current and reinstalling several x somehow I got to the screen to add the new key. Don’t know how, didn’t know solution but it’s working again.

Glad you got it working. I'll close this issue then.

Also having the same issue. Removed the component and tried to reinstall resulting in 500 error.
`Logger: aiohttp.server
Source: requirements.py:267
First occurred: 10:32:41 PM (6 occurrences)
Last logged: 10:41:53 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 148, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 226, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 244, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 829, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 379, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 51, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 185, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 245, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 267, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for tesla_custom not found: ['teslajsonpy==3.8.0'].
`

FWIW I was also able to get mine working with some tweaking. I'm on a Docker image, I pulled the latest image (which I think I was originally running) and restarted the container. I was able to install the Tesla Custom Component after that.


Add /api/v2/config endpoint

The topaz console is moving to the v2 config which contains a list of configs. To support this in topaz we are adding /api/v2/config endpoint which returns a list of configs and a flag that says if the configs are editable or not. In the case of topaz they are never editable that is why we set the readOnly flag to true
Sample output of the new endpoint
{
    "readOnly": true,
    "authenticationEnabled": true,
    "authenticatedUser": true,
    "configs": [
        {
            "configType": "auto",
            "name": "Topaz Config",
            "address": "https://localhost:4321/api/v2/config",
            "authorizerServiceUrl": "https://localhost:8383",
            "authorizerApiKey": "1234",
            "directoryApiKey": "1234",
            "directoryTenantId": "",
            "directoryReaderServiceUrl": "https://localhost:9393",
            "directoryWriterServiceUrl": "https://localhost:9393",
            "directoryModelServiceUrl": "https://localhost:9393"
        }
    ]
}

Request example:
curl 'https://localhost:8080/api/v2/config' \
  -H 'content-type: application/json' \
  --compressed | jq

closes https://github.com/aserto-dev/workspace/issues/576

Added the authenticatedUser flag just so we know if the user was authenticated or not when the call was made. This makes it easy to distinguish between not receiving API keys because there are none or because the users was not authenticated.


[Feature Request] Py3.10, Windows and MacOS support

This has been mentioned several times: #153 #164 #61

Help needed due to user (developer) requests

pytorch/rl#591
https://github.com/sail-sg/envpool/issues/189#issuecomment-1230955344

Me and @wangsiping97 can do it together in the next month

Hi @Trinkle23897 , what is the current status for the MacOS support?

Hi @Trinkle23897 , is there anything we can help with?

Hey @raymondchua, currently the progress is nearly 0. We'd greatly appreciate if you can offer help!

Hi,
Is there any updates on Mac OS/M1 chip support?
If its possible to build it from source (doesn't work from build instructions), would love instructions on that.
Thanks!

Hi @Trinkle23897 , can you share some insights on what is missing or needed to have MacOS support?

ERROR: Could not find a version that satisfies the requirement envpool (from versions: none)
ERROR: No matching distribution found for envpool
I have a Mac, and I am using MacOSBigSur. Is there still no Mac support?


46 replace type function and add presssequentially support

Fix #46

I miss a test for press with mode 'key' and I miss a test for press with mode 'sequentially'.

Tests got added


Docs's menu order not right in Chinese language.

Describe the bug
To Reproduce
Expected behavior

I make my docs like this:

page
weight
parent
parent in English
menu.x.weight

_index.md
1
简介
Introduction
1

1-1-feature.md
10
简介
Introduction
2

2-2-component-basic.md
20
设计
Design
1

2-2-component-basic.md
30
设计
Design
2

3-1-install.md
40
使用
Useage
1

3-2-operation.md
50
使用
Useage
2

4-1-dockerfile.md
60
进阶
Advanced
1

4-2-compose.md
70
进阶
Advanced
2

4-3-web-ui.md
80
进阶
Advanced
3

so the menu order I expect is:
'简介 → 设计 → 使用 → 进阶'
'Introduction → Design → Useage → Advanced'
but what I really get is:
'简介 → 使用 → 设计 → 进阶'
'Introduction → Useage → Design → Advanced'
sad:(

Technical details:

Academic Version: 4.6.3
Hugo Version: hugo_extended_0.61.0
Browser/OS: Ubuntu18.04

PS, make doc pages in order for me need to edit filename & weight & menu.x.weight...
Is there anyway easier?

Hugo has 2 different approaches to defining menus - you can read more about it here: https://gohugo.io/content-management/menus/

Hugo has 2 different approaches to defining menus - you can read more about it here: https://gohugo.io/content-management/menus/

Desperation, my menu still order by alphabet:

file:

Menus are a Hugo feature - you can learn more in the Hugo docs and forums. Academic sorts docs menus by Hugo's weight option, so the weight can be changed in order to position menu items.


Reinforce security on the client_credentials grant type

By not allowing the client_secret on the URL.
Tests have been updated accordingly.

@apereocas-bot runci

@apereocas-bot runci


Categories consisting of a single category doc do not appear in autogenerated sidebar

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[X] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
Suppose we have the following docs structure, with an autogenerated sidebar generated in docs
docs/
    ├── intro.md
    ├── category/
    │   ├── index.md
    │   └── nested-category/
    │       └── index.md
    ├── other-category/
    │   └── index.md
    └── another-category/
        └── another-nested/
            └── index.md

The resultant sidebar does not include any directory which only has a category doc for markdown files, eg in this example
[sidebar items]
    ├── intro
    ├── category (category doc)
    │   └── [there's nothing here, the category is empty]
    └── another-category (empty category)
        └── [there's nothing here, the category is empty]

Steps to reproduce

create basic site, eg npx create-docusaurus@latest my-website or https://docusaurus.new/
make a category doc with only an index doc in it inside an autogenerated slice
run the site and observe the sidebar

Expected behavior
I would expect categories with only an index doc in them to still appear in the sidebar, ideally as regular category items, although empty category category docs, as long as they're at least in the sidebar, would still be workable.
A not uncommon use case that currently doesn't work due to this issue is for nesting each doc in its separate folder to keep all assets related to a given doc next to each other, e.g.
docs/
├── installation/
│   ├── index.md
│   ├── asset-1.png
│   └── asset-2.png
└── snippets/
    ├── index.md
    ├── snippet-1.js
    └── snippet-2.js

Actual behavior
The categories with only an index doc do not appear in the sidebar at all.
Your environment

Docusaurus version used: 2.0.0-beta.14

Reproducible demo
https://stackblitz.com/edit/github-17efxz
Self-service

[ ] I'd be willing to fix this bug myself.

@duanwilliam Thanks for reporting these edge cases! Really helpful to help us improve. I'm not even sure how the UX should be designed in this case, maybe fall back to a regular doc instead of a category?

that would be my preferred behavior for my personal use case at the very least; while just another user i doubt there is much use for sidebar category docs that are otherwise empty in any case

@duanwilliam I came across that today too and @Josh-Cena pointed me here. I have the same use case as you, I want to also group a document and its assets together in one directory but actually use the directory name as slug (without stating the slug explicitly).
The fallback to behave like a doc seems perfect. The doc entry becomes a category entry either when there is more than 1 document in the directory OR when its named differently than the ($directory|index|readme).mdx.

Agree: /x/index.mdwith a single md file in it should lead to a doc, thanks for reporting this
It probably doesn't make sense to create a category + link in this case 🤷♂ this would almost lead to the same UX but the UI would be slightly different

hmm would things like sidebar item title from heading also apply for this case then, rather than inferring title from category path (that is, it acts fully as if the category is just a regular doc; this is also the behavior i'd prefer in any case)? and in this case then what would the behavior be if there is also category metadata that assigns conflicting values?


Bug: "useState, useEffect is called conditionally" -- while they aren't

Since an update to react-scripts 4.0.0, react-scripts build started failing for us in a weird way.
As viewed from an editor:

It fails in exactly the same way on CI — so it's not about my editor or dev environment setup.
There're 26 lines with useState up to line 180.
This happens once I comment out, e.g. line 178:

If you can see, a completely different set of lines gets flagged with the error now.
Similar errors are also emitted about useEffect several hundred lines below.
Did you try recovering your dependencies?
No.
Which terms did you search for in User Guide?
I did read https://reactjs.org/docs/hooks-rules.html and I understand what's it about. It isn't the case in our code; the linter is wrong.
Environment
$ npx create-react-app --info
...
  System:
    OS: Linux 5.4 Arch Linux
    CPU: (4) x64 Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz
  Binaries:
    Node: 15.4.0 - /usr/bin/node
    Yarn: 1.22.10 - /usr/bin/yarn
    npm: 6.14.8 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 83.0
  npmPackages:
    react: ^16.8.6 => 16.14.0
    react-dom: ^16.8.6 => 16.14.0
    react-scripts: 4.0.0 => 4.0.0
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce
Unfortunately, the project where this bit me is 22 kSLoC (not counting node_modules).
I've lost ~20 minutes trying to minimize the issue, but didn't succeed.
As a workaround, I've downgraded eslint-plugin-react-scripts' errors to warnings — that fixed the build.
This isssue is a matter of courtesy for assistance on #reactjs IRC.

Linking similar issues: #6917, #6947, #8953
These are all closed, but apparently still not fixed correctly as of react-scripts 4.0.1.


feat(HLS): Make dummy streams for tags representing muxed audio

Close https://github.com/shaka-project/shaka-player/issues/5836

@shaka-bot test


[Patch included] False positives when generating @Override annotations

Example to reproduce:
BaseClass.java
package test;

public class BaseClass {
  private void a() {}

  /* just to remove dead code warning */
  public void b() {
    a();
  }
}

MyClass.java
package test;

public class MyClass extends BaseClass {
  public void a() {}
}

Decompiled result of MyClass is:
package test;

public class MyClass extends BaseClass {
    @Override // test.BaseClass
    public void a() {
    }
}

When generating override annotations it should be checked if the method of the super class is private. With obfuscated code this error can happen more often.
The attached patch (zipped) solves this issue and generates valid code.
avoid_override_for_private_methods.zip
I think this would be a good candidate for a unit test.
Real world example is Database Modeler Lite 1.1 (https://apkpure.com/database-modeler-lite/adrian.adbm)
e.g. adrian.adbm.fragments.a : j0() and k0() which are trying to override private methods of androidx.fragment.app.Fragment

@nitram84 thanks! I totally missed this case. I apply your patch and add a unit test.
Also, I fixed a similar issue for static methods :sweat:


ionPopup body Template events not working?

Hello
I am using ionPopup with a template as give below

   IonPopup.show({
  	title: "Choose profile picture",
  	templateName: "_choosePicture",
  	buttons: [{
  		text: "CANCEL",
  		type: "button-default button-clear",
  		onTap: function(event, template){
  			return true;
  		}
  	}]
  });

Template "_choosePicture" is given below

<template name="_choosePicture">
<button class="button button-block button-light" data-action="image-camera">Take a new photo</button>
<button class="button button-block button-light" data-action="image-upload">From your device's gallery</button>
<input type="file" name="qupload" id="qupload" accept="image/*" class="hidden-upload">
</template>

Template._choosePicture.events({
'click [data-action=image-upload]': function(event, template){
console.log("image-upload click");
},
'click [data-action=image-camera]': function(event, template){
console.log("image-upload click");
}
});

Popup shows template as expected, but events mentioned as "data-action" are not working. Is it the right way to do with Popup templates or am i missing something here?

I think template body in IonPopup it's not supported #132

Sorry - hijacking this thread - How would one go about to send the value from the prompt popup into a server method?

})```

Should work