[SPARK-29981][BUILD] Add hive-1.2/2.3 profiles

What changes were proposed in this pull request?
This PR aims the followings.

Add two profiles, hive-1.2 and hive-2.3 (default)
Validate if we keep the existing combination at least. (Hadoop-2.7 + Hive 1.2 / Hadoop-3.2 + Hive 2.3).

For now, we assumes that hive-1.2 is explicitly used with hadoop-2.7 and hive-2.3 with hadoop-3.2. The followings are beyond the scope of this PR.

SPARK-29988 Adjust Jenkins jobs for hive-1.2/2.3 combination
SPARK-29989 Update release-script for hive-1.2/2.3 combination
SPARK-29991 Support hive-1.2/2.3 in PR Builder

Why are the changes needed?
This will help to switch our dependencies to update the exposed dependencies.
Does this PR introduce any user-facing change?
This is a dev-only change that the build profile combinations are changed.

-Phadoop-2.7 => -Phadoop-2.7 -Phive-1.2
-Phadoop-3.2 => -Phadoop-3.2 -Phive-2.3

How was this patch tested?
Pass the Jenkins with the dependency check and tests to make it sure we don't change anything for now.

Jenkins (-Phadoop-2.7 -Phive-1.2)
Jenkins (-Phadoop-3.2 -Phive-2.3)

Also, from now, GitHub Action validates the following combinations.

Hi, @srowen , @liancheng , @wangyum .
Could you review this approach? This PR switched the default and adds hive-1.2 and hive-2.3 profiles

Test build #114192 has started for PR 26619 at commit 1e0f23d.

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/19043/
Test PASSed.

Retest this please.

Test build #114196 has started for PR 26619 at commit 1e0f23d.

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/19047/
Test PASSed.

Thank you for reivew.
Up to now, there was no request on Hadoop 3 / Hive 1 combination~ So, the following four?

-Phadoop-2.7 -Phive-1.2
-Phadoop-2.7 -Phive-2.3 (This is a new one)
-Phadoop-3.2 -Phive-2.3
-Phadoop-provided

Test build #114202 has started for PR 26619 at commit c9a05a5.

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/19053/
Test PASSed.

Test build #114204 has started for PR 26619 at commit f93742a.

@srowen , @liancheng , @wangyum , @gatorsmile .
One thing might looks weird for now. We have v2.3.5 directory in sql/core. It seems we need hive-2.3 for sql/core compilation in order to give the extra dependency.
$ find . -name v2.3.5
./sql/core/v2.3.5
./sql/hive-thriftserver/v2.3.5

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/19055/
Test PASSed.

Test build #114192 has finished for PR 26619 at commit 1e0f23d.

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/114192/
Test PASSed.

Test build #114196 has finished for PR 26619 at commit 1e0f23d.

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/114196/
Test PASSed.

Test build #114202 has finished for PR 26619 at commit c9a05a5.

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/114202/
Test FAILed.

Test build #114204 has finished for PR 26619 at commit f93742a.

This patch fails due to an unknown error code, -9.
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/114204/
Test FAILed.

Hi, All.
I updated the PR description. This PR successfully verified the existing profiles and this PR also updates PR builder and dependency check script in the same way before.
To update Jenkins jobs with new way, we need to merge this PR first because we need to these profile. Also, I noticed that there is some redundancy in GitHub Action Cache. I'll handle them in another PR to avoid conflicts. The master branch already updated GitHub Action Cache yesterday.

Hi, @shaneknapp .
We are changing the build combination which will affects the Jenkins jobs.

Thank you, @HyukjinKwon !

Thank you all. I'll merge this to the master and continue to work. This keeps every existing features. I'm sure it's safe until now.

-Phive-2.3 -Phive What is the result if we specify both at the same time?

-Phive enables modules like hive and hive-thriftserver.
-Phive-1.2 and -Phive-2.3 chooses the Hive version (and it's classes).
In principal, we should use both of them. However, one of -Phive-2.3 and -Phive-2.3 is the default and we can ignore that.
The default of AS-IS master branch is -Phive-2.3.

One additional stuff is sql/core module.
Previously, hadoop-3.2 replaces the previous ORC code with Hive code.
When -Phadoop-3.2 is given, Apache Hive storage classes are used.
Now, it depends on -Phive-1.2 or -Phive-2.3. In other words, -Phive-1.2 and -Phive-2.3 is used in sql/core module without -Phive.

@dongjoon-hyun i found hive storage api and hive common have the following common class files
org/apache/hadoop/hive/common/ValidReadTxnList.class
org/apache/hadoop/hive/common/ValidTxnList.class
org/apache/hadoop/hive/common/ValidTxnList$RangeResponse.class

For example, https://github.com/apache/hive/blob/rel/storage-release-2.6.0/storage-api/src/java/org/apache/hadoop/hive/common/ValidReadTxnList.java (pulled in by orc 1.5.8) and https://github.com/apache/hive/blob/rel/release-2.3.6/common/src/java/org/apache/hadoop/hive/common/ValidReadTxnList.java (from hive-common 2.3.6) both are in the classpath and they are different. I am worried that users may hit issues due to classloading order. I think it will be safe to still use nohive classifier for orc, which shades storage api.
I think there is no downside of using orc nohive, right? Why not just keep using that. So, we will not need to worry about having class conflicts.

i created https://issues.apache.org/jira/browse/SPARK-30784 for switching back to orc-nohive.

Thank you, @yhuai . During weekend, I missed your comment here.

BTW, @yhuai . As I mentioned before to @liancheng , the transition from orc-nohive to hive-storage-api is not made by me. That is irrelevant to this PR. Technically, I also was against it initially like you.

I think there is no downside of using orc nohive, right?

Let me you ping on the right PR.

https://github.com/apache/spark/pull/23788

@dongjoon-hyun have we tried to change hive version to 3.x in spark in order to make it work with hive metastore 3.x.

Did you try spark.sql.hive.metastore.version, @suryanshagnihotri ?

https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html#interacting-with-different-versions-of-hive-metastore

For some known issues, we are upgrade the built-in hive module to 2.3.9 here.

https://github.com/apache/spark/pull/32750

@dongjoon-hyun yes have tried it but it fails with class not found exceptions like
java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.plan.LoadTableDesc$LoadFileType
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1.doLoadClass(IsolatedClientLoader.scala:255)
	at org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1.loadClass(IsolatedClientLoader.scala:244)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at org.apache.spark.sql.hive.client.Shim_v3_0.clazzLoadFileType$lzycompute(HiveShim.scala:1272)
	at org.apache.spark.sql.hive.client.Shim_v3_0.clazzLoadFileType(HiveShim.scala:1271)
	at org.apache.spark.sql.hive.client.Shim_v3_0.loadTable(HiveShim.scala:1352)
	at org.apache.spark.sql.hive.client.HiveClientImpl.$anonfun$loadTable$1(HiveClientImpl.scala:894)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at org.apache.spark.sql.hive.client.HiveClientImpl.$anonfun$withHiveState$1(HiveClientImpl.scala:295)
	at org.apache.spark.sql.hive.client.HiveClientImpl.liftedTree1$1(HiveClientImpl.scala:228)
	at org.apache.spark.sql.hive.client.HiveClientImpl.retryLocked(HiveClientImpl.scala:227)
	at org.apache.spark.sql.hive.client.HiveClientImpl.withHiveState(HiveClientImpl.scala:277)
	at org.apache.spark.sql.hive.client.HiveClientImpl.loadTable(HiveClientImpl.scala:889)
	at org.apache.spark.sql.hive.HiveExternalCatalog.$anonfun$loadTable$1(HiveExternalCatalog.scala:884)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:103)
	at org.apache.spark.sql.hive.HiveExternalCatalog.loadTable(HiveExternalCatalog.scala:878)
	at org.apache.spark.sql.catalyst.catalog.ExternalCatalogWithListener.loadTable(ExternalCatalogWithListener.scala:167)
	at org.apache.spark.sql.hive.execution.InsertIntoHiveTable.processInsert(InsertIntoHiveTable.scala:327)
	at org.apache.spark.sql.hive.execution.InsertIntoHiveTable.run(InsertIntoHiveTable.scala:102)
	at org.apache.spark.sql.execution.command.DataWritingCommandExec.sideEffectResult$lzycompute(commands.scala:108)
	at org.apache.spark.sql.execution.command.DataWritingCommandExec.sideEffectResult(commands.scala:106)
	at org.apache.spark.sql.execution.command.DataWritingCommandExec.executeCollect(commands.scala:120)
	at org.apache.spark.sql.Dataset.$anonfun$logicalPlan$1(Dataset.scala:229)

@dongjoon-hyun I get this exception when i try to insert data into table. I checked that spark_home/jars contain only hive 2.3.7 jars hence we are getting this exception.
query which does not work
CREATE TABLE students (id int, name string, marks int);
INSERT INTO students VALUES
(1, 'Jerry', 50);

I also noticed that when i make table as acid then it works.
CREATE TABLE students (id int, name string, marks int)
    STORED AS ORC TBLPROPERTIES ('transactional' = 'true');
INSERT INTO students VALUES
(1, 'Jerry', 50);


Propogating Eigen expression templates with local temporaries

Description
As first discussed in this comment, there is an issue with matrix functions returning expressions when those expressions use local temporary structures.
A simple example is the following:
#include <Eigen/Core>
#include <iostream>

template<typename T>
decltype(auto) test_fun(const T& x) {
    const Eigen::Ref<const Eigen::VectorXd>& x_ref = x;
    return (x_ref.array() - 5.0).matrix();
}

int main()
{
    Eigen::MatrixXd test_mat(2,2);
    test_mat << 5, 5, 5, 5;

    Eigen::VectorXd test_vec(2);
    test_vec << 5, 5;

    Eigen::VectorXd out = test_fun(test_mat.diagonal()).eval();
    Eigen::VectorXd out2 = test_fun(test_vec).eval();

    std::cout << "Expression:" << std::endl <<
                 out << std::endl << "Vector" <<
                 std::endl << out2 << std::endl;
}

