Can't import @page instance inside custom component with native ionic2 directives

Short description of the problem:
I create a self made navbar component wich include ionic2 components (app/components/navigation/top-navbar.component.ts).
It import for itself other pages (SettingsPage) and navigate to it by navCtrl.setRoot(SettingsPage)
Also this navbar present on all pages. On HomePage (I try navigate from it) and on SettingsPage (I try navigate to it).
When I try to navigate, I receive an error
EXCEPTION: Unexpected directive value 'undefined' on the View of component 'SettingsPage'

What behavior are you expecting?
I want to navigate through pages with navbar
Steps to reproduce:

git clone https://github.com/EugeneSnihovsky/ionic2-for-errors.git
cd ionic2-for-errors
npm install
ionic serve
In opened browser try to navigate with any link
Errors append in your browser console

Navbar code
'use strict';

import {NavbarTemplate, Navbar, Item, Icon, Segment, SegmentButton, Menu, MenuToggle, MenuClose, NavController, NavParams} from 'ionic-framework/ionic';
import {Component} from 'angular2/core';

import {SettingsPage} from '../../main/settings/settings.page';

@Component({
    selector: 'top-navbar',
    templateUrl: 'build/components/navigation/top-navbar/top-navbar.html',
    directives: [NavbarTemplate, Navbar, Item, Icon, Segment, SegmentButton, Menu, MenuToggle, MenuClose]
})

export class TopNavBarComponent {
    private navCtrl: any;
    private navParams: any;

    constructor(navCtrl: NavController, navParams: NavParams) {
        var self = this;
        self.navCtrl = navCtrl;
        self.navParams = navParams;
    }

    openPage(name) {
        var self = this;

        self.navCtrl.setRoot(SettingsPage);
    }
}

Ionic Version: 2.x
Browser & Operating System: Chrome
Run ionic info from terminal/cmd prompt:
Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
OS: Distributor ID:     LinuxMint Description:  Linux Mint 17.2 Rafaela
Node Version: v5.3.0

Hey there, thanks for providing the repo. It looks like there is a circular reference between your component and the SettingsPage:
https://github.com/EugeneSnihovsky/ionic2-for-errors/blob/master/app/components/navigation/top-navbar/top-navbar.component.ts#L6
https://github.com/EugeneSnihovsky/ionic2-for-errors/blob/master/app/components/main/settings/settings.page.ts#L5
I believe you can use forwardRef to get around this:
'use strict';
import {forwardRef} from 'angular2/core';
import {Page} from 'ionic-framework/ionic';

import {TopNavBarComponent} from '../../navigation/top-navbar/top-navbar.component';

@Page({
    directives: [forwardRef(() => TopNavBarComponent)],
    templateUrl: 'build/components/main/settings/settings.html'
})

Great! It's working. Thank's a lot for help and sorry for your time wasting for me.

Glad it's working! Not a waste at all :) Going to close this, but let us know if you're still having issues.

Thank you @tlancina.  The forwardRef guidance was extremely helpful.  I don't know how I would have moved on any other way. Working great!


Add gen-sbkeys.bb recipe

Generate keys that can be used to sign EFI binaries.
The keys will be stored in the SBSIGN_KEYS_DIR directory, and if they are already there, new keys will not be generated to keep build reproducibility.
Originally, this change was submitted to meta-arm to enable Secure Boot, but as it's using efitools, it's more appropriate to add it to meta-secure-core.

