Wrong definition of the type AsyncComponentFactory

Version
2.6.10
Reproduction link
https://github.com/vuejs/vue
Steps to reproduce

compare the AsyncComponentFactory definition with the document

What is expected?
attribute 'component'  should be a promise
What is actually happening?
AsyncComponentPromise

I'm looking forward to your solution to this issue

It seems the type should be Promise<Component | EsModuleComponent>

Is this issue still available

Any update here?

guys i wanna make things done
SVG click event is not working..
https://github.com/tulpauction001/tulp
https://tulpauction001.github.io/tulp/path.html

hi , my name is Arman I'm python developer such as Django I'd like extremely Django but I've problem for set static in URL please help me what should I do ?? Thanks
I've problem => style="background-image: url"{'%static img/bg_image_3.jpg'%};"

is anyone working on this  issue ?

@guptadeepak8 This issue already has a PR but looks like it still needs to be merged.

Need help

@adamcole123 Seems like it, this PR has gone unnoticed.

I have the need to understand this proposed of resolution.

لقد مرت هذي العلاقات العامه لاستطيع

Should be Promise<Component | EsModuleComponent>

Version
2.6.10
Reproduction link
https://github.com/vuejs/vue
Steps to reproduce

compare the AsyncComponentFactory definition with the document

What is expected?
attribute 'component' should be a promise
What is actually happening?
AsyncComponentPromise
I'm looking forward to your solution to this issue

.5

i get a lot of those oh and hi

if u want me to help then I'll be happy to

Is this issue still available?

Is this issue still available
<EMAIL_ADDRESS>Is it not maintained now, so what is the point of solving this issue?

Is this issue still available?

is this issue still available ?

if available, I can work on this @jvik @posva


KYLIN-5359 'replace' function expression convert error

Proposed changes
statement "select name, replace(name, substring(name, 1, 1), '--') as new_name from LZ_TEST_YUFA " query failed,
errorMsg：java.lang.ClassCastException: org.apache.spark.sql.Column cannot be cast to java.lang.String while executing SQL: "select * from (select name, replace(name, substring(name, 1, 1), '--') as new_name from LZ_TEST_YUFA) limit 50000
Reason: In the ExpressionConverter, the substring returns a column object, while in the replace conversion, the function parameter is forced to be converted to a string.

Branch to commit

[ ] Branch kylin3 for v2.x to v3.x
[x] Branch kylin4 for v4.x
[ ] Branch kylin5 for v5.x

Types of changes
What types of changes does your code introduce to Kylin?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have created an issue on Kylin's jira, and have described the bug/feature there in detail
[x] Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
[ ] Compiling and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>or<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

LGTM


Update for Rails 5 compatibility

Rack 2.0 changed the session store API.
See: rack/rack@4224c02

Not sure what's changed with reseting the session that it is not changing the session_id value 😖

@JonathanTron any idea why some of the Travis jobs seem to randomly fail with errors like FATAL: database "sequel_rails_test" does not exist?

When is this going to be merged? I've been using @jkowens fork with Rails 5 quite successfully.. only issue I have is SQL queries don't get logged in console. Have you noticed this too?

@ludalex I created a quick Rails 5 demo app and I'm seeing SQL queries logged in the console.

@ludalex I was just reviewing some commits and I came across this #109. It looks like logging depends on a method that was added to Sequel in version 4.35.0. I'm wondering if maybe you have an older version?

@jkowens nope, using sequel (4.36.0).
And this is how I use your fork/branch: gem 'sequel-rails', :github => 'jkowens/sequel-rails', :branch => 'rails5'. See some issues with it?
Also I didn't configure anything logging-relataed in my app, which is a fairly new one too, created with rails new app --api --skip-active-record

@ludalex Is there any output in your development.log? Do you see SQL queries logged if you build sequel-rails from master?
gem 'sequel-rails', :github => 'TalentBox/sequel-rails', :branch => 'master'

@jkowens queries in development.log are logged with both master and your branch.
I just set up a new rails5 project this time without the --skip-active-record flag and without removing lines that import active_record in application.rb queries get logged in console.
So i believe the not logging issue is due to something left out when creating a project skipping AR.
Also, I tried to manually remove AR from the rails5 test vanilla project and couldn't succeed due to ActiveSupport depending on it:

Stack trace when booting with `require "active_record/railtie"` commented in `application.rb`
 ```
/Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `active_record' for # (NoMethodError)
 	from /Users/ldx/testttt2/config/initializers/new_framework_defaults.rb:12:in `'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `load'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `block in load'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:287:in `load'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/engine.rb:648:in `block in load_config_initializer'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications.rb:166:in `instrument'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/engine.rb:647:in `load_config_initializer'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/engine.rb:612:in `block (2 levels) in '
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/engine.rb:611:in `each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/engine.rb:611:in `block in '
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:30:in `instance_exec'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:30:in `run'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:44:in `each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:415:in `call'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:347:in `each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:347:in `call'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/initializable.rb:54:in `run_initializers'
 	from /Users/ldx/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.0.0/lib/rails/application.rb:352:in `initialize!'
 	from /Users/ldx/testttt2/config/environment.rb:5:in `'
