[BUG] Unable to flip feature flags defined in FeatureFlags.java

Describe the bug

A clear and concise description of what the bug is.

The feature flags used for experimental are defined here. This below example creates an setting static object with the feature flag name and default value.
    public static final Setting<Boolean> IDENTITY_SETTING = Setting.boolSetting(IDENTITY, false, Property.NodeScope);

However, if the feature flag is not specified as an env variable or written in the yml file, the FeatureFlags.isEnabled method does not read the value from these static settings and instead sets to 'false' by default.
    /**
     * Used to test feature flags whose values are expected to be booleans.
     * This method returns true if the value is "true" (case-insensitive),
     * and false otherwise.
     */
    public static boolean isEnabled(String featureFlagName) {
        if ("true".equalsIgnoreCase(System.getProperty(featureFlagName))) {
            // TODO: Remove the if condition once FeatureFlags are only supported via opensearch.yml
            return true;
        }

        return settings != null && settings.getAsBoolean(featureFlagName, false);
    }

Because these feature flag settings are never initialized / registered during node boostrap, it causes the difficulty when adding a static setting with the default value of true to keep the feature enabled but still gated behind the flag.
For example on node.java, if the default value on FeatureFlags.IDENTITY is set to true, the FeatureFlags.isEnabled will always return false.
    final Settings settings = pluginsService.updatedSettings();

    // Ensure to initialize Feature Flags via the settings from opensearch.yml
    FeatureFlags.initializeFeatureFlags(settings);

    final List<IdentityPlugin> identityPlugins = new ArrayList<>();
    if (FeatureFlags.isEnabled(FeatureFlags.IDENTITY)) {
        ...
       # this condition will never entered
    }

To Reproduce
Steps to reproduce the behavior:

Set any feature flag (for example IDENTITY_SETTING) default value to true https://github.com/opensearch-project/OpenSearch/blob/8cfde6ca4031047b4f7e5ecf706e434e1c535567/server/src/main/java/org/opensearch/common/util/FeatureFlags.java#L103
Add logs around FeatureFlags.isEnabled method usage during node bootstrap https://github.com/opensearch-project/OpenSearch/blob/8cfde6ca4031047b4f7e5ecf706e434e1c535567/server/src/main/java/org/opensearch/node/Node.java#L467-L473

    # Example logging
    logger.info("louis-feature-flag-test: " + FeatureFlags.IDENTITY + " value: " + settings.get(FeatureFlags.IDENTITY));
    if (FeatureFlags.isEnabled(FeatureFlags.IDENTITY)) {
        // If identity is enabled load plugins implementing the extension point
        logger.info("Identity on so found plugins implementing: " + pluginsService.filterPlugins(IdentityPlugin.class).toString());
        identityPlugins.addAll(pluginsService.filterPlugins(IdentityPlugin.class));
    }

Start cluster

./gradlew run --debug-server-jvm --info

See error

[2023-08-25T12:46:29,937][INFO ][o.o.n.Node               ] [runTask-0] louis-feature-flag-test: opensearch.experimental.feature.identity.enabled value: null
[2023-08-25T12:46:29,938][INFO ][o.o.n.Node               ] [runTask-0] louis-feature-flag-test: opensearch.experimental.feature.extensions.enabled value: null

Expected behavior

A clear and concise description of what you expected to happen.

Some options here

Disallow the use case of adding a static setting with the default value of 'true' in order to keep the feature enabled but still gated behind the flag: We could limit the feature flag's functionality by concealing the default_value during static setting construction. The default value is then set to always false. On public doc and java doc, we should explictly mention that flags are required to be removed when you want to enable the feature.
FeatureFlags.isEnabled reads the setting object's real default_value.

I think that a feature flag that allows a default value should ... respect that default value, so this is a real bug. Do you think you can turn it into a unit test?

I guess we can use the existing BUILT_IN_FEATURE_FLAGS set and modify isEnabled .
The behaviour of settings.get(FeatureFlags.IDENTITY)  to return null is seeming correct only, we only need to modify the isEnable function.
Proposal draft PR: https://github.com/opensearch-project/OpenSearch/pull/9691 [Pending UT and log line removal]
Thoughts ?

I am not sure, feels like a workaround for the problem instead of fixing the actual problem.
I'd really start by writing tests that reproduce the various states of feature flags, then it becomes easy to try and produce a fix that works in all cases.

@dblock, can confirm what is expectation out of the below ones:

UT for isEnabled, which tests for all the possibility of returned values and hence covering this use case of default value (in public static fields) being true as well.

UT for public static feature flags and their different values should be returned from isEnabled.

General UT which will test settings Setting.boolSetting, floatSetting etc ?

I don't have the answers to these without digging deep into what's supposed to be returned or existing tests. I was noting that you found one case where the flag doesn't work as one would expect, so I was commenting on wanting tests (some may exist) that cover all permutations.
PS: Do note that settings can also be declared in plugins.

        if (settings != null && FeatureFlagSettings.FEATURE_FLAG_MAPPING.get(featureFlagName) != null) {
            defaultValue = (boolean) FeatureFlagSettings.FEATURE_FLAG_MAPPING.get(featureFlagName).getDefault(settings);
        }

If I understand correctly, getDefault(settings) will retrieve the value of a setting from settings, which does not contain FeatureFlagSettings.FEATURE_FLAG_MAPPING. As a result, it will still return null.

@noCharger  No getDefaults implementation is little un-intuitive in this case, it will return the default value of FeatureFlagSettings.FEATURE_FLAG_MAPPING .
getDefaultRaw implementation
    public String getDefault(Settings settings) {
        return defaultValue.apply(settings);
    }

here ^  the argument (settings ) value will be ignored because the implementation of defaultValue function is no-op for all practical purposes and this method will return defaultValue of featureFlag.
The [defaultValue function implementation] while initializing the featureFlag Setting.boolSetting (https://github.com/jayeshathila/OpenSearch/blob/78eea275a3e1812a008e815d846ca871d7f09d20/server/src/main/java/org/opensearch/common/settings/Setting.java#L2013) is
 (s) -> Boolean.toString(defaultValue)

@msfroh Sure, please assign it to me.

Closing this issue as https://github.com/opensearch-project/OpenSearch/pull/12849 was merged.


Hide shadow warning

when ccflags have all warnings enabled, there's lots of warnings regarding entt headers and shadowing. While there's no issue with how the code is setup, it is nice to have the lambda function parameters different from the above scope.
This was caused when compiling godot 3.1 release with entt
I just added _ prefix to the variable name, idk what you preference is.
/home/pgruenbacher/Code/cpp/entsim/thirdparty/entt/src/entt/meta/meta.hpp: In lambda function:
/home/pgruenbacher/Code/cpp/entsim/thirdparty/entt/src/entt/meta/meta.hpp:1436:97: warning: declaration of 'curr' shadows a previous local [-Wshadow=local]
         const auto *curr = internal::find_if([key = meta_any{std::forward<Key>(key)}](auto *curr) {

oops i included some bad commits.... ignore ignore!

https://github.com/skypjack/entt/pull/207/commits/6e1f719bfac28b47c5a2868cd29fa40452f54e51 this is the specific commit. I'm too lazy to cherry pick since you'll probably want to rename the changed variables to fit your own preference but I'll leave this open for your reference.

Coverage remained the same at 100.0% when pulling 6e1f719bfac28b47c5a2868cd29fa40452f54e51 on pgruenbacher:hide_shadow_warning into 62d6ff61abfdd22b14419df03fe9bfddcd29ebf5 on skypjack:master.

Sure, thanks. I'll merge this on a branch and change the names if needed to fit the naming conventions of the project.
Your PR is really helpful to spot what to change btw. :+1:
Thanks!!

There were conflicts on this PR and a lot of classes weren't updated to avoid shadowing.
I picked the part that works (for some definitions of work) and made a separated push on branch experimental.
If it works as expected, I'll merge it upstream and close this. :+1:


Make waywardmonkeys a reviewer for harfbuzz.

Per https://github.com/servo/rust-harfbuzz/pull/105#issuecomment-369035259.

This change is

@bors-servo r+

:pushpin: Commit 5a62c98 has been approved by mbrubeck

:hourglass: Testing commit 5a62c98253fc45f4421a7c08c581a32bcf58b674 with merge e8a7a96fe91fd4f5fe80387e147e50e0bd3b54c1...

I also invited @waywardmonkeys to be an owner of the harfbuzz crates on crates.io.

:sunny: Test successful - status-travis
Approved by: mbrubeck
Pushing e8a7a96fe91fd4f5fe80387e147e50e0bd3b54c1 to master...


TT-2890 handle load Requests on recording ready

I am not sure I can understand from this commit the logic.
You decrement loadRequests current on ready but instead of incrementing on load, you set it to one. The comment says recording returns ready which means there are two ways to get ready, either will decrement load requests but only loading a blob will set it to one?

loadRequests may be undefined so that's why I set it to 1 instead of incrementing...this is in the else of if (loadRequest.current) so it's either undefined or 0 here.
If ready because of a record, loadRequests.current will be 0, so before I added the check for loadRequest.current > 0, it was decrementing it below 0, which we couldn't recover from.  So record doesn't decrement it now, because it's 0 already.


What does anomaly interpretation use for?

I read the paper but still dont get what you do with anomaly interpretation. Could you give me an example using Server Machine Dataset?

Please answer @NiuChH

For example, in the first line of the file interpretation_label/machine-1-1.txt, it says,
15849-16368:1,9,10,12,13,14,15

It means that the first anomaly in file machine-1-1 is from line 15849 to line 16368, and that the indexes of the dimensions that contribute to this anomaly are 1,9,10,12,13,14,15.


Using ubuntu laptop as Groundstation?

How easy would it be to use ubuntu laptop as basestation or Jetson nano as groundstation instead of raspberry pi?.
Would these be recomended at all?

It should be possible to run GS software on both systems, but I did not tried it.
GS has been working on Unbuntu for me at early development stages.
You can try following https://github.com/RomanLut/hx-esp32-cam-fpv/blob/master/doc/building_gs_image.md steps on ubuntu or jetson.
RPI2W is recommented.

Here is the manual for Fedora Linux, it should not be much different on Ubuntu: https://github.com/RomanLut/hx-esp32-cam-fpv/blob/master/doc/building_gs_fedora.md


v2

@NaH012 Got it

Guess ill close it then till theres a competent maintainer who can see such PR thro.

I don't have the time to all the work, but if you would be willing to help me update it I can put in a couple of hours a week. The biggest issue is settings to make the cores compatible gets moved around between files a lot from what I've experienced, then we also need to test sending coins between wallets on the new cores and send new blocks to ensure compatibility. If you would also be willing to help debug and put in work I can pull this into a development branch and we can work from there.

I've activated the issue tracker. I thought it was active when I first launched the new core. Since the community already has links to this repo I think it best to have it remain here. I've pulled your changed to the v2 branch and given you collaboration permissions.

@NaH012 opening issue tracker 2 years after - good job))


there are some problems with apiserver

when i ran kubectl get apiservice v1beta1.metrics.k8s.io -o yaml ,i got this:
status:
conditions:

lastTransitionTime: 2019-01-22T14:49:21Z
message: 'no response from https://<IP_ADDRESS>:443: Get https://<IP_ADDRESS>:44
tcp <IP_ADDRESS>:443: connect: no route to host'
reason: FailedDiscoveryCheck
status: "False"
type: Available

how to deal it?

Same issue here any luck?

Has the problem been solved?


#2005 [Documentation] Add missing VariableDeclaration to For{In,Of}Statement types

Issue: #2005
The documentation only specifies Expression as the value for the left property of ForInStatement and ForOfStatement. This adds the VariableDeclaration type to the left property in the documentation.

Merged. Thank you @wilsonzlin 👍


IPFS integration test for worker

IPFS functionality isn't covered by our M6/M8 integration tests. We need a separate test that

spawns a local ipfs node
enclave adds random content to IPFS and dumps cid to plaintext file
enclave fetchcs content from IPFS and verifies that hash and content are correct

@brenzi is this still an up to date issue?


[RFR] Handle sidebar toggle

[x] Allow to show sidebar using hamburger
[ ] Show sidebar or not depending on the screen width
[ ] Allow to hide sidebar on large screens using hamburger
[ ] Allo to hide sidebar on small screens by clickaway
[ ] on small screens, hide sidebar after menu click

Not dealing with the small screen use case as in #322. This would require switching to a <Drawer> component for the menu in small screens, which is possible, but demands more work. Besides, admin-on-rest isn't fitted for small screens, yet (see #282).
Closes #258

@fzaninotto  Awesome! Thank you.


Docs preprocessing

Description
Attempt to resolve documentation building issue by adding pyproj to autodoc_mock_imports
Type of change
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected - these changes will not be merged until major releases!)

