Little traffic being sent to non active lb_endpoint

Title: Little traffic being sent to non active lb_endpoint
Description:
Hello Envoy Team!
I'm using envoy version 1.27.1 and I am having a strange behaviour.
I have a cluster wirh 2 lb_endpoints, one is with priority equals to 0 and another equals to 1, with that in mind I think 100% of all HTTP request should go to the endpoint with the lower priority and the other one should be used as a fallback in case for instance a health check fails for the endpoint with the lower priority.
I am scrapping the metrics generated by envoy and plotting it in Grafana. Sometimes the endpoint with the high priority receives some requests and I cannot see any sign of unhealthy action. For instance, for the total of 30k requests in the active endpoints 2 requests go to the fallback endpoint. I'm having trouble to identify why envoy is sending requests for something that is 100% healthy all the time.
I'm running the app in kubernetes (aws eks) and the outlier dectection is disabled so I only have active healthchecking. In the front I have a AWS Elastic Load Balancer.
What could be possible scenarios where Envoy sends traffic to inactive endpoints?
If you need anymore info please reach me and thanks a lot for your time!

I'm running the app in kubernetes (aws eks) and the outlier dectection is disabled so I only have active healthchecking. In the front I have a AWS Elastic Load Balancer.

Is the traffic you're setting at the fallback health check traffic or application traffic?

Application traffic.

I think that can be something related do the DNS resolution.
By the way  we are using STRICT_DNS and as mentioned here:
service_discovery#arch-overview-service-discovery-types-strict-dns
"If multiple DNS names resolve to the same IP, health checking will not be shared. This means that care should be taken if active health checking is used with DNS names that resolve to the same IPs: if an IP is repeated many times between DNS names it might cause undue load on the upstream host."
Maybe when the elastic balancer is being scaled AWS behind the scenes AWS  do something with the IP list from for the balancer DNS.
Until envoy do another DNS resolution some traffic will be sent to non active endpoint.
Any thoughts about it?

@cpakulski
Sorry to bother you again man, but do you have any insights about what I detailed above? Also if you are not the expert about that part, do you know anyone who could give me some thoughts about it?
This is super critical to me because we are running envoy in a application with avg 20k tps and the stakeholders are not happy to see traffic in a endpoint that is inot supposed to receive load. (active and passive health check are not setting as unhealthy)

How many IP addresses are involved here in total (across 2 priorities)?
Since you noted that you use DNS, it would be helpful to check if a fallback endpoint does not become active endpoint for a short time? Or maybe during update priority zero becomes empty for a short time and traffic shifts to priority 1 for that short time. I do not know, just guessing. Can you monitor Envoy's clusters: https://www.envoyproxy.io/docs/envoy/latest/operations/admin#operations-admin-interface-clusters
and maybe something pops up there.
What load balancer type is used in those clusters?

@cpakulski Thanks for reaching out!
We are using AWS ALB Ok I will monitor the /clusters. Is there anything in particular that I should look?

I think that sending traffic to fallback IPs happens during transitory state (maybe when DNS refresh happens) which lasts for a short time. I am guessing. What is rate of your requests? Those few requests which go to fallback IPs, what percentage of total traffic do they represent? Can you find out if there is any regularity when traffic goes to fallback IP?, say every X number of secs?

@cpakulski
I have in average 20k TPS and less then 1% is going to the fallback. Let's say 3 only three requests. (super little)
What we could notice is that when the traffic is high, AWS scale out and in the ALB and these requests being sent to the fallback happen at this moment.
Is not tied to time interval is more like high peaks of traffic.


I user android camera recorder video ,then user this project to transcode the video, I meet this errro:  Fatal signal 11 (SIGSEGV) at 0x00000000

my step：

recorder video profile :
mProfile = CamcorderProfile.get(CamcorderProfile.QUALITY_480P);
mProfile.fileFormat = MediaRecorder.OutputFormat.MPEG_4;
mProfile.videoCodec = MediaRecorder.VideoEncoder.H264;
mProfile.audioCodec = MediaRecorder.AudioEncoder.AAC;
mProfile.videoFrameRate = 15;
mProfile.videoBitRate = 1200000;
create video file :  /sdcard/demo.mp4
run  ffmpeg -y -i /sdcard/demo.mp4  -vf crop=iw/3:ih:0:0 -strict -2 /sdcard/demo2.mp4

It's perfect for the first  time. and not kill app,  do the second . the app is crash.
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ ffmpeg
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ -version
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ reset_record done!
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Splitting the commandline.
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Reading option '-version' ...
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ matched as option 'version' (show version) with argument ''.
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Finished splitting the commandline.
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Parsing a group of options: global .
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Applying option version (show version) with argument .
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ reset_record done!
07-03 00:36:52.363  20375-20375/com.demo D/ffmpeg-jni﹕ Successfully parsed a group of options.
07-03 00:36:52.363  20375-20375/com.demo A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 20375 (com.demo)

Run a same transfer command two times will bring APP to crash.

Have bee fixed in v0.1.7, please update your dependency as follow,
dependencies {
    compile 'cn.dxjia:ffmpegexecutor:0.1.7'
}

If still have problem, feel free to let me know.


Error building mariana-trench