```

@ludalex you also need to comment out the following line in your config/initializers/new_framework_defaults.rb:
#Rails.application.config.active_record.belongs_to_required_by_default = true

@jkowens you're correct, after doing that, it works fine - and it becomes exactly like a project created with --skip-active-record - and doesn't log queries in the console.
I think this is the issue: #113 - basically it stops logging when AR is removed.

Any updates on this PR? Anything I can do to help get it moving again. Would love to see this get merged as it's something I need.

@adamgotterer I think @JonathanTron or @JosephHalter just need to weigh in on the updates. The commits in this PR mostly just handle the changes for the Rack 2.0 session store. Hopefully they'll get merged in soon!
As far as the logging issue, it sounds like it needs a PR created to fix it. I didn't see the issue @ludalex described. @ludalex did the fix mentioned in #113 fix your issue?

Is the rack 2.0 session store the only thing preventing sequel-rails from working with Rails 5?

The specs turned green 😉
I created a basic test app, and everything seemed to be working ok. If you have an existing app that you're upgrading to Rails 5 it would be interesting to hear your results.

Thanks for your work, I'll be working today on releasing a new version.

@JonathanTron Thanks!


Gaspar/turborepo examples update react next

Merging as this was approved internally. site deployment failure is unrelated to this PR. cc @nathanhammond for visibility


Suppress swing of needle?

A customer has this request where, the needle should not swing when updating to the latest value (could be same or different). Is there some animation flag I can turn as false to suppress the swing?

The swing could be suppressed by setting needleUpdateSpeed property to 0.
P.S. @chainhead sorry for a late response, hopefully that could still be useful.


Add demo to README

I'd suggest https://typespecimens.xyz/builder/demo/ ?

Thanks for the suggestion, great idea!


[MB-7068] fix typo in AK3 Test

Description
This PR fixes a typo in the AK3 test that was causing a server test failure
Setup
There should no longer be any failing server test
make server_test

Something seems wrong with my commit history. I will close this and open a new one


Welcome banner

This adds a welcome banner to sbt where we can advertise new features. I built off of #4783 to use the centralized system properties.

ethanatkins@Ethans-MacBook-ProZ:~/work/swoval/files$ sbt -Dsbt.version=1.3.0-SNAPSHOT
[info] Loading settings for project global-plugins from global.sbt ...
[info] Loading global plugins from /Users/ethanatkins/.sbt/1.0/plugins
[info] Loading settings for project files-build from plugins.sbt,build.sbt ...
[info] Loading project definition from /Users/ethanatkins/work/swoval/files/project
[info] Loading settings for project swoval from build.sbt ...
[info] Set current project to swoval (in build file:/Users/ethanatkins/work/swoval/files/)
[info] Welcome to sbt 1.3.0-SNAPSHOT.
[info] Here are some highlights of this release:
[info]   - Coursier: new default library management using https://get-coursier.io
[info]   - Super shell: displays actively running tasks
[info]   - Turbo mode: makes `test` and `run` faster. Try it by running `set ThisBuild / turbo := true`.
[info] See https://www.lightbend.com/blog/sbt-1.3.0-release for full release notes.
[info] Hide this banner from future sbt sessions by running `skipWelcomeBanner`.
[info] sbt server started at local:///Users/ethanatkins/.sbt/1.0/server/d3089ae249e6fafad0da/sock
sbt:swoval>


error no report open

the report not open automatically , we need to go to the "DPAT Report" folder and then open HTML

Hi and thanks for reporting. Can you include some more information about which operating system you are using and what your default browser is. Also, do you receive an error or does the report just not open without seeing an error?


Nuke : OCIODisplay not working correctly on non-RGBA channels

OCIODisplay works fine on the RGB channels, but, if the layer is set to "all", or one of the other layers, it only seems to apply to the red and blue channels, and leaves the green as it was.
It also applies the whole conversion if any of the channel checkboxes for a layer are checked. I would suggest that more intuitive behaviour would be to do the conversion based on the entire layer, but then only actually use the channels that are checked.
I'm going to take a look at this, and see what I can do. The green channel missing on other layers is, in my mind, definitely a bug, but do people agree that the channel checkboxes should be taken into account?

@slooper - any further thoughts on this?
(I could turn around and ask, but pinging you on github is more fun). ;)

Ya, I think the "layer" knob needs to be obsoleted.  It's competing with the
"channel view" knob and that knob is required for the Viewer connectivity.
-sean
On Tue, Oct 25, 2011 at 3:32 PM, Jeremy Selan <
<EMAIL_ADDRESS>
@slooper - any further thoughts on this?
(I could turn around and ask, but pinging you on github is more fun). ;)
--
Reply to this email directly or view it on GitHub:
https://github.com/imageworks/OpenColorIO/issues/167#issuecomment-2524069


[Bug]: internal CA certificate mechanism does not work with non-root user

Please add the exact image (with tag) that you are using
eclipse-temurin:11-jre-jammy
Please add the version of Docker you are running
N/A
What happened?
As per the documentation "Can I add my internal CA certificates to the truststore?" and following implementation of https://github.com/adoptium/containers/issues/293 and https://github.com/adoptium/containers/pull/392, I wanted to mount my internal CA certificate in a container at runtime.
The issue is that the internal CA certificate is not taken into account, an error is raised at start time:
cp: cannot create regular file '/usr/local/share/ca-certificates/mycert.pem': Permission denied

From my first investigation, this is related to the fact that we use a non-root user whereas the internal CA handling can only work if the running user is root.
Simplified Dockerfile:
FROM eclipse-temurin:11-jre-jammy

RUN addgroup --system my_user && adduser --system --shell /bin/false --no-create-home --ingroup my_user --uid 999 my_user
USER 999

WORKDIR /app

# Copy some JAR file in /app/lib

CMD java -cp "/app/conf:/app/lib/* "my.package.MyMainClass"

And run with the following command:
podman run -v ./mycert.pem:/certificates/mycert.pem -e USE_SYSTEM_CA_CERTS=1 myImageName

Commenting out the directive to run as non-root makes it work.
In a Kubernetes context where non-root is enforced, it makes the feature unusable.
However I don't know if this even possible to make it work as non-root. If not, I guess we should at least document it.
Relevant log output
No response

@rassie any ideas?

It's a good thing this feature is opt-in, I guess. Kubernetes being mostly non-root is a good point which I didn't have in mind when developing the PR.
Currently, we are explicit about using system CA store for JRE's trust store, just like openjdk images used to do. This is basically a two-step-process: add certificates to system CA store first and then use those certificates in JRE store. The first step is inherently something that requires root permissions, since we are updating a system CA store. The second step also currently requires root user, since the /opt/java/openjdk/lib/security/cacerts file belongs to root and thus cannot be updated by user.
Both steps should still probably be possible in a non-privileged container -- there are valid reasons for updating the system CA store even without any JRE context and same reasons are valid for updating JRE's trust store. I'm not quite sure what would be the best way to proceed, but at least for the latter part, creating and using a trust store at a different filesystem location could be the way, but it doesn't help with system CA store.

Workaround:
You could additionally install a tool like su-exec in the docker image and prepend it to the command.
You would run the container as root.
It updates certificates running the default entrypoint.
Then the command starts your application with su-exec with user and group whatever you want.

Hi @gaeljw ,
I've run into the same issue. The __cacert_entrypoint.sh script fails when I pass to docker -e USE_SYSTEM_CA_CERTS=1 and also pass -u $(id -u):$(id -g) . The latter is necessary for me, so that files created by the java process on a mounted volume do not end up belonging to root:root.

@danielthieleog :  Workaround: You could additionally install a tool like su-exec in the docker image and prepend it to the command. You would run the container as root. It updates certificates running the default entrypoint. Then the command starts your application with su-exec with user and group whatever you want.

I've implemented this workaround for the ubuntu-based image where no additional package installation was necessary.
The --preserve-environment option makes sure that additional env variables are passed on to the java process.
--- __cacert_entrypoint.sh_orig	2024-08-23 20:44:20.292460198 +0200
+++ __cacert_entrypoint.sh	2024-08-23 20:44:33.741383377 +0200
@@ -27,4 +27,11 @@
     trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$CACERT"
 fi

-exec "$@"
+if [ -n "$RUN_AS" ]; then
+    # 'su/runuser' insist on existing groups/users, so we create them
+    addgroup --gid ${RUN_AS##*:} tempgroup
+    adduser --uid ${RUN_AS%%:*} --gid ${RUN_AS##*:} --no-create-home --disabled-password --gecos , tempuser
+    runuser --group tempgroup --user tempuser --preserve-environment -- "$@"
+else
+    exec "$@"
+fi

@rassie if you are interested, I could check out which (if any) changes are necessary to get it to work with the ubi and alpine based images. Are you open to a PR with such a RUN_AS feature ?


[WIP] Add ability to use several fs

Hey!
I PR-ed some draft implementation of using several statik-generated filesystems.
If concept looks good, I can polish this PR (add flag to generator, backward compatibility, etc...)
Looking for feedback!

cc @jcchavezs


Tetris Game using ReactJS

Describe the project
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Additional context
Add any other context or screenshots about the project here.
Screenshots

If applicable, add screenshots to help explain your problem.

Game is not considering

ok Sir


flutter/ld: spaces in path makes building impossible

Describe the bug
Basically, if you try to build a flutter project in a path with spaces using nix, it just fails with
/nix/store/j2y057vz3i19yh4zjsan1s3q256q15rd-binutils-2.41/bin/ld: cannot find $REST_OF_PATH/outputs/out/lib: No such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Steps To Reproduce
Steps to reproduce the behavior:

create a flutter project  (using a nix flake) in a path that has spaces
use nix develop or vscode + extensions to run "flutter build"
fails as described

Expected behavior
Just runs
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
If it's in a path without spaces, it works.
On a Fedora VM, exact same path, without nix, just the sdk downloaded and set up in $PATH, it works fine too.
Maybe related to https://github.com/NixOS/nixpkgs/issues/226034 ?
Notify maintainers
@hacker1024
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.0-zen1, NixOS, 24.05 (Uakari), 24.05.20240323.44d0940`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/amxd2p02wx78nyaa4bkb0hjvgwhz1dq7-source`

Add a :+1: reaction to issues you find important.

Thanks for the report - I'll look into this shortly.
CC @NixOS/flutter


Install travis ci

The system has become to complex.
UnitTests are needed to support upcoming refactoring / clean ups.
First let's setup the CI.
Check:

phpunit (all scenarios)
behat (all scenarios)

On:

PHP 5.5
PHP 5.6
PHP 7

YAY!!!


Update slack-app-backend to 1.28.0

Updates com.slack.api:slack-app-backend from 1.27.3 to 1.28.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.slack.api", artifactId = "slack-app-backend" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.slack.api", artifactId = "slack-app-backend" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #89.


add option to abort setup (or pip) in case build error detected

add an option to stop build (and hence a pip install) in case of build error.
It may need some refinement (i can see at least 3 reasonable options:

never abort
abort if any build failed
abort only if all builds failed
)

so this option can be set individually in the packages' setup.py like:
from support import set_abort_on_build_failure
set_abort_on_build_failure(True)

Yeah that would be handy.
I’ve seen packages install that actually failed to build the worker, would be good to avoid that.

I will think a bit about it...
(environment variable control would be another option)

its now controlled by allow_build_failures with 3 options none, some or all which allows
either no failures, some (= continue as long as 1 build succeeded, also the default) or all (continue regardless) still controlled with supportrc (on the package level) or with a environment variable override
(AMUSE_ALLOW_BUILD_FAILURES)


Refactor ark-cli for Improved Code Organization and Readability

Description
Previously, ark-cli logic was concentrated in a few files, with large files such as ark-cli/src/main.rs containing all the logic for running the CLI by calling other functions. This made it difficult to debug, patch, and read the code. This PR is the first step towards addressing other issues within the crate.
Changes

Each command now resides in its own file, including its parameters and the function to run the logic.
Each subcommand is placed in a folder, with each command as a separate file.
All commands are included in a module that exports pub enum Commands.
Defined a run() method to handle the logic for each command.
The main() function now only calls run(), and if an error is encountered, it prints it to stderr. This enhances error handling.
Avoided using unwrap() when applicable.
Added FIXME notes to track planned changes.

@tareknaser could you investigate where does this output come from? We need to register a bug, I guess.
temp % ark-cli list --link
Loading app id at /Users/tareknasser/.ark...
http://google.com/
http://duckduckgo.com/
Username; Identifier;First name;Last name
booker12;9012;Rachel;Booker
grey07;2070;Laura;Grey
johnson81;4081;Craig;Johnson
jenkins46;9346;Mary;Jenkins
smith79;5079;Jamie;Smith

could you investigate where does this output come from? We need to register a bug, I guess.

I have traced this down and apparently, ark-cli list --link would attempt to read all resources and print the content of readable files without validation.
Here's the relevant code https://github.com/ARK-Builders/ark-rust/blob/main/ark-cli/src/main.rs#L161-L170 :
EntryOutput::Link => match File::open(path) {
		Ok(mut file) => {
			let mut contents = String::new();
			match file.read_to_string(&mut contents) {
				Ok(_) => (None, None, Some(contents)),
				Err(_) => return None,
			}
		}
		Err(_) => return None,
	},

To address this, I have pushed a commit to check if the file content is a valid link before printing it. This is a bit of a workaround.

@tareknaser

To address this, I have pushed a commit to check if the file content is a valid link before printing it. This is a bit of a workaround.

If a follow-up issue is needed, feel free to register it. I think, we can merge the PR but please remove the last 2 FIXMEs.


kamel --dev stuck when mvn dependencies has problem

Integration code:

import org.apache.camel.builder.RouteBuilder;

public class HelloJava extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("timer:tick")
            .setBody()
              .constant("Hello Camel K!")
            .to("log:info");
    }
}

kamel command ran:

kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev

Note the mvn dependency has a typo 'x' in it (on purpose). After a few seconds, kubectl get pods shows the pod building this integration has error'ed and terminated:
$ kubectl get pods
...
camel-k-kit-blde632ijc59bk8j4bug-builder   0/1     Error       0          59s

And the pod log shows it failed:
$ kubectl log camel-k-kit-blde632ijc59bk8j4bug-builder
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.323 s
[INFO] Finished at: 2019-08-19T18:00:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.0.0-M1: Could not find artifact com.google.guavax:guava:jar:26.0-jre in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
...

But now the kamel run cmd is stuck permanently:
$ kamel run -d mvn:com.google.guavax:guava:26.0-jre HelloJava.java --dev
integration "hello-java" created
integration "hello-java" in phase Initialization
integration "hello-java" in phase Building Kit

It should try a number of time before failing and marking the context as failed, what the status of the kit and build ?
oc get ik
oc get builds.camel.apache.org

k get ik
NAME                       PHASE   TYPE       IMAGE
kit-bla7d52ijc59bk8j4bpg   Ready   platform   <IP_ADDRESS>/default/camel-k-kit-bla7d52ijc59bk8j4bpg:925
kit-bla7fliijc59bk8j4bq0   Ready   platform   <IP_ADDRESS>/default/camel-k-kit-bla7fliijc59bk8j4bq0:1380
kit-blapapaijc59bk8j4bqg   Ready   platform   <IP_ADDRESS>/default/camel-k-kit-blapapaijc59bk8j4bqg:23226
kit-blddgsaijc59bk8j4br0   Error   platform
kit-blddlqaijc59bk8j4brg   Error   platform
kit-blddo1qijc59bk8j4bs0   Error   platform
kit-blddqdiijc59bk8j4bsg   Ready   platform   <IP_ADDRESS>/default/camel-k-kit-blddqdiijc59bk8j4bsg:123443
kit-blddr8iijc59bk8j4bt0   Ready   platform   <IP_ADDRESS>/default/camel-k-kit-blddr8iijc59bk8j4bt0:123641
kit-blddvhqijc59bk8j4btg   Error   platform
kit-blde2sqijc59bk8j4bu0   Error   platform
kit-blde632ijc59bk8j4bug   Error   platform
kit-blde8e2ijc59bk8j4bv0   Error   platform
kit-bldedsiijc59bk8j4bvg   Error   platform
kit-bldehbqijc59bk8j4c00   Error   platform
kit-bldeiuiijc59bk8j4c0g   Error   platform

k get builds.camel.apache.org
$ k get builds.camel.apache.org
NAME                       PHASE       AGE     DURATION        ATTEMPTS
kit-bla7d52ijc59bk8j4bpg   Succeeded   4d21h   45.07936856s
kit-bla7fliijc59bk8j4bq0   Succeeded   4d21h   23.654313415s
kit-blapapaijc59bk8j4bqg   Succeeded   4d1h    28.871831798s
kit-blddgsaijc59bk8j4br0   Error       73m     10.249486ms     5
kit-blddlqaijc59bk8j4brg   Error       63m     12.318934ms     5
kit-blddo1qijc59bk8j4bs0   Error       57m     14.047859108s   5
kit-blddqdiijc59bk8j4bsg   Succeeded   55m     19.092160521s
kit-blddr8iijc59bk8j4bt0   Succeeded   53m     18.049171957s
kit-blddvhqijc59bk8j4btg   Error       41m     14.969841284s   5
kit-blde2sqijc59bk8j4bu0   Error       35m     12.937687215s   5
kit-blde632ijc59bk8j4bug   Error       28m     8.325443942s    5
kit-blde8e2ijc59bk8j4bv0   Error       23m     8.457304942s    5
kit-bldedsiijc59bk8j4bvg   Error       11m     14.30017211s    5
kit-bldehbqijc59bk8j4c00   Error       3m55s   14.154874494s   5
kit-bldeiuiijc59bk8j4c0g   Error       33s     13.63103897s    5

@lburgazzoli another unrelated questions. is there a mailing list / forum where I can post onboarding questions? I'm reading through https://camel.apache.org/staging/camel-k/ but can't find some of the questions, such as support of private (mvn) artifactory.

@jinfengnarvar  You can use<EMAIL_ADDRESS>or just post the question through github issue.

can we close this one ?


Proposal: JIT loading of Javascript grammars via CDN

The idea is to be able to have the largest assortment of languages on tap without greatly increasing the size of the core download - and without manually having to adding individual script tags to load via CDN.  This is great for use cases like one-off languages or blogs where every once in a while you pull in another language but most of the time you only use the core set.
I suggest we accomplish this with a configuration key for AllowedCDNAddress or something where you set the CDN prefix such as:
configure({
  allowedCDNAddress: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/languages/"
})

Then whenever anyone specified an explicit language (ie, lang-fortran77) we'd probe the CDN and if the .../languages/fortran77.min.js file is available we'd fetch/load it - and after it loaded successfully we'd then queue the highlight to happen.  If the JS file can't be fetched, the highlight would fail and only the hljs style would be applied.
It might also be useful to allow the user to specify the list of approved languages to load:
configure({
  allowedCDNAddress: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/languages/",
  allowedCDNLanguages: ["fortran77", "fortran90"]
})

This would have the side benefit of increasing security (although you shouldn't be using the CDN if you don't trust it anyways) and also then allowing the simpler fortran77 class naming vs lang-fortran77 - since we have a list on hand to check each class name against and see if it potentially MIGHT be a valid language.
I think this would be a pretty simple add actually and a fun little project if anyone wanted to tackle it.  Rough idea:

When highlightBlock is called, see if the language is available (or potentially available) and not loaded
Load/fetch it... (and here we're assuming it's one of our standard auto-registering CDN modules)
Add the block to a queue for the given language of "pending" highlights.
When registerLanguage is called, check the queue for the just registered language to see if any blocks are waiting.
.5 If there are any items in the queue, now highlightBlock can be called again and this time it will immediately work since the language is now loaded.

I think the current hook system is able to do  this task without having to touch the core library. I’m thinking like this would be achieve-able:
hljs.addPlugin({
    'before:highlightBlock': ({block, language}) => {
        if (!languageExistsFunc(language)) {
            let script = createScriptFunc(cdnPath + '/' + language + '.js');
            document.head.appendChild(script);
            script.addEventListener('load', () => {
                hljs.reinitialize();
            });
        }
    }
});

hljs.reinitialize = () => {
    codeElements.forEach(codeElement => {
        if (!codeElement.classList.contains('hljs')) {
            hljs.highlightBlockButDoNotFireTheHook(codeElement);
        }
    });
};

Inside the cdnPath + '/' + language + '.js' file, we have this:
hljs.registerLanguage('foo-bar', self => { ... });

I like the thinking here, and we should continue this discussion.

hljs.initHighlightingButSkipAlreadyHighlighted();

Adding new API means this can't be done "with purely the hook/plugin system".  Is there a reason the plugin can't just call highlightBlock again recursively?  Once the language is loaded the behavior would be as expected.
The problem is right now I'm not sure we have a "do nothing" return value so that a plugin could essentially prevent highlighting and schedule it for later.
There is also the fact that blockLanguage is run BEFORE the before block highlight call... so I'd have to review that code to make sure it wouldn't break in light of an "unknown" language.
If you wanted to whip up a WORKING version of this and see what the real and imaginary issues are it'd be worth having a look at I think.

Inside the cdnPath + '/' + language + '.js' file, we have this:

Yes, the existing CDN files should work "as is" for this type of system AFAIK.

Is there a reason the plugin can’t just call highlightBlock again recursively.

Yes, but looks like current implementation doesn’t care whether a code block is already highlighted or not.

The problem is right now I’m not sure we have a “do nothing” return value so that a plugin could essentially prevent highlighting and schedule it for later (or do it recursively).

So, need an extra check whether a block already has a hljs class or not here:
hljs.initHighlightingButSkipAlreadyHighlighted = () => {
    document.querySelectorAll('pre code:not(.hljs)').forEach(hljs.highlightBlock);
};

If you wanted to whip up a WORKING version of this and see what the real and imaginary issues are it’d be worth having a look at I think.

let’s see :wink:

Yes, but looks like current implementation doesn’t care whether a code block is already highlighted or not.

So? That shouldn't matter... the default implementation only calls highlightBlock once for all blocks... if the plugin behavior is correct it should "just work".  It should just hook the load event... and then "do nothing"... then the load event fires, blockHighlight is called again and runs to competition.

So, need an extra check whether a block already has a hljs class or not here:

This shouldn't be necessary. But I wonder if it's not an unreasonable idea. :-)

So it can avoid trying to load more than once.

This should detect if language already registered. Once registered, no need to load the language file:
if (!hljs.getLanguage(language)) { ... }

But I wonder if it’s not an unreasonable idea.

Because scriptElement.addEventListener('load', () => { ... }) need a time, so we need a way to refresh the highlight task on every script-load event. Unless we have something like async, await system so that initHighlighting() can be executed after ALL language files has been loaded.

Still feel like you are WAY over thinking this problem:
# pseudocode
before("highlightBlock", [block, lang, etc] ) do
  return if languageLoaded(lang) # do normal thing

  loadLanguageFromURL(urlFor(lang)).then do
    hljs.highlightBlock(block) # this will not work since language is loaded
  end
end

Nothing regarding onload needs to change.  The plugin just needs to handle calling highlight block  itself once it's knows the language is loaded.

Ah, now I see that before:highlightBlock hook runs on every block, so no need to iterate over again :laughing:
hljs.addPlugin({
    'before:highlightBlock': ({block, language}) => {
        if (!hljs.getLanguage(language)) {
            let scriptElement = createScriptFunc(cdnPath + '/' + language + '.js');
            document.head.appendChild(scriptElement);
            scriptElement.addEventListener('load', () => {
                hljs.highlightBlock(block);
            });
        } else {
            // Let `hljs.initHighlighting()` or `hljs.initHighlightingOnLoad()` do the job!
        }
    }
});

I’ll try to make this plugin, maybe tomorrow.
PS: Making a line-numbers plugin shouldn’t be difficult.

Done! :grin:
https://github.com/taufik-nurrohman/highlight.jit.js
FYI, language property returns undefined if no language is registered. So, in my plugin, I need to loop through the class name to temporarily treat them as a language name.
https://github.com/taufik-nurrohman/highlight.jit.js/blob/1ff338a22221967e7d168f6558b433d53608b347/highlight.jit.js#L21&L22

Pretty nice.
    hljs.currentLanguagePath = currentLanguagePath;
    hljs.currentStyle = currentStyle;
    hljs.currentStylePath = currentStylePath;

This makes me wonder if we should open up options somehow (to read), but you got by just fine without it...

So, in my plugin, I need to loop through the class name to temporarily treat them as a language name.

Kind of the same way we go about it... Really you should REQUIRE lang- or language- prefix so that you aren't just loading random JS files based on EVERY class.  I could imagine some HTML with a crazy number of classes for some reason.  Making one web request for each class is a little crazy.

Just curious what is the point of the CSS loader?

Now we need to figure out how to link to 3rd party plugins like we link to 3rd party languages.

This makes me wonder if we should open up options somehow (to read).

Related: https://github.com/highlightjs/highlight.js/issues/1969

Really you should REQUIRE lang- or language- prefix so that you aren’t just loading random JS files based on EVERY class.

Already added to my TODO list.

Just curious what is the point of the CSS loader?

Ahahahha, you don’t like it? I should remove it then :laughing:

Now we need to figure out how to link to 3rd party plugins like we link to 3rd party languages.

Isn’t stacking the plugin files next to the core HighlightJS file enough for us?

@yyyc514 Unfortunately, this line causes the before:highlightBlock to be discarded because the language variable returns no-highlight:
Here, blockLanguage() returns no-highlight:
https://github.com/highlightjs/highlight.js/blob/63f367c46f2eeb6f9b7a3545e325eeeb917f9942/src/highlight.js#L86
And so this:
https://github.com/highlightjs/highlight.js/blob/63f367c46f2eeb6f9b7a3545e325eeeb917f9942/src/highlight.js#L655
Which caused this condition to be true:
https://github.com/highlightjs/highlight.js/blob/63f367c46f2eeb6f9b7a3545e325eeeb917f9942/src/highlight.js#L657

Without language- prefix, result will be undefined, which is okay. Since no language- prefix was set, the shouldNotHighlight(_class) part will never be called (PS: this part should be safe to be removed):
https://github.com/highlightjs/highlight.js/blob/63f367c46f2eeb6f9b7a3545e325eeeb917f9942/src/highlight.js#L89-L91

Bug: https://taufik-nurrohman.js.org/highlight.jit.js/test/priority.html

@yyyc514 Is calling highlightBlock() within before:highlightBlock or after:highlightBlock will make that hook fired recursively?
I don’t see that happen but based on the current highlightBlock() function, it should be.

Ahahahha, you don’t like it? I should remove it then

Dude, your plugin. :-)  I was just asking what the purpose was?

Isn’t stacking the plugin files next to the core HighlightJS file enough for us?

Stacking?

Stacking?

<script src="highlight.js"></script>
<script src="highlight.jit.js"></script>
<script src="highlight.ln.js"></script>
<script src="..."></script>

I meant we need to read me index for plug-ins so that users of the library know where they can find third-party plug-ins.

@yyyc514 Is calling highlightBlock() within before:highlightBlock or after:highlightBlock will make that hook fired recursively?

I think I missed this before?  Yes, you'd have to guard against that.  You may not be seeing an issue because the second time you are called the JS is already loaded?  But if someone called you too quickly then you might get "stuck".
I'm really not sure highlightBlock is intended to be hooked this way as it has no good way to say "pause and resume later"...  So right now using it this way is going to be pretty hacky.

And I'd think the first highlight call would blow up with an error because the language wasn't found?

Makes me wonder if we should perhaps expose "shouldNotHighlight" as a plugin callback... so a plugin would have a way of "rejecting" language and this could be used to build auto-load functionality... reject the first time (if language is missing), download it, when download complete, call highlightBlock again.

And I'd think the first highlight call would blow up with an error because the language wasn't found?

Yes.

I'm going to close this issue.  This was kind of my pet desire because I could use it in a project I was working on... but upon further reflection I'm not sure this belongs in core.  It's easy enough to do with a small wrapper (as you've shown).

if there would have been any code splitting involved using async import() then we wouldn't have to specify a cdn library
the cdn would just import things relative to the cdn you are using...

I still think some people might potentially want the files in other places... but you're saying you could simply have a CDN_LOCATION default value like "./grammars or some such and it would be local to the URL you fetched the library from?  That makes sense.


Deploy 2.3.2-SNAPSHOT to maven central

Could you deploy the 2.3.2-SNAPSHOT on maven central ?
I'm probably not the only one having a broken pipeline because of this missing dependency (proguard-base:7.0.0).
Thanks

I hope to release it as a real release by the end of this week.

That would be nice, ATM I can't deploy the bug fix of my application.

Any update on this topic?
When next version will be available on the maven repository?

Release fails now due to https://issues.sonatype.org/browse/OSSRH-66257?jql=text ~ "java 16"
but I will have to downgrade Java to release or get the workaround working.

2.4.0 is now in Maven Central
https://repo1.maven.org/maven2/com/github/wvengen/proguard-maven-plugin/2.4.0/


Rename 'Open Folders in Finder' to 'Open Folders', per Coyne

@keybase/react-hackers

:mag_right: No visual changes found as a result of these commits.

👍

:+1:


Fixes #35 Remove duplicate stateful apps entry

@CathPag It looks like all of the content @TomLeyden created in the Google doc was brought into the stateful_apps.md entry.
Let me know if I misunderstood what needs to be done here - I only deleted the duplicate file.

@SamDelamarter, yes, and now we have three entries:

stateful_apps.md
stateful_vs_stateless_applications.md
stateless_apps.md

We need one for stateful and another one for stateless. Don't want to delete the stateful vs stateless entry if there is good info in there. Wanna consolidate? Tom didn't have time, so if you'd like to tackle that, that'd be great!


TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined

Hello,
When I try to open the following folder in Ionide I receive the error that was taken from the developer tools:
Uncaught Exception:  TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
extensionHost.ts:293[Extension Host] TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:2176:30
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1674:39
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1674:39
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at Function.from (native)
    at mapResult (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:24:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:145:20
    at Array.map (native)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:144:22
    at handleNotification (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:147:7)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:170:9
    at WebSocket.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Core/LanguageService.js:377:13)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)A.logExtensionHostMessage @ extensionHost.ts:293
shell.ts:541Cannot read property 'Symbol(Symbol.iterator)' of undefined: TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:2176:30
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1674:39
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1674:39
    at Object.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/node_modules/fable-core/fable-core.js:1689:24)
    at Function.from (native)
    at mapResult (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:24:24)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:145:20
    at Array.map (native)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:144:22
    at handleNotification (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:147:7)
    at /Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Components/Errors.js:170:9
    at WebSocket.<anonymous> (/Users/Rakkatakka/.vscode/extensions/Ionide.Ionide-fsharp-2.17.1/Core/LanguageService.js:377:13)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)e.onUnexpectedError @ shell.ts:541

OS: macOS Sierra 10.12.2
Compiler: mono 4.8.0 (I tried the latest stable version as well)
Mono JIT compiler version 4.6.2 (mono-4.6.0-branch/08fd525 Thu Nov 10 20:28:28 EST 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug
	LLVM:          yes(3.6.0svn-mono-master/8b1520c)
	GC:            sgen

Mono JIT compiler version 4.8.0 (mono-4.8.0-branch/f5fbc32 Mon Nov 14 14:10:00 EST 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug
	LLVM:          yes(3.6.0svn-mono-master/8b1520c)
	GC:            sgen

It seems that due to this error there is no error highlighting on save.
Please, let me know if additional info is required.
Thanks.

This looks familiar, I think it was fixed in later fable.

It's not fable error, I'm getting some wrongly handled message and I try to iterate over something that's not Array / Seq.

Fixed in 2.18.2

@Krzysztof-Cieslak Thanks a lot!


View Data link enabled for mutation data but table is empty

https://www.cancermodels.org/data/models/JAX/TM00025

@mriios @ficolo
This seems to be a UI issue. I don't remember if known or not. The endpoint https://www.cancermodels.org/api/details_molecular_data?or=(patient_model_id.eq.51539607556,xenograft_model_id.eq.51539607556,cell_model_id.eq.51539607556)  retrieves correctly the flag for this record, informing that data_availability is false, and that's what is happening in the data: JAX_molecular_metadata-sample contains an entry for BL0470F1820P0 with platform mutation_Truseq_JAX but there is no mutation data associated to that sample/platform. The UI should somehow inform about this instead of showing the VIEW DATA link which leads to an empty table when clicked.

@mriios @ficolo ?

@zperova done


Remove or fix the Activity from Homepage

Currently the "Activity" feed is not working, so we display just an empty heading.

We should fix it.
Related: #12

What should be displayed there?

It used to be the activity from GitHub: creation of issues or commits.

Maybe we accomplish this with webhooks or GH api calls?

Hello admin, I would like to work on this issue under GSSoC'19. Please guide me further and assign me this issue.

Thanks @NirmalKumarJoshi !   @evalica should be able to guide you further.

Thanks @RDIL and @evalica

@RDIL At the time of installation it is given that you have to be the member of the organisation. What to do?

@NirmalKumarJoshi there is a join button somewhere on the website.

@NirmalKumarJoshi I've not gone through the installation, but I (think) it means joining the Open Source Design organisation.
Can you tell me where this occurs?

Yeah I joined it. Thanks.

I am facing these errors while installation

@NirmalKumarJoshi run the following commands in your terminal:
gem install github-pages
gem install nokogiri -v '1.10.1' --source 'https://rubygems.org'

If any of the commands fail, try putting sudo before them.
Hope this helps!

No there are still some issues.

Then just try running
gem install github-pages

or
sudo gem install github-pages

There are same errors for this too.

Screenshot?

Hmm, ```
sudo gem install zlib
?