How Has This Been Tested?
Not yet tested; will check documentation build after pull.
Checklist:

[ ] My PR has a descriptive title
[ ] My code follows PEP8
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new errors
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] My PR passes Travis CI tests
[ ] My PR does not reduce coverage in Codecov

If your PR does not fulfill all of the requirements in the checklist above, that's OK! Just prepend [WIP] to the PR title until they are all satisfied. If you need help, @-mention a maintainer and/or add the Status: Help Needed label.

Directed to incorrect branch (master instead of dev); closing.


Shared Types Popped from Shared Map are Empty

Hi :wave:
I experienced that, when having a shared datatype nested into a shared map, and popping that nested item, the returned item is of the same shared datatype, but empty:
from pycrdt import Doc, Map

ydoc = Doc()
ymap = ydoc["map"] = Map()
print(ymap)
# {}

inner_map = Map({"bar": "baz"})
ymap.update({"foo": inner_map})
print(ymap)
# {"foo":{"bar":"baz"}}

x = ymap.pop("foo")
print(ymap)
# {}
print(x)
# {} <-- expected {"bar":"baz"}

This is also the same for nested Shared Arrays and Shared Text, but not for Subdocs.
After some hours, I found the deletion to happen here
https://github.com/jupyter-server/pycrdt/blob/15a47b0628d02a58893d594f31674895429cdda0/python/pycrdt/_map.py#L110-L111
where res is the popped shared type and populated (as expected), but empty after calling del self[key].
According to the Yrs docs, this is expected behavior for Shared Maps:

fn remove([...])
[...]
Removing nested shared types
In case when a nested shared type (eg. MapRef, ArrayRef, TextRef) is being removed, all of its contents will also be deleted recursively. A returned value will contain a reference to a current removed shared type (which will be empty due to all of its elements being deleted), not the content prior the removal.

So, we need to copy the content to another object before perfoming the removal with del self[key].
I quickly added tests as well as a check if res is an instance of BaseType, relying on the method to_py to be defined, but maybe a more sophisticated fix with __copy__ and __deepcopy__ implemented might be better?

Thanks for investigating @jbdyn!

:heart:

I think pop should not return a shared type, but instead the pure Python object. This means that pop can have a different return value than get, but I think this is fine.

I thought about that, however I don't see why to have that inconsistency.
As a user, I would expect to only get the same thing out that I previously put in.
What is your motivation? :slightly_smiling_face:

Would you mind doing the same changes for Array.pop?

Sure, I can do that.

Thanks @jbdyn !


How to disable the index name rename feature?

How to disable the index name rename feature?
To my condition , we are setting the index-name in java source code for reference.
For instance , HIbernate framework ,
and we also allow the hibernate to maintain our index(index-name also) automatically.
but the Sharding-JDBC will always append the 'table name' to my index-name.
so, is there anyway to close the index-rename feature ?

What type of database do you use?

What type of database do you use?

MySQL

ShardingSphere never modify index name for MySQL.
Can you provide sql.show log?

2019-07-25 23:53:52.080  INFO 6268 --- [           main] ShardingSphere-SQL                       : Rule Type: sharding
2019-07-25 23:53:52.080  INFO 6268 --- [           main] ShardingSphere-SQL                       : Logic SQL: create table test_info (id bigint not null auto_increment, created_date datetime not null, name varchar(255) not null, primary key (id))
2019-07-25 23:53:52.080  INFO 6268 --- [           main] ShardingSphere-SQL                       : SQLStatement: AbstractSQLStatement(type=DDL, tables=Tables(tables=[Table(name=test_info, alias=Optional.absent())]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[TableToken(tableName=test_info, quoteCharacter=NONE, schemaNameLength=0)], parametersIndex=0, logicSQL=create table test_info (id bigint not null auto_increment, created_date datetime not null, name varchar(255) not null, primary key (id)))
2019-07-25 23:53:52.081  INFO 6268 --- [           main] ShardingSphere-SQL                       : Actual SQL: ds_master ::: create table test_info (id bigint not null auto_increment, created_date datetime not null, name varchar(255) not null, primary key (id))
2019-07-25 23:53:53.355  INFO 6268 --- [           main] ShardingSphere-SQL                       : Rule Type: sharding
2019-07-25 23:53:53.355  INFO 6268 --- [           main] ShardingSphere-SQL                       : Logic SQL: create index IDX2hfmuhvcf4bd31pw26blpf120 on test_info (created_date)
2019-07-25 23:53:53.355  INFO 6268 --- [           main] ShardingSphere-SQL                       : SQLStatement: AbstractSQLStatement(type=DDL, tables=Tables(tables=[Table(name=test_info, alias=Optional.absent())]), routeConditions=Conditions(orCondition=OrCondition(andConditions=[])), encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), sqlTokens=[IndexToken(stopIndex=40, tableName=test_info), TableToken(tableName=test_info, quoteCharacter=NONE, schemaNameLength=0)], parametersIndex=0, logicSQL=create index IDX2hfmuhvcf4bd31pw26blpf120 on test_info (created_date))
2019-07-25 23:53:53.355  INFO 6268 --- [           main] ShardingSphere-SQL                       : Actual SQL: ds_master ::: create index IDX2hfmuhvcf4bd31pw26blpf120_test_info on test_info (created_date)

Thanks for your feedback. pls check the relation log as above.
as what it display (A Test Demo), the hibernate try to create a index with name "IDX2hfmuhvcf4bd31pw26blpf120"  for  Table "test_info" , but the ShardingSphere rewrite the index name with Table name appends.
and according to the wiki : https://shardingsphere.apache.org/document/current/cn/features/sharding/principle/rewrite/
shardingsphere will do the index rewrite .

What is the version do you use?

i am using the version 4.0.0-RC1, and the index rewrite is also applicable for version 3.1.0.

Do you use a shardingRule? Or a masterSlaveRule?

DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)

spring.shardingsphere.datasource.names=ds_master
spring.shardingsphere.datasource.ds_master.type=org.apache.tomcat.jdbc.pool.DataSource
spring.shardingsphere.datasource.ds_master.driver-class-name=com.mysql.jdbc.Driver
spring.shardingsphere.datasource.ds_master.url=
spring.shardingsphere.datasource.ds_master.username=
spring.shardingsphere.datasource.ds_master.password=
spring.shardingsphere.datasource.ds_master.max-total=100
spring.shardingsphere.props.sql.show=true
JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
spring.jpa.database = MYSQL
spring.jpa.hibernate.ddl-auto = update
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.data.jpa.repositories.enabled=true
spring.jpa.open-in-view=false
spring.jpa.show-sql=true
spring.shardingsphere.sharding.default-data-source-name=ds_master
spring.shardingsphere.sharding.tables.ENTITY_INFO.key-generator.column=id
spring.shardingsphere.sharding.tables.ENTITY_INFO.key-generator.type=SNOWFLAKE
spring.shardingsphere.sharding.tables.ENTITY_INFO.key-generator.props.worker.id=123
spring.shardingsphere.sharding.tables.ENTITY_INFO.key-generator.props.max.tolerate.time.difference.milliseconds=0
spring.shardingsphere.sharding.tables.ENTITY_INFO.table-strategy.actual-data-nodes=ds_master.ENTITY_INFO_${201901..201912}
spring.shardingsphere.sharding.tables.ENTITY_INFO.table-strategy.standard.sharding-column=CREATED_DATE
spring.shardingsphere.sharding.tables.ENTITY_INFO.table-strategy.standard.precise-algorithm-class-name=com.yiwu.showme.sharding.config.DatePreciseShardingAlgorithm
spring.shardingsphere.sharding.tables.ENTITY_INFO.table-strategy.standard.range-algorithm-class-name=com.yiwu.showme.sharding.config.DateRangeShardingAlgorithm

pom.xml

org.apache.shardingsphere
sharding-jdbc-spring-boot-starter
4.0.0-RC1

Hi, pls check my demo above,

I can't reprodece this issue. Can you try with 4.0.0-RC2-SNAPSHOT?
For your convenience, there's a temporary 4.0.0-RC2 package for download(https://dist.apache.org/repos/dist/dev/incubator/shardingsphere/4.0.0-RC2/apache-shardingsphere-incubating-4.0.0-RC2-sharding-jdbc-bin.tar.gz)

I can't reprodece this issue. Can you try with 4.0.0-RC2-SNAPSHOT?

hi, the lastest version that i can access from https://mvnrepository.com is 4.0.0-RC1.
and i can't found the 4.0.0-RC2-SNAPSHOT from any repos, even in Aliyun.
is there any specical repos url to access ?

Sorry, I mean can you build 4.0.0-RC2-SNAPSHOT manually from the dev branch?

Well, I guess you don't want to build 4.0.0-RC2-SNAPSHOT.
I have tried 4.0.0-RC1 and reproduce the problem you found. Meanwhile, the problem does not exist in 4.0.0-RC2-SNAPSHOT when test with the same SQL.
You may wait for 4.0.0-RC2 which is now in the releasing progress.

Thanks for your feedback , I am looking forward to the next release version .


Fix TLS-ALPN-01 challenge for IP Identifiers

Thanks, I'll take a look at this soon!