Error building Mariana Trench
Logs
[  2%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/Constants.cpp.o
[  2%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/EventLogger.cpp.o
[  2%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/Dependencies.cpp.o
[  4%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/ExtraTrace.cpp.o
/workdisk/aditya/tools/mariana-trench/source/Constants.cpp:62:1: error: ambiguating new declaration of ‘const std::unordered_map<std::__cxx11::basic_string<char>, unsigned int>& marianatrench::constants::get_intent_receiving_method_names()’
   62 | get_intent_receiving_method_names() {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workdisk/aditya/tools/mariana-trench/source/Constants.cpp:8:
/workdisk/aditya/tools/mariana-trench/build/header-tree/mariana-trench/Constants.h:48:1: note: old declaration ‘const std::unordered_map<std::__cxx11::basic_string<char>, std::pair<unsigned int, marianatrench::Component> >& marianatrench::constants::get_intent_receiving_m
ethod_names()’
   48 | get_intent_receiving_method_names();
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  4%] Building CXX object CMakeFiles/mariana-trench-library.dir/source/Feature.cpp.o
make[2]: *** [CMakeFiles/mariana-trench-library.dir/build.make:300: CMakeFiles/mariana-trench-library.dir/source/Constants.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:91: CMakeFiles/mariana-trench-library.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

There is a difference in declaration and return type for the function get_intent_receiving_method_names in https://github.com/facebook/mariana-trench/blob/93b7d5c2d147e127de9e6a64db7d874fda8a2310/source/Constants.h#L47-L48
and
https://github.com/facebook/mariana-trench/blob/93b7d5c2d147e127de9e6a64db7d874fda8a2310/source/Constants.cpp#L61-L67


Ensure lb has latest source

OCD build https://ocd.appscale.com:8080/job/Daily Build/4246/
faststart build https://ocd.appscale.com:8080/job/Euca-Faststart/1843/console

OCD build https://ocd.appscale.com:8080/job/Daily Build/4254/


alternative for sendMessage

Hi. I want to send my listener invite for join me. I looked the files and i found sendMessage() func but its deprecated. Is there any alternative?

if you want to sendMessage, you can use our RTM SDK

thank you!
https://github.com/AgoraIO/agora-react-native-rtm
On Wed, Mar 11, 2020 at 5:41 AM Arthas<EMAIL_ADDRESS>wrote:

if you want to sendMessage, you can use our RTM SDK
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/syanbo/react-native-agora/issues/136?email_source=notifications&email_token=ALMDFPVNDQHGBDXUDHBBOM3RG326LA5CNFSM4LE74ID2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEON5JRQ#issuecomment-597415110,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMDFPQZLBVMPAKRQ46BSITRG326LANCNFSM4LE74IDQ
.

thank you!
https://github.com/AgoraIO/agora-react-native-rtm


Add a nix flake

So that scrolls can be built with nix build and accessible by other projects using nix, namely cardano-world.
cc @blaggacao

hi @Pacman99 this is awesome! I'm not a nix expert, but it LGTM.
My only concern / question is: how do we keep in sync the version of the Rust crate declared in the cargo.toml file with the version declared in the flake? Do you know if there's a way to automate it?
I would like to avoid as much manual steps required for publishing a new version.

That is a great point, I just updated the flake to use the nix crane library, which imports the cargo toml and lock file to build the package. Now nothing has to be updated on the nix side!

one of the smallest flakes I've seen :rocket: :+1:


[docs] Install from source

From an internal discussion, it may make more sense to split off compilation instructions into it's own section because it's pretty much the same on Linux/Windows, and so we can add more details. Feel free to discuss and suggest what we can add, and we can iterate on this PR! 🙂
cc @matthewdouglas @akx @Titus-von-Koeller if you have any ideas about other things we can add here

Some info we can add regarding validated compilers.
The v0.43.0 release is known to build on:
Windows: MSVC 19.38+ (VS2022 17.8.0+) with CUDA 11.7-12.4
Linux: GCC 11.4 (with CUDA 11.7-12.3), 13.2 (with CUDA 12.4+)
Other notes:

Linux: Expected CUDA Toolkit compatibility is currently with 11.1+.
Linux: GCC >= 7.3 recommended. GCC >= 6 is required.
Linux: CUDA Toolkit >= 11.4.1 is required when building with GCC >= 11.
Linux: CUDA Toolkit >= 12.0 is required when building with GCC >= 12.
Linux: CUDA Toolkit >= 12.4 is required when building with GCC >= 13.
Windows: CUDA Toolkit >= 11.6 is required when building with MSVC 19.30+ (VS2022).

Thanks, I've added that info as a table in the installation

Great, thank you all, this is looking very good. I'm happy that we have more details here now, I think this is important, so that we properly cover the edge-cases.


AM1-BCC charging fails on carboxylates with newer versions of antechamber

Describe the bug
If you use a newer version of antechamber than the one packaged with the toolkit then the am1bcc pathway fails
To Reproduce
Example molecule attached. This parameterises fine with the antechamber packaged with the toolkit, but if you instead use antechamber from AmberTools 19, the second call to antechamber on line 2753 of toolkits.py (in compute_partial_charges_am1bcc) fails.
molecule.sdf.gz
The reason is that the newer versions of antechamber include the AC Doctor functionality, which leads to antechamber being unable to read the mol2 files that it writes for caboxylates: it writes both the C-O bonds as single, but then complains on read that the carbon is only 3-valent.
Output
Welcome to antechamber 19.0: molecular input file processor.
acdoctor mode is on: check and diagnose problems in the input file.
-- Check Format for mol2 File --
Status: pass
-- Check Unusual Elements --
Status: pass
-- Check Open Valences --
Status: pass
-- Check Geometry --
for those bonded
for those not bonded
Status: pass
-- Check Weird Bonds --
/home/mark/gui/trunk/buildDependencies/AmberTools/linux-x86_64/bin/antechamber: Fatal Error!
Weird atomic valence (3) for atom (ID: 17, Name: C14).
Possible open valence.

There are two possible fixes:

Specify "-dr n" to the second antechamber call
Use ac as the intermediate file format between the two calls rather than mol2

See also #130
Though this suggests a relatively simple fix that will solve both, I think: Switch to the newer antechamber while also changing how antechamber is called.
Tagging @j-wags and @trevorgokey

@j-wags @mark-cresset
Hi, I am having the same issue with AmberTools 19, and "-dr n" option didn't fix it for me; I have followed the other threads mentioned above as well, but couldn't find any solution, other than to switch back to an older version of AmberTools.

I'm able to charge the original example using the latest version, which uses ambertools 19.11 from conda-forge:
>>> from openforcefield.topology import Molecule
>>> m = Molecule.from_file('molecule.sdf')
>>> m.total_charge
-1
>>> m.compute_partial_charges_am1bcc()
>>> m.partial_charges
Quantity(value=array([-0.15424001,  0.05277   , -0.17367999, -0.04852   , -0.09211   ,
       -0.16841   , -0.07853   , -0.09747   ,  1.51713014, -0.41382   ,
       -0.1612    ,  0.66460001, -0.44679999, -0.7723    ,  0.0754    ,
        0.0295    ,  0.91206998, -0.65297997, -0.65297997, -0.63264   ,
       -0.83274996, -0.01576   ,  0.18381   , -0.83274996, -0.10109   ,
       -0.16841   , -0.07853   , -0.1779    , -0.17925   , -0.13185   ,
        0.05963   ,  0.05963   ,  0.05963   ,  0.13922   ,  0.16003001,
        0.15674999,  0.14692   ,  0.37865999,  0.44722998,  0.18339001,
        0.16755   ,  0.15674999,  0.14692   ,  0.14906999,  0.11068   ,
        0.10663   ]), unit=elementary charge)

Following this issue 👀

@jchodera
I did following as per the thread and tested on the molecule provided in the thread but still no luck: Is there something else I need to change?
conda install ambertools=19.11 -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: done
All requested packages already installed.

from openforcefield.topology import Molecule
m = Molecule.from_file('molecule.sdf')
m.total_charge
-1
m.compute_partial_charges_am1bcc()
Exception: Antechamber/sqm partial charge calculation failed on molecule 5KR (SMILES [H][C]1=CC=CC=[C]1[H])

@jchodera #Solved
My bad, I reinstalled the openforcefield, and had forgotten to put "-dr no", it works now with ambertools=19.11!
Thanks a lot.

We think this is addressed!
Please re-open if there are still lingering issues.


fix(refinementList): Remove singleRefine attribute

Fixes #220
This also more explicitly set the default operator to or.

Anyone?

Let me have a look!

Perfect! :+1:

YAY. No big deal but try to always set "BREAKING CHANGE". It will be a good habit once we are in production :)

And even right now, for the next changelog, it will be easy if we have "breaking change" lines to talk with integrations people

Yes, you're right sorry. I've added a comment in my default git commit message so I remember it :)


Update frameworks.md

Add graphql-yoga to list of frameworks based on Express.

Thanks @nikolasburk. Looks like a cool project!

pull


PLATFORM-154 Add Pagination

need to close this as the changes are moved to PR: https://github.com/Instamojo/Instamojo-rb/pull/4


Add integration point for posting to backend

The userReducer makes it easier to capture events and pipe them somewhere. The original post to create an order happened on loading /checkout/complete, but now that should move to the reducer. Removing Recoil and using an event bus made the code cleaner so it makes sense to delegate backend calls to the reducer vs. separating them out.
AC:

[ ] Add posts to the gateway in /data/contexts/UserContext.js and refactor switch statement
[ ] Look at how to make calls to backend and gateway once page loads to update stale data since the page was statically generated.

Next Issue
There needs to be a way to check the state on page load. Initializing the user context is one touchpoint, but each route transition should also load something.

@alexfinnarn - I've pushed a develop/gateway-integration branch that has some of (maybe all of...?) the refactoring I mentioned this morning & configuration to run some debug Donor Actions just to make sure the communication is happening appropriately until I get the full Gift Basket flow plugged in. Feel free to take a look if you're so inclined.

@imkleats Alright looks good so far. Can you keep going with this issue to completion?
I guess completion would mean going through a traditional order from fund page to completion and sending data to the gateway, at least locally. I'm not sure with the private space what's needed to communicate, but I've been connecting giving-frontend to giving-backend on Heroku vs. running both locally for testing.
You can rewrite the Acceptance Criteria, but I would add one or more Cypress tests and then also a doc somewhere in /docs that explains the context, reducer, exposed public functions, and connection to the gateway in the style of onboarding a new developer to the project.
I've never done it, but you can mock API responses using an .intercept() command: https://docs.cypress.io/guides/guides/network-requests#Testing-Strategies


Error loading plugins

Hyprland version: Hyprland, built from branch main at commit 46997a764304366d772456c20b1c719960927aa7
Hyprbars, and I'd assume other plugins if I were using them, does not load on this version of Hyprland.
Error message: [hyprbars] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)

There's got to be a way to update the headers for hyprland-plugins to the current hyprland git commit in an automatic way.

Was able to update now.

Was able to update now.

And now with  branch main at commit 42ab06e7c84fed39b3f853f213ef2966f23baaa5 plugins are broken again.

you need to recompile your plugins with every update of hyprland.

Right, except the headers were not up to date. I just ran hyprpm update -n again and it worked but it wasn't working a half hour ago.

Just updated Hyprland to the latest git branch again and again getting a header version mismatch error.

I had to remove hyprbars, remove the repo, add the repo, then enable hyprbars again.
Finally worked. Wish that entirely reloading the repo and building the plugins again wasn't necessary.

hyprpm update should update the headers. If it doesn't, that's a bug in hyprpm and not these plugins.

If it doesn't, that's a bug in hyprpm and not these plugins.
Gotcha if this happens again I'll open an issue on Hyprland's github instead of here. Thanks!


Fix delayedWhileIdle default, updateStatus exception, minor docs issues

Apologies for the mega-PR; can split into multiple if that makes more sense.

The current best practice for Composer is to use the caret operator for SemVer-compliant libraries, which I'm guessing this one is, so a composer update will get any new non-breaking changes.
Could've set the default to null, but as of 4.2.2 (not sure if Android or Play Services version, probably the former) that would've delayed messages while idle, which would be a BC break here. With the default to false, a this PR is a patch rather than a major release.
For updateStatus(), looked like the \RuntimeException would've crashed the caller. Now, instead, it shows a useful error message, assuming the arg types are correct and the unsentRegIds var is indeed an array.
Docblocks now don't throw off red flags in PhpStorm...there were a few issues where params/returns weren't matching that are now fixed.
For the Message constructor, the evaluation of is_null() on '' meant that the default was to include the delayed_while_idle param and set it to false, rather than not include it in the request body at all. The associated commits for that clarify the behavior, so it's obvious that messages aren't delayed while idle.

Thanks for the contribution @iansltx.
I think the separate commits make enough sense, no need to make lots of PRs. I'm just going to split up your explanation a little for clarity.
I'll give it a review and let you know if I have any questions.

Left some feedback.

Thx; will ping when this is ready for review again.

Made these changes as part of some other work. delayWhileIdle now defaults to false.

Made these changes as part of some other work. delayWhileIdle now defaults to false.


Add link to a docker images garbage collector

Hi,
I have developed a tool listening docker events and cleaning images (and soon containers and volumes) a user did not run for a customizable period of time.
I thought it could be a good idea to link it here in case anyone would like to use it / evolve it

Thanks for the new tool @tjamet Looks really cool


Discussion: River pathway along which we want to calculate salt front location

@amsnyder:

The code that @ted80810 wrote to fetch the COAWST model output pulls in the pathway along which we should calculate salt front location from a csv file of coordinates that was provided to us by @salme146. This pathway is close to the shore, rather than in the middle of the channel or somewhere else. I am creating this discussion to flag this and possibly have more discussion about if this is the best place to calculate salt front location.

@amsnyder

@galengorski noted that an implicit assumption with modeling the salt front at a daily resolution for a single depth and a single location across the estuary is that within those parameters it is well mixed (or we care less about those differences).

@amsnyder

If we are doing our own calculations of salt front location using observed specific conductance data, these observations will most likely be coming from along the shore line. So perhaps the shoreline pathway is most appropriate to use for the COAWST model output too so that we maintain consistency.


Resubmit/Retry should update "Started" time

Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT
What happened: Resubmitting/Retrying a workflow doesn't update start time and the duration is not helpful in that case
What you expected to happen: Update start time when resubmitting/retrying a workflow
How to reproduce it (as minimally and precisely as possible): Resubmit/Retry a failed workflow
Environment:

Argo version:

$ argo version
argo: v2.1.0+a45bf1b
  BuildDate: 2018-03-07T10:26:25Z
  GitCommit: a45bf1b7558b3eb60ec65d02c166c306e7797a79
  GitTreeState: clean
  GoVersion: go1.9.4
  Compiler: gc
  Platform: darwin/amd64

Kubernetes version :

$ kubectl version -o yaml
clientVersion:
  buildDate: 2018-02-07T12:22:21Z
  compiler: gc
  gitCommit: d2835416544f298c919e2ead3be3d0864b52323b
  gitTreeState: clean
  gitVersion: v1.9.3
  goVersion: go1.9.2
  major: "1"
  minor: "9"
  platform: darwin/amd64
serverVersion:
  buildDate: 2018-01-18T09:42:01Z
  compiler: gc
  gitCommit: 5fa2db2bd46ac79e5e00a4e6ed24191080aa463b
  gitTreeState: clean
  gitVersion: v1.9.2
  goVersion: go1.9.2
  major: "1"
  minor: "9"
  platform: linux/amd64

For resubmit, startedAt should already be reset, since resubmit always creates a new workflow and I don't believe those fields are carried over. If it doesn't reset it it is a bug.
For retry, I actually believe it should not carry over the startedAt timestamp because there will exist nodes that occur before the workflow start time (if we reset it). This will in turn mess with the UI timeline view, which may rely on workflow.status.startedAt and node.startedAt for the correct rendering of the timeline.

Closing since current behavior is desired.


on Docker - error creating server listener: Address family not supported by protocol

Hi everyone,
I'm getting an error trying to run panamax in a docker container:
sudo docker run --rm -it -v /path/to/mirror/:/mirror --user $(id -u) -p8080:8080 panamaxrs/panamax serve /mirror
Running HTTP on [::]:8080
thread 'main' panicked at 'error binding to [::]:8080: error creating server listener: Address family not supported by protocol (os error 97)', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/warp-0.3.3/src/server.rs:213:27
I'm running Docker Docker version 20.10.9 on a RHEL8 server.
Any ideas?
Thanks,
Eyal

Docker issue - not related to panamax
it works when I'm running with:
panamax serve -<IP_ADDRESS> /mirror


Port Request: arblib

Arb is an arbitrary-precision library available at arblib.org. It's currently a pain to build and configure on windows.

In the hope that someone will implement this, here is the build procedure:
curl -fsS -o mpir.zip http://mpir.org/mpir-2.7.2.zip
7z x mpir.zip > NUL
rename mpir-2.7.2 mpir
cd mpir\build.vc14
msbuild.exe lib_mpir_gc/lib_mpir_gc.vcxproj /p:Configuration=Release /p:Platform=%PLATFORM% /p:PlatformToolset=v140 /verbosity:minimal
cd ..\..

curl -fsSL -o mpfr.zip https://github.com/BrianGladman/mpfr/archive/master.zip
7z x mpfr.zip > NUL
rename mpfr-master mpfr
cd mpfr\build.vc14
msbuild.exe lib_mpfr.sln /p:Configuration=Release /p:Platform=%PLATFORM% /p:PlatformToolset=v140 /verbosity:minimal
cd ..\..

curl -fsSL -o pthreads.zip https://github.com/BrianGladman/pthreads/archive/master.zip
7z x pthreads.zip > NUL
rename pthreads-master pthreads
cd pthreads\build.vc14
msbuild.exe pthreads.sln /p:Configuration=Release /p:Platform=%PLATFORM% /p:PlatformToolset=v140 /verbosity:minimal
cd ..\..

curl -fsSL -o flint2.zip https://github.com/fredrik-johansson/flint2/archive/master.zip
7z x flint2.zip > NUL
rename flint2-master flint2
cd flint2\build.vc14
msbuild.exe flint2.sln /p:Configuration=Release /p:Platform=%PLATFORM% /p:PlatformToolset=v140 /verbosity:minimal
cd ..\..

git clone https://github.com/fredrik-johansson/arb
cd arb
mkdir build
cd build
cmake ..
[build with cmake]

Two new packages will be required with the following CONTROL files:
Source: flint
Version: 2.5.2
Description: Fast Library for Number Theory
Build-Depends: mpir, mpfr

http://www.flintlib.org/flint-2.5.2.zip
Source: arb
Version: 2.11.1
Description: a C library for arbitrary-precision interval arithmetic
Build-Depends: flint

https://github.com/fredrik-johansson/arb/archive/2.11.1.zip

Portfile for flint2 is similar to https://github.com/Microsoft/vcpkg/blob/561cfe89e653aef903488f7af7d4d17cfb11a26c/ports/mpir/portfile.cmake
Portfile for arblib is similar to https://github.com/Microsoft/vcpkg/blob/561cfe89e653aef903488f7af7d4d17cfb11a26c/ports/mpfr/portfile.cmake


Document emptiness dependencies

We may not have these documented anywhere yet, should make it clear that there are dependencies on pkg-config, libisl-dev, and libgmp3-dev to get emptiness to compile for the first time.
sudo apt-get install pkg-config
sudo apt-get install libisl-dev
sudo apt-get install libgmp3-dev

Added pkg-config and libgmp3-dev as prereqs on the website


Adding 'Amount' column to the page.

YNAB actually accepts a 'secret' 7th column called 'Amount', which automatically adds to the Outflow and Inflow columns after importing.

@halloffame This is another way of dealing with #11. I didn't see that issue before I made the change (my new bank only does (bad) CSVs).


USB MSC Device Example (IDFGH-10935)

Answers checklist.

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

General issue report
Hi all,
I have a project that I need to check the msc eject action.
I'm trying to test the msc device example. I uesd the default code to test it but when I eject the msc in PC. There are nothing change. I still can't accesses the ESP MSC by application example. The states is "Storage exposed over USB". Do anyone know how to fix it?
Thanks.

Hello @Sotung96 ,
I assume that by 'eject' you mean 'disconnect'.
If you want to catch 'usb disconnect' events in your self-powered device, you must implement VBUS monitoring in your hardware. Please refer to this section of our docs : https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/api-reference/peripherals/usb_device.html#self-powered-device
You can also experiment with  software 'eject' in windows:

Clicking on 'Eject' in Windows should trigger the disconnect action in  you application


Adds compatibility with monk's enhanced journal

Description
Adds compatibility with Monk's enhanced Journal by adding a new class with different behaviour for single page journals.
Fixes #144
Fixes #163
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)

@Syrious thanks so much for the PR! I will pull it down and wrap a few tests around hopefully next few days/early next week, give it a test and get it out 🚀

I also tested it with foundry v12 and it works. In general, it is not advised to set "compatibility.maximum" in module.json unless it is definitively not working :)