Same error as in above installation.
Wait I will setup the things again!

Regarding the original issue: If we keep the section, then we should also load the tweets and forum posts, as activity doesn’t only happen on Github. :)
@NirmalKumarJoshi @RDIL is this following the Installation guide at https://github.com/opensourcedesign/opensourcedesign.github.io#installing ? The install script should normally take care of this – if anything is missing on your setup, could you add that? :)

@evalica @RDIL I would like to work on this issue, as it's still not resolved.

Let me see

@thesanjeevsharma the issue is all yours

@RDIL I am stuck with the installation! Tried all above solutions but still getting the same error every time regarding 'nokogiri'.
zlib is also installed.

Let me see if it works for me

@thesanjeevsharma : running bundle update does not retrieve all needed Gems ?

@Jc-L No, It crashes! Let me checkout the fix.

Is this issue fixed?
If not I want to fix it.

@Rishi007-web go to https://opensourcedesign.net/ and check if anything shows below the "Activity" heading. :) If not, then this issue is not fixed yet and you are free to work on it :+1:

Trying to set up the environment.
Please tell me, I directly fork and clone the project and then remove the activity area directly without installing ruby and jekll.
and please tell me one more thing I have to add some content in activity section or just remove it.

Please tell me, I directly fork and clone the project and then remove the activity area directly without installing ruby and jekll.

