text:
Rules Registration/Modification

In the readme file, it says "Register/Modify Rule" but here( https://github.com/rakit/validation/blob/master/src/Validator.php#L109-#L113 ) it is explicitly set not to allow rule modification.
The question is do you really want rule modification ? If yes, i should be able to send a PR.

Yes.. maybe in some framework we want to modify existing rule adapting framework feature, we able to do it without using new rule name.

Awesome then.. Would fix that

authors: adelowo emsifa

repo: rakit/validation


text:
Add pause on punctuation

Add pause on punctuation like in Ace Attorney games request by Crystalwarrior on discord.
Examples:

Added in #221 and #222

fixed small bug in #223 and #224

source: gharchive/issue

repo: rakugoteam/Rakugo

license: MIT

license_type: permissive

license_source: github-api


text:
Feature/nightly

Adding the nightly config to loading models.

Going into develop_resolve branch, sorry I messed up 😬.

source: gharchive/pull-request

repo: ramanathanlab/genslm


text:
🛑 APP-PREFABRICADOS is down

In 7930538, APP-PREFABRICADOS (https://app.grupoquijada.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: APP-PREFABRICADOS is back up in 8eaf187.

repo: ramos-developer/upptime


text:
Release with UuidGenerator

The last release doesn't include the UuidGenerator. Is it possible to create a new release that includes it?
Thanks for the good job!

The last release doesn't include the UuidGenerator.

Which version are you referring to? 2.9.0 or 3.3.0? Also, which UuidGenerator is missing? Can you post some code to show how you are using the library?

I just followed the instructions at the README, but when you install from packagist without explicitly saying which version you get release 1.1.0, from february 1st. And by the history of commits seems like UuidGenerator was added in March.
I changed my composer.json to ask for dev-master and it's working, but there's no "stable" release with it.

I'm sorry. I was confused about which library you were using. I thought this was a question on ramsey/uuid. You're asking for ramsey/uuid-doctrine. Apologizes. :-)
Version 1.1.0 is the correct version to use for ramsey/uuid-doctrine.
Do you get an error message? If so, what is it?

I have a hunch as to what is going on. When you install ramsey/uuid-doctrine, do you also see it installing ramsey/uuid 3.3.0?
If so, when you run your code, are you getting an Exception with the message "There is no suitable CSPRNG installed on your system"?
If this is the case, can you provide more information about your system? What version of PHP? What OS?
Thanks!

The exact error I get is:
[Doctrine\ORM\ORMException] Can't instantiate custom generator : Ramsey\Uuid\Doctrine\UuidGenerator
And of course, if I look into vendor/ramsey/uuid-doctrine/src/ there is no UuidGenerator file, just
UuidBinaryType.php  UuidType.php

I see the problem now. The README.md file in the master branch is ahead of release 1.1.0 because I haven't yet released what's in master as 1.2.0, so the documentation is for new functionality that hasn't been released yet. Sorry for the confusion.
There's a simple enough solution, though. I have just released 1.2.0, which includes the UuidGenerator class.
Please update Composer and let me know if this fixes the problem. Thanks!

Updated to 1.2.0 and working perfectly!
Thank you very much and keep up the good work!

Great to hear!

authors: antonienko ramsey

repo: ramsey/uuid-doctrine

license: mit

license_source: bigquery


text:
Allow skipping repo/packages to verify

Currently if you use more than 1 repo in luet that is not signed  you cannot verify the full chain as it would fail to verify one of the repos and it will fail the whole install.
We should provide a way of skipping repos to verify to support more than 1 repo in luet.
solutions

Have a COSIGN_SKIP env var -> straightforward but kind of crappy
Read the luet config and check if the repo has a cosign:true value? -> Best solution but requires proper docs for derivatives!

Also on this, few ideas:

we can have COSIGN_ENFORCE=1 (or COSIGN_STRICT, etc.) to enforce cosigning of all images and fail if signatures are not found. We can then think about not erroring if we don't find signatures (still the user should be able to set this)
COSIGN_ENFORCE_IMAGES to enforce cosign only on the image pulls references that are matching (e.g. a list of image names to enclude in the check, without the tags)

yikes.
I like the idea of enforce and skip both as its easier to manage (like allow/deny lists, easy for the user to set whatever they want)
The permissive/strcit one...I really dont like it as it usually ends being set to permissive for all eternity (ask selinux lmao) instead of kind of forcing the nd user to properly use the application, instead of setting the application to on but ignore any errors.
Anyway, I think I'll first go with the allow/deny list as it seems the most flexible one.

The permissive/strcit one...I really dont like it as it usually ends being set to permissive for all eternity (ask selinux lmao) instead of kind of forcing the nd user to properly use the application, instead of setting the application to on but ignore any errors.
Anyway, I think I'll first go with the allow/deny list as it seems the most flexible one.

:+1:

authors: Itxaka mudler

repo: rancher-sandbox/luet-cosign


text:
Fleet: Git Repos: Conditions tab missing from details view

Setup

Rancher version: v2.9
Rancher UI Extensions:
Browser type & version: Any

Describe the bug
The Conditions tab is missing from Fleet cluster details view.

To Reproduce
2. go to fleet > git repos tab
3. click 'Add Repositories'
4. input repo URL ('https://github.com/rancher/fleet-examples.git')
5. click 'Add Path'
6. input path ('simple')
9. click 'Create'
10. wait until it is in Active state
12. navigate to git repo details page
13. notice Condition tab is missing

Result
The Conditions tab is missing from Fleet git repos details view.
Expected Result
The Conditions tab is displayed on Fleet git repos details view.

Screenshots

Additional context
Note:

this also affects the fleet cluster details view
scenarios are covered by the below e2e tests (will enable them once this fix is merged ):

cypress/e2e/tests/pages/fleet/gitrepo.spec.ts > 'check all tabs are available in the details view'.
cypress/e2e/tests/pages/fleet/fleet-clusters.spec.ts > 'check all tabs are available in the details view'.

I am moving this to done @yonasberhe23 as you're currently working on this area as part of our qa tasks

repo: rancher/dashboard


text:
Make column widths adjustable

Internal reference: SURE-6364
Request description:

Please make all columns in list views adjustable in width.
Ideally the column width is saved in the user profile.

Actual behavior:
A lot of UI items are misplaced or truncated due to hardcoded column size
Expected behavior:
Column width should be configurable and saved in the user profile

If we persist this setting per user, we should bear in mind other similar settings we may persist later on (search term, sort order, possibly page in session, etc).
We should also consider how these settings are maintained (per cluster, stale resource types, etc).

The easiest thing to tackle here first is to look at the Harvester tables since it looks like the column widths aren't set at all.

Worth mentioning that width is only set on about a quarter of our columns

Revisioning columns widths on Harvester UI, as preparatory step for this enhancement:  https://github.com/harvester/harvester/issues/4989

authors: gaktive richard-cox torchiaf


text:
Disable editing a constraint's constraint template

Editing a constraint's constraint template would require us to delete
the existing constraint and create a new one transactionally. Since
the backend doesn't support this transaction of we're disabling the ability
to edit which template is being used.
I also noticed a number of inconcictencies and poor behaviors
with the LabeledSelect component so I went ahead and made
it consistent with LabeledInput.

The search field switched to a color distinct from the rest of the container
when disabled and hovered.
There wasn't a focus outline.
The size was slightly different because it was in a container
There was a distinct background color around the arrow indicator

rancher/dashboard#433

Conflict


text:
Fix elemental-toolkit spec

This commit makes sure the dracut configuration file to include elemental-immutable-rootfs dracut module in initrd is properly installed.

This is expected to fix the currently broken elemental-teal images in Dev

repo: rancher/elemental-toolkit


text:
Installation of Dev ISO on Operator Stable is failing

What steps did you take and what happened:
On a Rancher Manager v2.7.1 I installed Elemental Operator Stable (so v1.0.2) and I tried to deploy an Elemental Teal OS from Dev branch: it failed!
The OS cannot even be installed, I have an error in elemental-register:

What did you expect to happen:
OS should be deployed on the node and added in the k8s cluster after the reboot.
Anything else you would like to add:
Easy to reproduce, not sporadic.
Environment:

Elemental release version (use cat /etc/os-release): Dev one (v1.1.1-91.3)
Rancher version: Stable v2.7.1
Kubernetes version (use kubectl version): Not installed yet
Cloud provider or hardware configuration: N/A

Hmm, operator should always be same or newer than the node. Mixing stable operator with dev node won't work in most cases.

That said, using a dev operator and a stable node image should work 🤞🏻

Hmm, operator should always be same or newer than the node. Mixing stable operator with dev node won't work in most cases.

While I agree this the desired scenario I am not sure we should enforce it. Consider that elemental-operator upgrades might have very different cadence than what is deployed on a certain specific cluster. That's why I'd enforce testing both edges (newest operator on oldest teal and vice versa) for our releases, in line with https://github.com/rancher/elemental/issues/651#issuecomment-1425447142

imho we should enforce timely updates of elemental-operator and always assume that operator is "newer" than node-image.

In this case, the issue is that the current stable release doesn't even have the "version" protocol check message. We introduced register protocol versioning (that allows us to deal with new supported messages) exactly to avoid issues with different versions 😆
In this case it is a bit tricky as the old operator rejects version negotiation by closing the connection.
Well, it is enough to get that as a sign that the supported version is the pre-version message.
It is not hard to add, I am for taking care of this case too (PR should be small)

Managing the updates to older operators required not only to fix the registration protocol, but to manage the conversion of the cloud-init serialized format (which has been changed with the kubebuilder rework).

The current stable operator (1.0.x) is quite different than what we have right now (in 1.1.x  the operator has been rewritten with kubebuilder), so supporting backward compatibility would require to:

retry the connection to the operator if the protocol negotiation fails: protocol negotiation has been introduced to allow compatibility between different versions of the operator and the register client. The 1.0.x operator misses it.
convert the serialized cloud-config data sent from the operator to the legacy format
After discussion in the team, we decided to not merge the PR fixing this issue as the impact on code readability and complexity is too high for supporting newer elemental ISO (1.1.x) with our current stable version (1.0.x). Newer ISO should be used with newer operators.

authors: davidcassany fgiudici kkaempf ldevulder

repo: rancher/elemental


text:
Install mosh vs sshd

RancherOS Version: (ros os version)
v1.4.2
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
DigitalOcean
The system runs sshd:
sudo ps awx | grep ssh
 1451 root     /usr/sbin/sshd -D
 1831 root     sshd: rancher [priv]
 1833 rancher  sshd: rancher@pts/0
 1841 root     sshd: rancher [priv]
 1843 rancher  sshd: rancher@pts/1

Which is great. But I’m wondering how to make it also support mosh? Would I have to fork the golang code and add mosh that way? Or is there a simpler way to make rancheros accept mosh vs ssh connections?
Thanks!

I have not used mosh.
But you can try to switch other consoles(ubuntu/centos), then install mosh.
If you want to use mosh in the default console, you should add mosh to the default console image.
https://github.com/rancher/os/tree/master/images/02-console

Yeah I am using
https://github.com/blinksh/blink and have been moshing (not sshing) into my digital ocean server for a while now.
But now my digitial ocean server is running rancherOS and ssh is my only option. I need mosh to run on racher itself not a container within rancher.
Can you tell me more about adding mosh to the default console image? Once I do that I can build the image and then use that to create a new droplet on digital ocean? Thanks!

The default console is built by buildroot, it does not support package management, like apt and apk and yum.
But you can prebuild mosh, and copy mosh to os-console image, the Dockerfile: https://github.com/rancher/os/tree/master/images/02-console
Then run make, and push the rancher/os image to your repo.
Boot a ROS instance on DO, try ros os upgrade -i your-repo/os:<tag> to use your custom build.

OK I had success with:

ros console switch ubuntu
Copy over /usr/bin/mosh* from another ubuntu with mosh to /usr/bin
(And libutempter.so.0 and libprotobuf.so.10 to /lib)

So this is great! I’m moshing again with rancher like I was with ubuntu.
When I tried to get mosh working with default console (busybox) I had lots of problems.
So I guess, is it bad to keep running in ubuntu console? What am I giving up by not using the default console? Thanks!

The default console is built by buildroot, it is busybox.
The other consoles are built by their docker images, please check https://github.com/rancher/os-services/tree/master/images
You can choose what you want.

I see, thank you, closing this.
When I run system-docker ps
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS              PORTS               NAMES
102027d19826        rancher/os-ubuntuconsole:v1.4.2    "/usr/bin/ros entr..."   18 hours ago        Up 4 hours                              console

I see i now have a os-ubuntuconsole container running with must take more memory & cpu than busybox does. In fact, maybe back when I had ros running with the default console this container was just missing completly from system-docker ps list because there’s no need to even run a container if all you need is busy box...

authors: andrewarrow niusmallnan

repo: rancher/os


text:
Show warning when select Cloud Provider Amazon and using nodepool without IAM role

Rancher versions:
rancher/rancher: v2.0.0
An IAM role name should be provided when using the Cloud Provider Amazon, we should give a warning in the UI if this is selected but there is no IAM role name provided in the nodepool.
Even better would be to check if the given credentials have the permission to pass a role to an instance (iam:PassRole) but I think that will be a stretch

Version - 2.0 master 5/8
Verified fixed

authors: superseb tfiduccia

repo: rancher/rancher


text:
Support Opsgenie as a notifier

What kind of request is this (question/bug/enhancement/feature request):
feature request
Steps to reproduce (least amount of steps as possible):
Add Opsgenie as a supported notifier

+1 for the above request. We would benefit from the addition o opsgenie as a notifier

this would be nice to have.... #18164

+1 for this as well.

+1 that's definitely needed.

Same here

👍

OpsGenie support would be very much appreciated.

+1 same here.

Can this be implemented, please? It's rather easy, since alertmanager already supports opsgenie.

@superseb We just ran into this as well. We want to switch to using the built in Rancher monitoring but we currently only use Opsgenie for notifications and I know it's an alert manager supported notifier. I can see @wtschreiter has opened up a few PRs #21961 and  https://github.com/rancher/types/pull/931 that would solve this.

Any hint about what I can do to support this is welcome

@superseb @loganhz Can the related PR be added for 4.5?

This should be supported by Alerting V2, which will allow users to directly modify the AlertManager Config and supply the ops_genie notifier configuration.
Issue: https://github.com/rancher/rancher/issues/28348

Validate this is working by using the following config for the secret object alertmanager-rancher-monitoring-alertmanager, setting the key alertmanager.yaml to:
global:
  resolve_timeout: 5m
  opsgenie_api_key: [Opsgenie integration API key]
receivers:
- name: 'rancher-opsgenie'
  opsgenie_configs:
  - api_key: [Opsgenie integration API key]
  - message: "alert!"
route:
  group_by:
  - job
  group_interval: 5m
  group_wait: 30s
  receiver: "rancher-opsgenie"
  repeat_interval: 12h
  routes:
  - match:
      alertname: Watchdog
    receiver: "rancher-opsgenie"
templates:
- /etc/alertmanager/config/*.tmpl

This produced an alert in Opsgenie:

Additional fields and parameters in the alert can be set by defining in the above secret object according to: https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config


text:
Monitoring - project Prometheus can't fetch metrics from workloads

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Scenario 1:
create a cluster, add user2 as the cluster member
log in as user2, create a project p1
enable the project monitoring in p1
deploy a workload with custom metrics (image: loganhz/web)
go to the project's Prometheus's page
check the Configuration under status  , we see the workload is added as a job
check the Targets under status cannot see the endpoint for the workload
Scenario2:

run v2.2.3
add user1 and user2 as standard users
log in as user1, add a cluster (in my case, I test both EC2 RKE and GKE clusters)
add a project
add user 2 as a cluster member
log in as user2, add a project
upgrade to v2.2.4-rc11
log in as user1, enable project monitoring of the project he created
deploy a workload with custom metrics
log in as user2, enable project monitoring of the project he created
deploy a workload with custom metrics

Result:
the workload is shown in project Prometheus's Configuration, but not in the target list

Other details that may be helpful:

the issue still exist if enabling cluster monitoring and adding new projects to do the same test on the upgraded setup
might be related to https://github.com/rancher/rancher/issues/20390
Environment information
Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
v2.2.3 -> v2.2.4-rc11
Installation option (single install/HA):
HA mode

This bug also happens on a newly added cluster after upgrading.
Step:

create a cluster, add user2 as the cluster member
log in as user2, create a project p1
enable the project monitoring in p1
deploy a workload with custom metrics (image: loganhz/web)
go to the project's Prometheus's page
check the Configuration  under status seeing the workload is added as a job
check the Targets under status cannot see the endpoint for the workload

NOTE:  when the cluster owner enables the project monitoring, the cluster owner cannot see the project-monitoring app under apps , but the project app is available and the project owner can see it under apps and it is also functional (can see the endpoints for workloads)

@orangedeng Can you check if the root cause is the same with https://github.com/rancher/rancher/issues/20390 ?

I think it is. But need the logs in project Prometheus to make sure.

@orangedeng confirmed the root cause is the same with #20390

The fix will be available in rancher/rancher:v2.2.4-rc14

The bug fix is validated on a freshly installed v2.2.4-rc15
Steps:

log in as admin, enable Github Auth, add Github user user1 and user2 as standard users
log in as Github user user1, create an EC2 cluster
log in as user1, add Github user user2 as the cluster member
log in as user2, create a new project p1
go to the project p1 to enable project monitoring
deploy a workload with custom metrics (image: loganhz/web)
go to the project's Prometheus's page

Results:

check the Configuration  under status to see the workload is added as a job

check the Targets under status to see the endpoint for the workload

check the Graph page to search and find web_app_online_user_count

Will validate the upgrade workflow as well before closing this issue.

The bug fix is validated on the upgrade path from v2.2.3 to v2.2.4-rc18
Steps:

run v2.2.3
add user1 and user2 as standard users
log in as user1, add a cluster (in my case, I test EC2 RKE cluster)
add a project
add user 2 as a cluster member
log in as user2, add a project
upgrade to v2.2.4-rc18
log in as user1, enable project monitoring of the project he created
deploy a workload with custom metrics
log in as user2, enable project monitoring of the project he created
deploy a workload with custom metrics

Result:

In each project, the project Prometheus can fetch the metrics from the workload in that project as expected.

authors: alena1108 jiaqiluo loganhz orangedeng sangeethah


text:
HPA changes

[ ] Add warning in order to use Prometheus with HPA, you'll need to deploy prometheus adapter - link this to the current issue for deploying prometheus adapter and make a note in the prometheus adapter PR that the warning should be removed when we automatically deploy it.

There is no way to detect the current HPA api version until we fix https://github.com/rancher/rancher/issues/20693
So I will use https://github.com/rancher/rancher/issues/20693 to track it.

Version: Master (v2.3) (6/14/19)
I can confirm that we now get the following messages if we do not have CPU/Memory reservation set on our workloads we want to use for HPA. Or pick Metric types other than Resrouce.
(From the PR)
      warning:
        custom: "In order to use custom metrics with HPA, you need to deploy the custom metrics server such as prometheus adapter."
        external: "In order to use external metrics with HPA, you need to deploy the external metrics server such as prometheus adapter."
        cpu: "CPU reservation is not set in the selected deployment. HPA will not be able to compute the replica count based on CPU utilization."
        memory: "Memory reservation is not set in the selected deployment. HPA will not be able to compute the replica count based on memory utilization."

Reservation type (CPU and Memory)

Pods/Object types:

External type:

I made sure that if I have other workloads which DO have reservations and pick those the messages go away.
I only lightly smoke tested HPA to ensure it is still working as expected because the changes are just light changes on the UI (reviewed PR).

authors: davidnuzik loganhz


text:
RFE - RBAC - Allow project "-promoted" role exclusions

What kind of request is this (question/bug/enhancement/feature request):
feature request
Currently, if the role of a user in the project contains: storageClass, persistentVolumes and apiServices, Rancher creates a -promoted clusterrolebinding to allow access to those resources.
For customers who would like to create custom Project Roles that granted certain Project members to cluster-level resources, perhaps an annotation to a ProjectRoleBinding to prevent the -promoted CRB from being created would be helpful, that way it would give those customers more control over what Cluster resource they'd like their users/accounts to have

Actually the RFE here is not to prevent the -promoted CRB from being created.  It's to allow the -promoted CRB to include resources other than the static list currently supported.  So for example, if I create a Project roleTemplate that includes permission to get/list/watch ValidatingWebhookConfigurations or CustomResourceDefinitions -- I would want those additonal permissions to appear in the -promoted CRB so that these cluster-level rights can be assigned at the Project level.  This is also important if we add 3rd party software to the cluster, that leverages CRDs and the Operator model.  There may be cases where we need to grant our users access to non-namespaced instances of these CRDs.
The Project abstraction is at its best when Rancher is tightly managing access to cluster-level resources.  For example, the way that Rancher handles Namespaces is very clever: each project gets a ClusterRole that is dynamically updated with the list of namespaces that are "in" each Project, and Project-member-based ClusterRoleBindings ensure that members of those projects can manipulate those namespaces.
I understand and accept that this won't be the behavior we get, should any cluster-level resources be included in the -promoted ClusterRole -- instead, any Project members would simply have unfettered access to all members of those resources; as those resources won't have any project assignment metadata for Rancher to do any magic with.  But this would still be very useful for us despite this limitation.
Managing access to Kubernetes via the Project model is a very close match to our business logic.  Development teams ask for Kubernetes access, and we create a Project for them in one or more clusters.  Everything about that development team is encoded in the Project via the ProjectRoleTemplateBindings.  We know who has access.  We know how much access they have.  We have a human-readable description and name of the development team.  All of their work is neatly organized with a project ID.
But in some cases we have "power-users" that need some (limited) access to cluster-level resources (other than StorageClass, persistentVolumes, and apiServices).  Currently, this can only be implemented by adding these power-users as cluster members via a Rancher ClusterRoleTemplateBinding. But now we have a disjoint management paradigm -- most of the access is being handled in the Project, and yet some aspects of the Project (namely, cluster-level rights) are handled at the Cluster level, where we don't have any way to link the membership to an application team.
By allowing any cluster-level rights to propagate out of a ProjectRoleTemplateBinding into a -promoted ClusterRole and corresponding ClusterRoleBinding, we would be able to continue to use the Project model for managing all kinds of cluster access, not just namespaced stuff.  We get to maintain that nice tidy boundary around each development team, where we can easily enumerate the members of each dev team, and enumerate all the rights they have (both inside and outside their namespaces).


text:
Can't get service to activate for Storage Pools

Version - Master 12/10
These are the steps I took:

Create new Environment and added two DO host
Created and started Gluster FS
Created and started Convoy Gluster FS
Added new Stack
Created Service (scale 2)
image - ubuntu
Volumes - tani:/tani1
Volume Driver - convoy-gluster

Results:
The Service does not start and sits in an activating state.
Expected:
Service to start

Forgot label on host.  Not a bug


text:
[BUG] After upgrade to Logging v2, using the same index prefix broke log forwarding

Using index rkemgmt did not create an index though rkemgmt-v2, rkemgmtnew, and rkemgmtz did. Existing indices from v1 are all of the format rkemgmt-YYYY-MM-DD
When moving from logging v1 to v2, we lost the ability to define the date in the index suffix and we believe there may be some relationship.
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Deploy logging v1 with the date format set to YYYY-MM-DD
Let run for a few days
Deactivate Logging, and enable Logging v2 with the suffix in the Date Format

Result:
No new indices will be created.
If you change the name and wait 5 min you should see the new index form without a date suffix

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.5.7

This is supported in logging v2 but is not enabled by default.  You will need to configure your output to enable index rollover.
https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/elasticsearch/#elasticsearch-rollover_index
https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/elasticsearch/#elasticsearch-index_date_pattern
https://github.com/uken/fluent-plugin-elasticsearch#rollover_index

@Tejeev , Jacob provided answers in the above comment. Can this be closed?

authors: MKlimuszka Tejeev paynejacob


text:
Truncate***

Opened in error.


text:
[Backport] NeuVector k8s 1.27 chart support

Backport of https://github.com/rancher/rancher/issues/41803
This issue is to implement the chart changes & perform the testing required to upgrade to k8s 1.27. Please perform below steps.

[ ] Check whether the chart has any references to the below deprecated features of k8s 1.27. You can find information about deprecated APIs here on Kubernetes Deprecation guide.

storage.k8s.io/v1beta1 API version of CSIStorageCapacity

[ ] Update kube-version annotation in Chart.yaml. catalog.cattle.io/kube-version: '>= 1.23.0-0 < 1.28.0-0'

Note: If this is an upstream chart and if the upstream chart doesn't support k8s 1.27 then do not update the kube-version annotation or update the k8s version accordingly.

[ ] Perform below tests

Fresh install/uninstall/upgrade/downgrade of the charts on K8s 1.27 provisioned on Rancher. Test the chart functionality.
(Please refer to the https://github.com/rancher/rancher/issues/41395 to know what testing was done for k8s 1.26 upgrade for your chart)

Provision rancher on k8s 1.26 or lesser

Install chart on this cluster

Upgrade this cluster in rancher to k8s 1.27

Make sure the existing chart and the app is functional after cluster upgrade

Related to https://github.com/rancher/rancher/issues/44222 and https://github.com/rancher/rancher/issues/44223 though I need to confirm if this is the parent to those two.

@gaktive above PRs for adding new chart for NeuVector app version 5.2.4-s1. I have verified the existing chart 103.0.0+up2.6.4 and 103.0.1+up2.7.1(unreleased version) for k8s 1.27 support.
I did fresh install as well by upgrading downstream cluster from k8s version 1.26 to 1.27. Above charts works as expected. I tested this on Rancher manager 2.8.0 and 2.7.8. I used respective NeuVector charts.

Thanks @selvamt94, does that mean that this ticket is not only dev complete but tested?

@gaktive Yes, we have tested too.

authors: MKlimuszka gaktive selvamt94


text:
[Feature] [Metrics] Support for Server metrics output other than Graphite

Graphite doesn't have any type of security mechanism on it's protocol (it's just TCP). So the only way to secure is to use IP whitelist.
Would be super helpful to have a way to support different exports (such as InfluxDB directly) (I now Influx has a Graphite connector, but again, security).
I see the code is just configuring JMXTrans to export the JMX statistics to Graphite.

Perhaps something in https://github.com/rancher/cattle/blob/master/code/framework/jmx/src/main/java/io/cattle/platform/jmx/JmxPublisherFactory.java that would allow for specifying the type of reporter to use?

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.

authors: deniseschannon johnrengelman


text:
Upgrading a primary service via the API gets stuck in a loop

Rancher Version:
v1.1.2
Docker Version:
v1.11.2
OS and where are the hosts located? (cloud, bare metal, etc):
AWS EC2 instance running RancherOS v0.5.0
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Single node Rancher, internal DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:

Set up an environment in Rancher with a stack that has a primary service with side-kick services (for example App Container + some kind of Server Container that uses volumes from the App)
Set up a CI environment running Drone with the Rancher Plugin configured to access the Rancher API
Run a build that results in a Drone deploy using the Rancher Plugin.
Results:
The primary service (with side-kicks) that is supposed to be upgraded gets stuck in a never-ending loop.
Expected:
The primary service should be upgraded without getting stuck in a loop.

Note: When upgrading (either just the primary service or all of them) through the Web GUI, it works smoothly, but from Drone Rancher it gets stuck.
I have a vague memory of everything working on an earlier version of Rancher and that this isn't specific to Drone Rancher, therefore I post the issue here. But maybe I'm wrong.

hey @mandrean did you manage to get to the bottom of this? going to close this, feel free to reopen.

authors: aemneina mandrean


text:
how do i add CNI frame work in rancher?

i want to try CNI framework in rancher cause i want only one ip address to be exposed from the container build through rancher?
Rancher Versions:
Server:  1.5.1
healthcheck: yes
ipsec:yes
network-services:yes
scheduler:
kubernetes (if applicable):
Docker Version:
1.12.6
OS and where are the hosts located? (cloud, bare metal, etc): baremetal
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB) single node rancher
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
cattle
Steps to Reproduce:
Results:

@asdarunasd if you have started a cluster using 1.5.1 release and launched a container either in standalone mode or using services/stacks, there will only be one IP address assigned for the eth0 interface.
If you were using using the docker run command, then you need to pass one additional argument and label to work with CNI.
docker run --name testcni --net=none --label io.rancher.container.network=true -itd nginx
docker exec -it testcni bash
ip addr

Please let me know if you have more questions.

The CNI framework is part of the infrastructure services started in an environment, so as @leodotcloud mentioned, starting any contianer would be using it.

authors: asdarunasd deniseschannon leodotcloud


text:
Removed pending from non-imported driver and added reason to forget error.

Problem: The label for pending state should not be red. The "transitioning" field in API should not be error. New clusters should not start as "Active". RKE clusters were not showing "Pending" status before, but now they are.
Solution: Give ForgetError associated with pending state a reason, "Pending". Much like the provisioning state's reason, "Provisioning". The state is now blue, like provisioning and remove states. Transition field has a value of "yes". Removed pending state from non-imported drivers. This will prevent drivers from starting in "Active" state. Execute pending logic once, and return RKEdriver regardless of error. Pending will no longer hang. Driver will return despite inevitable forget error.
Issues: #17281, #15907, #17201, #17673, #17282

LGTM

aslo https://github.com/rancher/rancher/issues/16884

authors: cjellick rmweir


text:
Validated defaults for userretention settings

qa-task : https://github.com/rancher/qa-tasks/issues/1487
https://github.com/rancher/rancher/issues/46555

The development code is not merged / not planned to release and i m closing this PR.


text:
test: check migration to v3 controller

What this PR does / why we need it:
We decided to split into a separate PR the E2E tests added to validate v1 to v3 controller migration. The changes to the controller can be found in https://github.com/rancher/turtles/pull/575. This PR only affects E2E scenarios.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist:

[x] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[x] adds or updates e2e tests

@salasberryfin can we rebase this PR?

@salasberryfin Can you please rebase this PR?

Does this need a rebase again?

This was rebased today but it is still failing when trying to connect to the downstream cluster after migration using kubeconfig. Still figuring out the reason behind this.

@salasberryfin The problem you are facing might be fixed by https://github.com/rancher/turtles/commit/7653a8182ee99e9fbdf7c36c417b4331eeac3bd7#diff-7be87c7e06c4b33e0c43cce272e500934fca8631072faf36237af336d4c1c562R185-R190

repo: rancher/turtles


text:
Error message for Service has a single quote on one side and double quote on other

Steps:

Try to create a service called abc:def

Results:  Error message that says - name contains invalid character: ':", notice there is a single quote on one side and double quote on other
Expected:  Quote should match on both sides

v0.23.0-rc1
Verified Fixed

repo: rancherio/rancher


text:
run serve problem about 'canvas'

Could not resolve "canvas" (mark it as external to exclude it from the bundle)

Could not resolve "canvas" (mark it as external to exclude it from the bundle)

@HughSunny This is now fixed in v0.0.3

authors: HughSunny randolphtellis


text:
Sweave Build File is more like knitr tex?

If we want to Sweave - why doesn't the build file looks like this
{
    "selector": "text.tex.latex.rsweave",
    "working_dir": "${project_path:${folder}}",
    "cmd": [ "R CMD Sweave $file --encoding=UTF-8" ],
    "shell": true
}

Calling knitr leads to some issues using sweave only related commands, if one uses real Sweave.

I think it is a matter of taste. You can always define your own sublime-build commands.

I have added a variant build for Sweave.


text:
Multiquery hangs

Running a multiquery with 37 subqueries.  I will see this in strider:
    raise exc from None
  File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 580, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 241, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 55, in app
    await response(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 146, in __call__
    await self.background()
  File "/usr/local/lib/python3.9/site-packages/starlette/background.py", line 35, in __call__
    await task()
  File "/usr/local/lib/python3.9/site-packages/starlette/background.py", line 18, in __call__
    await self.func(*self.args, **self.kwargs)
  File "/app/./strider/server.py", line 363, in multi_lookup
    await asyncio.gather(*map(single_lookup, query_keys))
  File "/app/./strider/server.py", line 361, in single_lookup
    await client.post(callback, json=query_result)
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1807, in post
    return await self.request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1481, in request
    response = await self.send(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1568, in send
    response = await self._send_handling_auth(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1604, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1640, in _send_handling_redirects
    response = await self._send_single_request(request, timeout)
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1681, in _send_single_request
    ) = await transport.handle_async_request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 278, in handle_async_request
    (
  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
    raise mapped_exc(message) from exc
httpx.ReadError

And then the caller never gets all the answers

multistrider.json.txt
This is the treats query using about 30 of Kara's rules.   I was able to get things to run by reducing to 3-5 at a time (most of the time that would work).

This is mostly fixed, but reliably happens for certain inputs.
With MONDO:0005148 (T2D) strider frequently hangs at 74 the 75 rules for over 1 hour.
I have also witnessed it for MONDO:0005016 though I don't know how many rules got stuck

repo: ranking-agent/strider


text:
Hide the cables

Hello everyone, I would like to know how to hide the cables of the Refined storage I tried using the chisels & bits as I saw in some forums but I have experienced great difficulties I am putting 2 prints one of a video that I saw this being done and one of my map where I can not slip the cables.
https://imgur.com/a/z0o0r7k
...
Version (make sure you are on the latest version before reporting):
chiselsandbits-14.16
MCMultiPart-2.5.1
Minecraft 1.12.2 - MultiMC
refinedstorage-1.5.33
forge-1.12.2-14.23.3.2655-universal

What's the problem?

Hello I can not hide the cables using the chisels & bits covers as I showed in the screenshots.

Please head over to our Discord to ask your question there, this issue tracker is merely for bugs.

authors: raoulvdberge wandersonbrazdf

repo: raoulvdberge/refinedstorage


text:
Storage disk getting rejected from drive?

Issue description: After creepers exploded my drive lots of times, I was able to put my disks back as normal before, but this time it glitched out some disks, and whenever I put them in, they get thrown out when I get out of the GUI
What happens: Disk goes in, comes right back out
What you expected to happen: Disk goes in, stays in
Steps to reproduce:

Have creepers blow up your drive with disks, then put disks back into a new drive
Repeat process until disks get rejected

...
Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2 (all the mods lite, with updated Refined Storage)
Forge: 12.18.2.2151
Refined Storage:1.2.8

Does this issue occur on a server? [yes/no] yes
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

I can't reproduce this on the latest version. Are you sure you updated correctly? Check in the Forge modlist ingame if you're actually running 1.2.8.

Yeah, I checked and it's version 1.2.8 on my client and server. The drives were fully stocked if that helps you.

Any logs when this happened?

It doesn't seem so, if you want to you can do some stuff on the server, and help out.

Updating doesn't help if it erases the existing disks. You need to figure out WHY this is happening and offer an update that actually works with the broken disks to recover items, or at least admit it's broken.

Duplicate of #712

authors: SomewhatOfAGuy aelfwyne raoulvdberge


text:
Remove "Avoid too high threshold caused by Artefacts / Motion during Wake"?

https://github.com/raphaelvallat/yasa/blob/4b5973bfcf92788f080e3ca05bc2aa1402df8865/yasa/main.py#L660
It uses absolute voltage 10 which does not apply to other scenarios.
Suggest it to be removed, since you already can specify hypno and include in yasa.spindles_detect.

Hi @Hockey86,
Thanks for opening the issue. So just to clarify, it is in units of standard deviation, and not in unit of absolute voltage:
https://github.com/raphaelvallat/yasa/blob/4b5973bfcf92788f080e3ca05bc2aa1402df8865/yasa/main.py#L653-L658
Now I think you're right that the min(thresh_rms, 10) is somewhat arbitrary, and we might as well remove it and just keep the original thresh_rms.
Raphael

Hi @Hockey86,
Thanks for opening the issue. So just to clarify, it is in units of standard deviation, and not in unit of absolute voltage:
https://github.com/raphaelvallat/yasa/blob/4b5973bfcf92788f080e3ca05bc2aa1402df8865/yasa/main.py#L653-L658
Now I think you're right that the min(thresh_rms, 10) is somewhat arbitrary, and we might as well remove it and just keep the original thresh_rms.
Raphael

repo: raphaelvallat/yasa


text:
Fixes hanging on sleep_ms() after deep sleep

As documented in this repo for example: https://github.com/ghubcoder/PicoSleepDemo

A simple modified hello_sleep.c to reproduce the original problem and test this fix:
/**
 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/sleep.h"

#include "hardware/rtc.h"

static bool awake;

static void sleep_callback(void) {
    printf("RTC woke us up\n");
    awake = true;
}

static void rtc_sleep(void) {
    // Start on Friday 5th of June 2020 15:45:00
    datetime_t t = {
            .year  = 2020,
            .month = 06,
            .day   = 05,
            .dotw  = 5, // 0 is Sunday, so 5 is Friday
            .hour  = 15,
            .min   = 45,
            .sec   = 00
    };

    // Alarm 10 seconds later
    datetime_t t_alarm = {
            .year  = 2020,
            .month = 06,
            .day   = 05,
            .dotw  = 5, // 0 is Sunday, so 5 is Friday
            .hour  = 15,
            .min   = 45,
            .sec   = 10
    };

    // Start the RTC
    rtc_init();
    rtc_set_datetime(&t);

    printf("Sleeping for 10 seconds\n");
    uart_default_tx_wait_blocking();

    sleep_goto_sleep_until(&t_alarm, &sleep_callback);
}

int main() {
    while(1)
    {
        stdio_init_all();
        printf("Hello Sleep!\n");

        printf("Switching to XOSC\n");

        // Wait for the fifo to be drained so we get reliable output
        uart_default_tx_wait_blocking();

        // UART will be reconfigured by sleep_run_from_xosc
        sleep_run_from_xosc();

        printf("Switched to XOSC\n");

        awake = false;

        rtc_sleep();

        // Make sure we don't wake
        while (!awake) {
            printf("Should be sleeping\n");
        }

        printf("Gonna go sleep_ms for 5 sec\n");
        sleep_ms(5000);
        printf("Done, restart!\n");
    }
}

repo: raspberrypi/pico-extras


text:
Fix documentation issues when upgrading Doxygen to 1.9.8

See https://github.com/raspberrypi/pico-sdk/issues/1563
Between Doxygen 1.8.17 and Doxygen 1.9.8, the top-level "modules" tab type in the Doxygen layout has changed such that our "API Documentation" section is no longer generated and is instead considered of the type "topics". Update our layout XML to reflect this change and restore this critical section of the documentation.
As of Doxygen 1.8.19 (specifically, https://github.com/doxygen/doxygen/commit/327423e217337bf4e64515aba6cf78b9877bc165), the first line of a comment is no longer automatically extracted as a brief description unless we enable the JAVADOC_AUTOBRIEF setting. See https://www.doxygen.nl/manual/config.html#cfg_javadoc_autobrief:

If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the first line (until the first dot) of a Javadoc-style comment as the brief description. If set to NO, the Javadoc-style will behave just like regular Qt-style comments (thus requiring an explicit @brief command for a brief description.)

This no longer seems to work as expected with the very latest version of Doxygen (1.10.0) and I've discovered more subtle bugs with brief description extraction using JAVADOC_AUTOBRIEF: e.g. the brief description for https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2_common/hardware_spi/include/hardware/spi.h#L100-L103 is incorrectly extracted as:
<para>Initialise SPI instances</para>
<para>Puts the SPI into a known state, and enable it. Must be called before other functions. </para>

Note the first line of the detailed description being included here, presumably because there is no blank line after the \brief command.

@mudge Deprecated in favour of #1660?

Yes, I'll close this one though the DoxygenLayout.xml changes may still be necessary.

@nelliemckesson Do we still need the DoxygenLayout.xml changes in this PR?

So, I think DoxygenLayout.xml would only affect the original pico-sdk site (can't remember where that lives/lived), but if that still exists, then yeah, those changes are still required.

I think the only place that's still relevant is Appendix E of https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf ? But if this is going to become dependent on the version of Doxygen the user has installed, maybe the Doxygen-version also needs to be mentioned in that Appendix?

@nathan-contino Can you throw a quick NOTE block into Appendix E of the Pico C SDK book ahead of the documentation release (which looks to be next week at this point). Thanks!

authors: aallan lurch mudge

repo: raspberrypi/pico-sdk


text:
🛑 BFSU Mirror(mirrors.bfsu.edu.cn) is down

In 9fa4582, BFSU Mirror(mirrors.bfsu.edu.cn) (https://mirrors.bfsu.edu.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BFSU Mirror(mirrors.bfsu.edu.cn) is back up in 9c13a36.

repo: raspbian-addons/status


text:
Windows Installation Issues?

So when getting protobuf on windows, I dont understand what it means when it says to put files in $PROTOBUF$/lib and stuff, since those arent even folders?

http://prntscr.com/c1pvm6
variable name:PROTOBUF
path: folder path dir
what you did to get build? I'm trying something hours but nothing
only thing that has these files are nothing:
'Libprotobuf.lib'
http://prntscr.com/c1pvzb
help me :S

Wait but it says but the include files in $(LIBPROTOBUF)/include so??? Also which lib folder do i put the libprotobuf.lib file in.

any folder
$(LIBPROTOBUF) It is a variable system
which should contain the path of the folder
Ex:
LIBPROTOBUF = C:\test
and in folder:
C:\test\
It has 'include' folder and 'lib' folder.

@BrunoGysin So then you put the libprotobuf.lib in that lib foler, and all the include files in that folder?

create new folder Exemplo: 'Test', in 'Test' folder Create new folder with name 'lib', in 'lib' folder add 'libprotobuf.lib'. Back to 'Test' folder, copy 'include' folder and paste in 'Test' folder.

@BrunoGysin Ok thats what i did, but i still cant install node-protobuf

me too

try to import the precompiled version of protobuf linked in #1 - or get a VM/vServer with Ubuntu to avoid the Windows pain. Cheers!

authors: BrunoGysin VenusMods rastapasta roeifetaya

repo: rastapasta/pokemon-go-mitm-node


text:
🛑 Flexnet is down

In 50a789f, Flexnet (https://flexnet.az) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Flexnet is back up in 91e1afd after 41 minutes.

repo: rasulovk/UpT-mon


text:
Cell as router-link

Hi, I am building an SPA, and I want my id field of Users table to be a <router-link to="#"> component which links to that specific user's profile. However, I can't find out an option to render a single cell as needed.
Is there a method to make that possible? Thanks for your attention.

@itsjef As I don't use vue-router myself, I'm not quite sure how it'll work. But I guess, you might be able to use __slot option to do that. You can check out the tutorial here.

Thanks for your answer, I have a clue to implement now.
My problem aside, I tried following the tutorial on replacing __component with __slot but it doesn't work, the Actions column is blank now. Can you take a look?
Screenshot:

My code:
<template>

      <vuetable-pagination-info ref="paginationInfoTop"
      ></vuetable-pagination-info>
      <vuetable-pagination ref="paginationTop"
        @vuetable-pagination:change-page="onChangePage"
      ></vuetable-pagination>

    <vuetable ref="vuetable"
      api-url="http://vuetable.ratiw.net/api/users"
      :fields="fields"
      pagination-path=""
      :per-page="20"
      :sort-order="sortOrder"
      @vuetable:pagination-data="onPaginationData"
    >
      <template slot="actions" scope="props">   // <----

          <button class="ui basic button"
            @click="onAction('view-item', props.rowData, props.rowIndex)">

          </button>
          <button class="ui basic button"
            @click="onAction('edit-item', props.rowData, props.rowIndex)">

          </button>
          <button class="ui basic button"
            @click="onAction('delete-item', props.rowData, props.rowIndex)">

          </button>

      </template>
    </vuetable>

      <vuetable-pagination-info ref="paginationInfo"
      ></vuetable-pagination-info>
      <vuetable-pagination ref="pagination"
        @vuetable-pagination:change-page="onChangePage"
      ></vuetable-pagination>

</template>

@itsjef It looks like the number of  in body do not match those in the . You need to check to see if there is any error in the browser console.

That's the first thing I did, however there was no error warning though. :\

Is it possible that you forget to remove // <---- ? It's still showing in the code above.

@itsjef I've created a gist here from the tutorial lesson 11 using __slot instead of __component. It has been tested and work as expected, maybe you can check it out and see what's different.

That is not the cause, either. I removed the mark but the problem persists.

@ratiw Heck, it is even weirder now, all I did was clone your tutorial repo, checkout tag/lession-11 and overwrite the MyVuetable.vue file with your provided gist, and the problem still persists, while browser control shows no debug info, on booth Chrome and Firefox.

That's strange. I did exactly that and it works. That's why I posted the gist.

Yes, I understand. Therefore I thought there must be something with my machine, so I repeated the process on another's but still no difference. What a mysterious case...
I'm literally scratching my head now.

Anyhow, despite the mysteriously inoperative __slot feature on my machine, I finally managed to achieve my main objective described above using __component :+1: Thank you so much for your support.

Hmm, I'll try to do the clean install and test it again tonight.

@itsjef I think I've found the problem. When I tried a clean install of the tutorial, it does have the problem as you mentioned.
The only thing out of place is the version of Vue 2.1 in the package.json. When I changed to "vue": "^2.2.0",, run yarn upgrade and yarn run dev again. It is now work as expected.
So, update Vue to ^2.2.0 does solve the problem. Sorry for the trouble.

Congratulations! The problem is gone now :smile: Thank you very much!

authors: itsjef ratiw


text:
Fail to compile Android project. Unnecessary @Override at line 90 in RewardVideoListener.java

This is a sample from my console's output:
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:processReleaseResources
:app:generateReleaseSources
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac/Users/cognifit/Workspace/cognifitSocialJS/platforms/android/app/src/main/java/name/ratson/cordova/admob/rewardvideo/RewardVideoListener.java:90: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
 FAILED

FAILURE: Build failed with an exception.

Removing this line just fix it

Hi,
Thank for your information.
This line come from #234
But no idea why it make problems?
Regards.

The callback method onRewardedVideoCompleted() has been added in Google Mobile Ads SDK version 12.0.0 for Android. We can check it in the release notes here.
The @Override annotation will ensure that the callback is implemented in RewardedVideoAdListener implementation. It raises error with SDK versions below 12.0.0 as there is no such callback there.
Removing that @Override annotation will fix the issue for older SDK versions without causing any problems in newer versions. Reverting #234 will fix the issue.

Hi,
Nice info, but it still error if set play-services-ads to latest (previous version 0.17.0 work fine):

dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
implementation(project(path: "CordovaLib"))
compile "com.google.android.gms:play-services-ads:+"
compile "com.android.support:support-v4:26.+"
compile "com.google.android.gms:play-services-base:+"
// SUB-PROJECT DEPENDENCIES END
}

Do you have any suggest?
Regards.

In my case I am using 11.+ version due to some other plugin incompatibility (firebase I suppose):
 compile "com.google.android.gms:play-services-base:11.+"
 compile "com.google.android.gms:play-services-ads:11.+"

I am not very good at JAVA, and not really sure if this exists, but if we could set @Override to be optional (overloading the method) it would fix the problem and maintain compatibility with older google SDKs

i have fixed this issue. just follow my steps.
go to platforms/src/android/app/src/main/java/name/ratson/cordova/admob/rewardvideo/RewardVideoListener.java
AND GO TO LINE NO 90 AND REMOVE @override and everything will work fine.

authors: santi-cognifit shagun121 srikanth-wgl stionic

repo: ratson/cordova-plugin-admob-free


text:
Publish typescript types

Would you be willing to publish typescript typings? Looks like someone already set some up for factory-girl (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/factory-girl) so it might not be too much work to bring them into this package.

Added in v0.6.1

authors: jimsimon ratson

repo: ratson/factory-bot


text:
I cannot assoc my model to another

When I try to assoc one model to another (I copy everything from the tutorial) I get an error:
(node:9444) UnhandledPromiseRejectionWarning: TypeError: model.save is not a function

factory.define('ProfileImage', ProfileImage, {
  id: factory.sequence('ProfileImage.id'),
  imageUrl: 'http://lorempixel.com/200/200'
});

factory.define('User', User, {
  email: 'user@my-domain.com',
  password: 'some-password',
  profileImage: factory.assoc('ProfileImage', 'id'),
});

factory.build('User').then(user => {
  console.log(user);
  // => User { email: 'user@my-domain.com', password: 'some-password' }
});

Ah I see. I thought I can just to associate this with the model and that's all. But If I got it correctly I should associate my model with a database and then I will be able to use assoc? Just If you follow the tutorial there isn't a mention of it. Thank you so much! I will try it out


text:
Hide messages with hidden: true

Some message, in particular file upload messages seem to be reposted
periodically, but with hidden: true.  Don't display those, to avoid
noise.

This is slightly simplistic in that it fails to do the right thing for edits to existing messages, so it should probably be refined a bit.

This is kinda superseded by #52, so closing.

repo: rawdigits/wee-slack


text:
Needs to self-manage

straight.el needs to manage itself as a package. Otherwise it remains unversioned in versions.el, and also pbl does not have its autoloads activated.

I'd love to have something like this:
(straight-use-package '(straight :fetcher github :repo "raxod502/straight.el"))

Unfortunately, I don't think there's any sane way to achieve this. The basic problem is that the bootstrap code is not present in the user's Emacs, but in the straight.el repository. Thus either the bootstrap code would need to be put into the user's init-file, which is fragile and ugly, or everyone would need to depend on the official straight.el repository providing appropriate bootstrap code that could allow for other forks.
However, straight.el still needs to self-manage, even if I can't provide pretty, consistent syntax for it. I think that the best way to do this is to update the various caches in bootstrap.el. That will at least get straight to show up in the versions lockfile. The issue with pbl autoloads is best handled manually in bootstrap.el, I think—it's probably not a good idea to try to get straight.el to apply its package building mechanisms to itself.

Fixed in 2cd29b85baa1fcadb4bff41831b12f42d5c26d2a.

Merged.


text:
[Feature][API Server] Deprecate Serve API V1

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
See #1779, #1787, and #1790 for more details.
Use case
No response
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

cc @tedhtchang

#1829 #1825

repo: ray-project/kuberay


text:
Navigator.lua broken

Plugin Broken on commit 0d29116b18a0b8321d4c4023e0c96ce014f56b65
jumping back to 7514fa9f works fine for me
Lsp does not startup on loading filetype
update
git bisect good 7514fa9f
You need to start by "git bisect start"

Do you want me to do it for you [Y/n]? Y
git bisect good 7514fa9f
git bisect bad 0d29116b18a0b8321d4c4023e0c96ce014f56b65
Bisecting: 6 revisions left to test after this (roughly 3 steps)
[baad5112d87d61a9d5a07941c6a24a15ce80de40] optimize jump to position
git bisect good
Bisecting: 3 revisions left to test after this (roughly 2 steps)
[05e51f2e7404cea4413baf03231a7de577c4887d] postphone the treesitter loading
git bisect good
Bisecting: 1 revision left to test after this (roughly 1 step)
[f30e5a290d2f1eb4e04c61051808b255488e6650] gopls flags->allow_incremental_sync/debounce update                                                                                git bisect good
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[b08bfd68396b4f0afe6bffe6939760d876e487ea] improve launching time
git bisect bad
b08bfd68396b4f0afe6bffe6939760d876e487ea is the first bad commit
commit b08bfd68396b4f0afe6bffe6939760d876e487ea
Author: ray-x <rayx.cn@gmail.com>
Date:   Fri Jul 2 19:32:19 2021 +1000

    improve launching time

 lua/navigator/lspclient/clients.lua | 74 ++++++++++++++++++-------------------
 lua/navigator/lspclient/mapping.lua |  3 +-
 lua/navigator/lspwrapper.lua        |  2 +-
 3 files changed, 38 insertions(+), 41 deletions(-)

the breaking commit is b08bfd68396b4f0afe6bffe6939760d876e487ea
tested with

typescript
rust

The commit reverted. I will check what is wrong with that one.
Thanks!

Should have been fixed

still a lua issue with illuminate
error occurs on d62b03c39419e08edfaa11866555b09acbb514c0
errror does not occur on 7514fa9f7095d7d3c67d033735072af6eab78153
Error executing vim.schedule lua callback: /home/dnehrig/.config/nvim/lua/plugins/lspconfig/init.lua:249: attempt to index field 'illuminate' (a nil value)
config:
local single = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"}
require("navigator").setup(
    {
        default_mapping = false,
        border = single,
        code_action_prompt = {enable = false, sign = true, sign_priority = 40, virtual_text = true},
        lsp = {
            format_on_save = false,
            sumneko_lua = {
                sumneko_root_path = sumneko_root_path,
                sumneko_binary = sumneko_binary,
                settings = luadev.settings,
                on_attach = function(client, bufnr)
                    custom_attach(client, bufnr)
                end
            },
            rust_analyzer = {
                on_attach = function(client, bufnr)
                    custom_attach(client, bufnr)
                end
            },
            tsserver = {
                filetypes = {"typescript", "typescriptreact"},
                on_attach = function(client, bufnr)
                    vim.cmd [[packadd nvim-lsp-ts-utils]]
                    local ts_utils = require("nvim-lsp-ts-utils")

                    -- disable TS formatting since we use efm
                    client.resolved_capabilities.document_formatting = false

                    -- ts utils code action and file import update
                    ts_utils.setup {
                        debug = false,
                        disable_commands = false,
                        enable_import_on_completion = false,
                        import_on_completion_timeout = 5000,
                        -- eslint
                        eslint_enable_code_actions = true,
                        eslint_bin = "eslint_d",
                        eslint_args = {"-f", "json", "--stdin", "--stdin-filename", "$FILENAME"},
                        eslint_enable_disable_comments = true,
                        -- experimental settings!
                        -- eslint diagnostics
                        eslint_enable_diagnostics = false,
                        eslint_diagnostics_debounce = 250,
                        -- formatting
                        enable_formatting = false,
                        formatter = "prettier_d_slim",
                        formatter_args = {"--stdin-filepath", "$FILENAME"},
                        format_on_save = true,
                        no_save_after_format = false,
                        -- parentheses completion
                        complete_parens = false,
                        signature_help_in_parens = false,
                        -- update imports on file move
                        update_imports_on_move = true,
                        require_confirmation_on_move = false,
                        watch_dir = "/domain"
                    }

                    ts_utils.setup_client(client)
                    vim.api.nvim_buf_set_keymap(bufnr, "n", "<space>gi", ":TSLspImportAll<CR>", {silent = true})
                    vim.api.nvim_buf_set_keymap(bufnr, "n", "<space>ae", ":TSLspRenameFile<CR>", {silent = true})
                    custom_attach(client, bufnr)
                end
            }
        },
        on_attach = function(client, _)
            -- float
            if not packer_plugins["illuminate"].loaded then
                vim.cmd [[packadd illuminate]]
            end
            require "illuminate".on_attach(client)
        end
    }
)

I think the early version is incorrect and which cause your code
        on_attach = function(client, _)
            -- float
            if not packer_plugins["illuminate"].loaded then
                vim.cmd [[packadd illuminate]]
            end
            require "illuminate".on_attach(client)
        end

did not been called.
In fact

It is not packer_plugins["illuminate"].loaded ,  it should be packer_plugins["vim-illuminate"].loaded. You did not see the error because in old version of navigator only custom_attach was called. This piece of code was not called. (my mistake)

You do not need vim-illuminate plugin. Navigator provides similar features and in addition, it provides multiple references highlight with k.  I think as navigator works almost same way as  illuminate. You did not notice that the plugin was not attached.

@ray-x i though illuminate was a required dependency for some reason
and yeah should have double checked that code
sorry about that my mistake :b

authors: danielnehrig ray-x


text:
CONTRIBUTING.md instead of HOWTOCONTRIBUTE.rst

https://docs.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors
Will be linked
also https://docs.github.com/en/github/building-a-strong-community/adding-a-code-of-conduct-to-your-project#adding-a-code-of-conduct-using-a-template

Hello,
I would be happy to pick this up and open a PR!
Is this what i should do?

Convert the .rst to CONTRIBUTING.md
Check if the described workflow actually works

Hello,
I would be happy to pick this up and open a PR!
Is this what i should do?
* Convert the .rst to CONTRIBUTING.md

* Check if the described workflow actually works

Hi @mcsitter, wonderful! So unfortunately the issue templates on the main Github repo will only check master to link to this, so it can't really be tested. But we know it'll work once it's implemented.
You'll also need to:

Change the reference in docs/source/contributing.rst to .. mdinclude:: ../../CONTRIBUTING.md.
Be cognizant of the change in syntax. .rst is a bit different than markdown. So you'll need to use # for headers and the links will all need to be changes. We recently made this switch at https://github.com/bradyrx/climpred/blob/master/CONTRIBUTING.md, so you could use that as a guide if you get stuck anywhere.

Let us know if you have any questions along the way.

authors: aaronspring bradyrx mcsitter

repo: raybellwaves/xskillscore


text:
Results not show all gists

Extension Github Gist – Title
Author: @koinzhang
When I search for a gist show results for the newer gists, older gist are not showed. Maybe there are a limit?
If I do the same search with https://github.com/Gisto/Gisto I get all results.

Hi @koinzhang,
Thank you for the replay.
The problem it is not about the limit of displayed results. The problem is that seems the search is not performed over all the gists. For exemple:
Search: laravel
Restult: 2 gists
But I know that I have older gists that are not shown in the results.

Hi @6ui11em. I understand what you mean.
The mechanism of how this command works is to show you 30 gist and then search through those 30 gist.
If it is not shown, it will not be searched.
Next version I'll add a new setting item that lets you choose the maximum number(30-100)  of gist you can show at a time.
And allow you to load the next page of Gist when the last Gitst is selected.

Hi @koinzhang ,
This will be a great upgrade!
Thank you!

Hi @6ui11em
Github Gist update has been released with the following new features:

Update Preference options: you can choose the number(30-100) of Gist loaded per page.
Add “Load More”: When you select the last item in the list, the next page of Gist will be loaded automatically.
Add “Open in Ray.so” action: Create beautiful images of your gist code using ray.so.

repo: raycast/extensions


text:
Add letterboxd extension

Description

Screencast
https://github.com/raycast/extensions/assets/72655/0c197938-f2a8-45ce-b898-ad2d2762ae90
Checklist

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

@pernielsentikaer I think I've addressed your feedback. Thanks!

Connected my GitHub!
On Tue, Feb 6 2024 at 12:19 AM, raycastbot @.***>
wrote:

🎉 🎉 🎉
Such a great contribution deserves a reward, but unfortunately we couldn't
find your Raycast account based on your GitHub username @.***
https://github.com/rgarcia).
Please link your GitHub account to your Raycast account
https://www.raycast.com/settings/account to receive your credits and
soon be able to exchange them for some swag.
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/pull/10503#issuecomment-1928993065,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARXTYVWBI4YS2GIIHUTJDYSHRPXAVCNFSM6AAAAABCVAUOROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRYHE4TGMBWGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


text:
New extension: Imgur - Upload Media & View Images

Users can upload images and videos.
After uploading, the URL of the image or video is automatically copied to the clipboard.
Users can view, and download images they have uploaded.

Screencast
https://user-images.githubusercontent.com/14165223/213808128-a35089a8-2a02-47d2-89c3-3815b4fa7dae.mp4
Checklist

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

This is great! Would it be possible to add an option to upload whatever image is in the clipboard?
I want a quick way to upload a screenshot from clipboard to imgur.
Thanks!

authors: BalliAsghar dzg


text:
chore: use sub-functions in product update, use model level methods for usage/seat checks

Model methods added

Product model:

IsSeatLimitBreached
HasPerSeatBehavior

Price model:

IsLicensed

Change in update product
Moved feature-related changes to a separate method in the same service. This makes it easier to read the core flow of updating products, without having too many details of each step up-front

Pull Request Test Coverage Report for Build 9596536088
Details

0 of 45 (0.0%)  changed or added relevant lines in 3 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.001%) to 9.393%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

billing/checkout/service.go
0
8
0.0%

billing/product/product.go
0
11
0.0%

billing/product/service.go
0
26
0.0%

Files with Coverage Reduction
New Missed Lines
%

billing/checkout/service.go
3
0.0%

Totals

Change from base Build 9567661444:
-0.001%

Covered Lines:
9993

Relevant Lines:
106389

💛  - Coveralls

repo: raystack/frontier


text:
阅读Reading 无法渲染（生成）

同标题，即便复制了./hexo-theme-raytaylorism/_md/reading的所有东西到./blog_root/source/
下面是error
$ hexo s
INFO  Start processing
INFO  Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
Unhandled rejection TypeError: C:\Files\Support\GitHub Blog\fanff0324\themes\raytaylorism\layout\reading.e                                                                     js:1
 >> 1| <% var readingData = site.data.reading;
    2|     var tabCount = Object.keys(readingData.define).length;
    3| %>
    4|

Cannot read property 'define' of undefined
    at eval (eval at <anonymous> (C:\Files\Support\GitHub Blog\fanff0324\node_modules\ejs\lib\ejs.js:242:1                                                                     4), <anonymous>:31:43)
    at eval (eval at <anonymous> (C:\Files\Support\GitHub Blog\fanff0324\node_modules\ejs\lib\ejs.js:242:1                                                                     4), <anonymous>:32:3392)
    at C:\Files\Support\GitHub Blog\fanff0324\node_modules\ejs\lib\ejs.js:255:15
    at _compiled (C:\Files\Support\GitHub Blog\fanff0324\node_modules\hexo\lib\theme\view.js:127:30)
    at View.render (C:\Files\Support\GitHub Blog\fanff0324\node_modules\hexo\lib\theme\view.js:29:15)
    at C:\Files\Support\GitHub Blog\fanff0324\node_modules\hexo\lib\hexo\index.js:387:25
    at tryCatcher (C:\Files\Support\GitHub Blog\fanff0324\node_modules\bluebird\js\release\util.js:16:23)
    at C:\Files\Support\GitHub Blog\fanff0324\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (C:\Files\Support\GitHub Blog\fanff0324\node_modules\hexo\lib\hexo\router.js:134:                                                                     3)
    at RouteStream.Readable.read (_stream_readable.js:348:10)
    at resume_ (_stream_readable.js:737:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

README

复制yourblog/themes/raytaylorism/_data文件夹到yourblog/source目录下

authors: nekomeowww raytaylorlin

repo: raytaylorlin/hexo-theme-raytaylorism


text:
布局包含输入框的问题

提issue前请务必参考以下格式填写，否则该问题优先级将会降低

系统版本：5.0
库版本：2.1.4
问题描述/重现步骤：
当布局里面包含输入框的时候，点击输入框，整个布局会顶上去，如何设置成只顶到输入框的位置呢？
问题代码/截图：
报错信息：

#107
issue107有人反馈过键盘适配只能适配到edittext而不能把整个布局弹起，而你这里需要定位到edittext，综合考虑后，为了适配你们的情况，我添加了拦截器，您可以在拦截器实现键盘弹起后的偏移修正，默认弹起整个布局（如果空间足够）
具体请看107的issue，此处我在手机发，所以可能没法link过去。

#107

好的 谢谢

repo: razerdp/BasePopup


text:
Добавлена поддержка Sitemap

Close #320

@GNMKR всё очень разумно, но для этого нужно делать запросы на GraphQL, а у меня пока нет доступа к бэку.

repo: razrabs-media/journal


text:
Create Account basic setup

Includes basic layout, temporary styling, password requirements and validation check, code credit added to readme

Hi Reid, the HTML and JS file are looking good for this. I'm noticing that some of the feature branches I've been reviewing don't seem to have all the code from main, not sure if it's from not pulling the most recent version of main before making a feature or if it's something else. This looks good though


text:
Make block font for streamer mode

I kinda like the idea of using a block for some streamer mode elements, since it'd give you at least some noticeable difference for names

Some examples of how this is turning out:

I'm actually not sure how to handle multiple languages in one font without crossing the glyph threshold/making an over-sized font. TF2 has a fallback font that gets used for glyphs that fall outside of the range, so it defeats the purpose of a blocking font as far as I can tell.
I don't THINK there's any way to have multiple fonts covering multiple languages in the same font definition I suppose technically you could have multiple numbered font definitions, since it falls back within each font definition (1/2/3/etc). But I'd still need to make fonts for each set of glyphs

repo: rbjaxter/budhud


text:
secure avatar icons: identicons / jazzicons for zulip

to give members confidence about who they're chatting with, set zulip avatars to identicon / blockies style images based on on-chain identifier (registry UI or public key) and disable changing them.

big visual change for even small change in identifier
strong cryptographic relationship to identifier

jazzicon - npm
Wallet UI trick- mock the MetaMask account icon by using npm react-jazzicon : ethdev
renasboy/eth-address-icon: Generates a cool unique ethereum account address icon
ethereum/blockies: <1k library that generates blocky identicons

@leithaus suggested allowing people to mix their secure icon with artwork of their own.


text:
[Issue] Twig Bridge using Config\Repository instead of its Contract

classes src/Extension/Laravel/Config.php and src/Extension/Laravel/Legacy/Facades.php are using Illuminate\Config\Repository when they should be using its Contract Illuminate\Contracts\Config\Repository
https://github.com/rcrowe/TwigBridge/blob/master/src/Extension/Laravel/Config.php#L16
https://github.com/rcrowe/TwigBridge/blob/master/src/Extension/Laravel/Legacy/Facades.php#L16

Can you submit a PR to fix this?

authors: agustindidiego svenluijten

repo: rcrowe/TwigBridge


text:
Fixed the Arg inline issue

This should fix #286

Inlined linebuffer to verilog works now.


text:
TcpClientSocket.Read/WriteStream now has consistent buffering on both…

… WinRT and .NET. Buffering can also be specified in TcpSocketClient/TcpSocketListener ctor. Fixes #18.

Thanks! Will merge and pack in the morning :+1:

Argh, my OSX partition is temporarily out of action, so I will need to sort that out before I can pack. Hopefully find a solution tonight! :star2:

Ok, I'm having a look into this, and admittedly haven't worked with BufferedStream in the past, but from reading have found that besides consistency of behaviour there are also usage and performance considerations (from reading, better performance can be expected in many cases using BufferedStream, but there are limitations on read/write concurrency that might not exist when working with streams directly).
I see in the .NET implementation BufferedStream is only used for the WriteStream, whereas on WinRT the buffer size is used for both read and write, can this lead to inconsistent behaviour? I think my preference is to add it for both streams, but do you know if it is safe to add two BufferedStreams in the case of .NET? If not sure, then I might do some investigating but I thought I'd check and see whether you might already know about it.

repo: rdavisau/sockets-for-pcl


text:
Dispatching events from outside Lightning

I'm trying to add some tests to our app that checks the correct item is focused after pressing various (LRUD) keys.
I'd like to be able to trigger a native event to do this, however it doesn't seem possible, even from within the browser.
I thought I could do something like this after seeing this line of code
    const event = new KeyboardEvent('keydown', {
      keyCode: 37
    });

    window.dispatchEvent(event);

Any suggestions?

Hi @danvoyce-warner
This should be possible, please check this example and let me know if you have further questions:
https://jsfiddle.net/s1zmtgkv/
Best regards

Thanks for the speedy response and example @g-zachar! I'm doing the exact same thing and it's not working. Can't see why, but going to keep digging!

@danvoyce-warner is it not working on your local machine? Or on another device?

On my local device. The example works fine though.
There's quite a lot going on in our app so quite likely something is getting in the way. Not sure what yet as I'm not too familiar with the codebase.

This was the culprit 😅
public _captureKey(value: KeyboardEvent): boolean {
    const isTrusted: boolean = value.isTrusted || false;
    if (!isTrusted) {
      return true;
    }
   ....

repo: rdkcentral/Lightning


text:
Do not set underflow flag on eos

Summary: Underflow flag should not be set if Eos, this avoids rialto cancelling an underflow on recovery from a seek.
Type: BugFix
Test Plan: YouTube Cert Tests, Unittests
Jira: RIALTO-180

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/github-triggered/1304/ started

https://jenkins.code.rdkcentral.com/job/github-triggered/32205/ started

https://jenkins.code.rdkcentral.com/job/build-component/68962/ started.

https://jenkinsrdkm.cmf.code.rdkcentral.com/job/build-component-platform/2242/ started.

Sanity tests for ['RPI3 Hybrid/MC'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/5337/

Sanity tests for ['RPI3 Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/5336/

Sanity tests for ['BCM Reference Refapp2'] added.
https://jenkinsrdkm.cmf.code.rdkcentral.com/job/test-components-flow/5338/

authors: rdkcmf-jenkins skywilliamsonl

repo: rdkcentral/rialto


text:
Strange error when running a reaction back to a single component grouping

Version '2019.09.3'
I am just noting this strange behavior where the intramolecular reaction does not seem to be allowed when disconnecting a bond to an atom that is part of a separate double bond.
Example to reproduce
mol = Chem.MolFromSmiles('Cc1ccc(C(=O)/C=C/c2cnc3ccccc3n2)cc1')
rxn = AllChem.ReactionFromSmarts('[c:1][C:2](=[O])[C:3]>>([*:1][C:2]#[N].[*:3][Mg][Cl])')
p = rxn.RunReactants((Chem.AddHs(mol),))

gives
RuntimeError: Pre-condition Violation
	bgnIdx not connected to begin atom of bond
	Violation occurred on line 283 in file Code/GraphMol/Bond.cpp
	Failed Expression: getOwningMol().getBondBetweenAtoms(getBeginAtomIdx(), bgnIdx) != nullptr
	RDKIT: 2019.09.3
	BOOST: 1_67

Though removing the outer parentheses to give rxn = AllChem.ReactionFromSmarts('[c:1][C:2](=[O])[C:3]>>[*:1][C:2]#[N].[*:3][Mg][Cl]') makes the reaction work perfectly fine. I am somewhat confused by this and appreciate any help with the issue. Thanks!

Interesting, thanks. So the main difference seems to be the version?

Interesting, thanks. So the main difference seems to be the version?

You could try to run the code in the different version.

This does look like a bug, but it isn't with the components, it appears to be with chirality:
This fails:
mol = Chem.MolFromSmiles('C(=O)/C=C/C')
rxn = AllChem.ReactionFromSmarts('[C:2](=[O])[C:3]>>[C:2]#[N][*:3]')
rxn.RunReactants([mol])

This passes:
mol = Chem.MolFromSmiles('C(=O)C=CC')
rxn = AllChem.ReactionFromSmarts('[C:2](=[O])[C:3]>>[C:2]#[N][*:3]')
rxn.RunReactants([mol])

@greglandrum Chirality issues should get auto assigned to you :)

authors: autodataming bp-kelley mc-robinson

repo: rdkit/rdkit


text:
Molecule has planar amide nitrogen incorrectly flagged as _ChiralityPossible

If you have a molecule with a lactam, where the amide nitrogen is a ring bridgehead, then Chem.AssignStereochemistry incorrectly assigns the amide nitrogen as "_ChiralityPossible" even though it's flat.
To Reproduce
from rdkit import Chem
rdmol=Chem.MolFromSmiles("O=C1CCCCC[C@@H]2CN1CCO2")
Chem.AssignStereochemistry(rdmol, force=True, flagPossibleStereoCenters=True)
for atom_idx, atom in enumerate(rdmol.GetAtoms()):
   if atom.GetChiralTag() == Chem.ChiralType.CHI_UNSPECIFIED and atom.HasProp(
                "_ChiralityPossible"
            ):
       print(atom_idx)

Expected behavior
The nitrogen is not marked as potentially chiral, as it's flat.
Configuration (please complete the following information):

RDKit version: 2022.09.03

Additional context
This is causing issues in OpenFF, which checks that the chirality of the molecule is fully specified and refused to proceed unless it is.

confirmed

authors: greglandrum mark-cresset


text:
Costumizable display options for catalogs page

Rationale / Begründung
An Editor would like to gain an overview of the questions in an unknown or new catalog. It would be helpful if the display of the questions in "questions/catalogs/" would be customizable.
For example via a toggle or checkbox to show/hide the URIs of each catalog, section, question set, question and the  option set or condition of each question and question set.
References / Verweise
Frontend, Management backend

in release 1.9.0

repo: rdmorganiser/rdmo


text:
Send file object to Parse for upload

This is an amazing package, thank you so much for building it, I was wondering how can I get file object that can be attached to a Parse object?

I got this problem too.
how to   use fetch  upload  the  image i pick or take photo ?

If you use the new storageOptions option from this PR https://github.com/marcshilling/react-native-image-picker/pull/28, you will get the URI to the file object in iOS storage. Then you could use something like https://www.npmjs.com/package/react-native-file-upload?
Is that sufficient?

Hey @marcshilling, thanks for pointing that out. I think that that covers the case where you take a picture with the camera, right? I'm currently dealing with uploading a file from the library, picking the uri and sending through the FormData object. The thing is that I keep receiving this error from our server:
"The submitted data was not a file. Check the encoding type on the form."

This is the code I'm using right now but it's not working.
export function postData (url, params, fileURI) {
  let data = new FormData()
  if (fileURI) {
    data.append('type', 'file')
    data.append('image', fileURI)
  }
  _.map(params, (value, key) => {
    data.append(key, JSON.stringify(value))
  })

  const config = {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'multipart/form-data; boundary=6ff46e0b6b5148d984f148b6542e5a5d',
      'Content-Language': React.NativeModules.RNI18n.locale,
      'Authorization': 'Token SOMETOKEN',
    },
    body: data,
  }
  return fetch(API_URL + url, config)
    .then(checkStatusAndGetJSONResponse)
}

The fileURI looks something like this
/Users/xxxxx/Library/Developer/CoreSimulator/Devices/ABCEDF1234567890/data/Containers/Data/Application/ABCEDF1234567890/tmp/ABCEDF1234567890.jpg"

Hi @marcshilling thank you so much! I will try this out and let you know :-)

@alvaromb interesting. The true path of the file (what this library should be returning) is prefixed with file://, can you try sending that and see if it makes a difference?
If not, try passing the storageOptions option like this:
  storageOptions: {
    skipBackup: true
  }

Maybe it has something to do with it being in the tmp directory?

@alvaromb I am currently using XHR to upload images with no issues. My implementation is based off of facebook's example https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/XHRExample.ios.js#L183-L230
Something like this:
formdata.append(photo, {type: "image/jpeg", name: ____, uri: ______ });

I believe the uri that I pass to this does not include the preceding "file://" but it may still work with it.

@levic92 thank you so much!  Could you give more details on how to implemented it?  It would really help with my project :+1:

Same as in the example link above, just removed stuff I didn't need.
    var xhr = new XMLHttpRequest();
    xhr.open('POST', 'http://posttestserver.com/post.php');
    xhr.onload = () => {
      if (xhr.status !== 200) {
        AlertIOS.alert(
          'Upload failed',
          'Expected HTTP 200 OK response, got ' + xhr.status
        );
        return;
      }

      // upload succeeded
      ...
    };
    var formdata = new FormData();
    formdata.append(photo, {type: "image/jpeg", name: ____, uri: ______ });

    if (xhr.upload) {
      xhr.upload.onprogress = (event) => {
        console.log('upload onprogress', event);
        if (event.lengthComputable) {
          this.setState({uploadProgress: event.loaded / event.total});
        }
      };
    }
    xhr.send(formdata);

@levic92 have you tried to do this with the React Native+Parse framework?

Ok, the code below is now working perfectly when uploading an image:
export function postData (url, params, fileURL) {
  let data = new FormData()
  if (fileURL) {
    data.append('image', {uri: fileURL, name: 'image.jpg', type: 'image/jpg'})
  }
  _.each(params, (value, key) => {
    if (value instanceof Date) {
      data.append(key, value.toISOString())
    } else {
      data.append(key, String(value))
    }
  })
  const config = {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'multipart/form-data; boundary=6ff46e0b6b5148d984f148b6542e5a5d',
      'Content-Language': React.NativeModules.RNI18n.locale,
      'Authorization': 'Token ABCDEF123457890',
    },
    body: data,
  }
  return fetch(API_URL + url, config)
    .then(checkStatusAndGetJSONResponse)
}

It is sending the image and some parameters. It's working perfectly with our Django REST back-end.

@alvaromb fileURL is that the .uri property from the result of showImagePicker, or something different? My uri property is in the format: assets-library://asset/asset.JPG?id=42EB1977-F2B5-4453-BD0E-CA38AAC2074E&ext=JPG.
I almost have the exact code as you, but my request never gets sent.

@ashleydw my fileURL has this format:
file:///Users/xxxxx/Library/Developer/CoreSimulator/Devices/ABCEDF1234567890/data/Containers/Data/Application/ABCEDF1234567890/tmp/ABCEDF1234567890.jpg

I'm using skipBackup: true, as suggested by @marcshilling

Great package! The file:// uri is dynamic and changes each time you run a build. If you are using local storage for your image ensure to set returnBase64Image to true and store that value. Hope this helps someone.

Will chime in to say that the headers in alvaromb's example weren't working for me in RN35, which is a while after the last post so I just removed them and it worked fine

@alvaromb Please what is boundary sorry about this stupid question.

@khalidahmada http://stackoverflow.com/questions/3508338/what-is-the-boundary-in-multipart-form-data

hello guys, could you please advise what is the code that should be written in the Rest-backend to upload the file on the server? (I'm using Nodejs, Express)

Hi, I was wondering how to to the same thing in typescript. I get an error with this line:
data.append('image', {uri: fileURL, name: 'image.jpg', type: 'image/jpg'})

Because of a type mismatch:
Argument of type '{ uri: string; name: string; type: string; }' is not assignable to parameter of type 'string | Blob'.
  Object literal may only specify known properties, and 'uri' does not exist in type 'string | Blob'.

The documentation of FormData.append looks nothing like the code described above. Does anybody have an idea how to solve this?

@josauder I have a workaround for this exact problem here.

The FormData solution won't work for Parse, still finding valid solution others from base64 because i am trying to upload video file to Parse server

Hi, I was wondering how to to the same thing in typescript. I get an error with this line:
data.append('image', {uri: fileURL, name: 'image.jpg', type: 'image/jpg'})

Because of a type mismatch:
Argument of type '{ uri: string; name: string; type: string; }' is not assignable to parameter of type 'string | Blob'.
  Object literal may only specify known properties, and 'uri' does not exist in type 'string | Blob'.

The documentation of FormData.append looks nothing like the code described above. Does anybody have an idea how to solve this?

add "as any" behind your object...
{ uri: string; name: string; type: string; } as any


text:
Error when unmounting TabNavigator

I have a simple component connected to my redux store that decides whether to show my app's tab navigator, a loading screen, or a login screen:
class AuthNavigator extends Component {
  render() {
    const { isLoading, token } = this.props;

    if (isLoading) {
      return <LoadingIndicator />;
    } else if (token) {
      return <AppTabNavigator />;
    } else {
      return <Welcome />;
    }
  }
};

When I log out, isLoading goes to true, the tab navigator is unmounted, and the loading indicator should be shown again. Instead I get this crash, which appears to be while the tab navigator is unmounting:
Cannot read property 'getScrollableNode' of undefined

AnimatedComponent._detachNativeEvents
    AnimatedImplementation.js:1738:34
AnimatedComponent.componentWillUnmount
    AnimatedImplementation.js:1699:11
<unknown>
    ReactCompositeComponent.js:540:23
measureLifeCyclePerf
    ReactCompositeComponent.js:85:11
ReactCompositeComponentWrapper.unmountComponent
    ReactCompositeComponent.js:539:10
Object.unmountComponent
    ReactReconciler.js:105:21
ReactCompositeComponentWrapper.unmountComponent
    ReactCompositeComponent.js:551:22
Object.unmountComponent
    ReactReconciler.js:105:21
ReactCompositeComponentWrapper.unmountComponent
    ReactCompositeComponent.js:551:22
Object.unmountComponent
    ReactReconciler.js:105:21

If I replace AppTabNavigator with one of my StackNavigators or just a regular screen, there's no crash — so it does seem to be related to TabNavigator.
Any ideas about what's causing this error? Is there an alternative pattern I could try to conditionally show a login screen?

I'm getting this same error. It's happening when I route from my TabNav -> StackNav 🤔 Any ideas? Have you came across this error again?

@jamesone Unfortunately I haven't. Might be worth opening a new issue describing what your problem?

authors: jamesone sharplet

repo: react-community/react-navigation


text:
change Nav to Component for removing the ref warning in react 16

in react 16 ，you can't give ref to a stateless component .so I rewrite the Nav code to handle ref

Coverage decreased (-0.4%) to 62.727% when pulling a2feabfadcc4c6b0f23e41528cde8623e43488f8 on vgeyi:vge-dev into 677d89375bdb2debe0f2c5c15146c617f241c94d on react-component:master.

Coverage decreased (-0.4%) to 62.727% when pulling 11b0f97bae51327cc619ddaba2d9f7970465e3e2 on vgeyi:vge-dev into 677d89375bdb2debe0f2c5c15146c617f241c94d on react-component:master.

Coverage decreased (-0.4%) to 62.727% when pulling 11b0f97bae51327cc619ddaba2d9f7970465e3e2 on vgeyi:vge-dev into 677d89375bdb2debe0f2c5c15146c617f241c94d on react-component:master.

@RaoHai

will fix in https://github.com/react-component/editor-mention/pull/20.
Thanks for your PR.  🌹

authors: RaoHai coveralls vgeyi yesmeck

repo: react-component/editor-mention


text:
Want to show complete data without scrollin the line chart

I'm submitting a [ ] chore

[ ] bug
[ ] feature

the chart starts scrolling on x-axis after 300+ points
wnat to show comlplete data without scrooling
react js

Version: 1.1.0
Browser: [all | Chrome XX | Firefox XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari ]

Other information

Does setting plotFull={true} on the ChartCanvas help?

authors: LuqmanArshed adamhwang

repo: react-financial/react-financial-charts


text:
Translate 'FAQs' page into Korean

No specific description needed.

thank you again @adhrinae

repo: react-hook-form/react-hook-form-website


text:
Fixing typescript compilation errors

Summary
Small PR to fix typescript compilation failure.

Test Plan

What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility

OS
Implemented

iOS
✅❌

Android
✅❌

Checklist

[x ] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

thanks!

@vonovak is it possible to get a new release?

authors: dpaulino vomchik vonovak

repo: react-native-community/datetimepicker


text:
RNDatePickerDialogFragment.java uses or overrides a deprecated API. error when build as release with react-native -v 0.60.5

/node_modules/@react-native-community/datetimepicker/android/src/main/java/com/reactcommunity/rndatetimepicker/RNDatePickerDialogFragment.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.

Hey @Swaagie,
this appears to be an issue can we get confirmation on when this will be resolved? We will have to find an alternative date picker package for the time being. Thank you

This issue exists for months without resolution. Don't bet any money on a fix.

Okay we’ll just have to fork the repo and fix it ourselves then. If the authors are going to be unresponsive they should just say so on the read me that the repo is no longer maintained as opposed to just ignoring everyone

The problem mostly comes from this plugin not using androidx.
Installing jetifier, cleaning node_modues/caches and manually running npx jetify helped. The react cli should to that automatically, but it is quite buggy and unstable.

@ventr1x i added a postinstall script for npx jetify so it'll run automatically post npm install

we're using androidX now so this should not be a problem any more. please open a new issue if problem persists


text:
feat: web support

Resolves #10
Overview
Added web script exporting the object Geolocation for the web. Object exposes the same methods as React Native one. Methods use navigator browser object.  Web version is transpiled using react-native-community/bob.
Build
yarn prepare

Usage
Working example in ReactJS
import React from 'react';
import Geolocation from 'react-native-geolocation';

class App extends React.Component {
  state = {
    coords: '0',
  };

  fetchSuccess = position => {
    this.setState({
      coords: position.coords.latitude + ',' + position.coords.longitude,
    });
  };

  getMyLocation = () => {
    Geolocation.getCurrentPosition(this.fetchSuccess);
  };

  render() {
    return (
      <React.Fragment>
          <button onClick={this.getMyLocation}>Get location</button>
          <p>{this.state.coords}</p>
      </React.Fragment>
    );
  }
}

export default App;

Also, I think this needs to be added to .flowconfig to ignore the generated files:
; Ignore the compiled files
lib/.*

@matt-oakes @michalchudziak thank you for your tips! All of them are introduced, check it out :)

I've tested it on a sample project. Works good with web.

authors: NoemiRozpara matt-oakes michalchudziak