Merging but not releasing just yet, will make some changes to compatibility hopefully tonight and get it released :)


[FEAT]: Create a fancy video to demonstrate the ARNEIS system

Description
As part of the documentation to be submitted to the OpenCV contest before the end of Phase 2 (#42) I believe it would be really good if we can manage to produce a short (3-5 minute) video demonstrating one relevant use-case with the full ARNEIS machine and web application.
Additional Information
On this particular task I believe the three of us (@alv67, @gteti and myself) really need some strong help from our friends...

@ALV67, @gteti : IMHO with https://www.youtube.com/watch?v=qHFRRHWtTqY this issue might be closed, WDYT?

The video is publicly available and referenced from the ARNEIS project page on GitHub


Function type inference

TypeScript Version:  3.9.2

Search Terms:
function type
Code
type GetKeys = <T>(obj: T) => (keyof T)[]
const keys: GetKeys = Object.keys

Expected behavior:
The last line should throw an error, cause string[] is not assignable to (keyof T)[]
Actual behavior:
No error
Playground Link:  https://www.typescriptlang.org/play/index.html?ssl=1&ssc=1&pln=2&pc=34#code/C4TwDgpgBA4hwGkIgM5QLxQDwBUB8AFAPYBGAVgFxQ4CUGeUBA1skQGbU0DaAugFABjIgDsUwKC1RU4iZGkwB5chAHAAdJJRA
Related Issues:
Maybe that https://github.com/microsoft/TypeScript/issues/38879

This is correct. Object.keys returns string[], not (keyof T)[].
See #37495 (and many many many more).

https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript

My question was not about why Object.keys has (obj: object) => string[] type, but ruther why (obj: object) => string[] is assignable to <T>(obj: T) => (keyof T)

Assignability to generic types substitutes any for unconstrained type parameters

@RyanCavanaugh thanks for the explanation, but why then does the code below raise an error?
https://www.typescriptlang.org/play/index.html#code/CYUwxgNghgTiAEYD2A7AzgF3kgRgK3AwGkQBPNALngApc8q7CBKeAXgD55MYBLFAcwDaAXQBQojKQAOCAOIhiZNG3gAeACrta+KupYcaAazJIAZvD0jRydFmPkq8xeRWMwztEA

@schusovskoy the definition you have there doesn't match Object.keys's definition

If I understand correctly there are next object types:
Object – is any object including primitives
{} – is the same as Object
object – any non primitive object
Object.keys has type
type Keys = {
  (o: object): string[]
  (o: {}): string[]
}

I guess it's the same as
type Keys = ((o: object) => string[]) & ((o: {}) => string[])

I thought it means that Object.keys is the function which can accept any non primitive object and returns array of string and also it's the function which can accept any object including primitives and returns array of string. So it looks like the second case covers the first one.
I thought that (o: {}) => string[] is equivalent to  ((o: object) => string[]) & ((o: {}) => string[]). But it's also not assignable to <T>(obj: T) => (keyof T)[]. So only intersection of the types is assignable.
I really want to understand how and why it's work like this. So can you help me with that please.

@MartinJohns @RyanCavanaugh Guys excuse me for my impatience but I can’t find any information, and it seems that you’re the only people who can help me.


Add ConfigurationToTSRwithTrajectoryConstraint

In preparation for #467, this PR contains the following update:

Add planner::dart::ConfigurationToTSRwithTrajectoryConstraint
Add planner::dart::CRRTConfigurationToTSRwithTrajectoryConstraintPlanner
Add planner_dart component and make relevant changes in CMakeLists files.

The last change is necessary because CRRTConfigurationToTSRwithTrajectoryConstraintPlanner needs to call planner_ompl, which needs to be built before this planner is compiled.
Testing
This PR passes existing unit tests. I'll add unit tests for this planner after the initial review.

Before creating a pull request

[x] Document new methods and classes
[x] Format code with make format

Before merging a pull request

[ ] Set version target by selecting a milestone on the right side
[ ] Summarize this change in CHANGELOG.md
[ ] Add unit test(s) for this change

I haven't thought about this very much, but I initially thought it might make sense to add trajectory constraints as a part of all Problems rather than as a specific planner that can deal with them. What do you think? (I guess part of the challenge is that we don't have an reusable component that can plan with those constraints, so I could see an argument that we should just be pragmatic and call this a separate planner type until we do.)
Also, I think it would be good to separate the new planner_dart component into its own PR.

Thanks for the comments @brianhou !
I created another PR #567 as you suggested.