It should all work as per the "Installing" section in the Readme: https://github.com/opensourcedesign/opensourcedesign.github.io#installing – if it doesn’t, open an issue so we can see how to fix it.

and please tell me one more thing I have to add some content in activity section or just remove it.

Check what it is supposed to show – as far as I remember it should be our Twitter stream. It would be nice to fix that. :)

I don't see the 'activity' section on the website anymore so I'm tempted to say this issue was fixed somehow?
But I also created a new issue in the repo for new folks to stress test the installation process and document that in an .md somewhere in this repo :)
If someone who 'knows' if this is complete wants to close this issue they can 😄


customersCollection double update

Why you are calling set and update both with same data at same level?
https://github.com/RevenueCat/firestore-revenuecat-purchases/blob/0594e0d52d0d66f75f3a4e992d31f6a1b90c7d84/functions/src/index.ts#L71-L72

Hello @vicfergar, can you check this :) ?


Fails to build from a snapshot when Git is installed

Regressed by 15eeb77. Affects downstream that tries to build in a reproducible way.
$ curl -LO https://github.com/Hjdskes/cage/archive/master.tar.gz
$ tar xzf master.tar.gz
$ cd cage-master
$ meson _build
[...]
Program git found: YES (/usr/local/bin/git)

meson.build:95:10: ERROR: Unknown variable "version".