Which returns:
Expression:
-5
 0
Vector
 0
 0

Because the temporary x_ref.array() falls out of scope.
A simple fix that seems to work is to explicitly set the inner stride:
template<typename T>
decltype(auto) test_fun(const T& x) {
    const Eigen::Ref<const Eigen::VectorXd,0,Eigen::InnerStride<> >& x_ref = x;
    return (x_ref.array() - 5.0).matrix();
}

But Eigen's documentation notes that will disable vectorisation.
Current Version:
v3.1.0

The expression for the negation will also go out of scope.
The proposed fix with strides still has expressions that go out of scope.

That's what I thought, but it works: https://godbolt.org/z/oqraZ3

Running the "simple fix" on my computer crashes. I also don't see why it should work so I guess this example just happens to work with particular compiler.

Some more testing suggests we only get wrong result if the expression needs to be evaluated into Ref (maybe this also just randomly works): https://godbolt.org/z/c2nzPn
Evaluating into local variable instead of using Ref does not help: https://godbolt.org/z/4q0d0N
Evaluating into parameter of the function does help (these objects live until the line in which the function is called finishes executing): https://godbolt.org/z/6wR3RP
Some digging trough Eigen's source confirms what these tests showed: When constructing Eigen expression object lightweight objects, such as other expressions, are stored by value and heavy objects, such as Matrix or Ref, are stored by reference. That explains why expressions going out of scope do not cause any problems.

I found a way to solve this problem. Those "local temporaries" must have their lifetime bound to the returned object. So we need a custom eigen expression that holds some variables and another eigen expression and behaves like that expression.
If we moved these variables when returning the returned expression would be left with dangling references. Instead these temporaries can be allocated on heap so moving is not necessary.
Custom expression code:
template <class ArgType, typename... Ptrs>
class Holder;

namespace Eigen {
namespace internal {
template <class ArgType, typename... Ptrs>
struct traits<Holder<ArgType, Ptrs...>> {
  typedef typename ArgType::StorageKind StorageKind;
  typedef typename traits<ArgType>::XprKind XprKind;
  typedef typename ArgType::StorageIndex StorageIndex;
  typedef typename ArgType::Scalar Scalar;
  enum {
    Flags = ArgType::Flags & RowMajorBit,
    RowsAtCompileTime = ArgType::RowsAtCompileTime,
    ColsAtCompileTime = ArgType::ColsAtCompileTime,
    MaxRowsAtCompileTime = ArgType::MaxRowsAtCompileTime,
    MaxColsAtCompileTime = ArgType::MaxColsAtCompileTime
  };
};
}  // namespace internal
}  // namespace Eigen

template <typename ArgType, typename... Ptrs>
class Holder
    : public Eigen::internal::dense_xpr_base<Holder<ArgType, Ptrs...>>::type {
 public:
  Holder(const ArgType& arg, Ptrs*... pointers)
      : m_arg(arg), m_unique_ptrs(std::unique_ptr<Ptrs>(pointers)...) {}
  typedef typename Eigen::internal::ref_selector<Holder<ArgType, Ptrs...>>::type
      Nested;
  typedef Eigen::Index Index;
  Index rows() const { return m_arg.rows(); }
  Index cols() const { return m_arg.cols(); }
  typedef typename Eigen::internal::ref_selector<ArgType>::type ArgTypeNested;
  ArgTypeNested m_arg;
  std::tuple<std::unique_ptr<Ptrs>...> m_unique_ptrs;
};

namespace Eigen {
namespace internal {
template <typename ArgType, typename... Ptrs>
struct evaluator<Holder<ArgType, Ptrs...>> : evaluator_base<Holder<ArgType>> {
  typedef Holder<ArgType, Ptrs...> XprType;
  typedef typename nested_eval<ArgType, 1>::type ArgTypeNested;
  typedef typename remove_all<ArgTypeNested>::type ArgTypeNestedCleaned;
  typedef typename XprType::CoeffReturnType CoeffReturnType;
  enum {
    CoeffReadCost = evaluator<ArgTypeNestedCleaned>::CoeffReadCost,
    Flags = evaluator<ArgTypeNestedCleaned>::Flags
            & (HereditaryBits | LinearAccessBit | PacketAccessBit),
    Alignment = Unaligned & evaluator<ArgTypeNestedCleaned>::Alignment,
  };

  evaluator<ArgTypeNestedCleaned> m_argImpl;

  evaluator(const XprType& xpr) : m_argImpl(xpr.m_arg) {}

  EIGEN_STRONG_INLINE CoeffReturnType coeff(Index row, Index col) const {
    CoeffReturnType val = m_argImpl.coeff(row, col);
    return val;
  }

  EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const {
    CoeffReturnType val = m_argImpl.coeff(index);
    return val;
  }

  template <int LoadMode, typename PacketType>
  EIGEN_STRONG_INLINE PacketType packet(Index row, Index col) const {
    return m_argImpl.template packet<LoadMode, PacketType>(row, col);
  }

  template <int LoadMode, typename PacketType>
  EIGEN_STRONG_INLINE PacketType packet(Index index) const {
    return m_argImpl.template packet<LoadMode, PacketType>(index);
  }
};
}  // namespace internal
}  // namespace Eigen

template <typename T, typename... Ptrs>
Holder<T, Ptrs...> makeHolder(const T& arg, Ptrs*... pointers) {
  return Holder<T, Ptrs...>(arg, pointers...);
}

New function implementation:
template <typename T>
decltype(auto) test_fun(const T& x) {
  const auto* x_ref = new Eigen::Ref<const Eigen::VectorXd>(x);
  return (x_ref->array() - 5.0).matrix();
}

Live example: https://godbolt.org/z/a-zmNT
I also asked this on stackoverflow. While I did not get any good answers (one answer is mine), I got some ideas in comments. Namely that we could implement custom functors that represent an operation in Eigen to completely avoid temporaries in functions that work element-wise.

This is really nice! I don't completely understand it, but I like it. How does Eigen know when this custom expression code needs to be used? Will this affect all Eigen expressions moving forward?

Because we explicitely return it and I really should have put that into the code I posted ... Now it is fixed.

Oddly enough, it looks like the new Eigen::Ref<> appears to do the trick without needing the added Holder class: https://godbolt.org/z/Mif36M

Yes, obviously, but that leaks memory. Holder only takes care of releasing it when it goes out of scope. All other code in Holder is there just to make it an Eigen expression.

Oh right, make sense


Sadly having some real issues with the second half of this walk though

Ive experienced some real issues with the second half of this walk through. Visual Studio now addeds a launch screen storyboard by default and i cant seem to get the main part of the storyboard to run / connect after the launch screen is triggered. ive been pulling my hair out with this one.
Also some clear advice or a sentence might be helpful as i was creating class files automatically with the attribute tag,  instead of naming the  view controllers class name attribute.
so the biggest problem im having is that i just cant get the main story board to trigger after the launch screen. I just get a black screen after the launch story board
any advice would be most helpful
thanks

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

ID: 8853aece-5bbb-6121-ce6d-f600719ad820
Version Independent ID: 8037b07e-5bdd-390c-e3be-b3c9233d5249
Content: Tab Bars and Tab Bar Controllers in Xamarin.iOS - Xamarin
Content Source: docs/ios/user-interface/controls/creating-tabbed-applications.md
Product: xamarin
GitHub Login: @bradumbaugh
Microsoft Alias: brumbaug

Hi @mintyhighway – sorry to hear you've hit a snag here. I've filed an issue in our internal backlog to review this content for accuracy. Thanks for calling it out.
Unfortunately I can't troubleshoot problems here, but here's one suggestion: maybe open the Info.plist file and check that Main Interface is set to the name of your main storyboard ( (not the launch screen).
If that doesn't work, and you need further support, please feel free to post on Developer Community.

Hi Brad
Many thanks for the reply. Sadly that wasnt he issue. Ive checked list.plist and this was point at the mainstory board.
Ive been using vS2017 version running on windows 10.
So not sure problem is.
Will get onto dev team.
Thanks :0)


angular2-moment map question

on the demo url: http://plnkr.co/edit/ziBJ0mftSjnz0SrYPwbo?p=preview
if I replace     "angular2-moment": "https://rawgit.com/urish/angular2-moment/0.6.0" with either of the following, none of them works,

"angular2-moment": "//cdn.rawgit.com/urish/angular2-moment/master"
"angular2-moment": "//rawgit.com/urish/angular2-moment/master"
"angular2-moment": "//raw.githubusercontent.com/urish/angular2-moment/master"

can you explain why?

It is because of the packaging changes that are part of angular 2 beta 17. We need to align the example to use the latest rc of angular 2, this should fix this.

The plunker example has just been updated to angular 2 RC 1,


Cannot read property 'getManifests' of undefined in workbenchinit.js

Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

I follow all the steps given in https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part, still i get error saying manifest.js file not found in temp folder and Uncaught TypeError: Cannot read property 'getManifests' of undefined. please find the attached image.
I am new to sharepoint framework. Please guide me to resolve the issue as soon as possible

Sorry - clearing out super old issues that had been dropped.  The local host has been deprecated, and this wasn't reported by others as well.


Add docs site

There should be a documentation site focused on scenarios similar to this https://gowebexamples.com/.
I'm also thinking about integrating samples from https://github.com/dodyg/practical-aspnetcore.
cc @dodyg

I will be happy to work on the documentation site, port the samples over and create new samples for this.
Do you know when you are going to publish a nuget package or should the samples reference FeatherHttp.project?

I'm going to try to get it done this week. I just need to figure out the github actions fu 😄

Packages are currently available here https://f.feedz.io/davidfowl/featherhttp/nuget/index.json. I'm going to make a github pages site for it.

@davidfowl I thought I was going crazy - but it seems that the packages didn't upload? Let me know if I'm missing something please
PS C:\Users\jmacivor\code> nuget list -s  https://f.feedz.io/davidfowl/featherhttp/nuget/index.json
No packages found.
PS C:\Users\jmacivor\code>

Add the -pre flag to list per-release packages

@dodyg how do you want to go about this? Do we come up with a TOC we like?