it might make sense to add trajectory constraints as a part of all Problems rather than as a specific planner that can deal with them. What do you think? (I guess part of the challenge is that we don't have an reusable component that can plan with those constraints, so I could see an argument that we should just be pragmatic and call this a separate planner type until we do.)

Yep I agree on both of these. I mainly chose this way for the latter challenge you mentioned and also because this is the only constrained planning problem type we use now. I think it's worth revisiting for a more general solution once we have more of these constrained planning problem types.


Clear release notes

Converting to draft until we fix the rc6.x situation.

Needs a new approval.

Does this need rebasing?

I rebased it already.


Endpoint for Author rendering

New Endpoint Class: GetAuthors
Added the get_authors method in the Globals helper class

Could you tag the team for any of the plugin changes.

Sure @agopalan87
@rajanvijayan Can you please review this PR.

All good for me

Looks like a new team to be created. Will create one.

It will be good if you share your response for the endpoint that you have created.


Lspsaga code_action does not work correctly.

Describe the bug
When I execute "Lspsaga code_action", the following message appears.
I think it is conflicting with another plugin, but I am not sure which plugin is the problem.　I would appreciate any guidance you could give me, including how to find out.
Thank you in advance.
Error detected while processing CursorMoved Autocommands for "<buffer=26>":
Error executing lua callback: ...e/.local/share/nvim/lazy/guard.nvim/lua/guard/format.lua:112: CursorMoved Autocommands for "<buffer=26>": Vim(write)
:E382: Cannot write, 'buftype' option is set
stack traceback:
[C]: in function 'nvim_command'
...e/.local/share/nvim/lazy/guard.nvim/lua/guard/format.lua:112: in function 'apply_text_edits'
...vim/lazy/lspsaga.nvim/lua/lspsaga/codeaction/preview.lua:55: in function 'get_action_diff'
...vim/lazy/lspsaga.nvim/lua/lspsaga/codeaction/preview.lua:141: in function 'action_preview'
...e/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction/init.lua:239: in function 'set_cursor'
...e/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction/init.lua:99: in function <...e/nvim/lazy/lspsaga.nvim/lua/lspsaga/codeaction/init.lua:98>
Steps to reproduce
cmd: Lspsaga code_action
Expected behavior
No error message appear.
Neovim version (nvim -v)
v0.9.2
lspsaga commit
b7873e556a5451c5febc0d46ba80767b2beea49e
Terminal name/version
alacrity / iterm2

need more reproduce step with a min config thanks. looks like some callback through an error from CursorMoved . relate plugin have guard.nvim.

again could you give me a reproduce step like some example language code. which servers you config on this buffer. min config is need.

vim.opt.rtp:append('~/workspace/guard.nvim')
vim.opt.rtp:append('~/workspace/lspsaga.nvim')
vim.opt.rtp:append('~/workspace/guard-collection')

require('lspsaga').setup({})
---add something you need

and the pythong code can trigger this error.

@xiaoshihou514  could you take a look at this ? I assume it's guard bug

thanks for details. i will check it later.

I will delve into this


Define different components for dynamic routes

Hi! Is there a way to define different components for dynamic routes?
For example, I want one component for my-app/a, my-app/b, my-app/c routes and another component for my-app/d, my-app/e, my-app/f routes where a, b, c and d, e, f are defined by validate method.

Hi, you should use vue.js dynamic component in your nuxt.js page component.
http://vuejs.org/v2/guide/components.html#Dynamic-Components


add tags for each version

hi, would you please update the tags to the latest version so that we can add your lib to https://cdnjs.com with git auto-update.
thank you very much!
https://github.com/cdnjs/cdnjs/issues/6400

Will check this out, thank you!


Apply filter to teamnames for small teams

r? @keybase/react-hackers

Ah, ok.

sorry I don't mean that we should necessarily close this pr. More that we do have a or which affects this flow and if that pr solves this (I don't recall) maybe we should imply it the same way

Imply - implement

Took a look at that PR, and it looks like it doesn't do what this PR does.

+1 to merging in this PR since it solves a release bug simply (can't filter to small teams).


Kubernets: Creating Highly Available Clusters with kubeadm

Creating Highly Available Clusters with kubeadm
My K8's setup is in AWS cloud with ubuntu 18.04 server
In my K8's cluster 1master & 2 nodes are present,
but my requirement is master should have Highly Available ( another server add to cluster as a master)
how to slove the issue ( 2 master & 2 nodes )
i can add nodes with kubeadm join,  but how to add a node as a master in the cluster
my refer links are
https://v1-10.docs.kubernetes.io/docs/tasks/tools/install-kubeadm/
https://v1-10.docs.kubernetes.io/docs/setup/independent/create-cluster-kubeadm/
Thank you
Madhava

https://kubernetes.io/docs/tasks/administer-cluster/highly-available-master/

tq sunil,
but am getting some errors by following the doccuments  , if u don't mine do have steps to setup another master? it would be helpful
Thanks

drop your errors here or screen shot

it's not possible with kubadm if u want please follow this link https://kubernetes.io/docs/setup/independent/high-availability/


Superclass Injection in another module returns null

I have two custom views Foo and Bar, where Bar extends Foo.
Foo and Bar both are in different modules.
Foo looks like this:
public class Foo extends LinearLayout {

    @BindView(R2.id.foo_container) protected LinearLayout fooContainer;
    ...

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        inflate(getContext(), getLayoutId(), this);
        ButterKnife.bind(this);
    }

    @LayoutRes
    protected int getLayoutId() {
        return R.layout.foo_selector;
    }
    ...
}

If I call @BindView in Bar, ButterKnife binds the view inside Bar but not the view in the superclass Foo.
And thus the fooContainer in Foo is always null.
Bar looks like this:
public class Bar extends Foo {

    @BindView(R.id.scroll_view) HorizontalScrollView scrollView;
    ...

    @LayoutRes
    @Override
    protected int getLayoutId() {
        return R.layout.bar_selector;
    }
    ...
}

However, works fine for findViewById(R.id.scroll_view)) in Bar, instead of calling @BindView.  BTW I am using BK version 8.5.1.
Any idea what may be the problem?

Dupe of #808. This isn't supported currently.


Error 189 badly pretty-print tuples of 3+ elements

In the following code:
assume val a: int*int*int
let b: (int*int)*int = a

We get the type error:
(Error 189) Expected expression of type "(int * int) * int"; got expression "a" of type "(int * int) * int"

This is wrong, because a has type int * int * int and not (int * int) * int, which leads to a puzzling error message for the user.

Hi,
I tried to look a bit at what is causing this bug, and it looks like the issue is caused by FStar.Parser.ToDocument.unfold_tuples, a global reference that alters the behavior of FStar.Parser.ToDocument.p_term.
The reference is defined here:
https://github.com/FStarLang/FStar/blob/8fde9d91804a43b0cc4e1c6105646fd9aa4443ae/src/parser/FStar.Parser.ToDocument.fs#L89-L91, and is used only three times in FStar.Parser.ToDocument.
Sadly, the prettyprinting tests never call directly ToDocument.term_to_document, but ToDocument.p_term. Since the only place unfold_tuples is altered is ToDocument.term_to_document, the prettyprinting tests succeed, and fail at detecting the bug you're mentionning.
Also, the resugaring process is somehow missing some parenthesis (that is, some FStar.Parser.AST.Paren nodes) when resugaring FStar.Syntax.Syntax.terms into FStar.Parser.AST.terms.
Thus, it seems like there are two problems:

the mutable "flag" unfold_tuples;
and FStar.Syntax.Resugar.resugar_term that forgets some Paren nodes.

Tuple types in FStar.Syntax.Syntax.term are stored as applications (i.e. App tuple3 [x;y;z]), whereas in Parser.AST.term, it is stored as a tree of binary operations *.
This is fine when * denotes multiplication for instance: multiplication is associative.
But not the tuple types. Whence the problem.
Currently FStar.Syntax.Resugar.resugar_term produces the same AST.term for a * b * c and (a * b) * c, thus FStar.Syntax.Resugar.resugar_term need some patching.
But since tuple's * is a special case for operators, I don't see how to solve that in a non-hacky way.
Either Paren nodes should be inserted (but then, resugar_term should decide when parenthesis are required, which is clearly not nice), or translating App tuple3 [x;y;z] should be something else, not Op(*,x,Op(*,y,z)).
But I'm not too sure about the strategy to adopt here to try to make a PR :(


Replays don't have the player list

I might be misreading this, but the api documentation  makes it look like the /replays endpoint should be returning a players array with 10 entries. However, when I "Try It Out", or when I use the python library, the players array is omitted from the response. Also, my response is truncated at 100 entries.
I am trying to build a corpus of metadata of games. I only want to pull down the following info for each game:
the 5 heroes on team 0
the 5 heroes on team 1
the map
who won
But I want to do it for all the replays.
Is there more documentation somewhere that I should be reading?

Documentation is currently incomplete. To include everything in replay list add ?with_players=1. But this will pull all talents and scores (not parsed for most replays yet). You can also seed your database from sql dump

Thanks roma. I'll try that sql dump for now. It's perfect for getting started.

docs updated


Post mutual requests for external messages

This PR resolves the issue with the IntegrationBus. Previously, when two repositories were registered sequentially in respective (distinct) contexts, only the first one received the RequestForExternalMessages from the second, but not vice-versa. Consequently, only events from the first to second repositories could be dispatched.
Since this PR, IntegrationBus sends a RequestForExternalMessages when it received such a request from another context. This enables contexts to exchange their required types.
Also, in this PR we tune the in-mem implementation of transport, so that all the memory structures holding references to different context are cleared on close().

@armiol, PTAL.

@armiol, PTAL again.


GH-1704: Interceptor Improvements

Resolves https://github.com/spring-projects/spring-kafka/issues/1704

Extract ThreadStateProcessor and ConsumerAwareThreadStateProcessor
Avoid all the if/else tests around calling the interceptor common methods
Add afterRecord to the record interceptor so sleuth can defer cleaning up until after
the error handler.

Thanks; all is good; I can then do the M3 release (unless you wouldn't mind doing it for me - I have updated the spring-build creds in the build plan for the main branch).

Merged. I can release it for you. No problem!
Enjoy your vacation!

@garyrussell  @artembilan shouldn't CompositeRecordInterceptor implement the new afterRecord() method as well?


Facebook Test Users

Perhaps a naive question - wondering if it's possible to login credentials for a Facebook test user to the README. Or does everyone that wants to try this out this have to register the app separately and create their own test users?

Facebook doesn't like test accounts, but you are welcome to use your own FB account to test the app! I created eight test profiles that you can swipe through, etc.
Will update the README and code to make it clear how to test everything out.


Add nested list view for tts page and optional support for single list

Adds nested list model to TTS Menu for cleaner nested list view
Adds optional support for single TTS list menu can be set by image developers,

This QML listview model has nothing to do with the key model coming from OPM and can easily be adapted to whatever model OPM provides, so it does not need to live or be provided by OPM at all
It only consumes the same data model that OPM is anyways providing


Add a background for generated channel icons

This generates icons like the following, which are perhaps nicer looking most of the time.

@dylanmccall please next time attach the ticket URL to the commit message and PR message. I merged this and then realized.

Oh, oops! Thanks :)


Dropdowns don't scroll with the page