Thanks for reporting this!


Date Filter is possible to add datepicker calendar?

Make sure these boxes are checked before submitting your issue - thank you!

[Y] I have checked the superset logs for python stacktraces and included it here as text if any
[Y] I have reproduced the issue with at least the latest released version of superset
[Y] I have checked the issue tracker for the same issue and I haven't found one similar

I greet everyone. Please add a drop-down calendar to the date filter, like

Thank you.

It's a bit more complicated than that as our current date dropdown allows for bot fixed dates and relative dates. Expressions like 52 weeks ago or 4 hours ago or 2015 currently work. We'd need a slightly more complex control with a radio button (relative or fixed) that shows a datepicker or some form for [input int] [frequency] [ago/from_now] depending...

Perhaps it will be convenient for users. Thank you

We are interested in implementing this feature. @mistercrunch : could we make some proposal about which widget to use. Do you have any advice ?

Awesome @higaxman , it's now possible to build rich controls too. Here are a few thoughts:

the representation could be a simple text and a subtle edit icon
if no specific time is select (00:00:00) I wouldn't show it, just show what is relevant.
clicking the edit icon would pop a small bootstrap popover to the right of the text
inside the popover a radio button for fixed/relative
fixed would go along with the nicest react datepicker you can find, it has to allow date and time
relative would be perhaps 3 boxes

an input box that validates numeric
a time unit dropdown (seconds, minutes, hours, days, weeks, months, years), default to days
dropdown for ago or from now, defaults to ago

clicking the form controls in the popover flips the radio button accordingly to save a click. meaning if you click the time unit dropdown, it selects the relative option for the radiobutton, or if you click any part of the date picker, it chooses the fixed option
[probably out of scope], an option for UTC / timezones when using fixed dates

For an example of a rich control, check out this branch (unmerged) where I'm working on a popover for the metrics control.
https://github.com/airbnb/superset/compare/metrics...mistercrunch:metrics?expand=1

Thanks! Going to check it.

I am very interested in this feature. Please keep up the good work! I look forward to using a date-picker filter.

After a quick research, I'd go with http://dev.quri.com/react-bootstrap-datetimepicker/

@mistercrunch is it better than https://github.com/airbnb/react-dates ?

@xrmx we need the component to handle time as well, not just date

Hey @higaxman how's your progress coming on this? I'd be happy to help

Controls live here:
https://github.com/airbnb/superset/tree/master/superset/assets/javascripts/explore/components/controls
Create 2 instances for since and until here:
https://github.com/airbnb/superset/blob/master/superset/assets/javascripts/explore/stores/controls.jsx
Hard coded list here:
https://github.com/airbnb/superset/blob/master/superset/assets/javascripts/explore/components/Control.jsx#L21
you can move this list to an index.jsx if you think it's better

Hi @mistercrunch, wanted to know if we can use it ? or still in progress ? :)

No one is working on this at the moment as far as I know

So sad :'(

@vschoener don't be sad, that's an opportunity for you to implement it.

Will you add datepicker in next version? Any plans? AFAIK,datepicker is important for most developers and analysis.

This as been done, will be in next release.

Yes it is

Hey @mistercrunch will there be the ability to add the date picker as a filter to the dashboard itself such that it filters all visualizations simultaneously? I'd like to give end users the ability to readjust date ranges for the dashboard without having the ability/need to edit each chart individually. Thanks!

Thanks all for Apache superset contribution and s/w.
My question is. Are there any sample dashboard reports available with date filters? My team is especially looking for   having ability to switc/refresh the view based on reporting date change.

I added a Persian Datepicker to my superset that filters all the data inside a dashboard

.

I applied my changes in the following path:
superset/superset-frontend/src/visualizations/FilterBox
First I added my filter to the control panel with the following code:

After that I changed the transform Props file:

Finally, I added my filter to the FilterBox as follows:

And here is my filter file:

And Da Dam ...

@bbs2009 @xrmx @higaxman @pariser @vschoener @mistercrunch @KingAnnihilate @felexkemboi @TheScoobyBoy

@Danielmrg - Hello
Thank you for good idea
I did everything according to your screenshots
Tell me please the full path to install node.js and npm in SuperSet?
And also the path for jalali-react-datepicker


Menu doesn't show other sub-menu items after one is selected.

Issue
When clicking an item in the menu that contains sub-menu items, the menu collapses after a sub-menu item is selected. The user has to continually click the main menu item to see the other choices in the sub-menu.
To reproduce
Steps to reproduce the behavior:

Click on a menu item, e.g. People.
Click on a sub-menu item, e.g. Directory.
Note that the other sub-menu items are longer displayed.

Expected behavior
Menu should stay expanded once a sub-menu item is selected. Selected menu item should be highlighted to indicate what page the user is on
Screenshot

Looking for some additional design patterns in other places to understand whether this is a design norm or something that breaks the rules.

Not sure if this helps but the screenshot I added is from Foundation.

https://foundation.zurb.com/sites/docs/rtl.html
https://getbootstrap.com/docs/4.3/layout/grid/

Settling into a potential fix for this problem. There are two different points to think through.
The first is the state of the dropdown menu when a "sub-page" is the active page. There are lots of working examples to indicate that it's a good idea to leave the menu panel open when a page is loaded that sits inside of a collapsible element.
Within the ASU design system, there are distinct styles that are applied to the parent and child items within a navigation menu that contains a mega-menu or a simple dropdown menu. The ASU Labs menu items maintain that pattern, so no changes to the colors used within the menu are really needed here.


Add some support for IDNs

There is currently no support for other domains such as Chinese.

There is currently no support for other domains such as Chinese.


Crashes when I try to join a game

Of course it works if I inject while in-game, it's just annoying to have to restart every time.

Try the lastest build.

#1701


Error creating rule: Unknown variable: &MULTIPART_PART_HEADERS

Hello,
Brand New Install of ModSec on Apache and on restarting Apache, I get the following error
AH00526: Syntax error on line 43 of /usr/share/modsecurity-crs/rules/REQUEST-922-MULTIPART-ATTACK.conf
apachectl[39236]: Error creating rule: Unknown variable: &MULTIPART_PART_HEADERS
apachectl[39233]: Action 'start' failed.
apachectl[39233]: The Apache error log may have more information.
systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Disabling this file from running seems to allow the service to restart.
Appreciate the assistance.
Cheers,
Ray

Hello @UncleRaymondo ,
MULTIPART_PART_HEADERS is a new collection. It is only present in the newest versions of the ModSecurity engine (v2.9.6 for Apache and v3.0.8 for nginx). If you are using an older version of ModSecurity you will indeed see the error that you have posted.
The coreruleset (CRS) team highlighted in some of their communications that their newest rules do have that dependency. See for example: https://coreruleset.org/20220919/crs-version-3-3-3-and-3-2-2-covering-several-cves/