Yes.
I think we should split the content into three categories:

Explaining the "framework" itself.
How to do things in Feather in contrast of the canonical ASP.NET Core approach
Various practical samples how to achieve things

Super slim middleware only app
MVC
Razor Page
SignalR
gRPC
Blazor

This approach assumes that the people who will be trying/using Feather will have some experience with ASP.NET Core. The question is whether we should accommodate people that just starting up doing web development and try to attract them to use this much simpler approach to ASP.NET Core.

@dodyg I'd like to participate in this as much as I can, I'm playing around with creating a little site to display these tutorials in the style of the go site that @davidfowl mentioned: https://github.com/RobotOptimist/learn-httpfeather I'm using Nuxt and plan to use the static file generator for the web resources. Wondering if I should go ahead and register a domain or if you and David already have something in mind. I'm doing this because I want to deeply learn about what David has done here, so maybe I'd be doing this anyway - but given I have a chance to help with a need here, I'd just love to do it.
Thanks

This is awesome. Let's figure out a broad outline on how these tutorials should go and their target audiences.  @RobotOptimist if you have something in mind, please post them.

I think we want to aim at both audiences but we shouldn't assume people know ASP.NET Core, or even C#. I think there are 2 kinds of docs:

Conceptual - The why behind things. Why is the framework designed this way? (the philosophical aspects of the design).
How do I do task X - A "straight to the point"

I like the micro examples because its task based and shows you how to get started doing specific tasks immediately (copy pasta friendly). The former is fine but much less important right now.

OK let's start with the absolute beginners.
We will need to write "Getting Started" tutorial:

Where to download vscode.
Where to download the .NET Core 3.1 SDK.
How to run the samples. Ask the reader to run the hello world sample to make sure that they can get the environment working.

Then introduce them to the basics:

Hello World
How to read and write cookies
How to get values from query string
How to obtain value from HTML form
How to handle upload files
How to read from and write to HTTP headers.
How to allow static files files
How to return JSON output
How to handle routes
How to log your app
How to change the port of the webserver
How to use TLS
How to show exceptions during development
etc

Data:

How to use it with a database (EF, Dapper, RepoDB)
How to use it with Redis
Etc

How to pair it with JavaScript frameworks

AngularJs
VueJs
SvelteJs
ReactJs

Application Framework:

Razor Pages
MVC
Blazor Server Side
Blazor
SignalR
etc

@davidfowl  where do you want the samples and documentation to be contributed to? Should we just do pull requests to this repository or should it be on another repository?

I was thinking for Hello World of doing a side by side comparison with expressjs, since I think that's a lot of people's entry point into writing APIs and their hello world is very similar to this one since it's a single file and etc. I don't want to have any discussion on which is better - but rather map concepts between the two.
Also, I'd love to add this as a dotnet template so users could get a project going from the cli with dotnet new feather or something similar.
I've already experimented with doing a VueJs spa project with all the bells and whistles, and that worked well. I think I could do the same with Angular, React and Svelt - although I've done nothing with React and Svelt in the past, I'm pretty sure I'll just be using a static file server for all 4.
I was thinking of another project to show how to use feather to create an equivalent to webpack-dev-server by using this https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?redirectedfrom=MSDN&view=netcore-3.1 and serving static files, although I think I'd need to use signalr somehow in order to trigger DOM reloads when a file changes.
Anyway, I think the effort maybe isn't large for that to show a practical application that will retrace some concepts that people already have and help them learn and get excited about the framework.
Although, that project idea is using static files, signalr and a js framework of some kind, so it could also be used to start showing that line where it's better to migrate up from feather to a fully featured .net core template?
I'm super excited to get started, let me know which repo I should start working with

Well, I've spun up a site and set up continuous deploys to netlify using the previously mentioned repository:
https://github.com/RobotOptimist/learn-httpfeather
currently hosted, continuous deployment on master (still haven't got a domain yet, want to see if you guys want to go this way or do something else)
https://competent-hypatia-67bb77.netlify.com/
The repository has pages ready to receive the examples in pages/examples where you would put your html inside of
If it's more comfortable, I can also install a markdown parser plugin so we can write the example code in markdown.
To run it, you download the repo and then
npm install
and then
npm run dev
Ideally, I'd like to use feather HTTP to do this, so I'll be thinking about how to switch it over to that. Maybe do the vue example this way? 😀

If you do a static export docs website, I think GH Pages is a good idea?

I was thinking gh pages as well.

No problem, I'll switch it to GH Pages

Okay, got it done here: https://robotoptimist.github.io/learn-httpfeather/
Sorry it's a bit of a mess - I'll be setting up the automated workflow this afternoon

Automated documentation workflow is up. I've got the first version of Getting Started on the home page also. I've also created a repository for a dotnet project template and included instructions for people to clone that repo and use that template.

@RobotOptimist it might makes sense to move the docs site to this repo as well. I have to look at turning on ghpages and setting up a domain/cname.

@davidfowl I understand, let me know what you need.

I'm thinking about how to do this, we could take the static site generator code and nest it under /docs in this project, we can set up a docs branch and have travis ci (or whatever tool you like) listen for changes to that branch. Upon a change to the docs branch - travis would run the generator and push the result to gh-pages. Should be possible to do all of that by adjusting a few things in .travis.yml
GitHub Pages is already set up, out of the box to look at a branch called gh-pages just for this sort of thing
Setting up the domain name shouldn't be too bad after all of that, um, probably

#22
@davidfowl I've created a pull request to add the static generator to the project - let me know if this is no longer desired
Also, I've been thinking a lot about how to describe this project in terms of the motivation to create it, how we imagine it being consumed. I've been thinking of some questions for you.

) What was the reason for creating this library? What need did you see?
) Is there a philosophy around FeatherHttp in that you imagine a certain type of developer will find it interesting - who is that person?

I'm enthusiastic about this library because I see it as a fun entry point for new people. What do you think?

Great work but Honestly, as David said, I would also love to hear more about the ‘why’ the framework is needed specially since .NET Core was designed to be low ceremony to begin with.

The reason I made this library was to experiment with a more imperative pattern that removed some of the ceremony around Program.cs and Startup.cs. How fast can we put you in a place where you’re writing relevant code (middleware, routing etc). A big part of that was removing callbacks and exposing things as properties. The other things like looking at the amount of concepts exposed host, host builder, sever, application to understand how overwhelming that is compared to other stacks (express, go, django etc)

Thanks @davidfowl I feel like I understand this motivation very well and I think it ties in with some conversations on Twitter regarding how dotnet is used and how it's perceived.
Also, mentioning those other languages and frameworks gives me some ideas for how to approach these docs in terms of how technical I want them to sound. For example, when I was reading the Go web docs I felt like they wanted me to get up and running right away, but they also used plain language to be welcoming to someone who's not familiar with the language at all. You had mentioned in January that you wanted a site that looks like the Go web docs, but I see now that you may also want docs that emulates their welcoming spirit and I share that goal.
I was thinking of rephrasing the readme intro as this:

FeatherHttp is a light weight way to build web applications using C#. It simplifies the requirements for building an application imposed by other dotnet frameworks, but it has all of the power of those frameworks available when and if you need it.
If you like the idea of strongly typed languages and you want to learn to make web applications that work well and are easy to reason about, but have steered away from spring boot or ASP.NET because you find them confusing or unwelcoming then FeatherHttp may be the right starting point for you.
The goal of this site is to provide you with snippits of code so you can spin up the type of project that you want as quickly as possible, whether it be Blazor, SignalR or WebAPI.

@davidfowl it's hard to know how written messages are received, so let me be clear and chime in with keyse and say that you've done a great job with this and I certainly feel inspired by it

Few thoughts;

Please do consider and treat F# as a first order citizen in your library and add snippets for this language as well
A lot of your users might come from outside the .net ecosystem (like nodejs-express, golang net/http users, as they would likely be the ones searching for a get-out-of-my-way-and-let-me-do-stuff kind of micro framework), so it would be great if no assumption of pre-knowledge of the dotnet core ecosystem is considered.
Have a dedicated section on authn (basic, jwt, oauth, etc) and authz. A lot of new server devs (personal experience) find that part extremely difficult and a lot of tutorials have  a tendency to skip/gloss over that part
Section on Deployment (docker, binary),

@davidfowl just checking - what help do you need to get the docs site up for this?


[2044] Fix terrafile issue

Context
https://github.com/DFE-Digital/teaching-record-system/actions/runs/10887241105/job/30209263140
Changes proposed in this pull request
Install terrafile
Guidance to review
Delete bin/terrafile
Run make dev terraform-plan
Checklist