Describe the bug
A cds-dropdown seems to stay pinned to it's position on the page instead of scrolling with it's anchor element if the page scrolls.
How to reproduce
https://stackblitz.com/edit/clarity-dark-theme-clr13-cds6-nlxpe6?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts
Steps to reproduce the behavior:

Click on the i icon and scroll the page when the NG signpost opens. Notice how it scrolls with the anchor element
Click on the button to open the cds-dropdown.
Notice how the dropdown stays fixed while it's anchor scrolls away with the page.

Expected behavior
The dropdown should scroll with the anchor
Versions
Clarity project:

[x] Clarity Core
[ ] Clarity Angular/UI

Clarity version:

[ ] v5.x
[x] v6.x

This seems to be related to the position: fixed set on the host element: https://github.com/vmware-clarity/core/blob/main/projects/core/src/internal-components/popup/popup.element.scss#L34
It looks like it's intended to be used with an overlay to avoid interacting with the page below it. We'd need to confirm this with Accessibility. https://storybook.core.clarity.design/?path=/story/internal-api-overlay--page


Use a single query to get count of active VMs and Hosts

Instead of looping through all ExtManagementSystems and adding up the counts of vms and hosts manually we can get this count in one shot by querying for active VMs and Hosts.

/cc @jaredm-ibm

LGTM - will merge when tests are green

Ivanchuk backport details:
$ git log -1
commit a0a4e44be3598c5f9809d59b4a9f188d317bac0e
Author: Oleg Barenboim<EMAIL_ADDRESS>Date:   Fri Feb 14 12:47:47 2020 -0500

    Merge pull request #19835 from agrare/improve_audit_managed_resources_performance

    Use a single query to get count of active VMs and Hosts

    (cherry picked from commit cee35bfd2a2d77bde3f581737b749d38b6b8ea00)

    https://bugzilla.redhat.com/show_bug.cgi?id=1805915


Make use of late static binding to allow decorator extension

We would like to extend the response decorator in order to add additional domain-specific helpers. Unfortunately this is not possible at present as the current helpers do not make use of late static binding.
Using the response as an example, the current helpers take the basic format of:
/**
 * @return Response
 */
public function withX(): ResponseInterface
{
    $response = $this->response->withY();
    return new Response($response, $this->streamFactory);
}

In order to allow extension it would be nice if these made use of late static binding to type hint and create the new decorated response as follows:
/**
 * @return static
 */
public function withX(): ResponseInterface
{
    $response = $this->response->withY();
    return new static($response, $this->streamFactory);
}

Coverage increased (+0.003%) to 99.273% when pulling c8ec05a0108b72511dd261763c4b19a96442c78e on trvrnrth:late-static-binding into 9ada50ce02593a498df2fdf246d63c361eeb0846 on slimphp:master.

Looks good to me @akrabat if you want to merge

@trvrnrth please fix conflicts that arose from merging your other PRs and I’ll merge.

@l0gicgate Resolved.
Thanks all for taking the time to get these in.


Configure UI to step by fixed time rather than event

For very dense timeline it's nice to have a granularity for "stepping forward" using the arrow keys that is based on time delta, e.g. "0.1 sec" rather than always stepping to the next event.
This would need to be configurable, since there is no universal granularity that makes sense.

Thanks for adding this!  I'm the one who asked about this on the discord.  What I'd really like is another hotkey for it since the arrows keys are definitely useful!  I can tell you all the ones I guessed at in hopes of it working, which are perhaps good possibilities:

Shift+arrows
Alt+arrows
Left and right brackets [ ]
Comma and period , . because they have the < and > keys on them and are used in YouTube and other apps for speedup/slowdown.  (Also tried these with shift pressed)

In other apps I've used, 0.1 seconds and 1.0 seconds are good defaults, I tend to like having both.  If I had my choice I'd do:

Alt+arrows for 0.1 seconds forwards and back.
Shift+arrows for 1.0 seconds forwards and back


When I click Add Path & Add Rule, nothing seems to happen

Steps:

Go to Create Ingress
Click on Add Path or Add Rule

Results:  Nothing seems to happen for a couple of seconds, then the fields show up?
Expected:  Because the row doesn't show up, I end up clicking twice and the prefix field drops in.  Also there is no default field after I click on the button.  Cursor (focus) should go to the first edit field (which is the Path e.g. /foo).

Fixed


postgres: create dynamic metadata

Create dynamic metadata when parsing Postgres messages (similar to mySQL). The metadata will indicate an operation (create, delete, insert, etc) and resource on which the operation will be performed.
The metadata may be used by RBAC or routing of queries to specific instances of Postgres based on operation type.
Ref: https://www.envoyproxy.io/docs/envoy/latest/configuration/advanced/well_known_dynamic_metadata

Please assign it to me.

This would be very helpful.
What kind of metadata do you plan to expose, do you have an initial design for it? Happy to provide feedback if that could help :)

As the first step I was thinking about producing the same metadata as mySQL: https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/network_filters/mysql_proxy_filter#config-network-filters-mysql-proxy-dynamic-metadata.

I checked that, and left me with some doubts. For example:

<table.db>. What if the operation references more than one table, like in a JOIN query, subselect or CTE? Maybe should be an array?
[] (A list of strings representing the operations executed on the resource. Operations can be one of insert/update/select/drop/delete/create/alter/show). We should determine which operations apply to Postgres. Actually, as we found with the monitoring statistics, there might be combined operations (for example a CTE that reads data and then inserts, how would you categorize that?).

Moreover, how do you plan to parse, with the SQL parser already available in Envoy? It would be interesting to see how it would handle Postgres queries, but any work in this direction will be extremely helpful for this and other future goals that require SQL parsing.

Moreover, how do you plan to parse, with the SQL parser already available in Envoy? It would be interesting to see how it would handle Postgres queries, but any work in this direction will be extremely helpful for this and other future goals that require SQL parsing.

Yes, that was the idea - to start with SQL parser available in Envoy and extend it when required.

<table.db>. What if the operation references more than one table, like in a JOIN query, subselect or CTE? Maybe should be an array?
[] (A list of strings representing the operations executed on the resource. Operations can be one of insert/update/select/drop/delete/create/alter/show). We should determine which operations apply to Postgres. Actually, as we found with the monitoring statistics, there might be combined operations (for example a CTE that reads data and then inserts, how would you categorize that?).

Very valid points. I suggest that we join forces and work on document summarizing use cases and describing the logic how to handle non-trivial queries.

Yes, perfect. Feel free to create and share a document, we can work there.

/assign @cpakulski

Work in progress.


Regression: Notification sounds do not play [Windows]

I confirm (by marking "x" in the [ ] below: [x]):

[x] I have confirmed this is an issue on the newest beta build available here
[x] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
[x] I have read contributing guidelines.

Summary
When a user receives a notification, the configured notification sound does not play.
Environment

Operating System: Windows 10 LTSC
Mattermost Desktop App version: 4.7.0-rc4 (EXE and MSI both tested)
Mattermost Server version: 5.34.2 (via Docker)

Steps to reproduce

Enable notification sounds.
Receive a message that generates a notification.

Expected behavior
Desktop notification pops up and notification sound plays.
Observed behavior
Desktop notification pops up, but notification sound does not play.
The following errors appear in the application wrapper console each time a notification is generated:
* Refused to load media from 'data:audio/mpeg;base64,[...]' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback.
* Uncaught (in promise) DOMException: Failed to load because no supported source was found.

Possible fixes
The Content-Security-Policy appears to be set as a <META> tag in /src/renderer/index.html:5. It was changed between the last tried working version (4.6.2) and the affected version, so maybe that has something to do with it.
The Mozilla docs caution against allowing data: URIs as a media-src though, so watch out:

This is insecure; an attacker can also inject arbitrary data: URIs. Use this sparingly and definitely not for scripts.

Thanks for reporting!! There is a ticket for that already: https://mattermost.atlassian.net/browse/MM-35662

this should be fixed in https://github.com/mattermost/desktop/pull/1615

I can confirm that this issue is fixed in 4.7.0-rc6


[WIP] expose ESM browser build and remove fetch and Promise polyfills - fixes #57 and #59

Background
As mentioned in #59, prismic-javascript currently only exports a UMD build that is not tree-shakeable by bundlers and therefore forces consumers of the library to include everything in their bundles, instead of only the functions they actually use.
In addition, as mentioned in #57, prismic-javascript currently forces down polyfills for fetch and Promise. By now, everyone know that JS is the most expensive [1], [2] resource on most websites. Since browser support for fetch (87.1%) and Promise (88.85%) is actually quite good, and most real-world projects already have some polyfilling strategy (such as polyfill.io) in place (meaning that in the worst case, users are forced to download the polyfills twice), it feels a little unnecessary to include them here.
I've therefore removed promise-polyfill and replaced cross-fetch with node-fetch (which is used internally by cross-fetch when run on Node), which uses window.fetch when bundled for the browser. Even before tree-shaking, this already reduces the bundle size of prismic-javascript.min.js from 31.9KB to 13.5KB.
Description
Aside from the existing dist/prismic-javascript.min.js UMD build, this PR adds the following builds:

dist/prismic-javascript.js: CJS build for Node.js
dist/prismic-javascript.mjs: ESM build for Node.js
dist/prismic-javascript.browser.js: UMD build for browsers
dist/prismic-javascript.browser.mjs: ESM build for browsers

It uses the package.browser field, which is understood by all major bundlers (Webpack, Rollup, Browserify), to provide the browser bundles.
Since Webpack still doesn't support outputting ES modules, I was forced to switch to Rollup, but I think you'll find the change quite pleasant as builds are faster and the configuration file is simpler (especially when considering it now outputs five bundles rather than one).
Unfortunately, because polyfills are no longer shipped with the bundle, this is potentially a breaking change for some people (but Semver protects us from that), but one I hope you'll agree is favourable in the long-term and might consider including in the upcoming 2.0 release. 🤞
There are some things left to do (see below), but I thought I'd leave this here already for discussion.
Thank you!
Todo

[x] rename dist/prismic-javascript.esm.js to dist/prismic-javascript.mjs for Node compatibility
[x] adapt tests to new build outputs
[ ] add section on polyfills to README
[ ] add section on bundling for node and browsers to README

Fixes #57, fixes #59

Hey @nsivertsen thanks a lot for this PR!
I came across it while searching for the best way to support multiple environments and it was very helpful.
I blatantly copied some parts of the rollup config for one of my projects. 😄
I would recommend adding a unpkg property to the package.json pointing to the .min.js file as well.
Thanks again!