Just to confirm, is chal.Type == acme.ChallengeTypeTLSALPN01 && chal.Identifier.Type == "ip" correct? We only reverse the IP for the TLS-ALPN challenge, but not for the HTTP challenge?

Yes, if I understand the RFC correctly:

As [RFC6066] does not permit IP addresses to be used in the Server Name Indication (SNI) extension HostName field, the server MUST instead use the IN-ADDR.ARPA [RFC1034] or IP6.ARPA [RFC3596] reverse mapping of the IP address as the HostName field value instead of the IP address string representation itself.

For the HTTP challenge it mentions the following:

For the "http-01" challenge, the Host header field MUST be set to the IP address being used for validation per [RFC7230].

Now that I had another look at this I need to find out how caching of the challenge certificate works. Actually, deletion of the cached challenge certificate here: https://github.com/caddyserver/certmagic/blob/647f27cf265e6f72b6f043ac52ba34f01bb5da56/solvers.go#L219
That's the only case that still uses the IP instead of the reversed one and I'm suspicious that this cert may not be properly removed after the challenge is solved if a different key is used there. I may be missing something, but the challenge cert never seems to be inserted into the certificate cache and to only exist in the active challenges map? If that's the case, the cleanup doesn't seem necessary, but I may be on a wrong path here.

I did find a reference to RFC6066 here:
https://github.com/caddyserver/certmagic/blob/647f27cf265e6f72b6f043ac52ba34f01bb5da56/handshake.go#L129-L144
That part only retrieves the certificate though, so it seems a coincidence.

@hslatman Ah, great find. Indeed, legacy versions of CertMagic used to store the challenge certificate directly into the certificate cache. Now, we only store the challenge info in the configured storage and generate the certificate on-the-fly during the handshake that needs it. This allows us to cleanly distribute the challenge and makes solving of the challenge agnostic of the challenge type used.
So that delete() call you highlighted can actually be removed. And I could probably remove the code in handshake.go that checks for an exact match of the cert hash from the SNI value; AFAIK we haven't used that functionality since the TLS-SNI days.

I've removed the delete from Cleanup. The other part feels more appropriate for a separate issue, indeed.


chore(deps): update renovate/renovate docker tag to v37.408.0

This PR contains the following updates:

Package
Update
Change

renovate/renovate (source)
minor
37.402.0 -> 37.408.0

Release Notes

renovatebot/renovate (renovate/renovate)
v37.408.0
Compare Source
Features