Hi, I got the following error with default settings:
$ bitbake gen-sbkeys
ERROR: gen-sbkeys-1.0-r0 do_install: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function:
0001:
*** 0002:do_install(d)
0003:
File: '/poky/meta-secure-core/meta-signing-key/recipes-devtools/gen-sbkeys/gen-sbkeys.bb', lineno: 22, function: do_install
0018:python do_install() {
0019:    keys_dir = d.getVar('SBSIGN_KEYS_DIR')
0020:
0021:    keys_to_check = [
*** 0022:        keys_dir + "/PK.esl",
0023:        keys_dir + "/KEK.esl",
0024:        keys_dir + "/db.esl",
0025:        keys_dir + "/dbx.esl",
0026:        keys_dir + "/db.key",
Exception: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Is extra configuration required in conf/local.conf ?

Hi,

Hi, I got the following error if the SBSIGN_KEYS_DIR is not set. You should handle this error condition.

I appreciate that you took up this case. Addressing this condition by skipping the keys generation in case SBSIGN_KEYS_DIR is not set.


Missing some translations for French language

Expected behavior:
I would expect to see the following translation keys in the French language:
admin.customForms.labels.expenseTo
admin.customForms.labels.labFormType
admin.customForms.labels.opdReportFormType
admin.customForms.labels.operativePlanFormType
admin.customForms.labels.otherOptionLabel
admin.customForms.labels.patientFormType
admin.customForms.labels.socialworkFormType
admin.customForms.labels.visitFormType
admin.header.editTitle
admin.header.facilityName
admin.lookup.incidentDepartments
admin.lookup.titles.deleteLookupValue
admin.lookup.titles.deleteLookupValue
admin.roles.capability.addSocialwork
admin.workflow.clinicPrepaymentLabel
admin.workflow.followupPrepaymentLabel
admin.workflow.outpatientImagingLabel
admin.workflow.outpatientLabLabel
admin.workflow.outpatientMedicationLabel
admin.workflow.titles.optionsSaved
admin.workflow.workflowLabel
appointments.calendarTitle
appointments.titles.theaterSchedule
billing.buttons.addOverride
billing.labels.actualCharges
billing.messages.flatDiscountMsg
messages.reportError
messages.requiredFieldsCorrectErrors
messages.saveActionException
navigation.subnav.theaterSchedule
patients.labels.patientTypeCharity
reports.titles.newOPDReport
reports.titles.opdReport
visits.buttons.newOPDReport
Actual behavior:
These labels are currently missing, therefore their values are not visible in the UI
Steps to reproduce:
Visit "Scheduling => Theater Schedule" link in the sidebar navigation.  You'll see a page title in English, but none if you switch your default language to French and refresh the page.
Screenshots (if applicable):
"Theater Schedule" screen in English (note- contains page title)

"Theater Schedule" screen in French (note the missing page title)

OS and Browser:
n/a- occurs in all operating systems and browsers

Resolved by #1104


jest-haste-map: duplicate manual mock found

I'm starting to see this when I run tests:
`$ yarn test
yarn test v0.21.2
$ cross-env NODE_ENV=test jest
jest-haste-map: duplicate manual mock found:
Module name: headingProps.mocks
Duplicate Mock path: C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Heading_tests__mocks_\headingProps.mocks.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Heading_tests__mocks_\headingProps.mocks.js
Please delete one of the following two files:
C:\Git\scalable-react-typescript-boilerplate\src\client\components\Heading_tests__mocks_\headingProps.mocks.ts
C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Heading_tests__mocks_\headingProps.mocks.js
jest-haste-map: duplicate manual mock found:
Module name: headlineProps.mocks
Duplicate Mock path: C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Headline_tests__mocks_\headlineProps.mocks.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Headline_tests__mocks_\headlineProps.mocks.js
Please delete one of the following two files:
C:\Git\scalable-react-typescript-boilerplate\src\client\components\Headline_tests__mocks_\headlineProps.mocks.ts
C:\Git\scalable-react-typescript-boilerplate\build\src\client\components\Headline_tests__mocks_\headlineProps.mocks.js
`

Thanks for catching this!  The problem was that a few of the mocks were being transpiled by ts.  This is now fixed.


FAQ

Collect some FAQ here.

Vite Build Support

Currently only support vite dev for development, you should still use yarn build(vue-cli-service build)
But you can use BUILD=true MODERN=true yarn vite to invoke vite build(no legacy and use esbuild minify, not recommended, please use yarn build instead)

How to completely migrate to vite in the future

if this plugin help you fix error and use vite successfully, it is not too hard to migrate, compared to directly migrate from vue-cli or others
safely replace all VUE_APP_ to VITE_ code (e.g. .env.*)
safely replace all process.env.VUE_APP_ to import.meta.env.VITE_ in client-side code.
safely copy ./node_modules/vite-plugin-vue-cli/config/index.ts to $projectRoot/vite.config.ts and install corresponding vite-plugin list by it
add npm scripts dev: vite & build: vite build, remove other vue-cli scripts, like serve
migrate all require.context to import.meta.glob/globEager
remove all webpack plugins/vue-cli plugins and migrate all vue.config.js setted chainWebpack/configureWebpack to corresponding vite plugin or options
deps & devDeps cleanup
other cleanup and tests

Some module response 404 not found

if not compiler errors, maybe you import vue file without .vue ext, added it and it is required for vite and recommended for vue-cli (and required in vue-cli 5.x)

Custom Style missing fonts

e.g. element-plus: https://element-plus.gitee.io/#/en-US/component/custom-theme

/* theme color */
$--color-primary: teal;

/* icon font path, required */
$--font-path: '~element-plus/lib/theme-chalk/fonts'; // changed to 'path/to/node_modules/element-plus/lib/theme-chalk/fonts;' (TOOD: can vite support it ?)

@import "~element-plus/packages/theme-chalk/src/index"; // changed to 'path/to/node_modules/element-plus/packages/theme-chalk/src/index' (TODO: maybe have workaround)

JSX support

see options above, vitePluginVue2Options: { jsx: true }
you may also see that React is not defined, it is you use jsx without set vitePluginVue2Options: { jsx: true }

Vue3 support

currently only support Vue2.x, since Vue3.x you can use vite directly

When the version of @vue/cli is 4.1.13, the following error will be thrown after installing vue-cli-plugin-vite and starting it through the yarn vite command:
Uncaught TypeError: Cannot destructure property 'options' of 'inject(...)' as it is undefined.
    at setup (vue-router.esm-bundler.js:2119)
    at callWithErrorHandling (runtime-core.esm-bundler.js?v=1c50029a:154)
    at setupStatefulComponent (runtime-core.esm-bundler.js?v=1c50029a:6542)
    at setupComponent (runtime-core.esm-bundler.js?v=1c50029a:6503)
    at mountComponent (runtime-core.esm-bundler.js?v=1c50029a:4206)
    at processComponent (runtime-core.esm-bundler.js?v=1c50029a:4182)
    at patch (runtime-core.esm-bundler.js?v=1c50029a:3791)
    at mountChildren (runtime-core.esm-bundler.js?v=1c50029a:3975)
    at mountElement (runtime-core.esm-bundler.js?v=1c50029a:3896)
    at processElement (runtime-core.esm-bundler.js?v=1c50029a:3868)


Common-problem.md

https://github.com/bagisto/bagisto/pull/3152# issue in php artisan migrate command

Hi @simran2000
Please make sure your changes are related to social login


Inspect process uses large amounts of memory w/ DockerSandbox, likely because large exec() outputs are loaded into memory

I've been running evals which have been falling over due to OOM, even after changes introduced by #781. Here is an example, where you see a very expensive agent call  python3 /root/solve.py (using about 40GB of memory), and also an inspect process (/home/ubuntu/agent_framework/more_datasets_sweep_copy.py) using about 20GB of memory (this is a big machine):

The agent process using so much memory isn't a bug in inspect per se (although unfortunate, and should be reduced by container-specific memory limits), but the inspect process doing so doesn't seem good. This is likely due to (as craig mentions in #781) the current DockerSandbox does not stream its outputs but instead writes the full stdout to memory, and only then checks its not too big after the command has finished - so if the agent is doing something wild w/ a very large output command, this could fill up the inspect process' memory.
The likely fix here is to have subprocess() stream, and check tool output limits against the streaming output.  For a reproduction I would guess that a while loop printing to stdout would repro the problem.
Another odd thing is that inspect's timeout feature doesn't kill this process even though its quite long running. @jjallaire thinks this just depends on the semantics of cancelling an asyncio task, if the subprocesses get killed.

Resolved with https://github.com/UKGovernmentBEIS/inspect_ai/pull/925


Typo in readme

“ This method will be the primary supported method, since it is inferior to regular pattern matching”
Shouldn’t this be superior?

Yep. My bad.

Fixed!


PatchTST does not yet support historical exogenous variables

What happened + What you expected to happen
PatchTST does not support covariate-assisted prediction, which I find unfortunate to be a significant reduction in prediction performance
Versions / Dependencies
neuralforecast 1.6.4
Reproduction script
952         if hist_exog_list is not None:

--> 953             raise Exception(
954                 "PatchTST does not yet support historical exogenous variables"
955             )
Issue Severity
None

The same goes for futr_exogenous_list. According to the documentation here, it appears that PatchTST supports futr_exogenous_list. However, when I attempt to run the model with futr_exogenous_list, I encounter the following error:
Exception: PatchTST does not yet support future exogenous variables

I'm having the same problem, obviously the parameter is there but unfortunately it's telling me it's not supported. “PatchTST does not yet support historical exogenous variables”

PatchTST (the architecture) does not support additional exogenous inputs afaik, that's why the exception is raised. Usually if it is not supported by the original architecture we will not include it, as it may require us to substantially deviate from the original work (adding exogenous to an architecture is quite tricky).
There are many other options that may provide equal or better forecasting performance at lower computational cost if you need to use exogenous variables, e.g. NHITS, TSMixerx, BiTCN.
Hope this helps.

Hello, sir. It seems that patchtst is inherently multivariate. Additionally, patchtst appears to perform well with short time series, as indicated by tslib.

Hello, sir. It seems that patchtst is inherently multivariate. Additionally, patchtst appears to perform well with short time series, as indicated by tslib.

This doesn't relate to the issue at hand: multivariate/univariate has nothing to do with a model being able to handle exogenous covariates.


Gist Token Isssue

Hey so ive got another issue. At the end its saying Error: You need to set token before by setToken() method. Ive set the token and allowed Gist, do I need to allow anything else for that token?

Dont worry solved this


Cannot Log in "The phone number is not registered"

Hello, can you help me what I'm doing wrong? It's first time I log in.
This error originated from a custom integration.
Logger: custom_components.petkit
Source: custom_components/petkit/util.py:41
Integration: PetKit (documentation, issues)
Unknown PetKit Error: PetKit Error 125: The phone number is not registered

What country are you located in?

Europe/Czech Republic

Related to #28.
PetKit changed the API and I am currently working on a fix.


Showing Errors in Markup if any

We currently have a way to check whether the markup is valid or not, but that can be extended to having error messages that is understandable on where is the error is.
I have something working https://github.com/ManimCommunity/ManimPango/blob/cf13f34d4eec59e54143900e0a545d9c6ca0052f/manimpango/layout/utils.pyx which working on #48

@PhilippImhof what do you think about this? Can we break the API and release a major version(v0.3.0) or add an auxiliary function that manim will call if the MarkupUtils.validate fails?

I think we can safely assume that ManimPango is almost exclusively used by Manim, so breaking the API should not be a big deal. And among 0.x versions, people generally know breaking changes are likely to happen. I would go for it.


Docker TLS support

Docker TLS support

LGTM!
Thanks @kmtong :)
cc @vdemeester

LGTM 🐍
/me not fan of the merge commit but meh :wink:


Bot pausing other tasks while running remindme.

The remindme functionality has to run in the background.

Ran the functionality using tasks.loop.


[chip-test, flash_ctrl] chip_sw_flash_init

Test point name
chip_sw_flash_init
Host side component
Rust? No
Opentitantool infrastructure implemented
Yes
Silicon Validation (SiVal)
Yes
Emulation targets

[x] None
[ ] CW310
[ ] Hyperdebug + CW310

Contact person
Checklist
Please fill out this checklist as items are completed. Link to PRs and issues as appropriate.

[ ] Check if existing test covers most or all of this testpoint (if so, either extend said test to cover all points, or skip the next 3 checkboxes)
[x] Device-side (C) component developed
[ ] Bazel build rules developed
[ ] Host-side component developed
[x] Test added to dvsim nightly regression (and passing at time of checking)
[ ] For SiVal test cases, test is running relevant FPGA or silicon regression

This test is not sival test.


Can it use a USB microphone and 3.5mm audio to speak?

Can it  work without  Voice HAT device? For example use a USB microphone and 3.5mm audio to speak?  And why not ?

Yes, it can, as long as you have ALSA configured correctly. Here's a post about configuring ALSA for a USB microphone with the built-in audio output.
You can test your configuration with the following commands:
# say "Testing, 1 2 3" while this command is recording
python3 src/audio.py dump test.wav -d 3
python3 src/audio.py play test.wav

This will record for three seconds, then play what it heard. You should hear your voice back (although it might be very quiet, depending on your microphone/speaker volume settings).


Add credits screen

To acknowledge the source of the images and inspiration

duly added. Thank you!

implemented


To resolve this issue, provide the intermediate and root certificates by passing the certificate bundle file's path to the ca_certs key in the pluginConfig

Hi,
I am trying out Notary.
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/container-registry/container-registry-tutorial-sign-build-push.md
following the link
when I run this command
notation sign --signature-format cose --key $KEY_NAME $IMAGE
I get the below error.
Error: generate-signature command failed: VALIDATION_ERROR: Failed to build the X509 chain up to the root certificate. The provided certificate bundle either does not match or does not contain enough certificates to build a complete chain. To resolve this issue, provide the intermediate and root certificates by passing the certificate bundle file's path to the ca_certs key in the pluginConfig
can you please let me know how to fix it. I don't see pluginConfig in
/root/.config/notation

@lohithabc Thanks for reporting this issue. This issue is related to Notation CLI and Notation plugin, so would you mind moving this issue to Notationrepo?
We also need more information from you:

Notation and Notation AKV plugin version

We had similar bug before, so please make sure you are using the latest version of Notation AKV plugin


Adapting partial code(file name start with A) to the sonar cloud rules

Adapting partial code(file name start with A) to the sonar cloud rules

If runCommand is not called, process may be null , use !(p instanceof Process) to check it.

need recheck or update？

please solve conflicting files ArrayUtils.java

Codecov Report

Merging #1910 into dev will increase coverage by 2.87%.
The diff coverage is 12.5%.

@@             Coverage Diff              @@
##                dev    #1910      +/-   ##
============================================
+ Coverage     24.31%   27.19%   +2.87%
- Complexity        0     1383    +1383
============================================
  Files           298      312      +14
  Lines         14388    16638    +2250
  Branches       2371     2045     -326
============================================
+ Hits           3498     4524    +1026
- Misses        10461    11637    +1176
- Partials        429      477      +48

Impacted Files
Coverage Δ
Complexity Δ

...java/org/apache/dolphinscheduler/dao/AlertDao.java
1.72% <ø> (-1.67%)
1 <0> (+1)

.../org/apache/dolphinscheduler/dao/entity/Alert.java
47.05% <ø> (+38.36%)
26 <0> (+26)
:arrow_up:

...che/dolphinscheduler/api/ApiApplicationServer.java
33.33% <ø> (+33.33%)
1 <0> (+1)
:arrow_up:

...olphinscheduler/api/service/AlertGroupService.java
88.88% <ø> (+0.12%)
17 <0> (+17)
:arrow_up:

...lphinscheduler/common/task/AbstractParameters.java
9.09% <ø> (+9.09%)
1 <0> (+1)
:arrow_up:

...e/dolphinscheduler/common/zk/AbstractZKClient.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...er/server/worker/task/AbstractCommandExecutor.java
40.1% <0%> (-2.4%)
14 <0> (+14)

...he/dolphinscheduler/server/utils/AlertManager.java
2.97% <0%> (ø)
2 <0> (+2)
:arrow_up:

...org/apache/dolphinscheduler/alert/AlertServer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...scheduler/api/controller/AlertGroupController.java
4.08% <0%> (+1.99%)
2 <0> (+2)
:arrow_up:

... and 284 more

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 4a25127...46a1cdd. Read the comment docs.


Identity/account app prefix

This PR will allow the identity webapp to live at a path prefix when deployed. This is probably account so that the app is accessed at wellcome.org/account, but it can be any value, set by the environment variable CONTEXT_PATH, and this env var can be undefined in local development.
These changes depend on changes in #6029. That base branch is used here to aid diffing and review, but this PR can be merged to master once #6029 is accepted.

Replicated without conflict in #6035

Replicated without conflict in #6035


[multistage] [bugfix] Fix sending mailbox object leak

Fix sending mailbox object leak by moving the sending mailbox object into exchange, where the ownership of the object should lie.
This PR also changes the implementation of inMemoryMailbox a bit to be more aligned with GrpcMailbox.

Codecov Report

Merging #10190 (0a2453c) into master (76a38bf) will decrease coverage by 56.70%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #10190       +/-   ##
=============================================
- Coverage     70.40%   13.71%   -56.70%
+ Complexity     5756      178     -5578
=============================================
  Files          2016     1961       -55
  Lines        109100   106615     -2485
  Branches      16562    16271      -291
=============================================
- Hits          76815    14624    -62191
- Misses        26911    90841    +63930
+ Partials       5374     1150     -4224

Flag
Coverage Δ

integration1
?

integration2
?

unittests1
?

unittests2
13.71% <0.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...apache/pinot/query/mailbox/GrpcMailboxService.java
0.00% <0.00%> (-94.74%)
:arrow_down:

...apache/pinot/query/mailbox/GrpcSendingMailbox.java
0.00% <0.00%> (-82.36%)
:arrow_down:

...he/pinot/query/mailbox/InMemoryMailboxService.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...he/pinot/query/mailbox/InMemorySendingMailbox.java
0.00% <0.00%> (-61.54%)
:arrow_down:

...query/runtime/operator/exchange/BlockExchange.java
0.00% <0.00%> (-94.12%)
:arrow_down:

...y/runtime/operator/exchange/BroadcastExchange.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../query/runtime/operator/exchange/HashExchange.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...uery/runtime/operator/exchange/RandomExchange.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...y/runtime/operator/exchange/SingletonExchange.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/org/apache/pinot/sql/FilterKind.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 1595 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xiangfu0


Please revert to original concept list, the list is again corrupted!

I just wanted to add the concept list for the TULED paper to concepticon, but I cannot do so, if you constantly keep messing up the standards we use to display concepts. Please, really, do not replace etc/concepts.tsv completely with new files every time, especially not with old files, as this makes it impossible for us to keep track with the data. Instead, run cldfbench lexibank.makecldf tuled every time after doing something and do not upload data if the code fails.

@StasReichert bitte!
@LinguList was the deletion from my account?

@StasReichert bitte!
@LinguList was the deletion from my account?

Deletion was done by Stas' account.

Deletion was done by Stas' account.


Total successful authentications using local authentication(email registration)

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe how to intend to go about adding this feature
Describe the approach you will take in adding this feature.
Additional context
Add any other context or screenshots about the feature request here.

working on this


feat: add authenticators to proposals

It will be used to set authenticators when voting and creating a proposal and to detect if doing those is supported on UI or not.

@Sekhmet Authenticators aren't stored at the proposal level in the contracts, the valid authenticators are always the current space whitelisted authenticators. This is also the case for voting strategies currently but it will change soon, voting strategies will be stored at the proposal level on the contract to make it possible to change voting strategies without breaking how voting power works on previous proposals (this is the reason we store strategies for proposals on the API). The issue with storing authenticators at the proposal level is that if the space add or remove an authenticator, the auths stored on the proposals won't change on the API and the UI may trigger user to cast a vote with an invalid auth.

Maybe a more elegant solution would be to support lists with Checkpoint and do query like this:
query {
    proposals {
        title
        space: {
            authenticators
        }
    }
}

See more context here: https://github.com/snapshot-labs/checkpoint/issues/12

That makes sense, wasn't aware of that distinction between strategies and authenticators. Will need to dig into it more as I'm not too familiar with GraphQL yet to implement deep list queries.

Replaced by https://github.com/snapshot-labs/sx-api/pull/152


Write swagger spec for imports resource

This task is to write a swagger specification that reflects the decision made in the ADR regarding imports.
Some things that need to be included in the resource for uploads:

created/modified by
create/modified time
upload status
uploaded files: an array of URIs that is expected to vary based on upload type (e.g. s3:// dropbox:// http:// sftp://)
upload type: dropbox, local, s3, etc.
metadata: json structure that allows users to include arbitrary metadata for a file uploaded
file type: geotiff, geotiffs with metadata
datasource: I think it makes sense to track how we can go from scenes => geotiff based on datasource, so someone importing planet data we can have an association that can do the import?

I think that is enough to get us started.

Consult the ADR for support here: https://github.com/azavea/raster-foundry/blob/develop/docs/swagger/spec.yml


Kconfig v6

v2:

get rid of "rename test programs" patches;
get rid of "suite test simplification" patches;
change the resource lookup approach;
split up the Kconfig and Makefiles;
put the build system files together in tools/bs/;
added README.kconfig;
build in a mirrored sysroot tree;
added patch removing autotools;

v3:

make sure we [re]generate .h files if .config is newer;
make sure we [re]compile libs and modules if .config is newer;
make sure we [re]compile libs and modules if Makefiles are newer;
include tools/kconfig/* on its own patch and make the world a better place to live on;
introduced distclean target;
new patch: util/resolver-conffile: guess install root dir;
fixed issue with make check failure;
fixed issue with module's dest dir composition;
added check-valgrind target;
added check-fbp target;
added check-fbp-valgrind target - involved slightly changing the run script;
moved the autotools removal to "kconfig usage" patch - as suggested by Caio;
README.kconfig - fixed typo, update instruction command, an orthography;
autoconf.py:

added python module checks - now we fail if jsonschema is not found;

changed pkg's dictionary indentation as suggested by Caio;
fixed unlink (unlink also output file on header_deps tests) - as suggested by Glima;
renamed the script to dependency-resolver.py to avoid further misleading;

renamed tools/bs/ to tools/build/ as suggested by Caio;
reset default value to flow modules as suggested by Anselmo;
added converage target;
adapted the code to use the new description generator;
added pin-mux support to kconfig;
new patch: "pin-mux: guess install root dir";
added USE_{DEPENDENCY} support so we use its cflags only when required;
dropped patch: "sol-platform-impl-linux-micro.c: include micro builtins only if platform is linux-micro";
dropped PLATFORM_LINUX, now we have just PLATFORM_LINUX_MICRO;

v4:

upstream rebase;
small optimizations;
removed patch "calamari.c: don't use relative include", since it doesn't apply any more;
updated Makefile.md;
added "maximum log level" support;

v5:

s/path/install_rootdir/ on error checking for sol_util_get_rootdir() in _resolver_conffile_get_module() as noticed by @glima;
fixed orthography issue on comment in Makefile - as suggested by @glima;
changed first run warning notice - as suggested by @glima;
removed a left "p" char in README.md - as noticed by @glima;
fixed a type in src/lib/common/Kconfig - s/critial/critical/ - as noticed by @glima;
check-valgrind: added missing valgrind tools (helgrind, drd, exp-sgcheck) - as suggested by @glima;
check-* - spawn multiple threads, one for each test;
fixed issue on sol_util_get_rootdir() by simply assuming / when not on builddir instead of assuming CONFIG_PREFIX - pointed by @ibriano;
upstream rebase;

v6:

strndupa instead of strndup - https://github.com/dorileo/soletta/commit/a827bc9520b9f0943782130f35200779d5ecbd53#commitcomment-11844877

All major issues seem to be gone. :ok:

Oh, and remember to double check make check-fbp-valgrind rule.

Please, add the license header where it is necessary.
The main targets worked well in my tests, I vote to merge it.

LAND PATCH AND GO HOME

@anselmolsm I've just added the license headers in my local commits, @glima patch coming  to trunk soon :)

heeere wee gooo.... just pushed kconfig... be happy - or not;


Selecting an assistant from "My Assistant" from Edit Assistant page launches a Create new assistant page.

Electron build - 8bc816e8
Steps to reproduce the problem:

Edit any assistant.

On the this page , go to the Menu option list and pick an assistant from "My Assistant" list

This results in launching a create new assistant page.

Expected Behavior:
This should take us to the Edit view of the selected assistant.

Tested with build - f8cb3bd9
This issue is not seen anymore


Theme voting, please log in

Erkberg (@erkberg)
posted an hour ago
http://imgur.com/a/tDnsq
“Please log in” seems like a really interesting theme. It’s not limiting in any mechanical or narrative way and just immediately gives me a plethora of ideas. Also, it’s the only theme I have never seen in any LD voting round before, which is definitely a big plus.

Please log in is styled the same as the themes

Was fixed by #721 . The login message was wrapped in


Question - How best to batch / bulk update pre-existing items or add new items to a data model?

Environment information
System:
  OS: macOS 14.0
  CPU: (10) arm64 Apple M1 Pro
  Memory: 180.89 MB / 32.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
  Yarn: 1.22.22 - ~/.nvm/versions/node/v18.16.0/bin/yarn
  npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 1.0.2
  @aws-amplify/backend-cli: 1.0.3
  aws-amplify: 6.3.4
  aws-cdk: 2.143.1
  aws-cdk-lib: 2.143.1
  typescript: 5.4.5
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description
I have setup a data backend running in production and I am now updating a modal, say:
 User: a
    .model({
      id: a.id().required(),
      name: a.string(),
    })
    .authorization((allow) => [allow.owner()]),

I wish to add a new field to that model, say isVerifed which will be a boolean. For all current users this field will not exist and I will need to update those users to be true. How is it best to make this change?  Will amplify-backend provide utils for this such cases to ensure that the data meets the scheme shape I already have. There are obviously a few ways one could try script this or attempt to handle migrations but none feel robust.
Is amplify developing an API for this or what are the best practises in handling these changes?

Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂


txt2image but No correlation between Blender and the result

This time no error message.... however I tried many times and just realized I am not really getting any relationship between Blender original render and the processed via webUI ControlNet. My code might be wrong.
It's almost like the check is turned off when I send the command from Blender via F12. I did get the render before after:

Only if I use the same image render output and do it manually on webUI, it works.

Does the hash matter in the model name? [fef5e48e] is mine. I did not type it on the hardcode python script.

When the txt2img does nothing, I use img2img and getting error:
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/applications.py", line 271, in __call__
    await super().__call__(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/applications.py", line 125, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 321, in img2img
    processed = process_images(p)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/processing.py", line 486, in process_images
    res = process_images_inner(p)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/processing.py", line 577, in process_images_inner
    p.init(p.all_prompts, p.all_seeds, p.all_subseeds)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/processing.py", line 1015, in init
    image = image.to(shared.device)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/sd_hijack_utils.py", line 17, in <lambda>
    setattr(resolved_obj, func_path[-1], lambda *args, **kwargs: self(*args, **kwargs))
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/sd_hijack_utils.py", line 26, in __call__
    return self.__sub_func(self.__orig_func, *args, **kwargs)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/mac_specific.py", line 39, in <lambda>
    CondFunc('torch.Tensor.to', lambda orig_func, self, *args, **kwargs: orig_func(self.contiguous(), *args, **kwargs),
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.

I'm facing the same problem after updating Mikubill/sd-webui-controlnet to latest version last night.
Tried rollbacking to previous commit, eg: f94b453d10c2eb4e3ad57b7cdfdd17e60a557b3e fix it.

Does the hash matter in the model name? [fef5e48e] is mine. I did not type it on the hardcode python script.
Yes, hash matters.
You can get the whole cn models list here:
http://localhost:7860/docs#/default/model_list_controlnet_model_list_get

Maybe related: https://github.com/Mikubill/sd-webui-controlnet/pull/194#issuecomment-1445051668

Maybe related: Mikubill/sd-webui-controlnet#194 (comment)

Thx, didn't know that.


Add enable property to SSL listener on Wfly >= 9

I observed that SSL connections won't work on Wildfly 9, unless the enabled property on the https-listener is set to true.

Any chance you could merge this for me @jairojunior ? Thnx!


add memory & disk alarms in metrics

memory & disk, file descriptors & sockets are really important parameter to be watched/monitored for rabbitmq and it will be much helpful to add these into prometheus metrics.  Use case include using these metrics in alert manager to trigger the alarm accordingly. this is more like an enhancement.
Best,

RAM & CPU & FDs metrics come from prometheus_process_collector. ERTS ports metrics are there too. If you want to have disk metrics for rabbitmq itself, it probably means you are using persistent storages, there are mnesia metrics for that.
No sockets counter though.


When we cancel a long query ... DBeaver looks frozen and never comeback.  We need to kill the process.

Description
When we cancel a long query ... DBeaver looks frozen and never comeback.  We need to kill the process.
And we lost unsaved works by the same.
DBeaver Version
<IP_ADDRESS>312201943
Operating System
Windows 10 Entreprise 22H2
Database and driver
SnowFlake JDBC 3.13.30
Steps to reproduce
Start query that could return 1M of lines ... and press "Cancel" during the launch of query
Additional context
No response

Please try latest DBeaver version 24.1.0

Hello,
I've experienced the same on version 24.1.1, when working with Oracle databases. I know Oracle has limitations on query cancellation, depending on the stage of the query execution. However, the client should always be able to drop the connection and free the resources associated, and return the control to the user interface.
In the first screenshot there is a query that is taking too long.

In the second screenshot, I've pressed "Cancel", the cancel operation has timedout on the server (this is not due to dbEaver, rather to Oracle). And the background task associated is still running, and there is no way to remove it. In addition CPU used by dbEaver rise up to 25% (normally it is between 5-10 %)

And this is the stack trace that appears when "Details" button is pressed on the previous screen:
org.jkiss.dbeaver.model.exec.DBCException: Cancel operation timed out
	at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead$PumpVisualizer.runInUIThread(ResultSetJobDataRead.java:185)
	at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:148)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4058)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3676)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
	at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.start(DBeaverApplication.java:290)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.jkiss.dbeaver.launcher.DBeaverLauncher.invokeFramework(DBeaverLauncher.java:648)
	at org.jkiss.dbeaver.launcher.DBeaverLauncher.basicRun(DBeaverLauncher.java:608)
	at org.jkiss.dbeaver.launcher.DBeaverLauncher.run(DBeaverLauncher.java:1459)

Hi, @RamonCar66
Thank you for providing more information regarding this issue.

It's been a while since no update here. If the issue is still actual please let me know and provide additional information.

Hello,
Behaviour keeps happening version 24.1.3. For me is / maybe OK that Oracle does not cancel the query.
However it seems that dbEaver gets frozen when trying to close the JDBC connection. IMO, dbEaver should be able to create a new JDBC connection and launch the query again on it.

org.jkiss.dbeaver.model.exec.DBCException: Cancel operation timed out
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead$PumpVisualizer.runInUIThread(ResultSetJobDataRead.java:190)
at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:148)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4058)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3676)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.start(DBeaverApplication.java:291)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.jkiss.dbeaver.launcher.DBeaverLauncher.invokeFramework(DBeaverLauncher.java:648)
at org.jkiss.dbeaver.launcher.DBeaverLauncher.basicRun(DBeaverLauncher.java:608)
at org.jkiss.dbeaver.launcher.DBeaverLauncher.run(DBeaverLauncher.java:1459)

In addition, after this error happens, Background tasks seems active:

and uses CPU higher than normal:

Invalidating connections does not solve the problem, the only way is to restart dbEaver.
However, if you know some actions that could workaround the problem, I would appreciate.
Thanks in advance for your help

Thank you for update, @RamonCar66
As a workaround, you can try turning on the following setting Connection configuration->Metadata->Do not read tables information in SQL and data editors. Does it help?

It's been a while since there has been an update here. Please let me know if the issue is still present and provide the answer to the question.


[WIP] Basic completion support for LSP server

[X] I've read the CONTRIBUTING guidelines

This will stack on top of #4384
I accidentally squashed everything together ...
@eed3si9n would you mind to take a look and comment on this approach?
My goal here is to have a "general" and basic support for completions that I will trigger at CLi startup and manage on my own.
More advanced stuff could come later on.

Overtaken by: #4397


collapse using cellranger bam

Hi,
Sorry to bother you again, I wonder if it’s possible that scSNV collapse works the same for Cell Ranger bam? I divided cells in different types based on the Cell Ranger expression profile, so I want SNV matrix with barcodes corrected by Cell Ranger (from Cell Ranger collapsed bam, rather than directly using pile up).
Thanks a lot if you would help!

Hi,
Cell Ranger bam files are not currently supported.  There are certain alignment artifacts emitted by Cell Ranger that need to be corrected for accurate collapsing. If I have time in the future I may try to create a program to collapse reads in an aligner independent way.  The SNV calls from scSNV should be fine to work with Cell Ranger gene expression data.  The results from both tools is quite similar.

Thank you for your timely reply! Actually, I find the barcode number from two tools has a bit difference (scSNV for 1422 cells and Cell Ranger for 1143 cells), is it feasible to directly extract barcodes that intersect with Cell Ranger from the scSNV pile up results? I think the read count or expression assigned to each barcode may be a little different, will that affect the cell type identication?
And also I got another question. I am kind of confused about the output from pileup_barcodes.txt, could you tell me what’s the difference between ‘bases_covered’ and ‘bases’ column? Thank you so much for your help!

barcode	molecules	bases_covered	bases
GATGAGGTCAGCGACC	70003	3409359	6160387
CCATTCGCAAAGAATC	67136	3340206	5578481

If you want to use a different barcode list you can just replace the passed_barcodes.txt.gz list with your own.  It's just an optionally gzipped text file with the following format:  a header line and then one barcode per line.  The pileup command uses this list to choose which barcodes are piledup.
barcode
GAACGGACATCCAACA
ACTGAACAGGAGTAGA
ACAGCCGAGTTACGGG
TTGAACGCAATAGCAA
TCGGTAATCAAGCCTA

The output from the pileup_barcodes.txt command were mostly for debugging.  The bases_covered is the total coverage across all of the bases in the sample and the bases is the total number of bases covered. I think the fields in the header are switched.  I'll put that on my list of things to fix in my next update.  For example, if you take your first line.  There are 3.4M bases covered with 6.16M total coverage.  IF you divide them you'll get that the average coverage across all of the covered bases is approximately 2x.

I think I got what you mean, you really explained it in great detail. Thank you again for your time and patient reply!


editor scroll position on frame select

is messed up, needs investigation. the issue stems from immutable re-rendering and the meshing together of blessed and react blessed'

re-tested - no longer an issue (accidental fix ;)


Add footer

I've added footer in this pull request.

🌋 approved

Thanks for the review, @SAZZAD1Q2.


IsRunningOnAzurePipelines doesn't work for Ubuntu hosted

What You Are Seeing?
IsRunningOnAzurePipelines returns false
What is Expected?
IsRunningOnAzurePipelines returns true
What version of Cake are you using?
Are you running on a 32 or 64 bit system?
What environment are you running on?  Windows? Linux? Mac?
Linux
Are you running on a CI Server?  If so, which one?
Azure Pipelines
How Did You Get This To Happen? (Steps to Reproduce)
https://cakebuild.net/docs/integrations/build-systems/azure-pipelines/
if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
	Information("Running on AzurePipelines");
}

trigger:
- main

pool:
  vmImage: 'ubuntu-latest'

steps:
- task: cake-build.cake.cake-build-task.Cake@2
  displayName: 'Cake build'
  inputs:
    script: build/build.cake
    target: CI

Output Log
Nothing

@matt40k This is by design. IsRunningOnAzurePipelines returns true only when running on the cloud. There's a separate property IsRunningOnAzurePipelinesHosted to detect if you're running on a hosted agent.
Docs:
https://cakebuild.net/api/Cake.Common.Build.AzurePipelines/IAzurePipelinesProvider/#Properties

What was the name of the agent running the build?
The check tests for existence of TF_BUILD env variable and name doesn't start with either Hosted or Azure Pipelines

@augustoproiete This isn't hosted, its just the cloud using the ubuntu-latest image - https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
@pascalberger  Just using the marketplace Cake - https://cakebuild.net/docs/integrations/build-systems/azure-pipelines/azure-devops-build-task-extension - reports:
`==============================================================================
Task         : Cake
Description  : Build with Cake
Version      : 2.1.0
Author       : Patrik Svensson
Help         : More Information about Cake
=====================================================
Root = /home/vsts/work/1/s/build
Tools = /home/vsts/work/1/s/build/tools
Cake Tool Path = /home/vsts/work/1/s/build/tools/dotnet-cake
Package Feed =
Creating tools directory...
Installing Cake Tool (Latest)...
/usr/bin/dotnet tool install --tool-path /home/vsts/work/1/s/build/tools/ Cake.Tool
You can invoke the tool using the following command: dotnet-cake
Tool 'cake.tool' (version '1.0.0') was successfully installed.
`

@matt40k You tricked me with "Ubuntu hosted" in the title :smile:
Can you inspect the environment variables to see what is there? We're particularly interested in the TF_BUILD variable.
build.cake
var envVars = EnvironmentVariables();

Information("Environment Variables: ");
foreach(var envVar in envVars)
{
    Information("Key: {0}\tValue: \"{1}\"", envVar.Key, envVar.Value);
}

@pascalberger Just using the marketplace Cake - https://cakebuild.net/docs/integrations/build-systems/azure-pipelines/azure-devops-build-task-extension - reports:

@matt40k My question was not about the task used but what was the name of the agent which run the job:

If you're running on hosted pool you need to call IsRunningOnAzurePipelinesHosted not IsRunningOnAzurePipelinesHosted.
IsRunningOnAzurePipelines is defined as:
        public bool IsRunningOnAzurePipelines
            => !string.IsNullOrWhiteSpace(_environment.GetEnvironmentVariable("TF_BUILD")) && !IsHostedAgent;

IsRunningOnAzurePipelinesHosted is defined as:
        public bool IsRunningOnAzurePipelinesHosted
            => !string.IsNullOrWhiteSpace(_environment.GetEnvironmentVariable("TF_BUILD")) && IsHostedAgent;

@augustoproiete
2021-02-15T21:46:15.2134378Z Key: TF_BUILD	Value: "True"

@pascalberger
Pool: Azure Pipelines
Image: ubuntu-latest
Agent: Hosted Agent
Started: Today at 21:45
Duration: 33s

So Cake is picking up the Linux Microsoft hosted pool as self-hosted?

Everything as expected. See https://github.com/cake-build/cake/issues/3148#issuecomment-779460334.
IsRunningOnAzurePipelines is true when running on self-hosted agent. IsRunningOnAzurePipelinesHosted is true when running on Microsoft hosted agent.


Add function for including loading spinners in apps.

This PR adds a function use_loading_spinners() that allows the user to replace the default grayed-out loading state for outputs that are currently .recalculating with svg-based loading spinners.
Currently, there are a few options that can be tweaked via css variables or named arguments on use_loading_spinners():

type: The type of spinner to use. Options include "disc", "tadpole", and "dots". Defaults to "tadpole".
color: The color of the spinner. This can be any valid CSS color. Defaults to the current app "primary" color (if using a theme) or light-blue if not.
size: The size of the spinner. This can be any valid CSS size. Defaults to "80px".
speed: The spinner's time to complete a single revolution. This can be any valid CSS time. Defaults to "1s".

These simply map to css variables of the format:  --_shiny-spinner-<property-name> that update the css.
Adding a new spinner type:
At the package level
Right now there are three options for spinners: a disc, tadpole, and dots. To add more there just needs to be a new svg added to the shiny/www/shared/loading-spinners directory and added to the if statement logic in use_loading_spinners().
At the user level
It is also possible for a user to add their own custom svg if they set the --shiny-spinner-svg property to a valid svg path (either a url() pointing to an accessible file, or an inlined data-url).

If the user experience here is smooth and not jarring, then I think it would make sense to enable spinners by default.

Hello. I've been tracking this thread for this feature, and tried it out - after upgrading the library - since I saw that it was merged. However, the line ui.busy_indicators.options(spinner_type = 'ring') gives an error:
module 'shiny.ui' has no attribute 'busy_indicators'
When will this be added to the pypi package, and to the documentation?

@gfleetwood You can install from main with pip install git+https://github.com/posit-dev/py-shiny. We merge to main much more frequently than we release to PyPI, it might be a couple of weeks or so before the next one.

@jcheng5 Got it. Thanks!

@nstrayer Hello. I looked at the three examples showing how this feature works, but I'm still confused. It was working for a while in my app, but now it's not, and I don't know what is wrong. This is a minimal example, except that I will have multiple functions to display many dataframes, each having its own busy indicator.
from shiny import App, reactive, render, req, ui
from shiny.ui import TagList, div, h3, head_content, tags
import pandas as pd
import requests

def server(input, output, session):

    @render.data_frame
    @reactive.event(input.search_button)
    def get_df():

        server_endpoint = 'https://'
        payload_in = {'search_term': input.search_term().strip()}

        #ui.busy_indicators.options(spinner_type = 'ring'),
        response = requests.post(server_endpoint, json = payload_in)
        payload_out = response.json()['data']

        result = render.DataGrid(pd.DataFrame(json.loads(payload_out)), width = '1000px')

        return(result)

app_ui = ui.page_fluid(

    #ui.busy_indicators.options(spinner_type = 'ring'),

    ui.input_text('search_term', 'Enter Search Term'),
    ui.input_action_button('search_button', 'Search'),
    ui.busy_indicators.use(spinners = "spinners"),
    ui.output_data_frame('get_df'),
)

app = App(app_ui, server)

@gfleetwood there was actually a problem in the 0.10.1 that is now fixed in 0.10.2, please try upgrading to see if fixes your problems: pip install -U shiny
If you are still having problems after upgrading, please feel free to file a new issue (I promise I'll respond 😄 )

@cpsievert No need, the upgrade did it. Thanks!


Illegal Space 0xa0 Causes nbdev_export to Fail

I'm having an issue with the nbdev_export function failing due to an illegal space (0xa0) in
below.
To maximize the chances of my issue being fixed, I've created a minimal reproducible example in
contains the minimal amount of code needed to reproduce the error.
Here is the minimal reproducible example https://github.com/JiaxiangBU/nbdev-demo-230204
Here is the encoding error information using nbdev_export
$ nbdev_export
Traceback (most recent call last):
  File "d:\installed\miniconda\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "d:\installed\miniconda\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "D:\installed\miniconda\Scripts\nbdev_export.exe\__main__.py", line 7, in <module>
  File "d:\installed\miniconda\lib\site-packages\fastcore\script.py", line 119, in _f
    return tfunc(**merge(args, args_from_prog(func, xtra)))
  File "d:\installed\miniconda\lib\site-packages\nbdev\doclinks.py", line 137, in nbdev_export
    for f in files: nb_export(f)
  File "d:\installed\miniconda\lib\site-packages\nbdev\export.py", line 59, in nb_export
    mm.make(cells, all_cells, lib_path=lib_path)
  File "d:\installed\miniconda\lib\site-packages\nbdev\maker.py", line 210, in make
    write_cells(cells[last_future:], self.hdr, f)
  File "d:\installed\miniconda\lib\site-packages\nbdev\config.py", line 252, in write_cells
    if cell.source.strip(): file.write(f'\n\n{hdr} {cell.idx_+offset}\n{cell.source}')
UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 574: illegal multibyte sequence

@JiaxiangBU I just tried it myself. It worked without a problem.

@JiaxiangBU , please try my fix https://github.com/xl0/nbdev/tree/win-utf8
I don't have Windows, but pretty sure this is caused by utf-8 handling in Python on Windows.
pip install git+https://github.com/xl0/nbdev@win-utf8

@xl0 @JiaxiangBU This is from the documentation. nbdev works on Windows but inside WSL.

@xl0 @JiaxiangBU This is from the documentation. nbdev works on Windows but inside WSL.

Thanks for your suggestion, when I build the internal package in WSL, it works for me on Windows after pip installation.

@JiaxiangBU , please try my fix https://github.com/xl0/nbdev/tree/win-utf8
I don't have Windows, but pretty sure this is caused by utf-8 handling in Python on Windows.
pip install git+https://github.com/xl0/nbdev@win-utf8
FIY, settings.ini from your example has some empty fields and is not valid.
.
.Thanks, <0xa0> is really irrelevant, the problem is encoding.


Can I disable carousel Navigation button

Hi,
I need to disable navigation button in case
curruntSlide 0  >> disabled prev button
curruntSlide last  >> disabled next button
Thank you.

Check #45


Add support for multiple responses

Uss testsever xms-error-responses.json as an example add support for multiple responses

Change decode logic to build responses, exceptions array in Operation to contain both SchemaRespons and Reponse in the array. (Before it has to be either all of them are SchemaResponse or all of them are Reponse
Refactor OperationResponse stencil to generate code for each of the response and exception in the Operation (instead of just consider the first one)
Move name logic of ReturnTypeViewModel to ResponseViewModel
Create test case for xms-error-responses.json to test with test server
Add generated code for xms-error-responses.json and other  testserver json due to this change.

Also, this has a conflict that needs to be resolved.


vLLM support?

The docs mention that you used vLLM for inferencing, but it looks like Orion support hasn't been upstreamed yet: https://github.com/vllm-project/vllm/tree/main/vllm/model_executor/models
Can you share the model file or do you have an ETA for upstreaming the code? HF transformers inferencing is slow enough to make Orion pretty unusable even for running evals.

I've been using the Orion branch from https://github.com/dachengai/vllm and it's running, but there might be issues with outputs in different languages

I've been using the Orion branch from https://github.com/dachengai/vllm and it's running, but there might be issues with outputs in different languages

Yeap ,I am trying to translate from Chinese to English, but the output still contains Chinese characters. 😭


Some fields of dependency telemetry are missing when dependency is invoked asynchronously

List of NuGet packages and version that you are using:

Microsoft.ApplicationInsights.Web 2.21.0 and it's dependencies

Runtime version (e.g. net461, net48, netcoreapp2.1, netcoreapp3.1, etc. You can find this information from the *.csproj file):

net48

Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.):

Azure Web App
Windows

Describe the bug
While processing request application can make calls to external dependencies, like HTTP or SQL servers.
When such calls are done in a synchronous manner (e.g. using WebClient.DownloadData(), EF DbSet.ToList()) corresponding dependency telemetry includes Operation Id as well as Operation Name, User Id, Session Id from request.
When such calls are done in asynchronous manner (e.g. using HttpClient.GetAsync(), EF DbSet.ToListAsync()) corresponding dependency telemetry includes only Operation Id, but not Operation Name, User Id, Session Id from request.
This happens at least for HTTP, SQL dependencies.
Example screenshot of dependency telemetry for one request:

To Reproduce
The issue is reproducible with ASP.Net MVC / Web API: https://github.com/a-stankevich/MissingTelemetry
The issue does not seem to happen with ASP.Net Core.

I'd like this to stay open please


Letters, spaces and -

Hi everyone,
I'm trying to add a mask on my input, but after several try i can't get it,  I'm trying to get an input where i can only type letters, have spaces , and this special char (-).
I just begun with those inputmasks,
Thanks for the help ;
For the moment i tried this :
$("#input").inputmask({
definitions: {
'A': {
validator: "[a-zA-Z-_-\s]",
}
}
});

For the persons who would have the same issue;
i solved it by doing :
$("#input").inputmask("Regex", { regex: "[a-zA-Z- ]*" });
👍

@Sparfiax ,
In future versions you will need to use $("#input").inputmask({ regex: "[a-zA-Z- ]*" });  as the Regex alias is removed.


Suspense fallback attribute should not contain JSX

Hi oxc team!
I'm unsure about the specifics, since I'm still learning React, so I want to report this as a mismatch with React docs.
According to the React docs, the following is valid:
const Component = () => {
  return <Suspense fallback={Loading...}>...</Suspense>;
};

However oxlint tells me that "JSX attribute values should not contain other JSX.", which sounds like I should change it to this:
const Component = () => {
  const loadingEleRef = useRef<ReactNode>(null);

  if (loadingEleRef.current === null) {
    loadingEleRef.current = Loading...;
  }

  return <Suspense fallback={loadingEleRef.current}>...</Suspense>;
};

What's the correct way?

Both ways are correct. But the jsx-no-jsx-as-prop rule thought second way performance is better.
You can use -A to turn off this rule.
oxlint -A jsx-no-jsx-as-prop


Marten is not creating the database in a console application

Ran into an interesting issue, after upgrading one of our projects to latest Marten (from 5 to 7).
Steps to reproduce:

create new console app
configure/run postgres with docker-compose
add Marten nuget
add sample code (from docs) to create the db

As a result db is not created and cannot be queried:
Marten.Exceptions.MartenCommandException: Marten Command Failure:
3D000: database "db_1" does not exist
---> Npgsql.PostgresException (0x80004005): 3D000: database "db_1" does not exist

Sample code:
const string connectionString = "Host=localhost;Database=db_1;Username=pgu;Password=pgp;";

await using var store = DocumentStore.For(options =>
{
    options.Connection(connectionString);
    options.CreateDatabasesForTenants(t =>
    {
        t.ForTenant()
            .DropExisting(true)
            .CheckAgainstPgDatabase()
            .WithEncoding("UTF-8")
            .ConnectionLimit(-1);
    });
});

await using var session = store.LightweightSession();
await session.QueryAsync<int>("select 1");

Full solution with docker-compose and sample app can be found here: https://github.com/vcaraulean/MartenCreateDb

Found this issue, looks similar: https://github.com/JasperFx/marten/issues/2786

@jeremydmiller  Following recommendations, and it still doesn't work, I'm afraid.
Stepping into IHost.StartAsync() shows that there are no registered IHostedService instances.
Full code:
const string connectionString = "Host=localhost;Database=db_1;Username=pgu;Password=pgp;";

var builder = Host.CreateApplicationBuilder();

builder.Services.AddMarten(options =>
{

    options.Connection(connectionString);

    options.CreateDatabasesForTenants(x =>
    {
        x
            .ForTenant()
            .WithOwner("postgres")
            .WithEncoding("UTF-8")
            .ConnectionLimit(-1);
    });
});

using var host = builder.Build();

await host.StartAsync();

using var store = host.Services.GetRequiredService<IDocumentStore>();
await using var session =  store.LightweightSession();
await session.QueryAsync<int>("select 1");

Pulled down the code to see what's going on.
Marten activator is not registered on a simple AddMarten(). To create the database (and delete previous for some test cases) an explicit flag has to be set:
builder.Services
    .AddMarten(options =>
    {
        // the options
    })
    .ApplyAllDatabaseChangesOnStartup();

Will be great to have this reflected in the docs as well...


Term referencing improvements (term:[])

We should also have term:[X] as shorthand as term:[X,X] because often we don't need to change the term used (only need to change for plurals, etc).

Can we use the term:[] syntax inside the document (outside of the Terms and definitions section)?

Originally posted by @ronaldtse in https://github.com/metanorma/metanorma-iso/pull/366#issuecomment-624978759

Also need to ensure this works in IEC. Thanks.

We should also have term:[X] as shorthand as term:[X,X] because often we don't need to change the term used (only need to change for plurals, etc).

Already done.

Can we use the term:[] syntax inside the document (outside of the Terms and definitions section)?

Yes, it just gets globally replaces with X (<xref>Y</xref>) wherever in the document it is.


Introduce a new variable for clarity

In the Validate function, merkleRowRoots and merkleColRoots variables are used. len(merkleRowRoots) is used to check the size of p.Shares. One minor improvement for clarity would be to factor out the len(merkleRowRoots) as a separate variable because there is no equivalence between p.Shares and merkleRowRoots.

I think this issue is referring to this check. len(p.Shares) is expected to == len(merkleRoots) because p.Shares should contain all the shares for an EDS row or column. In this context, len(merkleRoots) is used to determine the width of the extended data square.


ComboBox virtualization, item kidnapping fixes

GitHub Issue (If applicable): Fixes #555, partially addresses #556 and #1133, fixes #1078

PR Type
What kind of change does this PR introduce?

Bugfix
Feature

What is the current behavior?

What is the new behavior?

[WASM] ComboBox is now virtualized
[WASM] ListView supports non-Stretch alignments properly.
[All] Fixes issues with views in Items/ItemsSource being 'kidnapped' when closing and opening ComboBox dropdown.

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tested code with current supported SDKs
[ ] Docs have been added/updated which fit documentation template. (for bug fixes / features)
[x] Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
[ ] Wasm UI Tests are not showing unexpected any differences
[x] Contains NO breaking changes
[x] Updated the Release Notes
[x] Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

19 commits for that ? ;-)

19 commits for that ? ;-)

You've already reviewed most of them. ;) It includes #1061 which had to be reverted, and also #1079

/azp run

TODO: Add UI tests for 'kidnapping'

Error CS1061: 'FrameworkElement' does not contain a definition for 'GetVisualTreeParent'


Error: module 'openai' has no attribute 'completion'

It was working before the update. Are there any alternatives to initialize the process?
def analyze_text_with_gpt4(text):
    response = openai.ChatCompletion.create(
        model="gpt-4-1106-preview",
        messages=[
            {"role": "system", "content": "You are a helpful research assistant."},
            {"role": "user", "content": f"....: {text}"}
        ],
    )
    return response['choices'][0]['message']['content']

Except for switching back to the v0.28.

You want this:
from openai import OpenAI

client = OpenAI()

def analyze_text_with_gpt4(text):
    response = client.chat.completions.create(
        model="gpt-4-1106-preview",
        messages=[
            {"role": "system", "content": "You are a helpful research assistant."},
            {"role": "user", "content": f"....: {text}"}
        ],
    )
    return response.choices[0].message.content

Please try the migration CLI, it will make upgrading much easier!
openai migrate


Using custom service scopes with JobConsumers

Is this a bug report?
Yes
Can you also reproduce the problem with the latest version?
Yes
Environment

Dotnet version: 5.0.3
Operating system: Windows/Ubuntu
IDE (Rider, VS Code, Visual Studio): Rider

Steps to Reproduce
I regularly use UseServiceScope to create service scopes which would come handy to some other downstream middlewares which tap into message headers to extract serialized principal's identity and authorization information that I'd like to store alongside message data into some database or decide over firing or not downstream services.
When it came across to use JobConsumers for the first time such configuration broke the Job consumer and it could not resolve IServiceProvider. I have also tested the same configuration with the off-the-shelve sample for JobConsumers and the service provider instance which was injected with default dotnet DI, was just null. Commenting out the UseServiceScope line in bus configuration solves this anomaly if I may say.
Do I miss something here? Is this expected and I'm using the UseServiceScope the wrong way?
This is from provided git sample:
x.UsingRabbitMq((context, cfg) =>
{
    if (IsRunningInContainer)
        cfg.Host("rabbitmq");

    cfg.UseRabbitMqMessageScheduler();

    var options = new ServiceInstanceOptions()
        .EnableInstanceEndpoint()
        .SetEndpointNameFormatter(KebabCaseEndpointNameFormatter.Instance);

    cfg.UseServiceScope(context);
    // cfg.ConfigureSend(o => o.UseIdentityHeadersAtClient(context));
    // cfg.ConfigurePublish(o => o.UseIdentityHeadersAtClient(context));
    // cfg.UseSerilogEnricher();

    cfg.ServiceInstance(options, instance =>
    {
        instance.ConfigureJobServiceEndpoints(js =>
        {
            js.SagaPartitionCount = 1;
            js.FinalizeCompleted = true;

            js.ConfigureSagaRepositories(context);
        });

        instance.ConfigureEndpoints(context);
    });

Job consumer itself:
public class ConvertVideoJobConsumer :
        IJobConsumer<ConvertVideo>
{
    readonly IServiceProvider _sp;
    readonly ILogger<ConvertVideoJobConsumer> _logger;

    public ConvertVideoJobConsumer(ILogger<ConvertVideoJobConsumer> logger, IServiceProvider sp)
    {
        _logger = logger;
        _sp = sp;
    }

    public async Task Run(JobContext<ConvertVideo> context)
    {
        try
        {
            var loggerFactory = _sp.GetRequiredService<ILoggerFactory>();
            _logger.LogCritical("This line does not log");
            var rng = new Random();

            var variance = TimeSpan.FromMilliseconds(rng.Next(4399, 18377));

            await Task.Delay(variance);

            await context.Publish<VideoConverted>(context.Job);
        }
        catch (Exception e)
        {
            _logger.LogCritical(e, "Error");
            throw;
        }
    }
}

I'd recommend migrating your code to use [Scoped Filters] instead of the approach you were using.


feat(search-algolia): pass custom transformItems function to SearchBar

Pre-flight checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
[x] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation
Closes #8462
Test Plan
Manual
Test links

Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs

Closes #8462

This PR references itself (instead of an external issue) and does not really give much context into what you are trying to achieve (although I have an idea, I'd like you to explain)

This is also doing to conflict with https://github.com/facebook/docusaurus/pull/8428, that may already solve your use-case?

Found the original issue 🤪 https://github.com/facebook/docusaurus/issues/8461
Using a wrapper to provide a custom transformItems prop is exactly what I had in mind, so feel free to go ahead.
Still wonder if the newly introduced code does not solve your use-case? cf https://github.com/facebook/docusaurus/pull/8428
  const transformItems = useRef<DocSearchModalProps['transformItems']>(
    (items) =>
      items.map((item) => ({
        ...item,
        url: processSearchResultUrl(item.url),
      })),
  ).current;

Why do you want to transform those items?

Sorry @slorber @Josh-Cena. I was on a Christmas holiday but seems like you guys took care of this PR already.

This PR references itself

Oops, my bad.

Still wonder if the newly introduced code does not solve your use-case

Not really. I wanted to tweak the search results and reorder them the way I want. The linked issue allows only changing the results pathname if I could understand correctly.


Fix react-addons-css-transition-group dependency

Hello @jspears, latest version v0.50.6 seems to lack saved dependency on react-addons-css-transition-group.
Of all react form libraries, i like the API of subschema the most. Thumbs up, good job!

whoops, thanks. Hope it is useful.   Are you using it via webpack or via the compiled version.  It'll be fixed in a few minutes.
Thanks for letting me know.

I am using modularized version via webpack.


Feedback from new git user

The class was great!
What I knew going in:

I went in expecting it to be more advanced than what I already know about git, as I am quite new to git.
I currently use the command line for everything except committing changed and new files. (I use the "github for windows client"). Cloning, branching, merging, pulling, etc I do via the command line.

How I felt the class went:

As expected, the class was slightly more advanced than what I already know, but I landed up learning a ton!
Some of the things I learnt I plan on using immediately, while others I hope to incorporate after reading up on some documentation a bit more.
Everything discussed seemed very useful and relevant.

Other remarks:

The teacher @patrickmckenna discussed both of my questions in spite of the short time duration, to which I thank you.
If possible, a slightly longer class would be nice (somewhere between 30%-100% longer) in order to keep everyone caught up, as well as go more in depth regarding difficult topics, and to allow for more question and answer time.

Thanks for such detailed feedback @Khillasaurus, really appreciate it! Hope to see you in future classes.

 I'll definitely be back in the future to learn more. (Already enrolled in another upcoming class)


[core] In typescript-to-proptypes, respect the value pass to the generic

While working on X, I noticed that the generation of the proptypes does not work well in the following scenario:
type Type = 'one' | 'two' | 'three'

interface ParentProps<T extends Type> {
  A: T;
}

interface ChildProps extends ParentProps<'one' | 'two'> {}

export function Foo(props: ChildProps): JSX.Element;

// Should output:
Foo.propTypes = {
  A: PropTypes.oneOf(['one', 'two']).isRequired,
};

// But outputs:
Foo.propTypes = {
  A: PropTypes.oneOf(['one', 'two', 'three']).isRequired,
};

We even looses the optional in the following scenario:
type Type = 'one' | 'two' | 'three'

interface ParentProps<T extends Type> {
  A: T;
}

interface ChildProps extends Partial<ParentProps<'one' | 'two'>> {}

export function Foo(props: ChildProps): JSX.Element;

// Should output:
Foo.propTypes = {
  A: PropTypes.oneOf(['one', 'two']),
};

// But outputs:
Foo.propTypes = {
  A: PropTypes.oneOf(['one', 'two', 'three']).isRequired,
};

The issue is that, when we have a prop that equals a generic value, then we apply its base constraints (in <A extends B>, we apply B).
From what I understand, it was purely done to avoid weird behaviors for scenario like <A extends React.ElementType>, where TTP was considering A as a union.

My solution is simply to only keep this custom behavior for React.ElementType.
It is not 100% safe, if you have a better idea I am open of course.
There was one issue on the AutoComplete component with the generics that have undefined by default.
Before, ttp generated the type from there constrain (boolean | undefined), but now it generates the type from the whole type. And the behavior in that situation was to apply the default value.
But you can't create a proptype for something always undefined.
I think it's better to apply the constraint in this scenario rather than the default value.
export interface AutocompleteProps<
  DisableClearable extends boolean | undefined = undefined,
> {
  disableClearable?: DisableClearable;
}

Current diff on mui-x with this PR:
diff --git a/packages/grid/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx b/packages/grid/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx
index 2e6b955f0..647db9951 100644
--- a/packages/grid/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx
+++ b/packages/grid/x-data-grid-premium/src/DataGridPremium/DataGridPremium.tsx
@@ -833,8 +833,8 @@ DataGridPremiumRaw.propTypes = {
    * Rows data to pin on top or bottom.
    */
   pinnedRows: PropTypes.shape({
-    bottom: PropTypes.array,
-    top: PropTypes.array,
+    bottom: PropTypes.arrayOf(PropTypes.object),
+    top: PropTypes.arrayOf(PropTypes.object),
   }),
   /**
    * Callback called before updating a row with new values in the row and cell editing.
@@ -882,7 +882,7 @@ DataGridPremiumRaw.propTypes = {
   /**
    * Set of rows of type [[GridRowsProp]].
    */
-  rows: PropTypes.array.isRequired,
+  rows: PropTypes.arrayOf(PropTypes.object).isRequired,
   /**
    * Loading rows can be processed on the server or client-side.
    * Set it to 'client' if you would like enable infnite loading.
diff --git a/packages/grid/x-data-grid-premium/src/components/GridExcelExportMenuItem.tsx b/packages/grid/x-data-grid-premium/src/components/GridExcelExportMenuItem.tsx
index 79e6e187b..d7d83d437 100644
--- a/packages/grid/x-data-grid-premium/src/components/GridExcelExportMenuItem.tsx
+++ b/packages/grid/x-data-grid-premium/src/components/GridExcelExportMenuItem.tsx
@@ -31,7 +31,17 @@ GridExcelExportMenuItem.propTypes = {
   // ----------------------------------------------------------------------
   hideMenu: PropTypes.func,
   options: PropTypes.shape({
+    allColumns: PropTypes.bool,
+    columnsStyles: PropTypes.object,
     disableToolbarButton: PropTypes.bool,
+    exceljsPostProcess: PropTypes.func,
+    exceljsPreProcess: PropTypes.func,
+    fields: PropTypes.arrayOf(PropTypes.string),
+    fileName: PropTypes.string,
+    getRowsToExport: PropTypes.func,
+    includeColumnGroupsHeaders: PropTypes.bool,
+    includeHeaders: PropTypes.bool,
+    valueOptionsSheetName: PropTypes.string,
   }),
 } as any;

diff --git a/packages/grid/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx b/packages/grid/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx
index 5af063bfe..7fb91609a 100644
--- a/packages/grid/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx
+++ b/packages/grid/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx
@@ -784,8 +784,8 @@ DataGridProRaw.propTypes = {
    * Rows data to pin on top or bottom.
    */
   pinnedRows: PropTypes.shape({
-    bottom: PropTypes.array,
-    top: PropTypes.array,
+    bottom: PropTypes.arrayOf(PropTypes.object),
-    top: PropTypes.array,
+    bottom: PropTypes.arrayOf(PropTypes.object),
+    top: PropTypes.arrayOf(PropTypes.object),
   }),
   /**
    * Callback called before updating a row with new values in the row and cell editing.
@@ -823,7 +823,7 @@ DataGridProRaw.propTypes = {
   /**
    * Set of rows of type [[GridRowsProp]].
    */
-  rows: PropTypes.array.isRequired,
+  rows: PropTypes.arrayOf(PropTypes.object).isRequired,
   /**
    * Loading rows can be processed on the server or client-side.
    * Set it to 'client' if you would like enable infnite loading.
diff --git a/packages/grid/x-data-grid-pro/src/components/GridDetailPanelToggleCell.tsx b/packages/grid/x-data-grid-pro/src/components/GridDetailPanelToggleCell.tsx
index 2b388d6dd..c7536e6c8 100644
--- a/packages/grid/x-data-grid-pro/src/components/GridDetailPanelToggleCell.tsx
+++ b/packages/grid/x-data-grid-pro/src/components/GridDetailPanelToggleCell.tsx
@@ -115,7 +115,7 @@ GridDetailPanelToggleCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid-pro/src/components/GridTreeDataGroupingCell.tsx b/packages/grid/x-data-grid-pro/src/components/GridTreeDataGroupingCell.tsx
index 733153536..721694bbd 100644
--- a/packages/grid/x-data-grid-pro/src/components/GridTreeDataGroupingCell.tsx
+++ b/packages/grid/x-data-grid-pro/src/components/GridTreeDataGroupingCell.tsx
@@ -154,7 +154,7 @@ GridTreeDataGroupingCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx b/packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
index 7058730b1..b6df72756 100644
--- a/packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
+++ b/packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
@@ -663,7 +663,7 @@ DataGridRaw.propTypes = {
   /**
    * Set of rows of type [[GridRowsProp]].
    */
-  rows: PropTypes.array.isRequired,
+  rows: PropTypes.arrayOf(PropTypes.object).isRequired,
   /**
    * Sets the type of space between rows added by `getRowSpacing`.
    * @default "margin"
diff --git a/packages/grid/x-data-grid/src/components/cell/GridActionsCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridActionsCell.tsx
index def9355e9..879440ff6 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridActionsCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridActionsCell.tsx
@@ -302,7 +302,7 @@ GridActionsCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/cell/GridBooleanCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridBooleanCell.tsx
index a8af71a5e..ddd528b76 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridBooleanCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridBooleanCell.tsx
@@ -129,7 +129,7 @@ GridBooleanCellRaw.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/cell/GridEditBooleanCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridEditBooleanCell.tsx
index 3cbcd3f1f..352dc3aee 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridEditBooleanCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridEditBooleanCell.tsx
@@ -170,7 +170,7 @@ GridEditBooleanCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/cell/GridEditDateCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridEditDateCell.tsx
index 532798fde..59f7ba32c 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridEditDateCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridEditDateCell.tsx
@@ -220,7 +220,7 @@ GridEditDateCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/cell/GridEditInputCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridEditInputCell.tsx
index c5f77ed1b..8200eba4c 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridEditInputCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridEditInputCell.tsx
@@ -200,7 +200,7 @@ GridEditInputCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object,
+  row: PropTypes.any,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/cell/GridEditSingleSelectCell.tsx b/packages/grid/x-data-grid/src/components/cell/GridEditSingleSelectCell.tsx
index abeea1b5d..59f168615 100644
--- a/packages/grid/x-data-grid/src/components/cell/GridEditSingleSelectCell.tsx
+++ b/packages/grid/x-data-grid/src/components/cell/GridEditSingleSelectCell.tsx
@@ -256,7 +256,7 @@ GridEditSingleSelectCell.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */
diff --git a/packages/grid/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx b/packages/grid/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx
index 9acac0b7d..a659ff93b 100644
--- a/packages/grid/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx
+++ b/packages/grid/x-data-grid/src/components/columnSelection/GridCellCheckboxRenderer.tsx
@@ -181,7 +181,7 @@ GridCellCheckboxForwardRef.propTypes = {
   /**
    * The row model of the row that the current cell belongs to.
    */
-  row: PropTypes.object.isRequired,
+  row: PropTypes.any.isRequired,
   /**
    * The node of the row that the current cell belongs to.
    */

@ProKashif Sorry, I have blocked you from the MUI organization, per the review activity

https://github.com/ProKashif?tab=overview&from=2022-08-01&to=2022-08-31


[Feature Request]: Adding leetcode-3110 Score of a String

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
.
Use Case
.
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@SadafKausar2025 Please complete your task otherwise I will close it. and if you have any queries then ask me on our live chat for support: https://codeharborhub.github.io/community/supports#-how-to-get-support

https://github.com/CodeHarborHub/codeharborhub.github.io/pull/1665
hello @Ajay-Dhangar
you have already merge this PR of score of string.

I have already done with this issue


Release 0.4.1 - master

<!-- Make sure you have read http://napalm.readthedocs.io/en/latest/contributing/index.html --!>

Coverage increased (+0.3%) to 79.545% when pulling 3e488fb8946859e85dc22e832db5c0e7f135fb08 on develop into b4813b64ebc39b44f21a8ea72823ca1340418189 on master.


change deployment target

I had build failed at current version (v4.0.0) because Nuke v.7 minimum target at least iOS 10

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   94.67%   94.67%
=======================================
  Files           9        9
  Lines         319      319
=======================================
  Hits          302      302
  Misses         17       17

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 df50a6e...7b9dfd7. Read the comment docs.

Codecov Report

Merging #37 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #37   +/-   ##
=======================================
  Coverage   94.67%   94.67%
=======================================
  Files           9        9
  Lines         319      319
=======================================
  Hits          302      302
  Misses         17       17

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 df50a6e...7b9dfd7. Read the comment docs.


[+] Add checkstyle

Add checkstyle to the gradle build tool as requested by @1whatleytay. Also added a github actions workflow

Merged.


valheim-updater do not update anything

I can't figure out what I have done wrong, but it seems that the updater don't update anything.
This log-statement continues for at lot of lines:
supervisord: valheim-updater [  0%] Downloading update (0 of 57,385 KB)...
I have attached my entire log, so I hope somebody can help me.
_valheim-server_logs.txt

Getting the same result.

I was able to fix this with the following:
# open a bash shell inside the docker container
docker exec -i -t valheim-server /bin/bash
# stop the borked update command
pkill steamcmd
# run the update command
/opt/steamcmd/steamcmd.sh +force_install_dir "/opt/valheim/dl/server" +login anonymous +app_update 896660 -validate +quit
# wait until that finishes and then exit docker container
exit
# stop valheim
docker stop valheim-server
# start valheim
docker start valheim-server

This may or may not work for you. I didn't exactly find out why valheim-updater was hanging, but this worked for me.

@billputer thanks, I'll make a PR that uses your solution every time before it tries to run the steamcmd updater. Seems the most pragmatic.

I was able to fix this with the following:
# open a bash shell inside the docker container
docker exec -i -t valheim-server /bin/bash
# stop the borked update command
pkill steamcmd
# run the update command
/opt/steamcmd/steamcmd.sh +force_install_dir "/opt/valheim/dl/server" +login anonymous +app_update 896660 -validate +quit
# wait until that finishes and then exit docker container
exit
# stop valheim
docker stop valheim-server
# start valheim
docker start valheim-server

This may or may not work for you. I didn't exactly find out why valheim-updater was hanging, but this worked for me.

Sorry for the late response :)
It's also working for me - so thank you a lot!


Parser training sets link is down

Hi!
I was checking out libpostal, and while attempting to obtain the parser training sets for Mexico, noticed that the link (https://archive.org/download/libpostal-parser-training-data-YYYYMMDD/$FILE)is down and sending me to the following:

Perhaps I'm not understanding correctly how the process works, but I was the link to send me into a page where I could browse the parsed set of files and find the one for Mexico in there.
Hope you can help me and thanks in advance.
Cheers,
José Tapia

I am having the same issue.
I would appreciate it If anyone can provide the training data

the link may be updated
I found this one https://archive.org/details/libpostal-parser-training-data-20170304
This seems to work

The YYYYMMDD and FILE in the given URL are placeholders for a date and extension. You have to replace those with literal values.


telepresence2: 2.17.0 -> 2.18.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/telepresenceio/telepresence/releases.
meta.description for telepresence2 is: Local development against a remote Kubernetes or OpenShift cluster
meta.homepage for telepresence2 is: https://telepresence.io
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.18.0 with grep in /nix/store/yzziq878fd7q42cj0r7301kyf8ycidrj-telepresence2-2.18.0
found 2.18.0 in filename of file in /nix/store/yzziq878fd7q42cj0r7301kyf8ycidrj-telepresence2-2.18.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
telepresence2

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/yzziq878fd7q42cj0r7301kyf8ycidrj-telepresence2-2.18.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A telepresence2 https://github.com/r-ryantm/nixpkgs/archive/9ca58193dc46580ef30a52b441b547832efd107a.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/9ca58193dc46580ef30a52b441b547832efd107a#telepresence2

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/yzziq878fd7q42cj0r7301kyf8ycidrj-telepresence2-2.18.0
ls -la /nix/store/yzziq878fd7q42cj0r7301kyf8ycidrj-telepresence2-2.18.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

telepresence2

Maintainer pings
cc @mausch @vilsol for testing.

I'm on holidays, can't test it right now