All good - found it on a German Debian Repository
http://ftp.de.debian.org/debian/pool/main/m/modsecurity-apache/libapache2-mod-security2_2.9.6-1_amd64.deb
Confirmed that Apache restarts now with the file :)
Cheers,
Ray

All good - found it on a German Debian Repository
http://ftp.de.debian.org/debian/pool/main/m/modsecurity-apache/libapache2-mod-security2_2.9.6-1_amd64.deb

I think this package is the mirrored copy of Debian's Bookworm package.
I don't know Ubuntu 22.04 LTS which Apache version has, may be this would work.
But from here you can download the mentioned system's own package (note, that this is a non-official repository).
Also you can find here CRS package (last release, of course).


Dagobah/Pymongo not handling non-UTF-8 chars well

 Issue by rclough
Tuesday Dec 02, 2014 at 22:04 GMT
Originally opened as https://github.com/thieman/dagobah/issues/133

Categorize under "more things that can break in task/job completion backend code"
Unfortunately due to the semi-sensitive content of the log in question, I have to clean the string that broke it, but here is the stack trace:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 1082, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/site-packages/dagobah/core/core.py", line 828, in check_complete
    complete_time=datetime.utcnow())
  File "/usr/local/lib/python2.7/site-packages/dagobah/core/core.py", line 1031, in _task_complete
    self.parent_job._complete_task(self.name, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/dagobah/core/core.py", line 531, in _complete_task
    self._commit_run_log()
  File "/usr/local/lib/python2.7/site-packages/dagobah/core/core.py", line 626, in _commit_run_log
    self.backend.commit_log(self.run_log)
  File "/usr/local/lib/python2.7/site-packages/dagobah/backend/mongo.py", line 133, in commit_log
    self.log_coll.save(dict(log_json.items() + append.items()))
  File "/usr/local/lib/python2.7/site-packages/pymongo/collection.py", line 288, in save
    manipulate, safe, check_keys=check_keys, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pymongo/collection.py", line 551, in update
    docs, check_keys, self.uuid_subtype, client)
InvalidStringData: strings in documents must be valid UTF-8: "<REDACTED>"

 Comment by rclough
Tuesday Dec 02, 2014 at 22:07 GMT

Consensus on the interweb (FWIW) seems to be that we need to somehow enforce UTF-8 strings before passing them to pymongo.

 Comment by rclough
Tuesday Dec 02, 2014 at 22:17 GMT

Something like this maybe: http://stackoverflow.com/a/19230566/124537

 Comment by thieman
Tuesday Dec 02, 2014 at 22:50 GMT

Oh, the joys of string encoding in Python 2. Will think on the best way to fix this.

 Comment by thieman
Wednesday Dec 03, 2014 at 01:50 GMT

I'm in favor of forcing UTF-8 for Mongo string storage. I think this should be an implementation detail of the Mongo backend and should be implemented in that module. I'm conceptually fine with dropping any characters that can't be encoded as UTF-8.
I think it is important to limit this restriction as much as possible. If someone has an absolute requirement that their logs be stored as UTF-16 or something, they should be able to implement a backend that will support that.

 Comment by rclough
Thursday Dec 04, 2014 at 15:56 GMT

So you're saying (and I think I agree) that the force utf-8 code should be within the mongo.py backend, that way its specific to the backend code?

 Comment by thieman
Thursday Dec 04, 2014 at 15:59 GMT


www.phpcaptcha.org domain for sale

I understand the project isn't being actively maintained, but you may wish to consider removing the link to www.phpcaptcha.org from the GitHub page as that URL seems to be "for sale" by GoDaddy.

Thank you for pointing this out. The links have been removed in commit 2be13fddff68a72dee2c68196dbce7c8f825bcc1.

No problem. FWIW the link is still visible in the "about" section in the upper-right-hand corner of the github repo.


I'm trying to make a screen recorder but I keep getting a error.

Expected behavior
I expected it to record my screen.
Actual behavior
I keep getting this error : [ERROR:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-9d_dfo3_\opencv\modules\videoio\src\cap.cpp (563) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-9d_dfo3_\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): out.avi in function 'cv::icvExtractPattern'
Steps to reproduce
import cv2
import numpy as np
import pyautogui
screen_size= (1920,1080)
f

ourcc=cv2.VideoWriter_fourcc(*"XVID")
out = cv2.VideoWriter("out.avi",fourcc,20.0,(screen_size))
while True:
img=pyautogui.screenshot()
frame=np.array(img)
frame=cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
out.write(frame)

windows 10
architecture (e.g. x86)
opencv-py 3.8

Issue submission checklist