deps: update ghcr.io/renovatebot/base-image docker tag to v2.20.0 (#29671) (ec5f392)
replacements: add opencost from quay.io to ghcr.io (#29611) (b07f8bc)

v37.407.4
Compare Source
Bug Fixes

deps: update ghcr.io/renovatebot/base-image docker tag to v2.19.4 (#29669) (59d6ae5)

v37.407.3
Compare Source
Bug Fixes

deps: update ghcr.io/containerbase/sidecar docker tag to v10.11.6 (#29667) (0d8d1a1)
deps: update ghcr.io/renovatebot/base-image docker tag to v2.19.3 (#29668) (9b0cb22)

Documentation

fix note contents for GnuPG 2.4+ notification (#29662) (8c25336)

Miscellaneous Chores

deps: update ghcr.io/containerbase/devcontainer docker tag to v10.11.5 (#29660) (b23c4fe)
deps: update ghcr.io/containerbase/devcontainer docker tag to v10.11.6 (#29665) (f9a4f60)
deps: update github/codeql-action action to v3.25.10 (#29661) (b4f25a6)

v37.407.2
Compare Source
Bug Fixes

deps: update ghcr.io/containerbase/sidecar docker tag to v10.11.5 (#29657) (0dd81f8)
deps: update ghcr.io/renovatebot/base-image docker tag to v2.19.2 (#29658) (df33c32)

Documentation

fix note visibility on gpg 2.4+ usage (#29647) (d1aea9f)

Miscellaneous Chores

deps: update codecov/codecov-action action to v4.5.0 (#29649) (7743c77)

Code Refactoring

Tidy Scala version normalization code (#29642) (7178da3)

v37.407.1
Compare Source
Build System

deps: update dependency @opentelemetry/instrumentation-bunyan to v0.39.0 (#29645) (6ab087c)

v37.407.0
Compare Source
Features

deps: update ghcr.io/renovatebot/base-image docker tag to v2.19.1 (#29641) (eec825d)

Bug Fixes

deps: update ghcr.io/containerbase/sidecar docker tag to v10.11.4 (#29639) (19f0a83)

Miscellaneous Chores

deps: update containerbase/internal-tools action to v3.0.94 (#29637) (666dbd3)
deps: update ghcr.io/containerbase/devcontainer docker tag to v10.11.4 (#29638) (1b28087)

Build System

deps): Revert "build(deps: update dependency re2 to v1.21.1" (#29644) (62a3c7c)
deps: update dependency re2 to v1.21.1 (#29634) (6f6db59)
deps: update opentelemetry-js monorepo (#29640) (2dcb0fa)

v37.406.2
Compare Source
Bug Fixes

deps: update ghcr.io/renovatebot/base-image docker tag to v2.18.10 (#29633) (dbadeb6)

Miscellaneous Chores

deps: update actions/checkout action to v4.1.7 (#29630) (51d37d8)
deps: update github/codeql-action action to v3.25.9 (#29631) (c6da6d8)

v37.406.1
Compare Source
Bug Fixes

devcontainer: do not pin digests with docker:pinDigests (#29621) (49b1402)
pr: add extra newline to fix artifacts extra table (#29615) (d62444b)

v37.406.0
Compare Source
Features

instrumentation: add option to overwrite otlp service name/namespace/version with env var (#29583) (4914b6c)

Documentation

config options: update links to Git hosting platform codeowners docs (#29516) (ff23f82)

v37.405.1
Compare Source
Bug Fixes

github: fetch all open issue if ignorePrAuthor=true (#29485) (e11f9d9)

v37.405.0
Compare Source
Features

hex: support update-lockfile strategy (#27915) (4c3d970)

Bug Fixes

deps: update ghcr.io/renovatebot/base-image docker tag to v2.18.9 (#29614) (efa29fc)

v37.404.1
Compare Source
Bug Fixes

config: allow constraints anywhere (#29533) (05e62c4)

Build System

deps: update dependency tslib to v2.6.3 (#29610) (cfee1c8)

v37.404.0
Compare Source
Features

datasource/custom: remove content limiter for plain (#29549) (c9f8acf)

v37.403.0
Compare Source
Features

manager/gradle: Use dependencies task when generating verification metadata (#29602) (8975c9b)
presets: add monorepo shiki (#29609) (c21e78f)

v37.402.1
Compare Source
Miscellaneous Chores

deps: update dependency type-fest to v4.19.0 (#29605) (1255f1b)
deps: update dependency type-fest to v4.20.0 (#29606) (92fbea2)
improve logging of reviewers (#29599) (f21efd3)

Build System

deps: update dependency @renovatebot/osv-offline to v1.5.7 (#29603) (9af590e)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 5.3.15 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Feature to subscribe to multiple expiries

The existing functionality allows users to subscribe to a single expiry when utilizing the option chain feature. The capability to subscribe to multiple expiry dates concurrently is missing. This will broaden the versatility of the option chain and significantly benefit users managing diverse portfolios.
while subscribing users should be able to provide input like
data = {
'23-07-2023': ['NFO:BANKNIFTY', 'NFO:NIFTY'],
'25-08-2023': ['NFO:HDFCBANK', 'NFO:BANKNIFTY', 'NFO:NIFTY']
}

Code describing the advanced usage: how to save the file in csv
stream = OptionStream(symbols, secrets,
expiry='23-02-2023',
criteria=criteria,
redis_config=RedisConfig(db=1)
)
stream.start()   after starting the stream. Can you please help me.

@Gil3232
After starting the stream, you can use this code to create a csv
I have added few columns, based on your requirement you can modify it

option_chain_fetcher = OptionChainFetcher()

option_chain = option_chain_fetcher.get_option_chain('NFO:BANKNIFTY')
import csv

filename = 'banknifty.csv'

# Write to the CSV file
with open(filename, 'w', newline='') as f:
    writer = csv.writer(f)

    headers = [
        'exchange', 'symbol', 'strike_price', 'ce_premium',
        'ce_bid_price', 'ce_ask_price', 'pe_premium',
        'pe_bid_price', 'pe_ask_price'
    ]
    writer.writerow(headers)

    expiry = option_chain['expiry']
    for expiry_date, options in expiry.items():
        for option in options:
            row = dict.fromkeys(headers, '')
            row['exchange'] = option_chain['exchange']
            row['symbol'] = option_chain['trading_symbol']
            row['strike_price'] = option['strike_price']

            for ce_pe in ('ce', 'pe'):
                if ce_pe in option:
                    row[f'{ce_pe}_premium'] = option[ce_pe]['premium']
                    row[f'{ce_pe}_bid_price'] = option[ce_pe]['bid_price']
                    row[f'{ce_pe}_ask_price'] = option[ce_pe]['ask_price']

            writer.writerow(row.values())

Thank you so much.
On Sun, Jul 16, 2023 at 2:52 AM Prajwal Ramakrishna <
@.***> wrote:

@Gil3232 https://github.com/Gil3232
After starting the stream, you can use this code to create a csv
I have added few columns, based on your requirement you can modify it
option_chain_fetcher = OptionChainFetcher()
option_chain = option_chain_fetcher.get_option_chain('NFO:BANKNIFTY')import csv
filename = 'banknifty.csv'
Write to the CSV filewith open(filename, 'w', newline='') as f:
writer = csv.writer(f)

headers = [
    'exchange', 'symbol', 'strike_price', 'ce_premium',
    'ce_bid_price', 'ce_ask_price', 'pe_premium',
    'pe_bid_price', 'pe_ask_price'
]
writer.writerow(headers)

expiry = option_chain['expiry']
for expiry_date, options in expiry.items():
    for option in options:
        row = dict.fromkeys(headers, '')
        row['exchange'] = option_chain['exchange']
        row['symbol'] = option_chain['trading_symbol']
        row['strike_price'] = option['strike_price']

        for ce_pe in ('ce', 'pe'):
            if ce_pe in option:
                row[f'{ce_pe}_premium'] = option[ce_pe]['premium']
                row[f'{ce_pe}_bid_price'] = option[ce_pe]['bid_price']
                row[f'{ce_pe}_ask_price'] = option[ce_pe]['ask_price']

        writer.writerow(row.values())

—
Reply to this email directly, view it on GitHub
https://github.com/pramakrishn/express-option-chain/issues/1#issuecomment-1636888916,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBHVTOIKTPM5Y5WBUIAUURLXQMC2RANCNFSM6AAAAAA2DCNUA4
.
You are receiving this because you were mentioned.Message ID:
@.***>

hi can this be done with proper gui, i am sure you have one, for some one who wants to focus on trading rather than coding, i  have  script for nsepython lib, which works but not reliable as data from nse is not fetched easily on every call

my plan is to hire some one to develop me a reliable gui, which gives me real time change in io in near atm + 1000 -1000 of bank nifty option and change in price
eg: pcr/ money in near ATM options,

The existing functionality allows users to subscribe to a single expiry when utilizing the option chain feature. The capability to subscribe to multiple expiry dates concurrently is missing. This will broaden the versatility of the option chain and significantly benefit users managing diverse portfolios.
while subscribing users should be able to provide input like

data = {

'23-07-2023': ['NFO:BANKNIFTY', 'NFO:NIFTY'],

'25-08-2023': ['NFO:HDFCBANK', 'NFO:BANKNIFTY', 'NFO:NIFTY']

}

Any news about this update


#22 @bernagokce add docker files

Hello!
We prepared the service for docker deployment.

Hi it seems valid thanks for contribution.


Counselor meetings: Limit scope to SHS and 9-12, regardless of authorization

Follow on to https://github.com/studentinsights/studentinsights/pull/2477, explicitly limiting to SHS students.

selfie


how does one (re)set the size of a cell?

creating and populating a smart table is straightforward. However, I do not see any way of setting the size of a cell.
I would love a helper method that would reset the size of a cell based on the contents of the cell.
And / or a helper method to resize all the cells in a column or whole table to fit their contents.
Also some control over padding would be nice.
Is making the table field public a viable solution?

Regarding exposing the table field, fltk_table::SmartTable basically auto derefs into an fltk::table::Table.
You just have to import the TableExt trait and you can use any of the table methods.
use fltk::prelude::TableExt;
let mut table = fltk_table::SmartTable::default();
table.set_col_width_all(200); // or table.set_col_width(some_column, 200);

I'm not sure what you mean by padding? Do you mean between cells?

Yes. I just noticed the Deref and DerefMut impls. I should have looked first. Sorry for the noise.
By padding I mean padding in the "box model" sense. I guess I should look into adding the request to the c++ project. Layout is the one area where FLTK shows its age. However, it looks like this may get addressed somewhat in 1.4
On an unrelated note, I worked at Digital Domain for years, where FLTK was written for Nuke, so I am quite amused by the fact that I am now writing FLTK code for Rust. What's old is new again, as they say...
Thank you for all of the work on the Rust port. Rust really needs a good GUI toolkit, and this is one of the most reliable ones available.

Thank you. That’s nice to hear :)


Remove documentation CI action

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@054aeb3). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #27   +/-   ##
=========================================
  Coverage          ?   49.85%
=========================================
  Files             ?        8
  Lines             ?      347
  Branches          ?        0
=========================================
  Hits              ?      173
  Misses            ?      174
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 054aeb3...e4c7402. Read the comment docs.

LGTM, thanks!


allow multiple --config-file

Hello,
Thanks for configargparse!
I have a use-case where I'd like to specify --config-file multiple times on the command line and have all the config files used.
./application --config-file scenario-A.yaml --config-file common.yaml
./application --config-file scenario-B.yaml --config-file common.yaml
Where common.yaml holds the configs that are common between scenario A and B. But it appears that common.yaml just takes precedence over the scenario-*.yaml config files. I'd like both files to be used as they contain different key-value pairs.
I believe (know?) that I can have a separate option:
./application --config-file scenario-A.yaml --common-config common.yaml
./application --config-file scenario-B.yaml --common-config common.yaml
But that method lacks the elegance of the first option. It also (somewhat) violates the DRY principle as I'd simply like to specify the --config-file option multiple times.
Thanks for considering this feature request and thanks for configargparse!
-m

This is a feature I would certainly be able to use. Multiple options or simply providing a list of config files in the first (and only) --config-file argument

I support this use-case.
I tried setting action="append" in my specification for the config file but ran into
ValueError: arg with is_config_file_arg=True must have action='store'
I then tried nargs="*"  in my specification for the config file but ran into
TypeError: expected str, bytes or os.PathLike object, not list
I believe the initial response is a constraint imposed by configargparse, whereas the later is imposed by argparse.
It is convenient for some applications to have groups of command line arguments that you may wish to combine arbitrarily but don't want a "default" set of configuration...


[CI/Build] install setuptools-scm when building the wheel

publish.yml currently fails, see https://github.com/vllm-project/vllm/pull/8771#issuecomment-2376202075 for context

@youkaichao

how about just use pip install -r requirements-build.txt ?

@youkaichao good call. Moved to https://github.com/vllm-project/vllm/pull/8900


Support dbt snapshots

Depends on: https://github.com/TobikoData/sqlmesh/issues/134
Once that is done we would convert dbt Snapshot to SQLMesh's type 2 dim.

This has been addressed


Error while authorizating

Hi, guys! I've tried to use the integration but I got an error
That's what I'm getting:
STARTING CROWDIN ACTION
UPLOAD SOURCES
❌ Fetching project info
❌ Failed to collect project info. Please contact our support team for help
❌ Couldn't authorize. Check your 'api_token'.

And that's my YML file:
preserve_hierarchy: true

project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN

files:
  - source: src/locales/en-US/*.json
    translation: src/locales/%locale%/%original_file_name%

Repo: https://github.com/RabbitHouseCorp/ChinoKafuu/tree/eris
The API token seems fine, as I created a new token and updated the secret and got the same error.
Thanks in advance!

Hello @MysteryMS!
Would you please specify the project URL in Crowdin?

Hey, do you mean to add base_path and base_url to the YML file?
In case you need the link: https://rabbithouse.crowdin.com/chino-kafuu
I just published the project

Thanks for sharing the project URL. We're going to check that now

You were right! Would you please try to add the following line to the crowdin.yml file:
"base_url": "https://rabbithouse.crowdin.com"

That worked. Thank you!


Opened sockets are not closed.

Hi!
While testing my devdnsd with v 1.0, I noticed that if you try to run twice the same server in a process in asynchronous way, it will not close sockets.
Example:
server = RubyDNS::run_server(asynchronous: true, server_class: MyServer)
# Do something
server.terminate
server = RubyDNS::run_server(asynchronous: true, server_class: MyServer)

The second call will raise bind error as the socket is already in use.
This apparently happens because you never finalize the actors.
This snippet fixed the code in my case:
server.actors.first.links.each(&:terminate)

Maybe you can find a better way in the real implementation. :)
Hope this helps!
Paolo

Thanks dude, I will check this out. I appreciate the fix, and it is helpful to find a good solution :)

Closed due to inactivity.

This is still an issue right?

Yes, but after 9 months of no activity I just closed since no-one is looking at it.


No results for Rule34 Paheal

I can't load images from Rule34 Paheal, does anyone have a fix?

same here

same here

Same here, still not working.

Same here, still not working.

me too

me too

Any news ? It work in nightly.

[13:23:00.378][Info] [rule34.paheal.net][Html] Loading page http://rule34.paheal.net/post/list/1
[13:23:00.698][Info] [rule34.paheal.net][Html] Receiving page http://rule34.paheal.net/post/list/1
[13:23:00.750][Info] [rule34.paheal.net][Html] Parsed page http://rule34.paheal.net/post/list/1: 70 images (70), 10 tags (10), -1 total (10000), 500 pages (500)

Can we have the logs ?


feature request - save labels & assignee when changing PR branch

When creating a PR in GitHub, if you add a label (or an assignee for that matter) and then you change the base branch in which you want the PR to be merged into, it will remove your labels & assignee.
Is it possible to add a feature that will listen to that change and reset those properties?

@shaharmor I don't think this is still happening. If you can reproduce it, please report to GitHub as it's most surely a bug. I'm closing this as GitHub should fix that for sure.


Fix advanced example where plugins: has to be array

This PR fixes the advanced example in README.md where previously using <<: *caches yielded an object which collapses all plugins into a single field ("gencer/cache#v2.4.8")also buildkite rejecting that definition; after the change it creates an array of plugin definitions as required by buildkite.

Merged. Teşekkürler!

@ciuncan Buildkite Linter complains about this change: https://github.com/gencer/cache-buildkite-plugin/runs/2468713133?check_suite_focus=true

You can check your markup here:

Hi @gencer , thanks for the quick merge! And sorry, I didn't check the example properly after sending a quick force-pushed commit second time. My example only consisted of the the - *caches array, I guess YAML doesn't support additional items when a reference to an array is being used.
If it is OK for you, I can open a new PR where I move the docker plugin into caches array and rename it as all-plugins as below. Would that work for you?
node-cache: &node-cache
  id: node
  key: "v1-cache-{{ id }}-{{ runner.os }}-{{ checksum 'yarn.lock' }}"
  restore-keys:
    - 'v1-cache-{{ id }}-{{ runner.os }}-'
    - 'v1-cache-{{ id }}-'
  backend: s3
  s3:
    bucket: cache-bucket
  paths:
    - node_modules
    # If you have sub-dir then use:
    # - **/node_modules

ruby-cache: &ruby-cache
  id: ruby
  key: "v1-cache-{{ id }}-{{ runner.os }}-{{ checksum 'Gemfile.lock' }}"
  restore-keys:
    - 'v1-cache-{{ id }}-{{ runner.os }}-'
    - 'v1-cache-{{ id }}-'
  backend: s3
  s3:
    bucket: cache-bucket
  paths:
    - 'bundler/vendor'

all-plugins: &all-plugins
  - gencer/cache#v2.4.8: *node-cache
  - gencer/cache#v2.4.8: *ruby-cache
  - docker#v3.7.0: ~ # Use your config here

steps:
  - name: ':jest: Run tests'
    key: test
    command: yarn test --runInBand && bundle exec rspec --color
    plugins: *all-plugins
  - name: ':istanbul: Run Istanbul'
    key: istanbul
    depends_on: test
    command: .buildkite/steps/istanbul.sh
    plugins: *all-plugins

Hi @ciuncan That was my reason why I used object at first place. It works (even Buildkite says invalid it just works™)
However, To be more accurate and pass linting on Actions, Let's do this.
Feel free to send a new PR.
P.S.: You probably need to bump your master (rebase) as I've enabled linting on Actions CI.

For me it was failing with the below error message at pipeline upload step with when plugins was an object/dictionary:
2021-04-29 11:39:41 FATAL  Pipeline parsing of "build-and-test.pipeline.yml" failed (Failed to parse build-and-test.pipeline.yml: map merge requires map or sequence of maps as the value)

Maybe they changed into array strictly later? I made sure it conforms to following examples.
https://buildkite.com/docs/plugins/using#adding-a-plugin-to-your-pipeline
Anyways, I opened the following PR: https://github.com/gencer/cache-buildkite-plugin/pull/30

Ah. I probably missed that! Thanks for pointing it out for me.
I'm glad we fixed this! Thanks again! 🎉


🐛 Deleted news is still shown in delete selection

After deleting a news it is still shown when the success message is displayed. After a page reload it is like intended.

Fixed in https://github.com/Friedinger/Infoscreen/commit/4f4c252a5d19a70a5c748ea58374cc5f19efaabd


Remove repeated "runtime" code from global output.

Currently the ES6 -> ES5 transpilation process is putting class assertion functions inline with each module file. We should get rid of that so those class related functions are only defined once.
cc/ @jeffbcross @vsavkin

I assume this can be closed by we're moving away from babel, what do you think? @blesh

I agree.


Some Installed Models don't get recognised

I have many models installed, I use it with the Civit Link.
Even though when I install it through civitai.com with the link. (So automatic installation into the model folder)
After it download, it still says I should download it, even though the model is already in the model folder.
I have 200 models and 20 of them don't get recognized, and the previews don't get installed.
Example Models:
abyssorangemix3AOM3_aom3a1b
facebombmix_v1Bakedvae
openjourney-v4

Settings are all looking normal. The Problem is only on some models. 5 from 100 Models


Docs couldn't deploy 5 times in a row

See build details here: https://app.netlify.com/sites/rasahq-docs-rasa-v2/deploys
Latest build: https://app.netlify.com/sites/rasahq-docs-rasa-v2/deploys/60b914bd9defcc00089ffc81
Stacktrace:
7:49:18 PM: ────────────────────────────────────────────────────────────────
7:49:18 PM:   1. Build command from Netlify app
7:49:18 PM: ────────────────────────────────────────────────────────────────
7:49:18 PM:
7:49:18 PM: $ yarn run build
7:49:18 PM: yarn run v1.22.5
7:49:18 PM: $ docusaurus build --out-dir build/docs/rasa
7:49:20 PM: Creating an optimized production build...
7:49:49 PM: [info] [webpackbar] Compiling Client
7:49:49 PM: [info] [webpackbar] Compiling Server
8:05:20 PM: [success] [webpackbar] Client: Compiled successfully in 15.52m
8:09:07 PM: Killed
8:09:07 PM: error Command failed with exit code 137.
8:09:07 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Local steps to reproduce:

git checkout documentation
cd docs && yarn
yarn run build (this fails in Netlify)

@lunelson FYI I created a ticket. Been trying to reproduce locally (cf. repro steps above) and the first thing that strikes me is that it takes ~ 6 minutes on my machine for the client, and 9 minutes for the server. Second thing that strikes me is that it doesn't fail:

Could it be a case of timeout or OOM issue?

@m-vdb from a bit of searching, it seems that the exit code 137 and the point in the log where it says "Killed" could be an indication that it's running out of memory, yes.
It looks a lot like we need to try upgrading docusaurus, since it's now in beta and much farther along. Maybe some of these errors will have been solved. I'll try to see how I can fit this in

@m-vdb I'm unable to run the docs locally and am wondering if it might be the same issue as above (I can't log into Netlify to see what the exact error message there is).
In a clean conda env with Python 3.8, when I checkout either main or 2.7.x and run make install install-docs, then running make livedocs gives me this (note: I get the same error when using your steps listed above):
cd docs/ && poetry run yarn start
yarn run v1.22.10
$ yarn pre-build && yarn develop
$ yarn copy-md-files && yarn variables && yarn program-outputs && yarn included-sources && yarn autodoc && yarn telemetry
$ node scripts/copy_md_files.js
Copying markdown files
$ node scripts/compile_variables.js
Computing docs variables and writing to ./docs/variables.json
$ node scripts/compile_program_outputs.js
Computing program outputs
$ node scripts/compile_included_sources.js
Computing included sources
$ echo 'Generating autodoc' && pydoc-markdown
Generating autodoc
$ node scripts/compile_telemetry_reference.js --unhandled-rejections=strict
Compiling telemetry reference
$ docusaurus start --port 3000
Starting the development server...
no versions.json file found
Assertion failed: (thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134.
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [livedocs] Error 1

I'm trying to look in to this, but every time I go back to the docs I have new python issues. Currently I can't get past make install.
@samsucik the branch that's failing to build is the documentation branch: could you try checking that out and building locally? I think the remote build is probably failing due to running out of memory, and this lies either with Docusaurus itself, or (more likely) with Webpack.
I had wanted to test how the build would perform if we remove some of the past versions, which would require modifying the following locations: removing some lines from versions.json, and some sub-folders from each of versioned_docs and versioned_sidebars, to pare it all down to no more than 5 versions total, for example, and see what that does.
I fear we may have to enforce a limit ultimately, on the number of past versions that we maintain.
.
└── docs/
    ├── versions.json
    ├── versioned_docs/
    │   └── ...
    └── versioned_sidebars/
        └── ...

@lunelson I get the error with the documentation branch too (that's what I meant when I said "I get the same error when using your steps listed above").

@samsucik OK, just wanted to be sure
@m-vdb I did some troubleshooting of the poetry install issues with @alwx on but succeeded only in identifying that there is a problem, probably with poetry and possibly related to macOS 11.x.
For the moment therefore I can only repeat my recommendation to trim the number of versions built down to 5 or 6 max and see if that fixes it.


vertical spacing of numbered lists

Is this the right spacing for a numbered list? (sample page)

Seems like there could be a bit more vertical space between the list items.
Based on these differences, the high-level steps to upgrade a project from using Prisma 1 are as follows:

1. Install the new Prisma 2.0 CLI as a development dependency
1. Use the Prisma 2.0 CLI to introspect your Prisma 1 database and generate your Prisma schema
1. Install and generate Prisma Client 2.0
1. Adjust your application code, specifically replace the API calls from the Prisma client 1.0 with those of Prisma Client 2.0

While at it, we should also fix the vertical spacing when there's a line break in the sidenav

First Part
For this, we just need to treat <ol> tags in the same way that we treat <ul> tags. Concretely this means we need to add 10px to the top of each list item in an ordered list:
ol li {
  margin-top: 10px;
}

Second Parse
Add line-height: 1.25 to each of the list items in the sidebar

@nilubava would know best on how to add this to our current setup.


Merge ECCC download into ClimateOBS

ECCC download script currently located in dischargeobs repo. Move script and scheduled task into nr-rfc-climate-obs

Datamart download script (currently downloading and processing ECCC and CRD data) has been moved to climateobs


chore(ci): add coderabbit settings

Description

Let's unleash the 🐰!
closes: #XXXX
Commit Message / Changelog Entry
type: commit message

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[x] Targeted PR against the correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Summary by CodeRabbit

New Features

Enhanced control over language settings, review workflows, and chat automation with the introduction of .coderabbit.yml configuration.

overall lgtm, we can tweak settings as appropriate later on. Wonder if these setting cover PRs opened in draft mode (I see WIP in titles as a filtering mechanism) but having it not go ape when in draft might be a good idea.

Yeah, I prefer to keep the rabbit out of the draft PRs for now. Since they are not ready for review, it might just be a bit noisy.


Updates with regard to October 2

Since October 2 uses Laravel 6.20 a call to a method that was renamed had to be updated. The solution is taken from similar update in the VojtaSvoboda.ErrorLogger Plugin this Plugin works with.
Also composer dependancies have been updated.

@skydiver can you please include this? we are not allowed to fork and publish your plugin into octobercms...


[Bug] Breaking change for Bun runtime between v1.0.1 and v1.1.1

Is this a new bug?

[X] I believe this is a new bug
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
Consider the following code:
const { Pinecone } = require("@pinecone-database/pinecone");
const apiKey = "your-api-key";
const environment = "your-env";
const indexName = "your-index";

async function main() {
  const pinecone = new Pinecone({
    apiKey,
    environment,
  });
  await pinecone.describeIndex(indexName);
  const index = pinecone.index(indexName);

  // some random query vector
  const arr = Array.from({ length: 1536 }, () => Math.random());

  await index.query({
    vector: arr,
    topK: 50,
    includeValues: true, // it is important that this is `true`!
    includeMetadata: true,
  });
}

main().then(() => process.exit(0));

When we run this script with node index.js we have no problems. However, when we run it with bun index.js it throws an error:
❯ bun index.js
499 |             var _a;
500 |             return __generator(this, function (_b) {
501 |                 switch (_b.label) {
502 |                     case 0:
503 |                         _a = this.transformer;
504 |                         return [4 /*yield*/, this.raw.json()];
                                                 ^
SyntaxError: Unexpected end of JSON input
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:504:45
      at step (/Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:72:17)
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:53:52
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:47:8
      at new Promise (:1:20)
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:43:11
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:498:15
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/apis/VectorOperationsApi.js:405:45
      at step (/Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/apis/VectorOperationsApi.js:84:17)

Expected Behavior
It should not throw an error when working with Bun.
To go further, I have edited the code at the point of error to see exactly what is going on. Beginning at line 502 I have modified it as:
case 0:
  const t = this.raw.text();
  _a = this.transformer;
  return [4 /*yield*/, t
    .then(t => JSON.parse(t))
    .catch(e => {
      t.then(t => console.log({obj: t, type: typeof t}))
      throw e
    })
  ];

which should do the same thing as this.raw.json() but allow us to see the body before throwing an error. This way, we see that with Bun we print the following within the catch function:
❯ bun index.js
{
  obj: "",
  type: "string"
}
502 |                     case 0:
503 |                         const t = this.raw.text();
504 |                         _a = this.transformer;
505 |                         return [4 /*yield*/, t
506 |                           .then(t => JSON.parse(t))
507 |                           .catch(e => {
                                          ^
SyntaxError: JSON Parse error: Unexpected EOF
      at /Users/erhant/fb/tmp/pinecone-bug/node_modules/@pinecone-database/pinecone/dist/pinecone-generated-ts-fetch/runtime.js:507:38

In other words, something causes the body to be empty string, which of course can't be parsed to JSON.
This issue does not exist for pinecone client v.1.0.1.
Steps To Reproduce

Install pinecone package (v.1.1.x) and create a file with the snippet given above.
Run it with node and confirm it works.
Run it with bun and confirm it throws an error.
Optionally, install pinecone package (v.1.0.x) and see that it works for both.

It seems to be important that includeValues is set to be true.
Relevant log output
No response
Environment
- **OS**: macOS Ventura 13.0
- **Language version**: Bun: 1.0.4 and Node: 20.5.0
- **Pinecone client version**: 1.1.1

Additional Context
Here is a shortcut to Bun issues page: https://github.com/oven-sh/bun/issues
They have quite a lot of issues, but if we can pinpoint what causes the issue with Pinecone we can link to a relevant issue within Bun. Perhaps a different method was used to parse the request body between v1.0.1 ~ v.1.1.1 and Bun does not support the latter?
Mentioning my teammate @anilaltuner to also notify him & for his help on finding the bug.

Thank you for the detailed bug report. I will try to look at this soon.

Hello, are there any updates on this?

any updates on this?

Still broken :'(

Confirming this is still broken here as well.

gg still broken on 1.1.18

+1

Still broken
Any updates or workarounds?

Still broken
Any updates or workarounds?

My workaround for the time being is to use Cohere (or Elastic Search): https://cohere.com


Setting ConfigSync does not handle device name / hostname mismatch

Environment

Declarative Onboarding Version: 1.10.0-2
BIG-IP Version: 14.1.2-<IP_ADDRESS>

Summary
Notice the VE device name is bigip1, DO thinks it should be looking for the FQDN.
We MUST force the device name to be equal to the FQDN BEFORE we start anything in DO that is dependent on the device name. There an MANY reason the device name might default back to 'bigip1'.
DO does not complete:
[root@adc3nic:Active:Standalone] opt # tmsh list cm device
cm device **bigip1** {
    active-modules { "BIG-IP, VE, LAB|CWLPXKJ-JAJZBHN|Rate Shaping|External Interface and Network HSM, VE|SSL, Forward Proxy, VE|BIG-IP VE, Multicast Routing|Routing Bundle, VE|ASM, VE|SSL, VE|DNS VE Lab  (10K QPS)|Max Compression, VE|Advanced Protocols, VE|SSL Orchestrator, VE|Advanced Web Application Firewall, VE Lab|AFM, VE (LAB ONLY - NO ROUTING)|DNSSEC|VE, Carrier Grade NAT (AFM ONLY)|PSM, VE|APM, Lab, VE" }
    base-mac fa:16:3e:d6:53:8c
    build 0.0.37
    cert dtdi.crt
    chassis-id 98f98868-1092-9b4b-7a4a39ed04a7
    edition Final
    failover-state active
    **hostname adc3nic.openstack.grubernet.org**
    key dtdi.key
    management-ip <IP_ADDRESS>
    marketing-name "BIG-IP Virtual Edition"
    optional-modules { "Anti-Bot Mobile, VE 25 Mbps" "App Mode (TMSH Only, No Root/Bash)" "FIPS 140-2 Level 1, BIG-IP VE-200M" "IP Intelligence, 1Yr, VE-200M/VE-25M" "IP Intelligence, 3Yr, VE-200M/VE-25M" ONAP "Threat Campaigns, 1Yr, VE-200M/VE-25M" "URL Filtering, 1Yr, VE" "URL Filtering, 3Yr, VE" "URL Filtering, VE-25M-1G, 500 Sessions, 1Yr" "URL Filtering, VE-25M-1G, 500 Sessions, 3Yr" }
    platform-id Z100
    product BIG-IP
    self-device true
    time-zone America/Los_Angeles
    version 14.1.2
}

restnoded log hanging:
.....
Sun, 02 Feb 2020 16:04:35 GMT - finest: [f5-declarative-onboarding: systemHandler.js] tryUntil: retryOrReject: numRemaining: 11 , code: 404 , message: 01020036:3: The requested system device (/Common/adc3nic.openstack.grubernet.org) was not found.
....
Steps To Reproduce
Steps to reproduce the behavior:

Submit the following declaration:

{
	"async": true,
	"schemaVersion": "1.0.0",
	"label": "Cloudinit Onboarding",
	"class": "Device",
	"Common": {
		"poolLicense": {
			"licensePool": "BIGIPVEREGKEYS",
			"licenseType": "licensePool",
			"bigIqHost": "<IP_ADDRESS>",
			"bigIqUsername": "admin",
			"bigIpPassword": "f5c0nfig",
			"bigIpUsername": "admin",
			"bigIqPassword": "admin",
			"reachable": true,
			"class": "License"
		},
		"provisioningLevels": {
			"class": "Provision",
			"ltm": "nominal"
		},
		"HA-self": {
			"trafficGroup": "traffic-group-local-only",
			"vlan": "HA",
			"allowService": "all",
			"class": "SelfIp",
			"address": "<IP_ADDRESS>/24"
		},
		"external-self": {
			"trafficGroup": "traffic-group-local-only",
			"vlan": "external",
			"allowService": "none",
			"class": "SelfIp",
			"address": "<IP_ADDRESS>/24"
		},
		"default": {
			"gw": "<IP_ADDRESS>",
			"class": "Route",
			"network": "default",
			"mtu": 1450
		},
		"dnsServers": {
			"nameServers": ["<IP_ADDRESS>"],
			"search": ["example.openstack.com"],
			"class": "DNS"
		},
		"ntpServers": {
			"class": "NTP",
			"servers": ["0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org"]
		},
		"dbvars": {
			"ui.advisory.enabled": true,
			"ui.advisory.text": "This device is under centralized management.",
			"class": "DbVariables",
			"ui.advisory.color": "orange"
		},
		"external": {
			"interfaces": [{
				"tagged": false,
				"name": 1.2
			}],
			"class": "VLAN",
			"mtu": 1450
		},
		"failoverAddress": {
			"class": "FailoverUnicast",
			"address": "/Common/HA-self/address"
		},
		"HA": {
			"interfaces": [{
				"tagged": false,
				"name": 1.1
			}],
			"class": "VLAN",
			"mtu": 1450
		},
		"class": "Tenant",
		"configsync": {
			"configsyncIp": "/Common/HA-self/address",
			"class": "ConfigSync"
		}
	}
}

Observe the following error response:

DO just continues to retry... gave up watching after 30+ mins.
[root@adc3nic:Active:Standalone] opt # curl -s http://<IP_ADDRESS>:8105/shared/declarative-onboarding | json_pp
{
   "declaration" : {
      "schemaVersion" : "1.0.0",
      "async" : true,
      "Common" : {
         "HA-self" : {
            "address" : "<IP_ADDRESS>/24",
            "class" : "SelfIp",
            "trafficGroup" : "traffic-group-local-only",
            "allowService" : "all",
            "vlan" : "HA"
         },
         "poolLicense" : {
            "bigIpUsername" : "admin",
            "reachable" : true,
            "licensePool" : "BIGIPVEREGKEYS",
            "unitOfMeasure" : "monthly",
            "bigIqHost" : "<IP_ADDRESS>",
            "licenseType" : "licensePool",
            "bigIqUsername" : "admin",
            "overwrite" : false,
            "class" : "License"
         },
         "configsync" : {
            "configsyncIp" : "/Common/HA-self/address",
            "class" : "ConfigSync"
         },
         "HA" : {
            "interfaces" : [
               {
                  "tagged" : false,
                  "name" : "1.1"
               }
            ],
            "cmpHash" : "default",
            "class" : "VLAN",
            "mtu" : 1450
         },
         "failoverAddress" : {
            "address" : "/Common/HA-self/address",
            "class" : "FailoverUnicast",
            "port" : 1026
         },
         "external" : {
            "interfaces" : [
               {
                  "tagged" : false,
                  "name" : "1.2"
               }
            ],
            "cmpHash" : "default",
            "class" : "VLAN",
            "mtu" : 1450
         },
         "default" : {
            "network" : "default",
            "gw" : "<IP_ADDRESS>",
            "class" : "Route",
            "mtu" : 1450
         },
         "ntpServers" : {
            "servers" : [
               "0.pool.ntp.org",
               "1.pool.ntp.org",
               "2.pool.ntp.org"
            ],
            "class" : "NTP"
         },
         "dbvars" : {
            "ui.advisory.enabled" : true,
            "ui.advisory.color" : "orange",
            "class" : "DbVariables",
            "ui.advisory.text" : "This device is under centralized management."
         },
         "dnsServers" : {
            "search" : [
               "example.openstack.com"
            ],
            "class" : "DNS",
            "nameServers" : [
               "<IP_ADDRESS>"
            ]
         },
         "class" : "Tenant",
         "provisioningLevels" : {
            "ltm" : "nominal",
            "class" : "Provision"
         },
         "external-self" : {
            "address" : "<IP_ADDRESS>/24",
            "class" : "SelfIp",
            "trafficGroup" : "traffic-group-local-only",
            "allowService" : "none",
            "vlan" : "external"
         }
      },
      "class" : "Device",
      "label" : "Cloudinit Onboarding"
   },
   "selfLink" : "https://localhost/mgmt/shared/declarative-onboarding/task/f8b71086-6f97-4281-87b8-4aae504b9b6e",
   "id" : "f8b71086-6f97-4281-87b8-4aae504b9b6e",
   "result" : {
      "status" : "RUNNING",
      "class" : "Result",
      "message" : "processing",
      "code" : 202
   }
}

Expected Behavior
Set the ConfigSync IP address on the local device.
Actual Behavior
timeout because the device name doesn't match the FQDN which DO resolved as the device name.

Finally errored:
"result" : {
      "errors" : [
         "tryUntil: max tries reached: tryUntil: max tries reached: 01020036:3: The requested system device (/Common/adc3nic.openstack.grubernet.org) was not found.",
         "Cannot read property 'includes' of undefined"
      ],
      "status" : "ERROR",
      "class" : "Result",
      "message" : "rollback failed",
      "code" : 500
   }

This is in our internal product backlog as AUTOTOOL-1125.

This issue has been resolved as part of the 1.11.0 release.


Did I miss some requirements to get it to work ?

Tried on a Win10-22H2 and on a Win10-1909 but same result.
PS C:\temp\PowerExtract> Invoke-PowerExtract -PathToDMP C:\temp\lsass.DMP
New-Object : Cannot find type [â€TypeName System.IO.FileStream â€ArgumentList]: verify that the assembly containing
this type is loaded.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:409 char:23

... ileStream = New-Object â€“TypeName System.IO.FileStream â€“ArgumentLi ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

New-Object : Cannot find type [â€TypeName System.IO.BinaryReader â€ArgumentList]: verify that the assembly containing
this type is loaded.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:410 char:23

... ileReader = New-Object â€“TypeName System.IO.BinaryReader â€“Argument ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

The property 'Position' cannot be found on this object. Verify that the property exists and can be set.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:412 char:9

    $fileReader.BaseStream.Position=0

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : PropertyNotFound

You cannot call a method on a null-valued expression.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:413 char:9

    $Signature = Convert-LitEdian -String ([System.BitConverter]: ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:415 char:9

    $Version = Convert-LitEdian -String ([System.BitConverter]::T ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\temp\PowerExtract\Invoke-PowerExtract.ps1:417 char:9

    $ImplementationVersion = Convert-LitEdian -String ([System.Bi ...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

Hmm usally it does not have any requirement (given that you have an unrestricted PowerShell - in regards to execution policy and ). The error looks like a encoding issue so ensure that the script is transferred as UTF-8 (e.g. when you transfer it by invoke-webrequest).

a did a git clone, but indeed there is something funny with the encoding.
A good old copy paste from raw file solved the issue.


Save original error handlers and restore them afterwards

Before installing a temporary error handler make sure any existing handler is saved and then restore it afterwards as other code may be using libxml and have installed error handlers.
In particular libxml-ruby installs a structured error handler which can then get wiped out by Nokogiri if you are trying to use both of them in the same process.

I'm sorry we never got this to work. I just added some measure of libxml-ruby conflict coverage to the test suite, so we can revisit if you like.


Create an username without login authorisation

Also fix loginError state on LOGIN_SUCCESS

I'm going to close this one out--I feel it adds unnecessary complexity for the purpose of an example project.


Upgrade to Envoy 1.12

Upgrade to Envoy 1.12 once released.

Moving to the unplanned milestone. We don't plan to upgrade to Envoy 1.12 for Contour 1.0 at this time.

The envoy xDS deprecations have been addressed. The remainder of this ticket can happen closer to the release date.


node script hanging after disconnect

Bug description
We observed this with some internal testing. The error log is like the following:
prisma-client TypeError: Cannot read property 'signalCode' of undefined
  prisma-client     at NodeEngine.handleRequestError (/Users/divyendusingh/Documents/prisma/system-behavior/pgbouncer-connection/node_modules/@prisma/client/runtime/index.js:1:111388)
  prisma-client     at /Users/divyendusingh/Documents/prisma/system-behavior/pgbouncer-connection/node_modules/@prisma/client/runtime/index.js:1:125748
  prisma-client     at runMicrotasks (<anonymous>)
  prisma-client     at processTicksAndRejections (internal/process/task_queues.js:97:5)
  prisma-client     at async PrismaClientFetcher.request (/Users/divyendusingh/Documents/prisma/system-behavior/pgbouncer-connection/node_modules/@prisma/client/runtime/index.js:1:222501)
  prisma-client     at async Promise.all (index 8) +1ms
  engine {
  engine   error: SocketError: other side closed
  engine       at Socket.onSocketEnd (/Users/divyendusingh/Documents/prisma/system-behavior/pgbouncer-connection/node_modules/@prisma/client/runtime/index.js:1:203556)
  engine       at Socket.emit (events.js:327:22)
  engine       at endReadableNT (_stream_readable.js:1221:12)
  engine       at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  engine     code: 'UND_ERR_SOCKET'
  engine   }
  engine } +1ms

How to reproduce
Hunch: It happens when a lot of requests are running in parallel and a disconnect happens. While Prisma can reconnect if the connection is not available, it can happen that a certain request is already past that check and the async disconnect happens. In this case Prisma client gets stuck and these are the logs.
It thinks QE has crashed but that var is null. This can be reproduced by running many queries parallen and in loop and disconnecting async.
https://github.com/prisma/system-behavior/pull/6 (internal)
Expected behavior
It shouldn't hang.
Prisma information
Prisma CLI: 2.5.0-dev.61
Maybe related: https://github.com/prisma/prisma/issues/2917

This needs a simpler reproduction with plain Node script that shows the behavior, without all the Postgres and PgBouncer container foo.

I can confirm that I am also seeing this error if I explicitly call $disconnect. I am running a Next.js app with prisma and will see a bunch of these errors before it crashes the process.
TypeError: Cannot read property 'signalCode' of undefined
    at NodeEngine.handleRequestError (/var/www/umami.is/umami/node_modules/@prisma/client/runtime/index.js:1:115901)
    at async /var/www/umami.is/umami/node_modules/@prisma/client/runtime/index.js:1:129713
    at async PrismaClientFetcher.request (/var/www/umami.is/umami/node_modules/@prisma/client/runtime/index.js:1:210694)
    at async module.exports.FVZN.__webpack_exports__.default (/var/www/umami.is/umami/.next/server/pages/api/collect.js:173:5)
    at async apiResolver (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/api-utils.js:8:1)
    at async Server.handleApiRequest (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/next-server.js:48:397)
    at async Object.fn (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/next-server.js:40:218)
    at async Router.execute (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/router.js:38:67)
    at async Server.run (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/next-server.js:49:494)
    at async Server.handleRequest (/var/www/umami.is/umami/node_modules/next/dist/next-server/server/next-server.js:18:101)
TypeError: Cannot read property 'signalCode' of undefined
    at NodeEngine.handleRequestError (/var/www/umami.is/umami/node_modules/@prisma/client/runtime/index.js:1:115901)
    at async /var/www/umami.is/umami/node_modules/@prisma/client/runtime/index.js:1:129713
events.js:291
      throw er; // Unhandled 'error' event
      ^

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at writeAfterEnd (_http_outgoing.js:646:15)
    at ServerResponse.end (_http_outgoing.js:766:7)
    at ServerResponse.end (/var/www/umami.is/umami/node_modules/next/dist/compiled/compression/index.js:1:148805)
    at badRequest (/var/www/umami.is/umami/.next/server/pages/api/collect.js:1186:26)
    at /var/www/umami.is/umami/.next/server/pages/api/collect.js:427:50
Emitted 'error' event on ServerResponse instance at:
    at writeAfterEndNT (_http_outgoing.js:705:7)
    at processTicksAndRejections (internal/process/task_queues.js:81:21) {
  code: 'ERR_STREAM_WRITE_AFTER_END'
}
error Command failed with exit code 1.

@mikecao Thank you. Is it possible to share a small snippet/repro that we can use to debug this further?
I already plan to try and triage this today with just Prisma client without any frameworks/libraries but if a next.js repro is easily possible, that would help :)

It's not a small repo, but it's the only thing I have running prisma at the moment
https://github.com/mikecao/umami
I can get it to consistently crash by adding a disconnect to the runQuery function under lib/db.js.

I have a reproduction - https://github.com/divyendu-test/prisma-client-js-839

Can you please confirm this change @divyenduz?

Exits correctly with 2.6.0-dev.44

@janpio I am still getting this error whenever I call disconnect explicitly:
TypeError: Cannot read property 'signalCode' of undefined
    at NodeEngine.handleRequestError (E:\dev\umami\node_modules\@prisma\client\runtime\index.js:1:110757)
    at async E:\dev\umami\node_modules\@prisma\client\runtime\index.js:1:126324
    at async PrismaClientFetcher.request (E:\dev\umami\node_modules\@prisma\client\runtime\index.js:1:227215)
    at async Promise.all (index 0)
    at async module.exports../pages/api/website/[id]/pageviews.js.__webpack_exports__.default (E:\dev\umami\.next\server\pages\api\website\[id]\pageviews.js:957:32)
    at async apiResolver (E:\dev\umami\node_modules\next\dist\next-server\server\api-utils.js:8:1)
    at async DevServer.handleApiRequest (E:\dev\umami\node_modules\next\dist\next-server\server\next-server.js:47:397)
    at async Object.fn (E:\dev\umami\node_modules\next\dist\next-server\server\next-server.js:39:218)
    at async Router.execute (E:\dev\umami\node_modules\next\dist\next-server\server\router.js:23:67)
    at async DevServer.run (E:\dev\umami\node_modules\next\dist\next-server\server\next-server.js:49:494)

Using the latest prisma 2.6.0. Should I file a new issue?

@mikecao Yes, please open a new issue with a minimal reproduction :)


Initial commit for #75 - setting up master ELB

I can't get the health check for the ELB to come back (on HTTP port). I must be missing a config option somewhere to allow it (some debug output from inside an instance below):
ip-10-0-1-111 ~ # curl -v <IP_ADDRESS>:8080/healthz
*   Trying <IP_ADDRESS>...
* connect to <IP_ADDRESS> port 8080 failed: Connection refused
* Failed to connect to <IP_ADDRESS> port 8080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to <IP_ADDRESS> port 8080: Connection refused
ip-10-0-1-111 ~ # curl -v <IP_ADDRESS>:8080/healthz
*   Trying <IP_ADDRESS>...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8080 (#0)
> GET /healthz HTTP/1.1
> Host: <IP_ADDRESS>:8080
> User-Agent: curl/7.47.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 26 Apr 2016 17:17:58 GMT
< Content-Length: 2
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host <IP_ADDRESS> left intact

@tayzlor You need to also add --insecure-bind-address=<IP_ADDRESS> as one of the api-server options, as currently it's only bound to localhost.

https://github.com/Capgemini/kubeform/pull/77/commits/379406fbb9b34ba54805ff4e862e450703e1c9c3 moves this on a bit further - ELB now set up and forwarding traffic on to the API servers. We now have an issue with the certificate -
E0505 14:42:00.147135       1 event.go:202] Unable to write event: 'Post https://kube-master-1693761008.eu-west-1.elb.amazonaws.com:443/api/v1/namespaces/default/events: x509: failed to load system roots and no roots provided' (may retry after sleeping)

Making a note here that we probably need to generate and pass in a kubeconfig file for the kube-proxy --kubeconfig=/var/lib/kubelet/kubeconfig

https://github.com/Capgemini/kubeform/pull/77/commits/a0847dee7adbc628f47a8ddf5a02d50b7b5681b6 fixes HTTPS connections. It doesn't actually fix #79 but we could fix that in a follow-up.


Add $ for string interpolation in C# code snippet

@GregTrevellick : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


community: Slack invite via Google OAuth expired

New users cannot join the Slack workspace.

Invitation expired
It looks like you’re trying to accept an invitation, but the link was deactivated.
Contact the person who originally invited you about getting a new link or manually inviting you.

https://github.com/cuelang/cuelang.org/blob/18fa0fb770422adfcc4bc83ada1a30766620f236/config.toml#L159

For better visibility I've moved this issue to the main CUE repo.

Apparently this is now fixed (tested myself). @abursavich please can you check from your side?

LGTM

This issue has been migrated to https://github.com/cue-lang/cue/issues/744.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Reducing Dynamic of a Particular Plotable in MultiYAxix Environment

Showing nicely distributed plots in a Multi Y Axis environment can be tricky.
Here is an example of how Altitudes (Yaxis)  and Speeds (Yaxis2) are shown without a trick.

In order to decrease displayed dynamics of Speed plotables (50% for example) the following code snippet is used.

Where SpeedMAX represents a Double array of the maximum value of all speeds multiplied by 2.
This is the result where the speed dynamic is visually reduced by 50%.

It applies to a single Y axis as well.

Hi @dusko23, thank you for sharing this code and screenshots!
I want to make sure I correctly understand your message. This is information you are sharing to help others, correct? There is not a question here that I am missing?
Assuming this is the case, I'm going to turn this issue into a Discussion and mark it Show and Tell but let me know if I misunderstood!


manual.py starts but does nothing with the file

Hello,
Running manual.py starts, gathers all the info about the file but then does nothing with it?
index.log
[MP4]

Doesn’t look like anything is happening. What command are you executing? That log isn’t helpful. Are you processing a file? A directory? Does it do this for every file? If you run without any command line options does it do anything?


[refactor] add cmd dir & put core code into pkg

if possible ,please not merge other prs before this pr merged into main branch -_-


ModuleNotFoundError: No module named 'tinyllava'

How to fix?
llava-1.5-7b can run normally, but this tiny can not.

Please follow the setup instructions in README🫡

Please follow the setup instructions in README🫡

OK, thanks

Please follow the setup instructions in README🫡

It works !!! thank you !


mergeWhen(false, [is trying to execute the enclosed statement])

Laravel Framework 5.7.20
PHP 7.2.12-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Nov 12 2018 09:55:44) ( NTS )
mysql  Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using  EditLine wrapper

Description:
When working with Eloquent: API Resources, mergeWhen() is trying to execute the enclosed statement.  Which defeats the ability to merge conditional attributes, when an 'attribute' is the condition.

This add difficulty to programmatically skipping unset variables.
It may also be a security concern:

$this->mergeWhen(Auth::user()->isAdmin(), ['this is executed for nonAdmin users too']);

Steps To Reproduce:
Below are two (2) examples.
Call to a member function toDateTimeString() on null
return [
    'href' => $this->href,
    'validFor' => [
        'startDateTime' => $this->created_at->toDateTimeString(),
        $this->mergeWhen(false, [
            'endDateTime' => $this->deleted_at->toDateTimeString(),
        ]),
    ],
];

Undefined variable: foo
unset($foo);  // isset($foo) = false
return [
    'a' => 'b',
    'c' => 'e',
    $this->mergeWhen(isset($foo), [
        'f' => $foo,
    ]),
];

I want to merge an array that uses many variables. Do I really have to pass them all into the closure with a use statement?


Documentation: adding explanation on how to add custom pickling of Pydantic BaseModels

OS: Windows
Python version: 3.7.5 (default, Oct 31 2019, 15:18:51) [MSC v.1916 64 bit (AMD64)]
Pydantic version : 1.2

Feature Request
In my project, I needed to serialize an object using pickle, due to some problems with pickle's basic implementation with that particular object, I needed to customize the pickling process. Typically, this happens simply by implementing __getstate__(self) and __setstate__(self, state). Sadly, at first, it didn't work and I didn't understand why. After searching through Pydantic's source code I saw that pickling was implemented as follows:
    def __getstate__(self) -> 'DictAny':
        return {'__dict__': self.__dict__, '__fields_set__': self.__fields_set__}

    def __setstate__(self, state: 'DictAny') -> None:
        object.__setattr__(self, '__dict__', state['__dict__'])
        object.__setattr__(self, '__fields_set__', state['__fields_set__'])

I then changed my own implementation to fit this and it worked like a charm.
Hence my request. Should this be mentioned in any way in the documentation? So that others who may want to implement custom __getstate__(self) and __setstate__(self, state) don't run into the same errors I did?

Absolutely, pr welcome.

Hi - I just stumbled on this after spending a few hours trying to solve the exact same problem.  I found the docs fairly useless when it came to using pickle.   In my use case, I have a couple of fields that have to be excluded from the dumps, and reconstructed in loads.  I'd recommend adding something to do the docs.

+1 for this one


How to train pretrained Llama 2 adapter model

- I have a pretrained adapter model using the following args
#CUDA_VISIBLE_DEVICES=0 python ./src/train_bash.py     --stage pt     --model_name_or_path /hdd-6tb/nhanv/LLM-storage/LLM-models/ELYZA-japanese-Llama-2-7b     --do_train     --dataset oyo_data     --template llama2     --finetuning_type lora     --lora_target q_proj,v_proj     --output_dir ./runs/afternoon12_9     --overwrite_cache     --per_device_train_batch_size 4     --gradient_accumulation_steps 4     --lr_scheduler_type cosine     --logging_steps 10     --save_steps 1000     --learning_rate 5e-5     --num_train_epochs 5.0     --plot_loss     --fp16
- Now i want to supervised fine-tune on the model i just pretrain. I use the following
CUDA_VISIBLE_DEVICES=0 python src/train_bash.py \     --stage sft \     --model_name_or_path /home/ntq/vuhuy/NLP/oyo_llama2/LLaMA-Efficient-Tuning/runs/afternoon12_9 \     --do_train \     --dataset oyo_data_sft \     --template llama2 \     --finetuning_type lora \     --lora_target q_proj,v_proj \     --output_dir ./runs/sft_afternoon18_9 \     --overwrite_cache \     --per_device_train_batch_size 4 \     --gradient_accumulation_steps 4 \     --lr_scheduler_type cosine \     --logging_steps 10 \     --save_steps 1000 \     --learning_rate 5e-5 \     --num_train_epochs 7.0 \     --plot_loss \     --fp16
- But it return error
OSError: /home/ntq/vuhuy/NLP/oyo_llama2/LLaMA-Efficient-Tuning/runs/afternoon12_9 does not appear to have a file named config.json. Checkout 'https://huggingface.co//home/ntq/vuhuy/NLP/oyo_llama2/LLaMA-Efficient-Tuning/runs/afternoon12_9/main' for available files.
Does i need to merge the adapter model with the base model in order to do sft training?

use export_model.py to merge the LoRA adapters into the base model.

@huyhuyvu01 Is your loss converging? I have trained on my custom data. My loss is oscillating between 1.5 to 1.6. What could be the possible reason for that?

use export_model.py to merge the LoRA adapters into the base model.
Thanks for the answer, i was able to finetune the model after merging them

@huyhuyvu01 Is your loss converging? I have trained on my custom data. My loss is oscillating between 1.5 to 1.6. What could be the possible reason for that?

IDK, but i guess check your data then, i pretrain my LLama2 with 1000 sample and finetune it with 10k question/answer pair. Here my loss for both pretrain and finetune, hope it help u.

The loss value is acceptable.

use export_model.py to merge the LoRA adapters into the base model.

Sorry to interrpt,but may I ask why is this export_model.py in removed? I can find find it in older releases but not now

use llamafactory-cli export


Updated Spring-boot-starter-parent

Updated Spring-boot-starter-parent version
6 https://github.com/Mom0aut/DynamicRelations/issues/6#issue-1492783596
Checklist before requesting a review

[ ] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.
[ ] I have made corresponding changes to the documentation
[ ] I used the given Project Style Guide

Thank you for your contribution :smile: i need to check the action yaml file before approving the pr.

Thank you :)


[ 问题咨询 ]请简要描述

Archery-1.8.4 install reture this error? can tell me why?
[root@iZ7xvashxajsz32bildmiwZ docker-compose]# docker exec -ti archery /bin/bash
[root@105a6d9c3232 archery]# cd /opt/archery
[root@105a6d9c3232 archery]# source /opt/venv4archery/bin/activate             l
/opt/venv4archery/lib/python3.9/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
Traceback (most recent call last):
File "/opt/archery/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/init.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 368, in execute
self.check()
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/management/base.py", line 392, in check
all_issues = checks.run_checks(
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/opt/venv4archery/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 593, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/opt/venv4archery/lib/python3.9/site-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/resolvers.py", line 586, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/archery/urls.py", line 7, in
path('api/', include(('sql_api.urls', 'sql_api'), namespace="sql_api")),
File "/opt/venv4archery/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/local/python3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/opt/archery/sql_api/urls.py", line 7, in
from . import api_user, api_instance, api_workflow
File "/opt/archery/sql_api/api_user.py", line 6, in
from .pagination import CustomizedPagination
File "/opt/archery/sql_api/pagination.py", line 7, in
class CustomizedPagination(PageNumberPagination):
File "/opt/archery/sql_api/pagination.py", line 11, in CustomizedPagination
page_size = settings.REST_FRAMEWORK['PAGE_SIZE'] if 'PAGE_SIZE' in settings.REST_FRAMEWORK.keys() else 20
File "/opt/venv4archery/lib/python3.9/site-packages/django/conf/init.py", line 83, in getattr
val = getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'REST_FRAMEWORK'

修改一下settings.py https://github.com/hhyo/Archery/issues/1489#issuecomment-1118129642


Project Structure

Setting up the project structure under symfony 3.4.

1 hour.

Setting up is terminated.


File names can't start with non-alpha

A tutor Rmd file whose name begins with a non-alphabetic character, e.g. 05-collection.Rmd, will run only if there are no graphics chunks in the document. This behavior is inherited from shiny::add_resource_path. Files without graphics chunks work find, even with names starting with a numeral.
The obvious quick fix is not to start tutor Rmd file names with a non-alphabetic character.  (This is a moral conflict with the naming style encouraged by bookdown, but not a technical conflict.) Still, the start-with-alphabetical-character-if-graphics-chunk is perhaps unnecessarily obscure.

@jjallaire I don't know of any technical reason why it requires a non-numeric first character -- perhaps @jcheng5 knows?

I don't think there's a good reason. I can only imagine I used typical variable name rules. Feel free to PR

PR here: https://github.com/rstudio/shiny/pull/1529


Injecting chart containers

Hi I'm having a little trouble picking up a directive in angular: when I try to inject it using this function, does it require me to already have the angular chart tag on the page or is there a way around this to inject the data in?
angular.element( 		document.getElementById('chart-container-inject') 	) 	.prepend( $compile( 		'<angular-chart options="options" style="height: 500px"></angular-chart>' 	)( $scope ) );
Lucas

Hey @NastyLucas,
perhaps you can explain a little bit more what you want to archive by injecting the chart this way. What worked for me was the following setup:
$scope.options = someOptions;
$compile(
  angular
    .element( document.getElementById('chart-container-inject'))
    .prepend('<angular-chart options="options" style="height: 500px"></angular-chart>')
)( $scope );

Oh wow thank you very much I hadn't thought of that approach, I'd been tearing my hair out trying to get that to work properly so thanks for the reply!

No problem.


[chainerx] update Amin op registration

The build is crashing due https://github.com/chainer/chainer/blob/1e3b666a2eb3c7d327ed059188a086313423da8f/chainerx_cc/chainerx/cuda/cuda_device/reduction.cu#L149
and
https://github.com/chainer/chainer/blob/1e3b666a2eb3c7d327ed059188a086313423da8f/chainerx_cc/chainerx/native/native_device/reduction.cc#L126

Should be fixed https://github.com/chainer/chainer/pull/6922.

Should be fixed now that https://github.com/chainer/chainer/pull/6922 is merged.


Drag Source View vanished

Hi , I am using this control in UICollectionview . When i drag the uicollectionview cell into target area the drag source got vanished instantly from my uicollectionview at that time but when i scroll it up and down back again the content came again .Can you please hep me in this regard. Thanks

Hi
This sounds like the items are not removed from the collection views data source. Please have a look at DNDTableViewSampleViewController.m, specifically lines 87/88 that remove the item from the table source. It's for UITableView but the concepts are very similar.
Cheers!

Closing due to inactivity. If the issue persists, please reopen and provide some more context


update zh_TW.json

新增修改繁體中文語言包
{PR title}

Description
close #{bug number}

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@adianjan

请签署 CLA
项目 localization 里已经有一个 zh_TW.json 了，请更新这个资源文件即可

@adianjan 自动关闭


Update

There is a new update. Can we update without fear??? Any issue report?

This may sound like a silly question, but...  how do I update?  Do I install it over itself, or is there another way?  I've searched the docs but can't find info on how to update to a new version.

Same as any Python package. pip install --upgrade ouimeaux.
On Wed, May 6, 2015 at 11:19 PM, 2oh1<EMAIL_ADDRESS>wrote:

This may sound like a silly question, but...  how do I update?  Do I install it over itself, or is there another way?  I've searched the docs but can't find info on how to update to a new version.
Reply to this email directly or view it on GitHub:
https://github.com/iancmcc/ouimeaux/issues/90#issuecomment-99708050

I think @eprompc means that there is a firmware update available for the wemo devices. My phone is giving me the option to update. I haven't updated and don't plan to; I haven't found any docs on downgrading from a bad wemo update that breaks this library.