[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

 TRS: rename _aks environments


Replace CRA with Webpack + Node 18

Something went wrong with PR preview build please check

Something went wrong with PR preview build please check

Preview is available here:http://stellar-demo-wallet-client-pr320.previews.kube001.services.stellar-ops.com/


Ext/browser bookmarks

Description
Adding compatibility for Firefox Dev edition to the bookmarks extension: https://github.com/raycast/extensions/issues/8520
Since firefox and firefox dev uses the same profiles and same library files, I just added the bundle ID of the application to use the same logic as in Firefox.
Screencast
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[ ] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

it's just a fix following a comment on a previous PR without finish
https://github.com/raycast/extensions/pull/8762

Can you take a look at the conflicts please? 🙂


Process link regex matches through JS for validation

@marcaaron (PB) and @alex-mechler  will you please review this?
Updated our ExpensiMark to capture URL links more reliably.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/147205
Tests
The ExpensiMark tests have been updated to test various URL linking.
QA
NA

Updated!

Updated again and added new URL to test suite.


libnmstate-varlink: Implementing varlink support for libnmstate

Backport of https://github.com/nmstate/nmstate/commit/ecb2b8b3ec561eb05407a7e56931b6d17e848382
Implemented varlink support for libnmstate functions (show, apply, commit and rollback)
Added test cases for varlink service
Integrated with setup.py
Added README file
Signed-off-by: Arunagirinadan Sudharshan<EMAIL_ADDRESS>

@ffmancera included the man page commit.


[CLI]: WARNING: No AMD GPUs specified

Describe the bug
On a server managed by Slurm, which has both NVIDIA and AMD GPUs installed, if we only request NVIDIA GPUs we get WARNING: No AMD GPUs specified flooding the console. I commented in #6757 but didn't get a response so I'm opening a new issue since that one is closed.
Additional Files
No response
Environment
$ conda list | grep wandb
wandb                     0.16.6                   pypi_0    pypi

$ conda list | grep python
python                    3.11.8          hab00c5b_0_cpython    conda-forge

$ lsb_release -a
Description:    Ubuntu 22.04.4 LTS

Additional Context
$ rocm-smi -a --json
WARNING: No AMD GPUs specified
{"system": {"Driver version": "6.3.6"}}

$ cat /sys/module/amdgpu/initstate
live

@collinmccarthy sorry that you still experience this issue, we are currently in the process of replacing our amd  system metric with a roc-smi tool (we were using the installed binary to extract the relevant information), hopefully it should be fixed in the next release. In the short-term, we will review our original fix and try to make sure that this warning is suppress.

@collinmccarthy the only way is to mess with your installed code, if you want to do it you can just short-circuit our check for amd, here: https://github.com/wandb/wandb/blob/main/wandb/sdk/internal/system/assets/gpu_amd.py#L167
but we are actually fixing it now and should be releasing it soon

Awesome, I see the PR. If it gets blocked I’ll edit the code you linked, otherwise I’ll just wait. Thank you so much!


Support HTTPAdditionalForwardHeader prefixes

Support HTTPAdditionalForwardHeaders prefixes to allow passing in prefixes (i.e. foo-bar-) to forward instead of needing to specify a list of every single header
Is your feature request related to a problem? Please describe.
It's helpful to be able to add new headers using a common prefix and not need to do a temporal server deployment
Describe the solution you'd like
In addition to HTTPAdditionalForwardHeaders, support a list of prefixes. This could be called HTTPAdditionalForwardedHeaderPrefixes
Describe alternatives you've considered
N/A
Additional context
N/A

## Support `HTTPAdditionalForwardedHeaderPrefixes` prefixes to allow passing in prefixes (i.e. `foo-bar-`) to forward instead of needing to specify a list of every single header

**Is your feature request related to a problem? Please describe.**

It's helpful to be able to add new headers using a common prefix and not need to do a temporal server deployment.

**Describe the solution you'd like**

In addition to [`HTTPAdditionalForwardHeaders`](https://github.com/temporalio/temporal/blob/21b04a19a3d3fd2732389454697ce4dca808c4e5/common/config/config.go#L106-L108), support a list of prefixes. This could be called `HTTPAdditionalForwardedHeaderPrefixes`.

**Describe alternatives you've considered**
N/A

**Additional context**
N/A

Thanks for the feature request!  It's certainly a common need to be able to add headers using a common prefix.
At this time, Temporal does not support forwarding headers using prefixes.
One way to work around this is to use a separate proxy server that performs the header transformation before forwarding requests to the Temporal server.  Here are some popular proxy servers you could use:

NGINX
Envoy
HAProxy

We will consider supporting this in a future release of Temporal.

Thanks for the feature request! This is a great idea and would make managing headers much easier.
Currently, the Temporal server doesn't have built-in support for header prefixes. However, you can work around this by using the HTTPAdditionalForwardHeaders configuration to specify each header individually.
For example, if you want to forward all headers with the prefix foo-bar-, you could add the following to your server configuration:
HTTPAdditionalForwardHeaders:
  - "foo-bar-X-Some-Header"
  - "foo-bar-X-Another-Header"
  # ... other headers

We'll consider adding support for header prefixes in a future release.


Mount / Unmount of blurred tabs

Feature request
I've been using tabs to load 2 different components. Both the components have a keyboard event listener. The tab that is blurred is still detecting the keyboard events even though the tab is not focused. I wonder if the tabs should unmount or should have a focus property. There are pro's and con's for both but I personal prefer the unmount version.

I believe we should be able to unmount okay but it is unusual that we do this everywhere else and not for tabs. I'm concerned there may have been good reason for the decision so will need to check with the rest of the team and get back to you (some of the team is on holiday atm).

This has been added to 0.1.1-rc.6


Maybe possibly Invalid Default Texture?

https://github.com/raysan5/raylib/blob/f1007554a0a8145060797c0aa8169bdaf2c1c6b8/src/rshapes.c#L104
Is this code meant to reset the texture to the default texture loaded by?
RLGL.State.defaultTextureId
or is the user expected to do so with rlGetTextureIdDefault()?
Thanks ray.

Are you looking at the documentation?
This function https://github.com/raysan5/raylib/blob/f1007554a0a8145060797c0aa8169bdaf2c1c6b8/src/rshapes.c#L97
In the case of an invalid texture, the function will load the default. In the case of an invalid texture, the function will load the default. RayLib does not return error codes, does not use enums. It has its default behavior defined, how it behaves in the event of a failure. In this function, it loads a default, mostly empty texture.
That's a constructor:
(Texture2D){ 1, 1, 1, 1, 7 }

create a new texture with #ID 1, width 1, height 1, mipmap 1 and format 7.

Thanks @colesnicov , so what I get from this is that the "default" texture as term is used here, does not refer to RLGL.State.defaultTextureId which is the actual default texture?

Thanks @colesnicov , so what I get from this is that the "default" texture does not refer to RLGL.State.defaultTextureId which is the actual default texture.

I don't see it now, really. I've been here for a few days. And I haven't looked into the source yet...
But I think RLGL.State.defaultTextureId is the texture ID which can be '1' which is the texture ID in this function:

That's a constructor:
(Texture2D){ 1, 1, 1, 1, 7 }

create a new texture with #ID 1, width 1, height 1, mipmap 1 and format 7.

This means that it can easily be the default texture.
It depends on the implementation. If the indexing starts with 0 or if it starts with 1 and 0 it means an error..
Someone more knowledgeable has to answer.

As you can see here : https://github.com/raysan5/raylib/issues/3962

UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable.

Cite: using zero texture because texture unloadable..
It seems that the texture with ID 0 is the default texture that is uploaded in case of failure? But in the function you pointed to, the ID of the texture is set, in case it is faulty, to 1. Which probably won't be the default texture. **Could it be a mistake? **
Hopefully @rayson5 will be surprised.

@MicroRJ @colesnicov Texture ID 1 is a default internal raylib texture, a 1x1 pixel white texture (RLGL.State.defaultTextureId). OpenGL does not support 0 as a valid texture Id.


Add preview video of odo on the website home page

What type of PR is this:
/area documentation
What does this PR do / why we need it:
This displays a short demo of the main commands on the home page, showcasing a typical inner-loop development workflow.
I've tried to make it short and to the point, so let me know what you think.
To make room for the video, I've also reworded the title to make it shorter and highlight more appealing words like "container". So let me know what you think.
Which issue(s) this PR fixes:
Fixes #6524
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[x] Documentation

How to test changes / Special notes to the reviewer:
https://deploy-preview-6605--odo-docusaurus-preview.netlify.app/
Preview:

/override Kubernetes-Integration-Tests/Kubernetes-Integration-Tests
/override validator/Validate
Not related


Bug 2129084: Fix vm status filters

📝 Description
Do we want something like that or just one filter for Error states?
🎥 Demo

/hold

/lgtm

/unhold

/lgtm


pointer equality failing specifically for basic types

package main

func main() {
	var i int = 10
	println(&i == &i)
}

returns false for go2hx, no pointer analysis is being done at the moment for go2hx. Looking at how gopherjs does it,  makes it seem that each unique identifier instead of making a new pointer uses a pointer that is already created with the value if the value is ever pointer refrenced.
var i, i$24ptr, y, y$24ptr;
i = 10;
console.log((i$24ptr || (i$24ptr = new ptrType(function() { return i; }, function($v) { i = $v; }))) === (i$24ptr || (i$24ptr = new ptrType(function() { return i; }, function($v) { i = $v; }))));

Works now via macro magic!


Broken install with styled components

yarn create r3f-app next my-app-2 styled -ts
yarn create v1.23.0-20220130.1630
warning package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "create-r3f-app ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>[4/4] 🔨  Building fresh packages...
success Installed<EMAIL_ADDRESS>with binaries:
      - create-r3f-app
Welcome. Project's generation started using create-R3F-App 🐱
> 🚀 Creating my-app-2 using r3f-next-starter...

Cloning into 'my-app-2'...
remote: Enumerating objects: 2091, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 2091 (delta 26), reused 48 (delta 17), pack-reused 2027
Receiving objects: 100% (2091/2091), 2.10 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1160/1160), done.
> Success! Folder and files created for my-app-2

> Installing packages...

> Success! Installed dependencies for my-app-2

> Installing packages for styled-components...

> Success! Installed dependencies for styled-components

> Installing packages for TypeScript...

> Success! Installed dependencies for TypeScript

> Initializing for styled-components...

> Generating styled-components from tailwind

> Generating styled-components from tailwind

> Generating styled-components from tailwind

> Generating styled-components from tailwind

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open '/Users/r/GitHub/my-app-2/.babelrc'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/r/GitHub/my-app-2/.babelrc'
}

Node.js v18.3.0
error Command failed.
Exit code: 1
Command: /usr/local/bin/create-r3f-app
Arguments: next my-app-2 styled -ts
Directory: /Users/r/GitHub
Output:

Thanks!
Fixed with<EMAIL_ADDRESS>


ignore 404(not_found) status for delete and update

I might miss context: what is a 404 during update?
Will the document be created or not?

I might miss context: what is a 404 during update? Will the document be created or not?

a 404 is when we are trying to update a document that does not exist.
The idea here is just to ignore the ones that do not exist and guarantee that we update the existing ones and we don´t break the collector. As it is the collector breaks for documents that do not exist