[x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

[x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

[ ] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

[x] I'm using the latest version of opencv-python

This is not a generic support forum and there's no issue to fix in this repository. Ask your question for example at Stack Overflow.


Added JSDOC @since to generated code

add @since EclairJS 0.1 Spark 1.5.1 or whatever spark version it was added.

add code to insert eclairs version into @since tags


mac os error error: no member named 'build_nongeneric_method_extractor_code' in 'dart::ObjectStore'

Dart version: 3.4.0, Snapshot: d20a1be77c3d3c41b2a5accaee1ce549, Target: android arm64
flags: product no-code_comments no-dwarf_stack_traces_mode no-lazy_dispatchers dedup_instructions no-tsan no-asserts arm64 android compressed-pointers null-safety
-- Configuring done (0.1s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/peter.jiang/Virtual Machines.localized/work/github/blutter/build/blutter_dartvm3.4.0_android_arm64
[1/2] Building CXX object CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/src/DartApp.cpp.o
FAILED: CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/src/DartApp.cpp.o
/usr/local/opt/llvm@16/bin/clang++ -DDART_COMPRESSED_POINTERS -DDART_PRECOMPILED_RUNTIME -DDART_TARGET_OS_ANDROID -DDART_TARGET_OS_WINDOWS_UWP -DEXCLUDE_CFE_AND_KERNEL_PLATFORM -DFRIDA_TEMPLATE_DIR=""/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/scripts"" -DHAS_RECORD_TYPE -DNDEBUG -DPRODUCT -DTARGET_ARCH_ARM64 -DU_USING_ICU_NAMESPACE=0 -D_HAS_EXCEPTIONS=0 -I/usr/local/Cellar/capstone/5.0.1/include/capstone -isystem "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/packages/include/dartvm3.4.0" -O3 -DNDEBUG -std=c++20 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fexperimental-library -O3 -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -fno-omit-frame-pointer -Winvalid-pch -Xclang -include-pch -Xclang "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/build/blutter_dartvm3.4.0_android_arm64/CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/cmake_pch.hxx.pch" -Xclang -include -Xclang "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/build/blutter_dartvm3.4.0_android_arm64/CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/cmake_pch.hxx" -MD -MT CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/src/DartApp.cpp.o -MF CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/src/DartApp.cpp.o.d -o CMakeFiles/blutter_dartvm3.4.0_android_arm64.dir/src/DartApp.cpp.o -c '/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter/src/DartApp.cpp'
/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter/src/DartApp.cpp:312:5: error: no member named 'build_nongeneric_method_extractor_code' in 'dart::ObjectStore'
DO(build_nongeneric_method_extractor_code, BuildNonGenericMethodExtractor);
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter/src/DartApp.cpp:305:15: note: expanded from macro 'DO'
ptr = store->member();
~~~~~  ^
/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter/src/DartApp.cpp:313:5: error: no member named 'build_generic_method_extractor_code' in 'dart::ObjectStore'
DO(build_generic_method_extractor_code, BuildGenericMethodExtractor);
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter/src/DartApp.cpp:305:15: note: expanded from macro 'DO'
ptr = store->member();
~~~~~  ^
2 errors generated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter.py", line 168, in
main(args.indir, args.outdir, args.rebuild, args.vs_sln, args.no_analysis)
File "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter.py", line 149, in main
cmake_blutter(blutter_name, dartlib_name, name_suffix, macros)
File "/Users/peter.jiang/Virtual Machines.localized/work/github/blutter/blutter.py", line 92, in cmake_blutter
subprocess.run([NINJA_CMD], cwd=builddir, check=True)
File<EMAIL_ADDRESS>line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.

Same error on Linux.
Problem on dart 3.4.0
i shared an example lib
https://www.mediafire.com/file/jc4dr8j11kv4fh7/arm8.zip/file

BuildGenericMethodExtractor and BuildNonGenericMethodExtractor have been completely removed in v3.4.0 with a new addition of nullptr
For now just remove them from DartApp.cpp and you'll be able to do your work

Thanks Abhi :)

Fixed in latest commit


Detect active orders not being tracked during order status update process

As a user I would like the client to detect orders that are still alive in the exchange after the client has cancelled them.
We can take the opportunity to validate this type of inconsistency during the _update_order_status() process. In almost all the current implementations, when the process cycles the orders and the status responses from the exchange for each of them, if the order is no longer included in the inflight orders collection, the response is not analyzed.
For the cases were the order is no longer an inflight order (is not being tracked) and the status in the exchange according to the response is an active status we need to do one of the following things:

Start tracking the order again
or
Send a request to the exchange to cancel that order
The might need to define the approach to follow based on the information that we still have about the untracked order (it might not be possible to recreate it)

DoD: if an order is no longer being tracked but the client receives a valid status response for it from the exchange, it should either be tracked again or should be cancelled in the exchange.
Impact
This change impacts all the connectors. We might want to implement it first in some of them, to test the result.
┆Issue is synchronized with this Clickup task by Unito

@cardosofede The root feature was removed, close?


Add option to count bad cuts as missed

I would really like to have bad cuts show up in the miss counter. I know, the base game does not do this in the level finished screen, but every elsewhere in the community a bad cut is considered as a normal miss. I came across this when watching videos from the Cube Community youtube channel where people got consufed in the comments because the miss counter didn't go up but the multiplier went down from 8x to 1x.
Maybe it would be nice to have an option for this called "count bad cuts" in the counters+ miss config menu?
Thank you.

A "Count Bad Cuts" option has already been added into Counters+ 2.0, which is currently waiting approval for ModAssistant.


docs: Add note to docker-and-private-modules about security

Adding note about security implications of using docker --build-arg

References

I wasn't sure what y'alls preference for cross linking docs was. So here is the link for more info about buildkit: https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information I can add a link to the note if you'd like.
I hope this was a welcome contribution, apologize if I should have opened an issue or followed another process, seemed like small enough change to just go for it.

There is another pr in the works that does not suggest that flag at all.


Add .nsDecls API

Fixes #270.  New API:
  var str = '<html xmlns="urn:example" xmlns:ex1="urn:example:1"><body/></html>';
  var doc = libxml.parseXmlString(str);
  var root = doc.root();
  var decls = root.nsDecls()

decls now includes two namespace objects.  Applying to the body element yields an empty array.
Tests included.  I'll add docs to the wiki if you take the patch.  I'm open to renaming the API anything you like.

This PR does still work.  Would you mind either merging this, giving me something to change, or proposing another approach for #270?

Is there a use case to prefer this to namespaces() i.e. xmlGetNsList ? In any case the node will need to be type checked since attributes don't include an nsDef member.

.namespaces() gives the set of namespaces that are currently in scope for a given node.  For the example given above:
var body = root.childNodes(0);
body.namespaces();

still yields two namespaces.  If you're iterating through a document, keeping track of the current state of the namespace stack just to watch for changes is somewhat painful.
Returning to this code, I kind of hate the string nsDecls, and wouldn't mind changing it.  I'll be happy to add a node check if there's a shot you're going to take this.

Maybe we can make it namespace([local]) and namespaces([local]) instead, where local is an optional boolean argument specifying if we should return all namespaces or local namespace declarations.
I think we could merge this if API is more integrated and the NAN calls are updated to version 2.

Started a new PR at #363, with the suggested API.


How to upload screenshots on tesults dashboard

Hi I was exploring tesults reporter and it seems really good to me. Appreciate!
Problem: I was trying to upload screenshots on tesults dashboard but somehow didn't find solution. Also on documentation there is no approaches like this.
Things i want to achieve
For test purpose simply i have written code for creating a screenshot and kept that screenshot on data folder. When i run this locally it creates screenshot perfectly but I want to upload this data folder on tesults dashboard when test cases will be executing.
Mainly i want to view the screenshots on tesults dashboard.
test("should validate title and description", async ({ page }) => {

    await expect(
      page.locator(".elementor-widget-heading > div > h1")
    ).toHaveText("The future of mobility is here.");

    await page.screenshot({ path: "data/screenshot.png" });
  });

Hi Rinky,
If you are using the Tesults Playwright reporter you can attach screenshots
as shown here
https://www.tesults.com/docs/playwright. Specifically, see the section
called ‘Files generated by tests’. Please get back to me if you have any
other questions or if you encounter  issues with this approach.
Ajeet
Tesults | https://www.tesults.com
On Tue, Sep 20, 2022 at 08:02 Rinky Chowdhury @.***>
wrote:

Hi I was exploring tesults reporter and it seems really good to me.
Appreciate!
Problem: I was trying to upload screenshots on tesults dashboard but
somehow didn't find solution. Also on documentation there is no approaches
like this.
Things i want to achieve
For test purpose simply i have written code for creating a screenshot and
kept that screenshot on data folder. When i run this locally it creates
screenshot perfectly but I want to upload this data folder on tesults
dashboard when test cases will be executing.
Mainly i want to view the screenshots on tesults dashboard.
test("should validate title and description", async ({ page }) => {
await expect(
  page.locator(".elementor-widget-heading > div > h1")
).toHaveText("The future of mobility is here.");

await page.screenshot({ path: "data/screenshot.png" });

});
—
Reply to this email directly, view it on GitHub
https://github.com/tesults/playwright-tesults-reporter/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AD7O2XGJXEDFHYN7YMTOXDLV7FOO7ANCNFSM6AAAAAAQQYGL4A
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@ajeetd Thank you so much it worked! I forgot to add testInfo.attach function. Now it's generating the screenshots on files on tesults dashboard. Closing this issue.


Wrong Certificate Information Showing

Internal reference: SURE-5309
Reported in 2.6.4 & 2.6.8
Issue description:
Certificate information shows in the UI only shows information on the last certificate in the chain (typically the root CA) so the domain is usually not listed, and the expiration date is not correct. This means for those looking for expired certificates, the information provided in the UI is useless and would require manual review to validate.
Repro steps:

Install rancher 2.6.4 with a signed cert
Check the secret in the UI

Actual behavior:
Shows root CA information
Expected behavior:
Shows certificate information

More details on repro:

I replicated the current behavior by selecting/browsing the local cluster, removing the user resource filter, and going to secrets, I confirmed that it showed only the CA cert [and its] expiration.

✅ PASSED
Reproduction Environment

Component
Version / Type

Rancher version
v2.7.1

Installation option
Helm (high availability)

RKE binary version used
v1.4.0

If Helm Chart k8s cluster
v1.24.6

Cert Details
Let's Encrypt / nginx

Docker version
20.10.7, build f0df350

Helm version
v2.16.8-rancher2

Downstream cluster type
not applicable

Downstream K8s version
not applicable

Authentication providers enabled
local

Logged in user role
standard, admin

Browser type
google chrome

Browser version
111.0.5563.110

🚨 Additional Reproduction Setup Details: Click to Expand
Created with: https://github.com/brudnak/aws-ha-infra

Reproduction steps

Deploy Rancher 2.7.1 in RKE1 HA and compare the certificate expiration time of a special serving-cert
Starting from the default Rancher homepage /dashboard/home
Click hamburger menu >>> Storage >>> Secrets >>> filter to kube-system
Click Kubectl Shell
Run the following command:

k get secret -n cattle-system serving-cert -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl x509 -noout -text | grep Not

Compare the value returned via the kubectl command to what is displayed in the Rancher UI as the TLS Certificate Expires date
These dates do not match

Additional Info
RESULTS
✅ Expected
For the UI to correctly display the TLS Certificate expires date
❌ Actual
The UI did not correctly display the TLS Certificate expires date

Validation Environment

Component
Version / Type

Rancher version
v2.7-7913e283ff90eebd1f8cc48860a6b410d72cd4dd-head

Rancher commit link
https://github.com/rancher/rancher/commit/7913e283ff90eebd1f8cc48860a6b410d72cd4dd

Installation option
Helm (high availability)

RKE binary version used
v1.4.0

If Helm Chart k8s cluster
v1.24.6

Cert Details
Let's Encrypt / nginx

Docker version
20.10.7, build f0df350

Helm version
v2.16.8-rancher2

Downstream cluster type
not applicable

Downstream K8s version
not applicable

Authentication providers enabled
local

Logged in user role
standard, admin

Browser type
google chrome

Browser version
111.0.5563.110

🚨 Additional Reproduction Setup Details: Click to Expand
Created with: https://github.com/brudnak/aws-ha-infra

Validation steps

Deploy Rancher 2.7.1 in RKE1 HA and compare the certificate expiration time of a special serving-cert
Starting from the default Rancher homepage /dashboard/home
Click hamburger menu >>> Storage >>> Secrets >>> filter to kube-system
Click Kubectl Shell
Run the following command:

k get secret -n cattle-system serving-cert -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl x509 -noout -text | grep Not

Compare the value returned via the kubectl command to what is displayed in the Rancher UI as the TLS Certificate Expires date

Additional Info
RESULTS
✅ Expected
For the UI to correctly display the TLS Certificate expires date
✅ Actual
For the UI to correctly display the TLS Certificate expires date


Add support for ShareLaTeX

ShareLaTeX has some quite horrible badges:

It would be amazing to use badges from shield.io instead.

Their API seems fairly empty: https://www.sharelatex.com/learn/API
Could you contact them to suggest using our badges?

Upstream merged pull request with improved badge.

Great!


Use all cores?

I noticed there's a nice -P flag to speed up the reading phase, but once it starts to produce all the tiles, it seems to just use one of my many cores. Is there a way to actually make use of all the cores of a machine? I seem to be vastly underusing my machine at the moment and it is taking a loooong time to complete :-(

If you have any good ideas for higher utilization, I'm all ears. The low zooms tend to use only a few CPUs because, for instance, the single tile 0/0/0 has to include every feature in the entire world, so the multithreaded work is limited to per-feature tasks like simplification and clipping. Once you get up to z4 or so, there are usually a lot of tiles to work on so the processing can be split across CPUs.
What sort of data and what geographic scope are you seeing low utilization with?

Closing since I don't think there is anything I can do in this direction currently.

Sorry; I thought I had relied... I thought I was seeing it use just one CPU throughout the process, but I didn't realize it might be different at the earlier zoom levels.
Happy for this bug to be closed. If I notice something odd later on, I'll reopen it with more details

Thanks. Please do let me know if you don't see more CPUs in use at higher zooms.

@ericfischer In this screenshot, I am on a higher zoom like 13, but its only using 1 core. Thoughts?

To provide more context, I am actually using 240ccbd2196516918017353ffd8704c858cb44f9.
I can try pulling in the latest to see if there are improvements since May that I haven't caught on with.

Never mind, when I top in the container, I see it using all cores. I wonder what's causing it to be this slow: its ~70K features of census tracts, curious to know what's the bottleneck.

Running against the same dataset outside of docker was superfast with the brew package. Not sure, why containerization on my machine is slowing it down. I have all 8 cores and 8GB (of 16GB) of memory dedicated to Docker for mac.

Unfortunately I don't have much experience with Docker to help diagnose this. The most common situation I know of where Tippecanoe gets slowed down is when it is blocked waiting for I/O to complete. It uses a lot of anonymous temporary files during tiling and the general hope is that everything will actually happen in the buffer cache and the files will only actually reach the disk in the case of a low-memory situation. But maybe Docker does something to confound this expectation.


[boost-modular-build-helper] Bugfix/boost arm64 ios

Building boost for arm64 ios created x86_64 .a libraries. This is fixed by using a different modular builder, using gcc 12.0.0 and adding compiler options to the user-config.jam file.

@StefAviator, thanks for the PR! Since the triplet doesn't cover in CI testing, could you test it locally?

@StefAviator, thanks for the PR! Since the triplet doesn't cover in CI testing, could you test it locally?

On my MacBook Pro, building boost components with commands such as
./vcpkg install boost-exception:arm64-ios
now outputs .a files which show 'arm64' when checked with 'lipo -info'. Previously it would show as 'x86-64'. Is that enough for testing purposes? If I need to attach any log files let me know.
I don't have a device with M1 chipset currently but would appreciate if someone can confirm the output. I have asked someone in the original issue.

I have added a check for either 'iOS' or 'Darwin' system (the latter per @vejmartin's suggestion) to use this build fix. Now it also supports cross-compiling for arm64 osx. I was not able to get it to work using adjustments to the CMakeLists.txt file that @vejmartin suggested so it is necessary to keep using the user-config.jam file update. The functionality can be confirmedted as such:
./vcpkg install boost-exception:arm64-ios boost-atomic:arm64-osx
-- (build)
~/vcpkg $ lipo -info installed/arm64-ios/lib/libboost_exception.a
Non-fat file: installed/arm64-ios/lib/libboost_exception.a is architecture: arm64
~/vcpkg $ lipo -info installed/arm64-osx/lib/libboost_atomic.a
Non-fat file: installed/arm64-osx/lib/libboost_atomic.a is architecture: arm64

We have had feedback that using the current implementation (vcpkg master) works for compiling on an arm64 system (M1 chip macbook) to create arm64 boost library files. So this fix is limited to fixing cross-compiling from intel Apple PC/laptop (x86-64) to arm64 boost libraries. As such it might be interesting to check if the host Apple system is arm64, in which case this fix of using user-config.jam file can be bypassed. I would appreciate some feedback if this is deemed necessary and how this can be done. Thanks.

Could you also update the port version to '10' in https://github.com/microsoft/vcpkg/blob/master/ports/boost-modular-build-helper/vcpkg.json#L4? Submit the changes and execute './vcpkg x-add-version boost-modular-build-helper' to update the baseline version, then submit the changes again.

Ok done.

@StefAviator, I think the reason why the options weren't being picked up by the user-config might have been that the CMakeLists.txt file sets the toolset to clang:
list(APPEND B2_OPTIONS target-os=darwin toolset=clang)

while, the user-config doesn't define a clang toolset (only gcc):
using gcc : 5.4.1 : @CMAKE_CXX_COMPILER@

By conditionally converting the gcc toolset to clang, the options from CMakeLists.txt are picked up again:
if "@CMAKE_CXX_COMPILER_ID@" in "Clang" "AppleClang"
{
    compiler_name = "clang" ;
    compiler_version = "@CMAKE_CXX_COMPILER_VERSION@" ;
}
else
{
    compiler_name = "gcc" ;
    compiler_version = "5.4.1" ;
}
using $(compiler_name) : $(compiler_version) : @CMAKE_CXX_COMPILER@

Please also note that the user might specify a custom SDK root via the SDKROOT environment variable.
Here's a working example with CMakeLists.txt for arm64 iOS/macOS: https://github.com/vejmartin/vcpkg/commit/18d39b98dc05222bbbb35c764c476d185995a80e

Here's a working example with CMakeLists.txt for arm64 iOS/macOS: vejmartin@18d39b9

@vejmartin Thanks for the code. Unfortunately it doesn't work on my system. I have both gcc and clang installed. If I use your code as written, it still uses the gcc compiler and outputs x86_64 libraries, the original problem. If I remove the 'if' statement and force it to use clang in boost-modular-build.cmake, it ends with error. I can see in the logs (attached) that it starts off using clang, but then proceeds with gcc anyway. Possibly B2 uses gcc, but that part is unclear.
build-arm64-ios-rel-out.log
So far my implementation using the user-config file is the only solution that allows cross-compiling from x86 system to output boost arm64 libs on my system. If you have any suggestions feel free to share.

@StefAviator, thank you for looking into and testing my example.
Thank you also for the build log. I'm assuming build-arm64-ios-rel-out.log is from using boost-modular-build.cmake on macOS, as the CMakeLists.txt method produces install-arm64-ios-rel-out.log instead.

Unfortunately it doesn't work on my system.

Could you please attach the install-arm64-ios-rel-out.log log when using the CMakeLists.txt method or any other errors?
If we could work out what's causing the error when using the CMakeLists.txt method, we could ensure there won't be two separate files/methods for building arm64 and x86_64 on macOS.
As boost-modular-build.cmake isn't currently used to build on x64-osx*, it doesn't support dynamic libraries. You can verify that by building boost-system:arm64-osx-dynamic (please note that boost-exception always produces a static lib). This should produce the following file: install/arm64-osx-dynamic/lib/libboost_system.dylib.
I also found the following comment useful for debugging: https://github.com/boostorg/build/issues/716#issuecomment-825196282:

run b2 with -d+2 flag to make logs useful. A log with --debug-building may later be required to debug too.

You could add these two flags to the build command in CMakeLists.txt (add_custom_target) to get more info in the logs.

These issues also seem to be related, https://github.com/microsoft/vcpkg/issues/16630, https://github.com/microsoft/vcpkg/issues/11132

@StefAviator @vejmartin, is work still being done for this PR?

@PhoebeHui Yes this is still ongoing. Unfortunately I was not able to get @vejmartin 's suggestions to work. That is to say, while I would prefer to do it his way, it still only outputs x86_64 libraries instead of arm64. I will do one more update this week to address an issue and then let david-antiteum test it (he has arm64 chip mac) and then it can be included as i believe there is currently no other working version that outputs iOS arm64.

@StefAviator, a fix for the toolchain options was recently merged, https://github.com/microsoft/vcpkg/pull/18529, which also fixes arm64-osx/ios builds for me.

@vejmartin @PhoebeHui This is indeed fixed by #18529 for arm64-osx/ios builds, confirmed as well on my system, they produce arm64 libraries. We can close this PR as it's not needed anymore.

@vejmartin @StefAviator, thanks for conforming this!


Is this tool used by Apple?

In the WWDC's 2022 State of the Union some code was shown which called swiftformat instead of swift-format. I cannot imagine that this happened without intention, so I'm wondering: Is this tool used at all by Apple internally?

I wonder if that demo was using https://github.com/nicklockwood/SwiftFormat/

This sort of open-ended discussion topic is probably better suited in another forum than GitHub issues, which are meant for bug fixes/feature requests with something actionable to follow-up on.


update kubeadm reset command

you have to remove docker first or kubeadm will use dockerd instead of containerd
there might be a way to disable dockerd instead - we should check that

sudo apt-get remove -y docker-ce docker-ce-cli
sudo shutdown -r now

From these docs it looks like it might be possible to choose the runtime when initializing the cluster. I haven't tried it yet, so not if it works as expected.
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#installing-runtime


Improve codecov config to allow a small degree of tolerance

Right now, the codecov config is highly strict (failing when the coverage decreases at any percentage). To allow some level of tolerance, I propose to modify the precision to work at 1 decimal unit level (that is 0.1%) of variation.

These are some interesting links with related documentation: https://docs.codecov.io/docs/codecov-yaml https://docs.codecov.io/docs/commit-status#branches


Adding Cassandra 2.1

thanks, it's applied.. both as branch and on the ci slaves.
cc/ @jhalliday

Cool; Thanks for rolling it out to the nodes!


Simplify and clarify development workflows with better defaulting

This commit adds some development workflow improvements:

Simplify development workflows by introducing better defaults to the
hypershift-operator, control-plane-operator, and ignition-server which eliminate
the need to document or use many flags which are relevant only in rare debugging
contexts. The documentation has been updated to reflect these changes.

Tweak the public-ocp.sh script to always use the public registry endpoint,
fixing a flake where sometimes the script would erroneously produce the internal
registry name as output.

Update the in-cluster developer workflow docs to describe required OIDC
hypershift-operator flags which weren't documented before.

Mirror the hypershift.openshift.io/debug-deployments annotation to
HostedControlPlane resources for future use (e.g. to enable developing against
the hosted-cluster-config-operator).

/lgtm


Not working in the layered navigation result page

Hi,
I am using Layered Navigation(Filter) option from my custom theme. So the infinite scroll not working in the Layered navigation result page.
Please help me to add infinite scroll in my custom Layered Navigation ajax module.
Regards,
Chandra Sekar.M

@chandrumcd : you didn't give us enough information to debug the issue, but if the layered navigation is not the one that magento comes with, I'm afraid we can't help you much because we don't have access to your extension / code / theme. You might want to ask the extension maker for the support as so far we confirmed our extension working on all default releases.
We can help you out with your issue if we have access to your code. If you'd like to hire one of our developers for an hour or two in order to help you fix this issue with your custom extension, please email us at: contact (at) strategery (dot) io

Hi,
Thanks for your reply.
Please send the steps to add the infinite scroll to the custom category listing page.
Thanks and regards
Chandra Sekar

@chandrumcd:
detailed description of how to do this is available at: https://github.com/Strategery-Inc/Magento-InfiniteScroll
Please not that point 2 of Installation is explained in detail in Configuration and the "selectors" are the same as the css selectors, feel free to compare these with demo store