Hey @nsivertsen,
thank you so much for your work, I'm sorry that our team did not take care of this earlier. I'll merge this and write the documentation in the coming days!

@hypervillain oh, I didn't expect this to still be merged. That's great news! I see you've also removed Ramda from prismic-richtext. This means I will finally be able to include Prismic SDKs in my bundles. (I've been proxying Prismic APIs on the server and doing all rich-text processing there because of the large bundle size). Thanks!

hi @nsivertsen we do have some questions about a few of the todo's left in the readme.
It would be great if you had the time to go over the details.

hi @MarcMcIntosh I don't have much time before next week, unfortunately, but perhaps it's an easy question?
Are you referring to "add section on bundling for node and browsers to README"?
I saw that you're requiring fetch to be polyfilled on Node. I don't believe that's the correct approach, as it requires consumers of the library to patch globals. I think it might make sense to create a build-time static boolean (through rollup-plugin-replace) to detect whether we're bundling for the server, and require('node-fetch') in that case. rollup's tree-shaking should take care of removing it for the browser version. So something like:
let fetch = window && window.fetch;

if (SERVER_SIDE) {
    fetch = require('node-fetch');
}

export default fetch;

And then import the above wherever fetch() is used.
Note that I haven't tried the above, but I think it should work.

Hi @nsivertsen that's exactly what I meant :)
For poly-fills is it only a Promise and fetch poly-fill that is required?

@MarcMcIntosh Promise and fetch are the only two features that were polyfilled in the previous version of the library, so it seems that is the case

@nsivertsen That's good to know,
also I have a question about adding a section for bundling for node and browsers to README.
Are there any intricacies a user should be made aware of?

@MarcMcIntosh As mentioned above, I wouldn't require anything special in Node (and rather include node-fetch by default, since it will always be needed). For browsers, it should be stated that polyfills for fetch and Promise are required if the user is targeting older browsers.
Also, for people not using standard bundlers such as webpack or rollup, it might be helpful to know that module resolution for browsers relies on the browser field in package.json:
{
  "main": "dist/prismic-javascript.js",
  "module": "dist/prismic-javascript.mjs",
  "browser": {
    "./dist/prismic-javascript.js": "dist/prismic-javascript.browser.js",
    "./dist/prismic-javascript.mjs": "dist/prismic-javascript.browser.mjs"
  }
}

How this works is that Node code that uses CommonJs gets the main field, while Node code using ESM and bundled e.g. with rollup will get the module field.
When bundling for the browser, we want the code without node-fetch, etc., which is achieved  by overriding the entry points using the browser field. This is a standard package.json field: https://docs.npmjs.com/files/package.json#browser
Webpack will automatically check the browser field, so nothing needs to be done there: https://webpack.js.org/configuration/resolve/#resolvealiasfields
Rollup, on the other hand, won't. It will need to be configured in @rollup/plugin-node-resolve using the `browser option: https://github.com/rollup/plugins/tree/master/packages/node-resolve#browser
I hope that helps!

@nsivertsen Thanks for clearing that up, we will need to update the read me so users can have that information available to them :)


Figures in documentation look better than the ones actually produced.

Description:
The figures described here have way better quality than the figures actually produced. The figures in the documentation are nice and clean. The figures that are produced look bad. They are pixely and the atom labels are unreadable, because they overlap with the molecule structure.  Some settings might be missing in the documentation.

RDKit Version: '2018.09.1'
Platform: Python 3.6.5, in WSL (Windows Subsystem for Linux (Ubuntu)
Linux C3PO 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

Referring to this part of the documentation:

suppl = Chem.SDMolSupplier('data/cdk2.sdf')
ms = [x for x in suppl if x is not None]
for m in ms: tmp=AllChem.Compute2DCoords(m)
from rdkit.Chem import Draw
Draw.MolToFile(ms[0],'images/cdk2_mol1.o.png')
Draw.MolToFile(ms[1],'images/cdk2_mol2.o.png')

    smiles = 'FC=1\\C=N/C(=O)NC=1N'
    m = Chem.MolFromSmiles(smiles)
    fig = Draw.MolToMPL(m,size=(200,200))
    title(antib, fontsize='20')
    #fig.savefig(f'./output/figures/{antib}.jpeg', bbox_inches='tight')
    Draw.MolToFile(m, 'mol.png')

The figures look somewhat like this.


Add the Consumption of an External Service to Your CAP Application

Tutorials: https://developers.sap.com/tutorials/btp-app-ext-service-add-consumption.html
Following these tutorials, after sandbox env setting and access  http://localhost:4004/service/risk/Suppliers?$top=11, the supplier data still comes from a local csv file API_BUSINESS_PARTNER-A_BusinessPartner.csv and not read from sandbox system, do you have any idea what's the root cause? Thank you.

cache issues


Displaying of actual indoor data from DHT22

Just thought that it might be useful to attach a DHT22 sensor to still free D0 (GPIO16) port in order to measure an actual room temperature and humidity and to display it at 3rd carousel frame for example. Or to add a still reserved touch screen functionalty (XPT) in order to trigger in between carousel forecast frames and fixed indoor conditions frame. It might be also good to indicate a city name somewhere on the screen in order to know which place weather it is. Also miss bmp moonphases in the new release, The present graphic ones look quite simple....  I think that all of above will increase functionality and  look and feel. Is it possible to update the code this way? Many thanks!

The DHT22 should be easy to attach. The touch screen is also on my backlog and the touch demo in the mini grafx library already shows how it can be used: https://github.com/squix78/minigrafx/tree/master/examples/ILI9341/TouchPaint
City name is also a very good idea! The moon phase bmp is actually a technical issue I could not overcome yet. Problem there is that the weather station now is flicker free but has to live with only 4 colors. So bmps with more colors are problematic...

Thanks for your fast reaction! Actually my problem at the moment is to display the indoor climate data in a good way. A DHT22 sensor itself and its connection is not a problem indeed, I am looking for its data displaying solution on a given color display as a part of the present code as per above.  It would be of a great help if you could make it as you are familiar well with this code and it will take time for me to dig in.  Thank you very much!

Adding city name was pretty easy.
Add the following to the declarations of the ino file:
String myLocation = WUNDERGROUND_CITY;
I modified the drawCurrentWeather function to move the current conditions text under the current temperature on the display. Then, I put the city where the current conditions text was.
Add the following to the drawCurrentWeather function:
`// draws current weather information
void drawCurrentWeather() {
gfx.setTransparentColor(MINI_BLACK);
gfx.drawPalettedBitmapFromPgm(0, 55, getMeteoconIconFromProgmem(conditions.weatherIcon));
// Weather Location
myLoc.replace("_"," ");
gfx.setFont(ArialRoundedMTBold_14);
gfx.setColor(MINI_BLUE);
gfx.setTextAlignment(TEXT_ALIGN_RIGHT);
gfx.drawString(220, 76, myLoc);
gfx.setFont(ArialRoundedMTBold_36);
gfx.setColor(MINI_WHITE);
gfx.setTextAlignment(TEXT_ALIGN_RIGHT);
String degreeSign = "°F";
if (IS_METRIC) {
degreeSign = "°C";
}
String temp = conditions.currentTemp + degreeSign;
gfx.drawString(220, 89, temp);
// Weather Text
gfx.setFont(ArialRoundedMTBold_14);
gfx.setColor(MINI_YELLOW);
gfx.setTextAlignment(TEXT_ALIGN_RIGHT);
gfx.drawString(220, 125, conditions.weatherText);
}`

Yes, this works pretty nice, just small remark: the declaration should be
String myLoc = WUNDERGROUND_CITY;
otherwise the given in above is not recognized.
I am still struggling with touch screen functionality as the above demo link doesn't work for me. When I upload the Touch demo provided it shows immediately the color pallet at the top of the screen and a small white triangle dot in the left bottom corner of the screen, no ask to touch the screen is displayed. The screen doesn't react on any touch however the blue LED on ESP module goes bright when screen is touched. All other demos like Rotating Cube and Weather station color itself work just fine. Perhaps the problem is with XPT2046_Touchscreen.h library. I used this one
https://github.com/PaulStoffregen/XPT2046_Touchscreen
Any idea on what is wrong? Many thanks!

 I typed the first part and changed myLoc to myLocation, and then copied and pasted my code but didn't change the variable name.

I added both city name and touch screen functionality, although some people have problems with it. Can this issue be closed?

Hi Daniel,
I think so, thanks for your effort!
I just experimented with BMP280 SPI sensor to measure the indoor climate and it works perfectly well in combination with DHT22. I've added the 6th info screen which shows now:

Indoor temperature in Celsius - measured by DHT22 sensor
Relative humidity in the room in % - measured by DHT22 sensor
Air pressure in mm Hg - measured by BMP180 sensor
Approximate altitude above the sea level in m - measured by BMP180 sensor

This is done at the cost of connecting of LED pin to +3,3V power source via 100 Ohm resistor. This allowed me to have 2 free GPIO's needed for CS signal of the both sensors (DHT22 and BMP280). The rest signal pins of them are connected to common hardware SPI bus.
For the next improvement I ordered a BME280 SPI sensor which could measure all the above parameters alone, therefore it will be no need in DHT22 sensor anymore. This way it will be possible again to regulate the screen brightness via GPIO15 (D8) pin.
Unfortunately the touch screen functionality doesn't work for me well - all info screens are scrolling very fast without any touching, also it could be a display problem (XPT chip failure for example) or so.
Nevertheless I close the issue and will try to fight with this problem on my own, I see some ways how to do it, some experiments are needed though.
As soon as I manage to make a final design I will post it.
Best regards,
Vadim

@vadpol would love to borrow your code.. been meaning to do this for a while... :)

Hello vadpol, it would be nice if you could publish the code, am very interested in it.
I've already times thought about the current inside and outside temperature on the weather station display, but unfortunately I know not yet so well from me the programming.

It seems that I've found the possible reason of screen scrolling with XPT2046. As to me it happens just because the onboard +3,3v regualator on D1 Mini ESP module is not enough to power everything in this setup especially LED backlight of the display. It works at the edge of its capacity I believe and some of the XPT chips might be very sensitive to voltage fluctuations. I disconnected an LED pin at the display from GPIO and connected to +3,3v pin at D1 Mini module via 100 Ohm resistor first. It doesn't help a lot as the regulator was still loaded. Then I connected LED pin via the same resistor to +5V pin at D1, so directly to USB input power. And screen scrolling has stopped! Everything works now how it meant to work! If I touch the screen it goes to next one, if not -  it shows the current screen with refreshed from time to time info. Hope that this might be the reason, interesting to know from others whether it helps as well.
PS I will publish my code update soon.