But then "updates" (that should've been creates) are lost?
That does not seem like the best way. Is this change related to an ES upgrade? Or is it only with some new collector?
How to reproduce those update 404s?

This is a change related to a new collector yes, that uses the _op_type=update, just to update a specific field on the documents. New documents should be "create" and not update right?


Cow: Watch pdfquery.ai

Cow requests the watch of the watch_keyword pdfquery\.ai. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

pdfquery\.ai has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Protractor Specific Console Errors

When running protractor tests, I keep seeing TypeError: Cannot read property 'compile' of undefined in the console logs. I only see this error when Protractor is running.
Is this some kind of issue with Angular debugging since the error references $compileProvider#directive?

Of course, as soon as I ask, we finally figured out the issue. It was our error in an addMockModule.


chore(website): override with the latest/dev instantsearch.js if possible

That's required while creating doc of new (non-published) widgets

@vvo OK for you if I update the npm run dev command to built that dist/instantsearch.js file (currently it's only built by the npm run build)?

So that's only to allow the documentation local env to work while developing?

So that's only to allow the documentation local env to work while developing?

Yes, because since we use the publish version; we cannot use a non-published option/widget.

Done @vvo! cc @maxiloc :)

:+1:


A.02.05.inspire.service

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
XPATH expression is missing
Clearly identify the Conformance Class / ATS that the response document must conform to / pass.
Proposed Change
Add XPATH reference

The XPath expressions for each of the necessary elements are given in Table 3 of the TG. There are 14 mandatory ones which could be checked (at least that they are non-empty strings, better to check the actual type e.g. ping a URL, check that Dates are formatted correctly).
If it's useful, copy the 14 XPaths into this test case.
That said, there are also six conditional elements, where the conditions are not automatically testable - that's probably why the original document said the requirement isn't testable: because one can't actually give a 'pass'. But it is possible to fail (e.g. by missing a mandatory thing), so I reckon it's worth testing.


[Distributed] fix async applier bug when do snapshpot

The fix itself has a potential problem that when new logs keep coming in, it is very likely to time out.
Now I see you want to make sure when the snapshot is taken, all previous logs are applied. This side effect has been noticed but back to then, AsyncApplier is merely in the experimental stage. Since you have fixed one of the problems, I would like to give some pieces of advice to make AsyncApplier complete:

When starting to take a snapshot, record the current commitIndex.
Block until all logs whose indices <= the recorded commitIndex are applied. (Use RaftLogManager to do so instead of LogApplier)
Prevent the log cleaner thread to clean logs that are not applied.
Change StorageEngine.getInstance().syncCloseAllProcessor(); in takeSnapshot() to send a flush plan within the group. (So the file sequence will not be broken by snapshots)
When committed logs are recovered during start-up, re-apply all of them. (Notice that operation sequences in IoTDB are idempotent)

Great suggestion, I think the 1-3 items you mentioned is to make sure that when do snapshot, new logs can not be added and the snapshot task should not take long time.  however now the implementation can block the new logs coming in, as when do snapshot we should get the logManager lock, so new logs can not be committed(commited log also  need to get the  logManager lock ), we just need to wait all the previous committed log applied when do snapshot.
I'm going to rethink the 4-5 suggestions.


Verify the implementation of the LLVM IR components. [5h]

[ ] Add test cases to ensure the reliability of the LLVM IR bitcode parser as it has to be accurate.
[ ] Create round-trip test cases which reads an LLVM IR bitcode file, stores it, and reads it back again. The IR of the two reads should be identical.
[ ] Add similar test cases for the human readable assembly language representation of LLVM IR.

Marked as a future ambition as of 2015-02-26. See the following comment for further explanation.

This issue has been superseded by llir/llvm#8.


Use restrictive default permissions for Actions

Setting the more restrictive default on Github Actions will reduce permissions for each workflow and force us to specify permissions explicitly.
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token

I updated the repo to "restricted" default permissions.


Umbraco Relation Resolver

Support for Umbraco Relations was originally raised in #36, but got lost in an evolving discussion.
Closes #69

@Hendy Would be good to hear your thoughts on this, (no rush), especially around the usage of RelationDirection.

Hi @leekelleher, I think the RelationDirection enum names make perfect sense, but maybe use the same language as the RelationTypes tree in Umbraco ?

PartentToChild
ChildToParent
Bidirectional

:+1: Good call! Thanks for the sanity check @Hendy
I haven't given these a good test yet, we'll see how it evolves during v0.8.0 dev :bowtie:

Can you use Enums within an Attribute?

@mattbrailsford Yeah, they're compile time constants so will work.

Cool, just wasn't sure. :+1:

Since I haven't had a need to use this on a website implementation myself, I am hesitant to merge it in.
I'm happy to leave this PR lingering around until there is a demand for it, (or if someone else wants to test it out).

Agreed

I still don't really understand relations so @Hendy this is one for you to test I guess...

Closing this PR.
I'm going to create a "contrib" project on the labs repo, which this will be a good addition.


1.x Adjust severity levels of log entries in DiscoveryClient

DiscoveryClient generates a lot of noise at warn level.

Closing due to inactivity.

I actually really agree with this one. We see lots of users asking about what look like errors in the logs that are warnings.

@spencergibb we've actually removed some of the warn level logging recently, especially the reconcile hash code mismatch warn log msg that had no value, and is the most "annoying" of the warn logs.

@qiangdavidliu thanks for the note!

My mistake for the wrong comment when I closed this issue.


KeyError: 'bias' while running show_weights(clf, vec=vec) in xgboost notebook

Could anyone please help me to solve following error,
File "C:\anaconda3\lib\site-packages\xgboost\sklearn.py", line 745, in intercept_
return np.array(json.loads(b.get_dump(dump_format='json')[0])['bias'])
KeyError: 'bias'

KeyError : 'bias' is shown when we run the XGBRegressor, please help us on this error

Seeing the same issue on an XGBClassifier().

I have the same issue as well with XGBClassifier.

I just tested the XgbRegressor and could not reproduce the issue.
Can one of you paste a screenshot of what you is happening?
@SusmithBarigidad  @sugarcrm-aorso  @danielad-k

Python Version
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

exit()

I just tested the XgbRegressor and could not reproduce the issue.
Can one of you paste a screenshot of what you is happening?
@SusmithBarigidad @sugarcrm-aorso @danielad-k

It looks like it may be related to the Classifier while you are referencing the Regressor. Let me know if you need anything more beyond what @supinyu shared.

The bug is not on eli5 but on xgboost. The call hasattre(xgb, 'intercept_') crashes. This bug is present in the 1.0.2 release and has been fixed by commit Fix checking booster. (#5505). It will be integrated in the 1.1.0 version in preparation (1st release candidate already out).
In the mean time you can easily apply the patch yourself (just one line to change in intercept_(self) of site-packages/xgboost/sklearn.py). Replace
getattr(self, 'booster', None) is not None and self.booster not in {gbtree', 'dart'}:
by
self.get_params()['booster'] not in {'gbtree', 'dart'}:.

Thank you very much JulienB-78.
I update the xgboost version to 1.1.0rc1. The code will not have this error.

Yup, using the 1.1.0 release candidate worked for me as well. Thanks @JulienB-78

The bug is not on eli5 but on xgboost. The call hasattre(xgb, 'intercept_') crashes. This bug is present in the 1.0.2 release and has been fixed by commit Fix checking booster. (#5505). It will be integrated in the 1.1.0 version in preparation (1st release candidate already out).
In the mean time you can easily apply the patch yourself (just one line to change in intercept_(self) of site-packages/xgboost/sklearn.py). Replace
getattr(self, 'booster', None) is not None and self.booster not in {gbtree', 'dart'}:
by
self.get_params()['booster'] not in {'gbtree', 'dart'}:.

Does this update work for anyone? Does not seem to be working for me.
I could upgrade my xgboost to 1.1.0 but I have another dependency which has a requirement of 1.0.0


Use Hatch to manage environments

What does this PR do?
Use Hatch to manage environments
Motivation
Part of our tooling revamp
Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

@ofek mypy is not working as expected on the windows CI. Would you mind taking a look, I can't reproduce and the linux CI is green

Single quotes don't work on Windows:
'--exclude ".*/config_models/.*\.py$"',

Single quotes don't work on Windows:
'--exclude ".*/config_models/.*\.py$"',

Addressed in https://github.com/DataDog/integrations-core/pull/13173

@iliakur had to solve a conflict due to https://github.com/DataDog/integrations-core/pull/13173


Docs: typo/missing code for Texture drawing example

Doc page:
https://kivy.org/doc/stable/api-kivy.graphics.texture.html
Code-file Docs:
kivy/graphics/texture.py
Text:
# create a 64x64 texture, defaults to rgba / ubyte
texture = Texture.create(size=(64, 64))
...
# then, convert the array to a ubyte string
buf = b''.join(map(chr, buf))
Problem: This byte-string conversion isn't working in Python 3.8, gives error:
TypeError: sequence item 0: expected a bytes-like object, str found
Fix: change code/doc to read:
# then, convert the array to a ubyte string
buf = ''.join(map(chr, buf)).encode('latin_1')
The example section using Array.array copy, works fine. I don't know if this is a Python 3 problem, or what - looking at the docs, I actually thought the original line should work as-is. But I couldn't get an example to work, kept getting a TypeError.
I found a StackOverflow question that appears to indicate it worked as of four years ago. Texture Question
Just noticed that the same docs occur in the Texture code-file, updated above accordingly.

@CrawfishPress
instead of
buf = b''.join(map(chr, buf))

we can simply do
buf = bytes(buf)

documentation need an update, u can try to open a PR with relevant changes

buf = bytes(buf)
Well, if you want to do it the easy way, I guess that works also. :)
Re: the docs -  I looked at the docs website, but it's auto-generated from somewhere. I wasn't sure where, but when I went back and looked at my cloned Kivy repo, I couldn't even find the Python file kivy/graphics/texture.py, it was all .pyd files or something. So I'm not sure of the actual source of the docs (or code).


Inline tabs

This PR is to demo a new sphinx feature for inline-tabs. It makes the overall documentation much cleaner!

merge on main branch.


Sample rate - iOS app

Flac files with sample rate higher than 44.1 kHz are played at 44.1 kHz…
I played some 24bit/96kHz and the DAC says it is receiving 44.1 kHz.
Some files 24bit/192kHz cannot be played at all, reproduction does not start.

My hunch is that any audio coming in transcoded to AAC. I would love to implement 192kHz streaming, but I'm bound by whatever the Jellyfin API supports. Just out of curiosity, when you stream audio using the web client, does the audio register correctly on your DAC?

My hunch is that any audio coming in transcoded to AAC. I would love to implement 192kHz streaming, but I'm bound by whatever the Jellyfin API supports. Just out of curiosity, when you stream audio using the web client, does the audio register correctly on your DAC?

Jellyfin on safari (on Mac) stream at 44.1 kHz (it is transcoding since the original flac is 192 kHz). But I suspect it’s more a limitation of safari itself. In fact the Jellyfin official app on iPad streams correctly the same file at 192 kHz.
I have an Android DAC and I tried the Gelli client, there’s an option to direct play some codec so they are not transcoded. But for me it does not work and I don’t know why, maybe because the Android version is quite old (7.0). In any case it is supposed to work directly streaming the file without transcoding.


Python 3.12 and Poetry variants

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

The Python runner image is using the Python 3.9 base image despite 3.12 being the newest major release since October last year
A lot of typing improvements have been introduced in recent Python versions
After https://github.com/pulumi/pulumi/pull/16315 was added Poetry needs to be included (or made available in a seperate variant) for that to be properly supported

Affected area/feature

Build pipelines

Note: There's already an open PR https://github.com/pulumi/pulumi-docker-containers/pull/160 which adds 3.10 and 3.11 and should be simple to add 3.12 to that build matrix.

Thanks for opening this! We are planning to add support for 3.12 as part of #204. Including Poetry in the Python (and "kitchen sink") makes sense to me.

Poetry now ships in all of the Python images, and we introduced version images https://hub.docker.com/u/pulumi?page=1&search=pulumi-python
If you want to use Python 3.12 today, you can use the pulumi/pulumi-python-3.12 image.
We'll have an announcement with a timeline for updating the default from 3.9 to 3.12 (or 3.13 depending on the timing) soon.


Add finer control over disabling slow serving code [phab:D1354]

Created by schroederc at 2017-02-21 22:19:08:

zarko accepted this revision at 2017-02-21 22:26:24

schroederc closed via commit cb2bedf529d6f5af39ae1c567934e096929073b3 at 2017-02-21 22:33:38


Ferdi 5.6.0 is out

Latest Version has come out at 18. Jul. have been checking for Portapps a few times and we are still behind.

Download Ferdi, they have their OWN portable version...
Place the EXE anywhere and launch it, it will create several folder besides the EXE, after that CLOSE!!!
THEN start Portableapps.io Ferdi, goto "Settings => "Advance" tab => "Open Profile Folder" and mark + copy everything!
LAST STEP: Close and start STOCK Ferdi, same as above GOTO Profile Folder, DELETE everything inside (of course you have to close Ferdi first!) and paste your old profile files in it!
After that, Ferdi should start up, update everything inside and it's done!
Congrats! You updated Ferdi !!!

@carstengrimm As explained on this page: "We are aware of and notified of new application updates. So there’s no need to create an issue to update an application.".


Intermittent testWorkflowMetrics Unit test failure

Expected Behavior
Test always passing
Actual Behavior
When running in a constrained CI/CD environment it sometimes fails:
io.temporal.workflow.MetricsTest > testWorkflowMetrics FAILED
    java.lang.AssertionError: 3.39s
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at io.temporal.workflow.MetricsTest.testWorkflowMetrics(MetricsTest.java:280)

Possibly fixed, need to double check.


setup.py is really out of date

Made a few tweaks to this; left the issue open in case @campaul wants to add more info.


circleci: upload artifacts when coverage is below threshold

Signed-off-by: Lizan Zhou<EMAIL_ADDRESS>Description:
Run rsync before checking threshold so CircleCI can pick up the coverage report.
Risk Level: Low
Testing: local tested
Docs Changes: N/A
Release Notes: N/A

Yes we have coverage report:
https://circleci.com/gh/envoyproxy/envoy/22756#artifacts/containers/0


unable to resolve module ./index react-native

Environment
info
React Native Environment Info:
System:
OS: Windows 7
CPU: (4) x64 Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
Memory: 2.63 GB / 7.91 GB
Binaries:
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-182.5<IP_ADDRESS>14842

I'm having same problem. Here's output from react-native info
info
  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 2.81 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.10.1 - ~/.nvm/versions/node/v11.10.1/bin/node
      Yarn: 1.13.0 - ~/.nvm/versions/node/v11.10.1/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v11.10.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.1 => 0.59.1

Have you tried running react-native start --reset-cache? This may be related to #24112

Yes seems to be related though in that issue there's focus on run-android. I'm definitely seeing the issue with run-ios.
I'm pretty sure I had no issues in 0.59 a few days ago.

Hi everyone, there is something wrong with version 0.59.1
try this:

Stop the MetroBundler/launchPackager
Delete node_modules
rm -rf node_modules
Change the version on your package.json
from
"react-native": "0.59.1",
to
"react-native": "0.58.6",
Then clean the watchman
watchman watch-del-all
Run npm install again:
npm install
And try to run your project, in my case:
react-native run-ios

@BenHurMartins That's definitely a solution but react-native 0.59 introduces support for Hooks. Not an option for those already using Hooks in their apps.

Hey 👋 Thanks for the report. Closing as this is a duplicate of https://github.com/facebook/react-native/issues/24112 which has a fix (and a workaround) and is pending release.

Temporary workaround for Windows users
Go to your PROJECT_FOLDER/node_modules/react-native/scripts
Open the file launchPackager.bat with your favorite text editor and add this line
cd "%~dp0......"
as follows
@echo off
title Metro Bundler
call .packager.bat
cd "%~dp0......"
node "%~dp0..\cli.js" start
pause
exit

Have you tried running react-native start --reset-cache? This may be related to #24112

Worked for me. Thanks


aqara cam with integrated gateway

i’ve searched everywhere but i did not manage to find the answer. Can this homebridge script work also with the aqara ip camera with integrated gateway or will run only on the mijia hub?
This is the camera with integrated gateway https://it.aliexpress.com/item/Original-xiaomi-aqara-cam-gateway-version-Hub-with-gateway-function-1080P-180-degrees-view-For-xiaom/32834992963.html?spm=a2g0y.search0<IP_ADDRESS>9d78d62jVLkY&ws_ab_test=searchweb0_0,searchweb201602_2_5722916_10152_10151_10065_10344_10068_5723115_5722816_10342_10343_10340_10341_10696_5722616_10084_10083_10618_10304_10307_10820_10821_10302_5722716_10843_10059_100031_10103_10624_5722516_10623_10622_10621_10620-10620,searchweb201603_35,ppcSwitch_5&algo_expid=c1b97afa-e052-46b8-9413-129b00fdd23c-0&algo_pvid=c1b97afa-e052-46b8-9413-129b00fdd23c&priceBeautifyAB=0

@imbackniantic did you find any custom software for that camera?


LSP: wire up handler for codeAction

This adds handler for LSP textDocument/codeAction

@filipw would it be possible to have this one merged before the next release? As it would actually increase usability of the server within LSP context, by providing support for fix-imports and provide access to all other kinds of other refactorings available-at-point in the editor.
Or do you wish to release the fix for #1791 first -- to see if something broken by that PR first -- but I would say these two are orthogonal issues.
Ditto for #1799

Also, I noticed you've already added changelog line for this in your other PR:

https://github.com/OmniSharp/omnisharp-roslyn/pull/1795/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR6

So I guess I will have to remove my changelog entry to avoid duplicate

yeah we released already so this is good to merge now,  I resolved the conflicts already


No more way to get data without copy??

Hi,
using latest master branch version. ( https://github.com/RevenantX/LiteNetLib/commit/864d411bad6f772c20a012043c55641b334d153d )
NetDataReader and NetPacketReader do not expose any way to get the data directly anymore.
I do not want to copy the bytes into a buffer to work with them, because in my application I can guarantee that I will not be using the buffer after I have handled the OnNetworkReceive event.
There is GetBytes with a buffer parameter but that still does a copy that I do not need.
I hope this is just an oversight.
If you are concerned about visibility you can:
a) name the method GetRawBufferUnsafe()
b) also decorate it with [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
I want to avoid every useless data-copy, especially in such a straightforward case.

@rikimaru0345 i removed some copies from internal logic, and result is that NetPacketReader contains all data (with packet internal headers and other things). So just make one copy and then just recycle that packet (dataReader.Recycle())

I see, ok then.
For the future it might be good to have direct access though (along with some HeaderSize property or something so we know what part of the buffer is the actual payload).
For now making one copy won't be too bad, I'll make one copy, but it would be good to eliminate that as well since it is essentially "free" performance.

Note: you can set NetManager.AutoRecycle and then do not need to call Recycle() manually.

Note: you may set NetManager.AutoRecycle = true and then you do not need to call Recycle() manually.

https://docs.microsoft.com/en-us/dotnet/api/system.arraysegment-1 ?

Yeah, having the payload available through an ArraySegment would actually solve all those problems!

@rikimaru0345 you can access NetPacketReader bytes by index - reader[0] like in array segment.

@rikimaru0345 well i made some changes. You now have raw buffer and offset and user data size https://github.com/RevenantX/LiteNetLib/commit/66dd1d34355c265b861fbdff44b92b121e3610a9

Awesome, thank you!

@rikimaru0345 sorry there was bug (offset always 0))) That fixed in
960801f


Question: Is the Event_Name field required for AT4DX_Message__e and AT4DX_Immediate_Message__e?

Platform Event - Subscription records allow Matcher Rules without Event Name.  However, the Event Name field is listed as required = true on AT4DX_Message__e and AT4DX_Immediate_Message__e.
Is it intentional to have Event Name set as required by default?

Yes, this is intentional. The idea is that your subscription can be "wider" than the scope of a single event. So you could write a subscription that just matches on the event bus without any regard for the name of the events being processed by that event bus. It is recommended that you provide every event with a meaningful name, even if you are using one of the wider subscription scopes. That way in the future if you ever need to "tighten" an event subscription, you aren't left in an awkward spot.


Add Volume to available indicators in simulation

Now it is possible that the user add this at the UI


assessment

Need more time!

1.25 of 6 (-0.5 on Q1, -0.25 on Q2)
Definitely would encourage you to resubmit this one. Let me know if you get stuck - happy to answer questions.


Error when inserting input with validation from controller

We insert a html via controller into our view (I know it's bad...) like so:
// rule in rules...

// ctrl, for each rule...
// in rule.parameterInputs, we store the input...

          '<input class="form-control form-control-inline"' +
          'ng-model="' + modelName + '"' +
          'name="parameterInput' + parameter.id + '"' +
          'validation="required"' +
          '>'

Html output, at runtime
<input class="form-control form-control-inline ng-pristine ng-untouched ng-valid ng-scope" ng-model="rules[0].parameters[1].value" name="parameterInput1" validation="required">

Produces the error for each input:
TypeError: Cannot read property 'getAttribute' of null
    at x (http://localhost:6040/bower_components/angular-validation-ghiscoding/dist/angular-validation.min.js:10:6696)
    at y (http://localhost:6040/bower_components/angular-validation-ghiscoding/dist/angular-validation.min.js:10:5543)
    at new _ (http://localhost:6040/bower_components/angular-validation-ghiscoding/dist/angular-validation.min.js:10:13491)
    at link (http://localhost:6040/bower_components/angular-validation-ghiscoding/dist/angular-validation.min.js:9:3072)
    at invokeLinkFn (http://localhost:6040/bower_components/angular/angular.js:8652:9)
    at nodeLinkFn (http://localhost:6040/bower_components/angular/angular.js:8152:11)
    at compositeLinkFn (http://localhost:6040/bower_components/angular/angular.js:7543:13)
    at publicLinkFn (http://localhost:6040/bower_components/angular/angular.js:7418:30)
    at compile.A (http://localhost:6040/bower_components/angular-translate/angular-translate.min.js:6:17275)
    at http://localhost:6040/bower_components/angular-translate/angular-translate.min.js:6:16950 <input class="form-control form-control-inline ng-pristine ng-untouched ng-valid ng-scope" ng-model="rules[47].parameters[0].value" name="parameterInput78" validation="required">

Another question: is it possible disable the input field based error messages below an input field? I only want to use the summary above the form, not the feedback for each input field. Thanks!

Figured it out, this error comes from not having a form element around the inputs:

Seen your post and I'm reopening it because I see some benefits here.
1- I fixed the getAttribute of null, so that it doesn't throw an error from my code anymore
2- For the question of disabling error messages below inputs... it's not currently in play but I'm adding it to the Global Options you can set
In both cases, this will be available in the next version coming soon.

Added a new Global Options of hideErrorUnderInputs, make it True if you just want to use Validation Summary as you mentioned. Wiki - Global Options
Pushed in latest version 1.4.14

Thanks for all the changes! Great to have this added. Would it be possible to disable error under one specific input rather disabling it globally? Like silently validating an input without error feedback (summary would give the error message)


Add prettier_d fixer path

Add prettier_d to prettier bin lookup

Could probably use a test, but this looks fine to me.

Cheers! :beers:

Will ale check for prettier_d or eslint_d that are installed globally with Yarn? I can submit a quick PR if this isn't the case.

No, but you can change your settings to point to that executable with the _executable and _use_global options. I recommend installing everything locally in node_modules.

Thanks for the info! I mistakenly thought that 'node_modules/.bin/prettier_d', was the global path that ale looks at, so I was going to add yarn's global path to the prettier fixer file (since I use yarn for global package installations).
Thanks for clearing that up for me :)


Error: This element is not accepted when parsing SVG Element

Hi,
I am trying to parse an SVGRectangleElement to the lib but is not supported.
It gives the Error: This element is not accepted.
This is the element I am trying to parse into the library.
 <rect id="rect_1"            class="ra-shape rect"            style="stroke: rgb(255, 0, 0); stroke-width: 1; stroke-opacity: 1; fill: rgb(175, 41, 76); fill-opacity: 1; pointer-events: all;"> </rect>
NOTE: the element is in an inline SVG which resides on the iFrame element in an Angular project.
Setup:

Imported the library in the angular.json file after npm i plain-draggable.
In the component header declared the library type:
declare const PlainDraggable: any;
Created The draggable:
const draggable = new PlainDraggable(handle);

plain-draggable v2.5.14
Angular v12.1.1
typescript v4.2.4
Thank you very much.

Hi @ishanuda, thank you for the comment.
Of course SVG is supported by the library.
For example: https://jsfiddle.net/7w2o1ed5/
Maybe your code failed to get the element. Check the value by e.g. console.log(handle).

Hi,
Thank you for the example.
Yes, the element I commented on above is the console,log output.
But I think it is because the element belongs to the SVG which is in the iFrame.
The library can not get to the element may be.
Still need to investigate what is going wrong with it.
However, when changing the XY attributes of the element using vanilla JS the element moves.
So that shows the element is having no issue.
Thank you very much.

Do you mean that the console.log printed the element? Also, did you write the console.log in the same place as new PlainDraggable?
If so, the issue is unrelated to <iframe> because the security-blocking affects the getting the element.
The console.log printed an element because the element was already got. If the getting the element was failed, the console.log never print the element.
Also, PlainDraggable never gets an element itself, therefore you have to pass an element to PlainDraggable. That is, something before new PlainDraggable has problem, and invalid argument was passed to PlainDraggable, then the error was thrown.

Hi, Thank you for the explanation.
Here is the code block that gives the error.

declare const PlainDraggable: any;

@Injectable()
export class ShapePainter implements OnDestroy {

  // ... more code
  private initShapeInteraction(): void {
    // .... more code
    const handle = this.shape.getDragHandle() as SVGElement;
    this.logger.debug('handle', handle); // <-- print the element and it is there (can manipulate with vanilla JS)
    const draggable = new PlainDraggable(handle); // <-- gives the error
  }

}

NOTE: the shape is a class that is having the original rect element and the drag handle element (also a rect).
When the rectangle has a fill color the element itself is used for dragging.
When the rectangle is having only the stroke then there is a shadow element as a handle for dragging the element.
Thank you very much.

If PlainDraggable is loaded into other than a document that has target draggable element, load it in the target document.

No reply came, then this abandoned issue is closed.


flask_restful.handle_error handles errors which have registered handlers in flask.app

I have been developing REST API using amongst others following Python packages:
Flask==1.0.2
Flask-RESTful==0.3.7
Flask-JWT-Extended==3.14.0

I am having problems in production with my API, when access token is expired server returns 500 unknown error instead of 401. In development and test environments everything works fine.
After searching for similar issues, I've seen a lot of recommendations for setting Flask config value of PROPAGATE_EXCEPTIONS (which is True by default in development and debug environments) to True in production, which I don't feel that is the right thing to do although it solves that problem, since all unhandled exceptions would not be caught properly.
After a little bit of debugging of Flask and Flask-RESTful I've noticed following:

Flask-JWT-Extended (and probably a lot of other packages) register their exception handlers with Flask API error pattern
When it throws e.g. SignatureExpiredError, Flask-RESTful handle_error method is called and its else block catches SignatureExpiredError and returns 500 error to the API consumer:

       if not isinstance(e, HTTPException) and current_app.propagate_exceptions:
            exc_type, exc_value, tb = sys.exc_info()
            if exc_value is e:
                raise
            else:
                raise e

        headers = Headers()
        if isinstance(e, HTTPException):
            code = e.code
            default_data = {
                'message': getattr(e, 'description', http_status_message(code))
            }
            headers = e.get_response().headers
        else:
            code = 500
            default_data = {
                'message': http_status_message(code),
            }

If we enable PROPAGATE_EXCEPTIONS flag, Flask-RESTful will re-raise exception and leave Flask's handle_user_exception method to do the job. As we can see, it will try to find appropriate registered handler, and use its logic to handle the exception:

        if (
            (self.debug or self.config['TRAP_BAD_REQUEST_ERRORS'])
            and isinstance(e, BadRequestKeyError)
            # only set it if it's still the default description
            and e.description is BadRequestKeyError.description
        ):
            e.description = "KeyError: '{0}'".format(*e.args)

        if isinstance(e, HTTPException) and not self.trap_http_exception(e):
            return self.handle_http_exception(e)

        handler = self._find_error_handler(e)

        if handler is None:
            reraise(exc_type, exc_value, tb)
        return handler(e)

Otherwise code will fall through to Flask's handle exception method and it will also return 500 internal server error response to API consumer, except in case PROPAGATE_EXCEPTIONS flag is set to True, in which case it will not be handled:
       exc_type, exc_value, tb = sys.exc_info()

        got_request_exception.send(self, exception=e)
        handler = self._find_error_handler(InternalServerError())

        if self.propagate_exceptions:
            if exc_value is e:
                reraise(exc_type, exc_value, tb)
            else:
                raise e

        self.log_exception((exc_type, exc_value, tb))
        if handler is None:
            return InternalServerError()
        return self.finalize_request(handler(e), from_error_handler=True)

I was wondering, why Flask-RESTful catches all non-HTTP exceptions as well and converts them to 500 internal server error responses?
Wouldn't it be better to leave it to the Flask to try to handle it properly if possible, and it will anyway return 500 internal server error if it can't be handled? And that way it wouldn't break functionality of any other extensions.
Maybe first part of Flask-RESTful handle_error method could look something like this:
       got_request_exception.send(current_app._get_current_object(), exception=e)
        if not isinstance(e, HTTPException) or current_app.propagate_exceptions:
            exc_type, exc_value, tb = sys.exc_info()
            if exc_value is e:
                raise
            else:
                raise e

        headers = Headers()
        if isinstance(e, HTTPException):
            code = e.code
            default_data = {
                'message': getattr(e, 'description', http_status_message(code))
            }
            headers = e.get_response().headers

This is just a quick idea, and it would probably require more work with registering of error handlers registered with Flask-RESTful with Flask instead, but I just want to hear your opinions about this.

Hi, any update on this?


Connecting react with rails

In this PR i connected React with Rails
link to the last PR

@SaveryIV, I kindly suggest that you please fix your rubocop linters and add the link to your previous pull request in this pull request description.

@SaveryIV, I kindly suggest that you please fix your rubocop linters and add the link to your previous pull request in this pull request description.

I fix the linters and share link with the last PR


Is it a typo?

Context:
Is it a typo?
cargo fmt add the end -> cargo fmt at the end
Reference to a related issue in the repository.
@FloVanGH
Contribution checklist:

[ ] Add documentation to all public structs, traits and functions.
[ ] Add unit tests if possible
[ ] Describe the major change(s) in the CHANGELOG.MD
[ ] Run cargo fmt to make the formatting consistent across the codebase
[ ] Run cargo clippy to check with the linter

He sit is. Thank you.


[Testerina] Legacy function mocking throws java.lang.ClassNotFoundException

Description:
When using the legacy function mocking, the feature fails with a ClassNotFoundException. However, when used along side with the new function mocking, the issue does not arise.
There seems to be a problem when loading classes for the legacy function mocking when not used with any other mocking feature.
A temporary workaround to this problem if you need to use legacy function mocking is to make use of the new function mocking as well in the same file so that the classes get loaded properly.
Steps to reproduce:
Simply use the legacy function mocking
test:Mock {
    functionName : <functionName>
}
public function functionNameMock() {
    // ... mock implementation
}

Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Must test fix with the following scenario : https://github.com/ballerina-platform/ballerina-lang/issues/36585
Seems to be the same case

The fix has been added to 2201.1.x and 2201.2.x. Hence closing.


242 NPSP localized labels

Localized labels. The previously escaped single and double quotes were reverted back, probably because of the cli tool update. That should not be critical for the build
Critical Changes
Changes
Issues Closed
Community Ideas Delivered
Features Intended for Future Release
Features for Elevate Customers
New Metadata
Deleted Metadata

Have gotten the sign off that this can be merged in. As mentioned already there were some localization specific unit tests that came up after running the entire unit test suite. It has been determined it's nothing blocking, just mainly around specific string-based values in English vs. Other languages. An example is:
Message: System.AssertException: Assertion
                    Failed: The view state should retrieve the correct
                    Automation Lapsed Status: Expected: Lapsed, Actual:
                    Écoulé

This has been documented in a work item but there is no urgency to address in terms of blocking.


Add SlugValidator to StepByStepPage model

The Modelling Services team have been working on implementing the Step by step publishing tool.
To prevent users from creating slugs that have already been taken, we are using the SlugValidator as part of our validations on the StepByStepPage model.
Trello card: Add SlugValidator in Collections Publisher

@sihugh I believe I've addressed your comment.


Ping URL is Malformed

In the sentence describing the required URLs, the ping hyperlink's URL is malformed.
It is currently:
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/%5Bhttps://cdn.x.cp.wd.microsoft.com/ping
When it should be
https://cdn.x.cp.wd.microsoft.com/ping

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

ID: d7a3b63b-afc5-1b25-3a30-e75c788f4a93
Version Independent ID: 85498c85-fe13-fead-3bac-44db5614db0d
Content: Microsoft Defender ATP for Mac
Content Source: windows/security/threat-protection/windows-defender-antivirus/microsoft-defender-atp-mac.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@officedocsbot assign @mypil

@LanceMcCarthy - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@LanceMcCarthy - PR #4403 has been created to fix and close this issue once the PR is merged.
Thank you for your contribution to make the docs better! Much appreciated!


[py/scripts] Add size_script.py

$ python3 -m util.py.scripts.object_size --configs riscv32 //sw/device/silicon_creator/rom:rom_with_fake_keys_fpga_cw310.elf

General Question: this seems to initiate a general organization of all python scripts in util/ by having  structure util/py/... as a lot of extra directories are added for just this tooling (which would make more sense if there was a plan to move things around). Is there such a plan?

General Question: this seems to initiate a general organization of all python scripts in util/ by having structure util/py/... as a lot of extra directories are added for just this tooling (which would make more sense if there was a plan to move things around). Is there such a plan?

Yes, please see #17212

@dmcardle the previous push didn't include my logging_ -> ot_logging change. The last push should fix that.

Thanks for the last commit @dmcardle, I thought it would require some more thought -- thanks for explaining the lock file.
Merging this now since all lint checks passed and nothing else depends on this script.


--write-mode=diff panics when TERM=dumb

When TERM=dumb, rustfmt --write-mode=diff panics:
$ TERM=dumb rustfmt --write-mode=diff test.rs
Diff in test.rs at line 29:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotSupported', ../src/libcore/result.rs:788
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I can get around this by piping through cat:
$ TERM=dumb rustfmt --write-mode=diff test.rs | cat
Diff in test.rs at line 29:
         Command::new("sleep")⏎
             .arg("1")⏎
             .status()⏎
-           .unwrap_or_else(|e| panic!("failed to execute process: {}", e));⏎
+            .unwrap_or_else(|e| panic!("failed to execute process: {}", e));⏎
     }⏎
 }⏎

@svend could you give the output of rustfmt --version?

Never mind, fixed in #1142.


Error when editing markdown

Description of your problem
What steps will reproduce the problem?

Open a File with .md extension (I'm not sure if happen with other extensions)
Press enter

What is the expected output? What do you see instead?
Some lines will throw an error
Please provide any additional information below
Traceback (most recent call last):
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2695, in keyPressEvent
    cmt_or_str = self.in_comment_or_string()
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2392, in in_comment_or_string
    current_color = self.__get_current_color()
  File "/home/rlaverde/code/spyder/spyder/widgets/sourcecode/codeeditor.py", line 2384, in __get_current_color
    color = current_format.foreground().color().name()
AttributeError: 'NoneType' object has no attribute 'foreground'

Versions and main components

Spyder Version: 3.x and master branch

Probably happens with markdown because we don't have a color scheme associated with it.


Doesn't build on NodeJS 19.0.1

Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md and try your command again.
Requests for help with node-sass are very common. Please be aware that this package is deprecated, you should seek alternatives and avoid opening new issues about it here.

Node Version: v19.0.1
Platform: Linux Ubuntu SMP x86_64 GNU/Linux
Compiler: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
Module: re2

Verbose output (from npm or node-gyp):
➤ YN0008: │ esbuild@npm:0.14.54 must be rebuilt because its dependency tree changed
➤ YN0009: │ re2@npm:1.17.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-6a01c75b/build.log)
➤ YN0000: └ Completed in 24s 261ms
➤ YN0000: Failed with errors in 46s 646ms
➜  calckey git:(develop) ✗ cat /tmp/xfs-6a01c75b/build.log
# This file contains the result of Yarn building a package (re2@npm:1.17.7)
# Script name: install

Trying https://github.com/uhop/node-re2/releases/download/1.17.7/linux-x64-111.br ...
Trying https://github.com/uhop/node-re2/releases/download/1.17.7/linux-x64-111.gz ...
Building locally ...

><EMAIL_ADDRESS>rebuild
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 5.4.0-122-generic
gyp ERR! command "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/misskey/calckey/node_modules/.store/re2-npm-1.17.7-02f9dd5be3/node_modules/re2
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.0.1

><EMAIL_ADDRESS>rebuild
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 5.4.0-122-generic
gyp ERR! command "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/misskey/calckey/node_modules/.store/re2-npm-1.17.7-02f9dd5be3/node_modules/re2
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
➜  calckey git:(develop) ✗  "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR!

This seems to happen randomly. It worked for me after ~3-4 tries, unsure of what's wrong and whether it's something specific of node-gyp or something with nodejs.org itself not liking Node.js v19.


Update to outdated files in the dev-1.17-ko.1

28 out of 28 files to be modified

[x] content/ko/_index.html
[x] content/ko/docs/concepts/architecture/cloud-controller.md
[x] content/ko/docs/concepts/architecture/nodes.md
[x] content/ko/docs/concepts/overview/what-is-kubernetes.md
[x] content/ko/docs/concepts/services-networking/endpoint-slices.md
[x] content/ko/docs/concepts/workloads/controllers/daemonset.md
[x] content/ko/docs/concepts/workloads/controllers/statefulset.md
[x] content/ko/docs/concepts/workloads/controllers/ttlafterfinished.md
[x] content/ko/docs/concepts/workloads/pods/pod-topology-spread-constraints.md
[x] content/ko/docs/reference/_index.md
[x] content/ko/docs/reference/glossary/cloud-provider.md
[x] content/ko/docs/reference/glossary/etcd.md
[x] content/ko/docs/reference/kubectl/cheatsheet.md
[x] content/ko/docs/reference/using-api/client-libraries.md
[x] content/ko/docs/setup/_index.md
[x] content/ko/docs/setup/best-practices/certificates.md
[x] content/ko/docs/setup/learning-environment/minikube.md
[x] content/ko/docs/setup/production-environment/container-runtimes.md
[x] content/ko/docs/setup/production-environment/tools/kops.md
[x] content/ko/docs/setup/production-environment/windows/user-guide-windows-containers.md
[x] content/ko/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md
[x] content/ko/docs/tasks/access-application-cluster/configure-dns-cluster.md
[x] content/ko/docs/tasks/administer-cluster/cluster-management.md
[x] content/ko/docs/tasks/manage-kubernetes-objects/kustomization.md
[x] content/ko/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
[x] content/ko/docs/tasks/run-application/horizontal-pod-autoscale.md
[x] content/ko/docs/tasks/tools/install-minikube.md
[x] content/ko/docs/tutorials/configuration/configure-redis-using-configmap.md

from #18049
/language ko

/test

/test all

/assign

/assign @seokho-son

@seokho-son 리뷰 감사합니다. 제안해주신 부분은 확인해서 반영했습니다.

Thank you!
/lgtm
/approve
cc @gochist
This PR has been approved !