Hallo vadpol, es ist schon eine Zeit her, hast Du den Code mittlerweile fertig, bin sehr daran interessiert.

I have followed the instructions in this thread and it works very well for me. No issues with touch.

@vadpol any update? Id love to see how you handle connecting either the dht-22 or bme280
Thanks!


python-pip errors

python-pip errors reported in health checks. Hypothetical fix is to make sure dependencies python2-pip , python-pip are installed on all nodes. Related to #1859
Reported by @berle

I did that here and it had no effect: https://github.com/mantl/mantl/commit/cee79f2f2325f4aebcc85ed305b2b711fe9e5169

Oh I think I got the fix, give me a few.

Looks like common packages are not being installed on all nodes, kinda defeats the purpose. Fixing it now.

@Theaxiom yep, nice find! common playbook is missing from the sample.yml playbook on the worker, kuberworker, and edge nodes.

Yeah, the common role, not playbook. ;)

@Theaxiom a role is basically a playbook :P

A role is a collection of tasks, templates, vars, defaults, etc; a playbook is a collection of roles, vars and targeting rules. ;)
Playbook > Role > Task

@Theaxiom The main difference is that a playbook can contain a role. 💃

Ok, it looks like python2-pip is installed which supersedes python-pip, something is checking for python-pip and not acknowledging python2-pip.

This solves the problem:
- hosts: all
  gather_facts: no
  tasks:
  - name: update json healthchecks
    replace: dest=/etc/distributive.d/distributive-common.json regexp='python-pip' replace='python2-pip'

I bet if we symlink python-pip on the machines, it would resolve this issue.

Wait that won't work, ok I see, we have to update the distributive role to check for the proper package, python2-pip.

I am currently digging through the distributive role to figure out exactly how it works. It appears that it is called by many playbooks during the setup process.

It appears the distributive role used to be a part of the common role, I found where it has been extracted out to its own role: https://github.com/mantl/mantl/pull/1268/files

I found a website which seems to have some documentation on distributive: https://sites.google.com/site/mytechnicalcollection/cloud-computing/tools/distributive---health-check

Okay, I just forked distributive to Mantl from CiscoCloud: https://github.com/mantl/distributive

https://godoc.org/github.com/CiscoCloud/distributive

Okay, I found where this is coming from. This is coming from a package which is ultimately stored on bintray, but originates from here: https://github.com/asteris-llc/mantl-packaging/blob/master/distributive/distributive-common/distributive-common.json
https://bintray.com/shippedrepos/mantl-1.2/distributive-common
We will need to update the package, however we can do a temporary workaround with the above playbook.

I've requested @stevendborrelli to move the mantl-packaging repo into the mantl namespace, then we can proceed with updating the package.

Alright, I solved this with a temporary work-around: https://github.com/mantl/mantl/commit/f19d567faee19c1399ad4fafac4830b235d241b1

@Theaxiom I've moved mesos-packaging and mantl-packaging to the mantl org.

Distributed is basically testing infrastructure for Mantl. It's run via Consul health checks to make sure the cluster configuration hasn't drifted.

Thanks @stevendborelli

@Theaxiom The resolution of this issue depends on the resolution of #1928. We need to know where to push the new distributive repo builds before this can fixed completely.

@Cryptophobia that's my plan today, I created an issue for it. I need to build new RPM's and I already setup a new Bintray account. I also contacted jFrog to see if they will sponsor an Artifactory Pro license.

I think the better option is to bring that distributive configuration out of the RPM and into Ansible, this would allow us to be more flexible with the health-checks.

The script to build and upload packages is at: https://github.com/mantl/mantl-packaging/blob/master/scripts/bintray.sh
The only gotcha (if I recall) is you have to create the package in the repo  before you can upload versions of the package.

Thanks @stevendborrelli -- while digging last night I discovered the scripts as well as the hammer repo. Is the hammer repo required?

I believe the hammer binary is required. It basically wraps FPM.

That's what I deduced, thanks for confirming.

I just got a response back from jFrog, they directed me to fill out this application: https://www.jfrog.com/artifactory/saas-gcp/

Alright, we have a trial Artifactory SAAS account and our OSS Sponsorship from jFrog is currently being reviewed. I will post more details as I have them.

Our Bintray is located at https://bintray.com/mantl -- the old Bintray is here: https://bintray.com/shippedrepos/mantl-1.2

Artifactory is available here: https://mantl.jfrog.io/mantl/webapp/#/home

This is not an issue anymore?

This was fixed with a workaround, leave it open.

I just moved it to 2.0


DRILL-5964: Do not allow queries to access paths outside the current …

Added check to prevent users from accessing a path outside the current workspace. For backward compatibility this introduces a new parameter 'allowAccessOutsideWorkspace' in the dfs storage plugin configuration that allows the user to override the check and allow access outside the workspace. The default value for the parameter is false. Any existing storage plugin configurations which do not have the parameter specified will no longer be able to access paths outside the workspace.

Changed the type of allowAccessOutsideWorkspace to boolean. This changes behavior. All existing dfs workspaces will also disallow access outside the workspace. Ideally, we should deprecate this parameter in a future release, but for the moment it allows existing users to access paths outside the workspace if they want to.

+1, LGTM.


User / news crud list is empty

So, when navigating to the list of articles and users in my DB the CRUD list is empty. No entries are listed. I can add new stuff, it is stored in the database, but again not listed. Any suggestions to why?

can you post your xxxCrudController contents

Article crud controller:

namespace App\Http\Controllers\Admin;

use Backpack\CRUD\app\Http\Controllers\CrudController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\ArticleRequest as StoreRequest;
use App\Http\Requests\ArticleRequest as UpdateRequest;

class ArticleCrudController extends CrudController
{
    public function __construct()
    {
        parent::__construct();

        /*
        |--------------------------------------------------------------------------
        | BASIC CRUD INFORMATION
        |--------------------------------------------------------------------------
        */
        $this->crud->setModel("App\Models\Article");
        $this->crud->setRoute(config('backpack.base.route_prefix', 'admin').'/article');
        $this->crud->setEntityNameStrings('article', 'articles');

        /*
        |--------------------------------------------------------------------------
        | COLUMNS AND FIELDS
        |--------------------------------------------------------------------------
        */

        // ------ CRUD COLUMNS
        $this->crud->addColumn([
                                'name' => 'date',
                                'label' => 'Date',
                                'type' => 'date',
                            ]);
        $this->crud->addColumn([
                                'name' => 'status',
                                'label' => 'Status',
                            ]);
        $this->crud->addColumn([
                                'name' => 'title',
                                'label' => 'Title',
                            ]);
        $this->crud->addColumn([
                                'name' => 'featured',
                                'label' => 'Featured',
                                'type' => 'check',
                            ]);
        $this->crud->addColumn([
                                'label' => 'Category',
                                'type' => 'select',
                                'name' => 'category_id',
                                'entity' => 'category',
                                'attribute' => 'name',
                                'model' => "App\Models\Category",
                            ]);

        // ------ CRUD FIELDS
        $this->crud->addField([    // TEXT
                                'name' => 'title',
                                'label' => 'Title',
                                'type' => 'text',
                                'placeholder' => 'Your title here',
                            ]);
        $this->crud->addField([
                                'name' => 'slug',
                                'label' => 'Slug (URL)',
                                'type' => 'text',
                                'hint' => 'Will be automatically generated from your title, if left empty.',
                                // 'disabled' => 'disabled'
                            ]);

        $this->crud->addField([    // TEXT
                                'name' => 'date',
                                'label' => 'Date',
                                'type' => 'date',
                                'value' => date('Y-m-d'),
                            ], 'create');
        $this->crud->addField([    // TEXT
                                'name' => 'date',
                                'label' => 'Date',
                                'type' => 'date',
                            ], 'update');

        $this->crud->addField([    // WYSIWYG
                                'name' => 'content',
                                'label' => 'Content',
                                'type' => 'ckeditor',
                                'placeholder' => 'Your textarea text here',
                            ]);
        $this->crud->addField([    // Image
                                'name' => 'image',
                                'label' => 'Image',
                                'type' => 'browse',
                            ]);
        $this->crud->addField([    // SELECT
                                'label' => 'Category',
                                'type' => 'select2',
                                'name' => 'category_id',
                                'entity' => 'category',
                                'attribute' => 'name',
                                'model' => "App\Models\Category",
                            ]);
        $this->crud->addField([       // Select2Multiple = n-n relationship (with pivot table)
                                'label' => 'Tags',
                                'type' => 'select2_multiple',
                                'name' => 'tags', // the method that defines the relationship in your Model
                                'entity' => 'tags', // the method that defines the relationship in your Model
                                'attribute' => 'name', // foreign key attribute that is shown to user
                                'model' => "App\Models\Tag", // foreign key model
                                'pivot' => true, // on create&update, do you need to add/delete pivot table entries?
                            ]);
        $this->crud->addField([    // ENUM
                                'name' => 'status',
                                'label' => 'Status',
                                'type' => 'enum',
                            ]);
        $this->crud->addField([    // CHECKBOX
                                'name' => 'featured',
                                'label' => 'Featured item',
                                'type' => 'checkbox',
                            ]);

        $this->crud->enableAjaxTable();
    }

    public function index(){
        return parent::index();
    }

    public function store(StoreRequest $request)
    {
        return parent::storeCrud();
    }

    public function update(UpdateRequest $request)
    {
        return parent::updateCrud();
    }
}

place your $this->crud->enableAjaxTable(); under $this->crud->setEntityNameStrings('article', 'articles');

Any javascript errors? @iMokhles 's answer sounds like a good way to debug this.

No errors in the console, and the edit didn't work. And also I can't find there's a user crud? should it be included in the backpack base folder?
So last night I run through all the steps setting up backpack for larval 5.4 so it should be a fresh install.

And the repo for my project: https://github.com/samuelsen/ufrivillig

What happens if you comment out $this->crud->enableAjaxTable();?

Greate! that solved the articles, bur how a bout the user list? As mentioned I can't see there's a CRUD for the users?

UserCrudController is inside the PermissionManager package and yes, it does use AjaxDataTables by default. But that one definitely doesn't have any issues - just tested it and it should work just fine.
How does the edit does not work? Might give us a hint in what's happening on your system.

So the edit to the newscrud reveals the list of content, so it seems it some problems using ajax

So when the ajax is enabled it gives a server 500, "faild to loud resource"
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (user, line 0)
and it's the same for articles

I had the same issue with the default UserCrudController
I had to add this protected $table = 'users'; in User's Model class
but I ended by creating Users's Request, Model Controller myself using
php artisan backpack:crud User
also it will be a good start to customize your Users list Table

no change in specifying the table. It's still the same

Hmm... I tried and tried, but can't replicate your issue.
Just fishing here: does a composer update fix it? We've pushed a number of fixes yesterday, that you might not have gotten.

Also, could you please tell me more about your dev environments? Operating system, apache/nginx, PHP version, MySQL version, Browser?

so no updates through composer update
the system is:
centOS running apache
PHP version 7
normal mysql db running InnoDB on the table
Everything worked using Laravel 5.3 but not after updating to 5.4

hi @samuelsen if you didn't find solution till now, i advise you to create User's Model, Request and CrudController by using this command
php artisan backpack:crud User
and edit your web.php route file to add the following
CRUD::resource('/user', 'Admin\UserCrudController');
so later you can customize this  UserCrudController to add your own functions and other stuffs

So I dont want to do this if can solve it without. Because leaving out Ajax generation of the tables removes the possibility to sort the tables by clicking on the headers.
I've done som more testing, and for all CRUDS I get a ERROR 500 from the server. So it doesn't seem like it is possible to reach the resource. I've re installed all dependencies but without any result.
Checking the logs theres one issue always getting logged when accessing CRUD routes (/useres /articles eg. ) and it is the following: production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined method Illuminate\Routing\Route::getUri()'
Googling that message sais that Laravel 5.4 doesen't support $route->getUri() instead we should use $route->uri() Is there somewhere in backpack this should be changed?

SOLUTION!
fixing the "getUri" fault in the backpack base template file solved it!
Checked the BASE package of backpack and it's been updated there, but don't understand why I didn't get the new template file when I re installed backpack.

Hi @samuelsen ,
Wow, sorry you had to go through so much trouble. Yes, the layout.blade.php file does not get updated, because it's already published to your app folder.
Thanks for keeping us up to date. It will definitely save someone a lot of time :-)
Cheers!

No problem, I would recommend putting it in the docs  as a upgrade notice if people are going from 5.3 to 5.4 and not doing a complete reinstall (fresh everything) like you did on the laracast generators ;)


Ability to get ENV, param, etc values from host environment variables or .env file

I would like to work on it.

Fixed by #43


docs(guide/Services): Fix link to #module.Factory

Hi, could you please sign the CLA?

Hi there, I have already, with the email<EMAIL_ADDRESS>

landed as 2979bf38ddcf38b3c9ef45203a0f5f0256b03e68


inspect of Timestamp fails in Automate Methods

The Automate methods log the timestamp fields using
the inspect method. This fails on Rails 4.x because of
uninitialized Time.zone. Initialize the Time.zone to UTC
in the method preamble. Added a spec for InspectMe method
Fixes #3242

@matthewd @gmcculloug @jrafanie @Fryguy

LGTM

@gmcculloug @Fryguy
Do our servers always run under UTC or is that configurable. Should the method preamble set the time zone based on the servers timezone, instead of setting it to UTC.

@matthewd sweet - thanks.
:shipit:

I think UTC is good to start...if the field complains, we can change it.  Unfortunately, needs rebase due to rerooting.

@Fryguy @gmcculloug
Rebased


Azure Policy for ASE v3 Private DNS Zone

[Enter feedback here]
it would be amazing if we could create an Azure policy for customers to automatically deploy the <ase_name>.appserviceenvironment.net Private DNS zone for ASE v3.

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

ID: 62d67fc0-2fe8-7af2-2989-8be5d6b598b6
Version Independent ID: 131aa416-5156-c0b6-783e-32144faf9936
Content: App Service Environment networking - Azure App Service Environment
Content Source: articles/app-service/environment/networking.md
Service: app-service
GitHub Login: @madsd
Microsoft Alias: madsd

@ArmaanMcleod
Thanks for your feedback! We will investigate and update as appropriate.

Hi @ArmaanMcleod - not something we have considered for the built-in policies. They are mostly focused on security. But I think it should be possible with a custom policy using the "deployIfNotExists" type.

Thanks @madsd . I worked out how to create a custom policy with deployIfNotExists. I do think it's worth though for Microsoft to provide more of these kinds of policies to help customers deploy ASE v3 private DNS zones at scale, especially in an enterprise environment where there may be big migrations from ASEv2 to ASEv3.
I will consider also adding my policy to https://github.com/Azure/Community-Policy to share with community regardless.

Hi @armaanmcloed. Happy that you managed to work out a custom policy - great idea adding it to the community policies. If you send me a link after adding or add it here I can take a look to see if we can adopt it as a built-in policy.

Thanks for your feedback and your contribution to Azure docs.
Feedback for this repository is moving away from GitHub to a system specific to the Microsoft Learn platform. Issues for this repository will soon be disabled, and additional comments from GitHub will no longer be possible. However, we are now tracking and triaging this issue in the new feedback system.
To learn more about our feedback systems, please see Provide feedback for Microsoft Learn content.
#please-close


get infos from clusterid only

Is your feature request related to a problem? Please describe.
As a Kubermatic Operator i mostly get only the Cluster ID and need to search for project ID and Seed Cluster.
My currently on valid option is tu use kubectl an manually search every seed cluster for the cluster.
Describe the solution you'd like
I would like to have a search by cluster id function, to get as much infos as possible
Describe alternatives you've considered
I already wrote a small bash script tailored to my setup, but needs to be looked into evertytime we change something
Additional context
The Kubermatic API is the only merged info about all master/seed resources

@qeqar could you have a look at #29 (respective MR #30) which adds the ProjectID to the output of get cluster.
Does this already help your use case, or do you need more?

Perfect. the rest is easily done via grep.


[Feature] Introduce the taskId in the spark client side log

Motivation
When multiple tasks are running in the same executor at the same time, it will be hard to analysis the rss log belonging to the specified task. To solve this, it's better to make log show task id in the rss client codebase.
How to do
I think we should directly use the MDC to put the context info.
POC screenshot

What do u think? @jerqi

MDC seems heavy for us.

Could you share me that what are you concerned about most? The cost of refactor or performance?

Could we adjust the log4j to print thread ID?

Could we adjust the log4j to print thread ID?

This way looks a little bit ugly on propagating thread id/ task id in multiple threads when using thread pool.

What do u think? @jerqi

It's a little abstraction for me, maybe you can raise a draft pr and let me look at it.

It's a little abstraction for me, maybe you can raise a draft pr and let me look at it.

Yes.


Symfony 3 support

Is it planned to support Symfony 3?

Bundle is now deprecated
Pull request #20 exist, maybe we can merge it, but need code review

Hi @sdieunidou,
are you planning merge Pull request #20 ? Maybe to some branch 3.x?
Thanks,
Matías

Hi,
As it's mentioned in the readme : https://github.com/lexik/LexikMonologBrowserBundle#this-bundle-is-deprecated
You should use an other service like graylog or sentry!

@spike31 Tu peux ajouter le flag sur packagist ( https://packagist.org/packages/lexik/workflow-bundle ) en cliquant sur "Abandon".
Les utilisateurs auront le message lors de l'update composer: https://www.tomasvotruba.cz/assets/images/posts/2017/deprecate/composer-info.png

Ah ouais merci :) !


add test with legacy schematic with not supported block and metadata

illustration for #14

Looking at the failing ids, 54:0 is a chest, maybe there is something special about tile entities. But 0:7 doesnt make sense: air doesnt have metadata.


Date format is assumed to be American

When storing dates as properties, it seems an assumption is made that a date has been provided in the American format. If you enter a date in the format 10-20-2000, this will be converted to 2000-20-10. In cases where both the date and the month are 12 or below, the converter will assume you are using the American format. Therefore an input of 01-02-2000 will be converted to 2000-01-02. Is there a workaround to this? Can the date format be added or amended as this is causing issues in Europe.

@BellaDunnett, I am attempting a repro and should have a response for you by the end of day, today.
In the mean time, can you tell me which version of Composer you are using? Can you also include an example of a date input so I can test as close to your issue, as possible?

Thanks @stevkan - I'm using 1.4.0.
I've provided an example in my issue above - try 01-02-2000. In the UK this is the 1st of February. If you then look at how the date has been stored, it's been saved as the 2nd of January.

Hi @BellaDunnett, you can use the 'formatDateTime' pre-built function to force the output to always display in the correct format. In the below snippet, the user's date input is saved to the dialog.suppliedDate property. It's then passed into the function where the format and locale are both specified. You may be able to get away without specifying the locale (again), but the 'dd-MM-yyyy' formatting is the necessary part to making it work.
formatDateTime(dialog.suppliedDate[0].Value, 'dd-MM-yyyy', 'en-UK')
In these two examples, the 'Supplied' date is the raw output of the user's input. The 'Formatted' date is the output using the above 'formatDateTime' pre-built function.

Hey @stevkan - the supplied version that I get flips the date in a way that yours doesn't seem to have done. If you look at the screenshot attached, my 'supplied' version is '2000-01-02' whereas my 'formatted' version is '02-01-2000', even though I enter 01-02-2000 (and meant the 2nd January, 2000). It's not an issue with formatting after the property has been stored, it's that the property is being stored incorrectly. I've attached a couple of screenshots so hopefully you can give me some guidance! [

](url)

Just to be clear, as I think there may be some confusion on my end, are you expecting the stored value to be dd-MM-yyyy or MM-dd-yyyy?
As far as a workaround, the idea was to use the formatDateTime() function to either update the stored value or convert the stored value to a new property that is then consumed by your bot. As I don't know how you are reading and/or using the stored property, the latter option may not be of use.

I want to store the value as dd-MM-yyyy. The problem is that the time value is being misinterpreted as MM-dd-yyyy if the day of the month is lower than 13. Therefore, when I switch the value round to dd-MM-yyyy, it is flipping the days with the month. Hence the screenshots above.
For example, 1st February 2020 (01/02/2020). When entered as 01/02/2020 this is stored as 2020/01/02. If I then flip this round to dd-mm-yyyy, I will get 02/01/2020. This is the 2nd January 2020.
The issue is not with converting the time format after storage, it is with preventing the initial storage from assuming I have provided an american date and time format.

@BellaDunnett, thank you for your patience. This does appear to be a legitimate bug as I've been able to repro it. It will require a fix to be applied. In the mean time, I've been trying to determine if there is a suitable workaround, however I haven't found one, yet. I've reached out to some colleagues for additional guidance and will provide an update when I know more.