Question: How to add downsampling to a SvgImageSource

Hi, I'm using SvgImageSource for setting a tab icon and it all works great.
The only issue is the icons look aliased (I'm settings the size to fairly small so they fit).  I would like to render them at a larger size, and then use DownSample to resize and hopefully see less aliasing.
I'm confused how I can achieve this, any ideas or starting points gratefully appreciated.
Thanks for a great library.

You can control SVG size with width / height params in SvgImageSource constructor.

Hi @daniel-luberda, yes I'm currently using the setting the vectorHeight and vectorWidth in the constructor to a small value so they are the correct size in a XF TabBar.  It all works fine, it's just the icons seem aliased.
I'd like to try creating them at a larger size, then downsampling to see if that leads to less aliasing.  I'm trying to work out if I can load an SvgImage, use the DownSample method on it, and then somehow assign to SvgImageSource.  I've had a look at the source, but I'm struggling to understand the relationship between the two classes, and how one can be assigned to the other.

@davidglassborow could you share your code snippet to implement SvgImageSource for setting a tab icon ? Thanks

Something like this for loading from a embedded resource
IconImageSource = FFImageLoading.Svg.Forms.SvgImageSource.FromResource(resource: name, sourceAssembly: System.Reflection.Assembly.GetExecutingAssembly(), vectorWidth: size, vectorHeight: size, useDipUnits: true)

@davidglassborow thank you so much . but unfortunately I'm trying to load from exernal URI using SvgImageSource and the SVG is not appearing

If it works on the simulator, and not on the real device, make sure you've set the appropriate permissions to be allowed to the specific URLs you are using

yes, I've check out and it doesn't works in none environment.

I'd suggest getting SVG working with a local file/resource first to confirm it's not a network issue.  Good luck.

thanks @davidglassborow ! that's true that there's some problem with this library because, even after create a clean solution install only the necessary packages, the problem keeps. I faced the necessity to found other solution to prove my theory and what happens, after switch the svg renderer library the problem was solved magically. furthermore aready another issue oppend related with this problem #1323


Afflictions

Added Affliction tracks
Added Diseases tracks
Added Poisons items and Poison tracks

Awaiting new environment for afflictions.


docs: Add documentation about supported environment variables

Implementation ideas
There is no documentation about environment variables you can use with celestia-node. You only figure them out when talking to people, creating knowledge silos, which should be avoided.
Example: https://github.com/celestiaorg/celestia-node/pull/1881/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R80

we've reduced this down to just CELESTIA_HOME which is still kind of a poweruser usage, and using different folder layouts as a flag is well documented

@ramin, there is also CELESTIA_CUSTOM, jfyi

ah my quick search of os.Getenv skipped that one we look up with os.LookupEnv 👊


Add Accumulator API

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to  the what)
Various optimizations and protection mechanisms can be implemented if we have a way of having a shared global counter. Examples:

Apply a global limit for a stage across all executors. The scheduler can pre-empt tasks during execution if a global limit is satisfied by the sum of output rows across all tasks (similar to https://github.com/apache/arrow-ballista/issues/628 but could also pre-empty tasks more quickly since it would not require any individual task to complete).
Add a global bytes scanned limit on a query which can pre-empt a large query if it exceeds a certain amount of data scanned across all tasks (similar to mechanisms available in Presto/AWS Athena). This can protect the level of service in cases of overly large user queries.

Describe the solution you'd like
A clear and concise description of what you want to happen.
This would be similar in spirit but less general than Spark accumulators. It would mostly be an internal implementation detail rather than something exposed to users (nor now).
The general shape of the solution could look something like:

Scheduler adds a new RPC which is a bidi stream between scheduler and executors
Executors can send accumulator values over this stream (where each executor has a single stream to the scheduler and multi-plexes all updates on this channel)
Scheduler is responsible for managing accumulators and merging updates.
Scheduler can send response events in the response stream (for example, to pre-empt tasks when a global limit is satisfied)
Accumulators are scoped to a particular job so they do not need to be shared between schedulers.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Do nothing
Additional context
Add any other context or screenshots about the feature request here.

If we just want cancel tasks early, protect systems from heavy queries/heavy scans, I think we do not need to introduce the
Accumulator. Spark's Accumulator and Metrics system is very heavy and cause lots of memory issues and management burden to the Spark Driver, the Accumulator need to be registered in the Spark Driver and life cycle is managed by the Spark Driver.
We can just leverage the current DataFusion Metrics system and TaskStatus update rpc and add necessary throttling/checking/aborting logic when we handle the Task finish event in the Ballista Scheduler.

We can just leverage the current DataFusion Metrics system and TaskStatus update rpc and add necessary throttling/checking/aborting logic when we handle the Task finish event in the Ballista Scheduler.

This would be good first step, but I don't think it really solves the issue. We would need to wait for tasks to finish which means if we had really long running tasks running concurrently it could easily overload the system with no way to cancel since all tasks are taking a long time to complete.
Agree that Spark's accumulator causes issues but I think if we can design something more purpose-built (and used only internally by the scheduler, not something exposed through the public API) then it could be relatively lightweight.


add handling of visibility and opacity fixes #277

Description
fix for #277
Motivation and Context
opacity and visibility settings after initial setup did not work now they do :)
How Has This Been Tested?
in browser and with demo in ticket
Screenshots (if appropriate):
Types of Changes

[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update
[ ] Other (Tooling, Dependency Updates, etc.)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

If you added a new component feature (layer, geom, source, etc.), please be sure to update the documentation:

[ ] Add component to output.globals in vite.config.ts
[ ] Create a src/demos/<Component>Demo.vue
[ ] Create a docs/componentsguide/<Category>/<Feature>/index.md containing the Demo and documentation for the component
[ ] Add the docs page to docs/.vitepress/config.ts

Example application to test functionality
App.vue
<template>

WMTS Layer Demo

      Layer Opacity:
      <input type="range" id="opacity-slider" min="0" max="1" step="0.1" v-model.number="layerOpacity" />
      {{ layerOpacity }}

      Layer Visibility:
      <input type="checkbox" id="visibility-toggle" v-model="layerVisible" />
       {{ layerVisible ? 'Visible' : 'Hidden' }}

</template>

main.ts

import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import OpenLayersMap, { type Vue3OpenlayersGlobalOptions } from 'vue3-openlayers';

const app = createApp(App)
const options: Vue3OpenlayersGlobalOptions = {
        debug: true,
      };
app.use(OpenLayersMap,options );
app.use(router)

app.mount('#app')

Nice. I will review it later and probably add some examples to the docs. Thank you very much for the invested time!


Create aksim.txt

@playday3008 First stage of verification passed, official domain is wsksim.edu.pl as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://wsksim.edu.pl/


converting public to visibility

The original true or false setting for public used to set to repository visibility to private or public.
This does exactly the same thing keeping the public=false/true configuration setting.
Removing public configuration in favor of full visibility support (public, private, internal) will require additional work so for now this is a stop gap for #118
to replace #119

Thanks for your contribution!  I was away a few months handling a cross country move.  I’m back now and will take a look at this.


Cloud backup states

#8694998b9
#8694ahmzn
#8694998e0
#8694998tm

Task linked: CU-8694998b9 Android. Unsynced backup — Authentication failed
Task linked: CU-8694998e0 Android. Unsynced backup — Backup corrupted or empty (both cases)
Task linked: CU-8694998tm Android. Unsynced backup — Unknown error
Task linked: CU-8694ahmzn Android. Sync backup if not found


Secure token storage

This uses Buttercup to store the token securely, using a master password provided by the user to encrypt it.

@Jameskmonger please resolve the conflicts and I'll merge it right in!

Sorry @himynameisdave - been on a first aid course today and I've only just got in! Thanks for sorting the conflicts out :thumbsup:


Export with withNamespaces messing with SSR

Hi there, i have setup i18next with SSR and is working fine for me on dev, but on production the pre-rendering of the page with fetch isomorphic-unfetch and getInitialProps is not working as expected.
everything is been rendered on client , and i wanted to render on server and deliver as html, which if i remove the export withNamespaces to the default export of nexus.js it works fine bu then translations won't work.
I am i doing something wrong the setup that i have is based on the exemples you have on the git _app.js , i18n.js , and nextI18NextMiddleware on server.js

I'm having an error also in production, but I think it's due to using next-redux-saga and next-redux-wrapper with next-i18next. I've made a CodeSanbox: https://codesandbox.io/s/v8796vz3m5. The error appears also using react-redux 6.0.0 (in the sandbox i'm using 5.1.1). Hope it helps. Thank you.

Hi @yonjuukyuu and @Clebal.
@yonjuukyuu Do you mind explaining your problem a little bit more, or sharing a repository / CodeSandbox to reproduce the issue? I don't really understand what you are saying so far. Do you mean that you're doing next export?

which if i remove the export withNamespaces to the default export of nexus.js it works fine

What does this mean?
I'm not familiar with "isomorphic-unfetch" but I doubt that is affecting your next-i18next implementation.
Basically - as soon as you can show me code / a reproducible example, I can help you.

@Clebal I am still getting a 502 on your CodeSandbox (don't know if they're down or what). But let's keep the discussion of your problem to the original issue, #52.

Hello Isaac
I have the same issue without any dependency like he mentioned, just try to export width your example form this repo, export doesnt work anymore, there is what my terminal shows :

No "exportPathMap" found in "next.config.js". Generating map from "./pages"
exporting path: /404
exporting path: /about
TypeError: Cannot read property 'router' of undefined

I updated from v.0.8.0 to v0.10.2
Thanks

just try to export with your example form this repo, export doesnt work anymore

What do you mean export? Do you mean running next export?
If someone provides clear steps to reproduce the problem, I can definitely debug this. However, I should be absolutely clear that doing a next export misses the entire point of this package and is not advised at all. You'll end up with a clientside-only app. If you want to export, I suggest simply creating your Next routes/pages manually for each language and not using next-i18next at all.
next-i18next is a SSR package.

Any update here?

Any update here?

Will try to push it to a repo. today

I can confirm that export should be fully functional with the new approach taken from v0.11.x onwards.
I want to reiterate that doing next export and then serving static HTML with next-i18next completely misses the point of this package - SSR.
That said, it's simple enough to support export, so if you do find an issue please let me know and I'll reopen.


Derive macros for CheapClone and CacheWeight

This PR adds derive macros. The one for CheapClone is more of a nice-to-have, but the one for CacheWeight should help avoid inaccurate CacheWeight implementations.
The PR also adds a few tests for the cache weight of various objects; in the course of doing that, I realized that our cache weight calculation for graph::data::value::Object was wrong. That is a Box<[Entry]> and the existing calculation only took the indirect weight of the Entry into account, but not the size of the actual [Entry]. An Entry is 48 bytes, which means we might have been ignoring a significant amount of the memory that a query result takes up.
The tests in particular should be reviewed carefully to make sure that the sizes they check for are accurate. This PR will likely have an effect on query caching and should be watched carefully when deployed.

The CacheWeight always makes my brain hurt, but I think in theory we'd be ok if indirect_weight is 0 for all primitive types, and for pointer types we make it self.as_ref().weight(). So maybe the impl for Arc, because it calls indirect_weight instead of weight?
Of course if the memory behind an Arc is actually shared, we will double count. Unless we divide the weight of an Arc by the number of outstanding references, for extra confusion? This is so hard, lets just serialize cache entries 😄

The CacheWeight always makes my brain hurt, but I think in theory we'd be ok if indirect_weight is 0 for all primitive types, and for pointer types we make it self.as_ref().weight(). So maybe the impl for Arc is wrong, because it calls indirect_weight instead of weight?
Of course if the memory behind an Arc is actually shared, we will double count. Unless we divide the weight of an Arc by the number of outstanding references, for extra confusion? This is so hard, lets just serialize cache entries 😄

Yeah, for pointer types we want to use weight (which is essentially what the impls for Vec<T> and Box<[T]> now do in a bit of a roundabout way) For shared pointers it's indeed really dicey what the right answer is. I've been thinking that for Arc and Rc we'd probably want to use weight() / strong_count() That assumes that there are no Arc/Rc references external to the object graph we are measuring.
I just checked the implementation in prefetch and that very cleverly memoizes the weight of child nodes before putting them into an Rc and avoids double-counting that way.
Also, +1 on this causing headaches.

@leoyvens I made the changes to CheapClone that you suggested and rebased onto latest master.


Release schedule for v0.9.2 ?

Thanks for making this great tool !
I was wondering if you had an anticipated schedule for the next release (looks like v0.9.2, or perhaps v1.0.0 ?!). In particular, I'd like to access the new fastSRM implementation.
For now, I'll plan to just build from GitHub's source, but since there hasn't been in a release in 5 or so months I was wondering if you had any anticipated timeline, here.
Thanks again,
Elizabeth

We released a new version. Thank you for your patience.


orionjs summernote / s3 upload issue

Hey folks,
I just uploaded an image file via summernote using the orionjs:s3 providers and while it looks like the upload was successful (I confirmed the image was in my s3 bucket), it never gets inserted into the editor and I get the following error:
Exception from Tracker recompute function:
meteor.js:888 TypeError: Cannot read property 'insertImage' of undefined
    at orionjs_summernote.js:160
    at Tracker.Computation._compute (tracker.js:327)
    at Tracker.Computation._recompute (tracker.js:346)
    at Object.Tracker._runFlush (tracker.js:485)
    at onGlobalMessage (meteor.js:372)

Thoughts?

Has anyone been able to reproduce this?

@rwatts3 can you confirm this?

Yes I'll take a look at this one.
On Wed, Jun 10, 2015 at 11:38 AM Nicolás López<EMAIL_ADDRESS>wrote:

@rwatts3 https://github.com/rwatts3 can you confirm this?
—
Reply to this email directly or view it on GitHub
https://github.com/orionjs/orion/issues/164#issuecomment-110870822.

Any progress on this issue? I'm getting a similar error:
TypeError: Cannot read property 'insertImage' of undefined
    at summernote.js:21
    at Tracker.Computation._compute (tracker.js:294)
    at Tracker.Computation._recompute (tracker.js:313)
    at Object.Tracker._runFlush (tracker.js:452)
    at onGlobalMessage (setimmediate.js:102)

The issue also occures with vsivsi:orion-file-collection.
It seems that orion's summernote-plugin relies on this PR, that hasn't been merged yet:
https://github.com/summernote/summernote/pull/1295


Cache ticker data to reduce API load

Maybe cache them for x minutes, this will help hitting the coingecko and yahoo finance rate limit.
How do we handle tickers that can be both stocks and crypto?

We can use the @cache decorator, with a certain limit on it so it is refreshed after some duration.

Also cache TV indicators


Fix asv installation configuration

Summary
Previously, the uninstall component of the asv configuration was attempting to uninstall the package qiskit.  This is the name of the project, but it's not the name of the relevant Python package, and so was not being uninstalled correctly.  This meant that asv's managed environments would retain the previous build, unless the updating the commit changed the version number of the package.
This behaviour caused our tracking bot to be benchmarking the state of the package only at the commit points that bump version numbers on main.  Typically, this means it was only ever benchmarking the release-candidate versions of the package since we migrated from the metapackage.

Details and comments
I was able to use this locally to correctly detect changes in the time_circuit_copy benchmark between #10314 and #11040, with the uninstall working correctly:
Benchmarks that have improved:

       before           after         ratio
     [bcf5ce49]       [a8812159]
     <0.45.0rc1~33>       <0.45.0rc1~13>
-         418±6μs          117±3μs     0.28  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 128)
-        462±30ms          110±1ms     0.24  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 131072)
-      6.80±0.3ms      1.66±0.04ms     0.24  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 2048)
-         114±3ms         33.3±3ms     0.29  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 32768)
-        99.5±9μs        36.4±10μs     0.37  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 8)
-      27.0±0.8ms       6.88±0.2ms     0.26  circuit_construction.CircuitConstructionBench.time_circuit_copy(14, 8192)
-        342±20μs          112±6μs     0.33  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 128)
-         355±6ms          122±3ms     0.34  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 131072)
-     4.97±0.08ms      1.69±0.02ms     0.34  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 2048)
-      82.5±0.8ms       30.9±0.2ms     0.37  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 32768)
-      32.2±0.3μs         18.8±1μs     0.58  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 8)
-      21.4±0.2ms       7.32±0.5ms     0.34  circuit_construction.CircuitConstructionBench.time_circuit_copy(2, 8192)
-         486±5μs          132±4μs     0.27  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 128)
-         437±3ms          122±3ms     0.28  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 131072)
-      6.94±0.5ms      1.75±0.08ms     0.25  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 2048)
-       109±0.8ms         28.1±1ms     0.26  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 32768)
-         133±6μs       40.1±0.5μs     0.30  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 8)
-      26.4±0.2ms       7.54±0.2ms     0.29  circuit_construction.CircuitConstructionBench.time_circuit_copy(20, 8192)
-         430±5μs          124±4μs     0.29  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 128)
-        432±20ms          110±2ms     0.25  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 131072)
-      6.63±0.5ms      1.70±0.05ms     0.26  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 2048)
-         103±3ms         27.1±1ms     0.26  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 32768)
-        41.4±2μs       17.8±0.4μs     0.43  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 8)
-      25.2±0.4ms       6.79±0.4ms     0.27  circuit_construction.CircuitConstructionBench.time_circuit_copy(5, 8192)
-        457±80μs          121±7μs     0.27  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 128)
-        439±30ms          112±5ms     0.25  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 131072)
-      7.08±0.5ms      1.70±0.02ms     0.24  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 2048)
-         108±8ms         27.5±1ms     0.26  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 32768)
-        59.1±2μs       22.5±0.8μs     0.38  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 8)
-        27.2±2ms       6.84±0.2ms     0.25  circuit_construction.CircuitConstructionBench.time_circuit_copy(8, 8192)

Benchmarks that have stayed the same:

       before           after         ratio
     [bcf5ce49]       [a8812159]
     <0.45.0rc1~33>       <0.45.0rc1~13>
          127±8μs          109±2μs    ~0.86  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 128)
          113±5ms          112±4ms     0.99  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 131072)
      1.78±0.09ms      1.69±0.03ms     0.95  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 2048)
       26.2±0.8ms       26.7±0.9ms     1.02  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 32768)
       16.9±0.7μs       16.0±0.2μs     0.95  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 8)
         7.33±1ms       6.80±0.2ms     0.93  circuit_construction.CircuitConstructionBench.time_circuit_copy(1, 8192)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage remained the same at 86.952%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
3
91.67%

qiskit/pulse/library/waveform.py
3
93.75%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
74356

Relevant Lines:
85514

💛  - Coveralls


⚠ Bofrost.at has degraded performance

In d28bfe9, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1211 ms

Resolved: Bofrost.at performance has improved in 06467df after 20 minutes.


Add 'int_name' under 'Multilingual name'

I think we should add 'int_name' to the 'Multilingual name' presets where you can add the name in other languages. It is used to translate names of objects that are in different characters into Latin ones.

Now tracking in openstreetmap/id-tagging-schema#1289.


Add required attribute

It would be nice to add the required attribute on inputs. I use these in a few places (Mostly for styling hacks), but the documentation can be found here. Not sure if you can think of a reason not to.

Can you also add it to the select?

Nevermind, select has it already.
@homu r+

:pushpin: Commit f5b3417 has been approved by martndemus

:zap: Test exempted - status

Thanks guys! Great work on this component!


Evaluate modern alternatives to MFC, not limited to C++

MFC got its last feature update in 2008, and was not built for compatibility with modern C++ (11 forward).
To support cross platform development, we should move to another toolset.
The desire is to keep the tool relatively small.
Staying in C++, wxWidgets comes to mind as a modern alternative that can be ported from MFC.
Leaving C++, something like Sciter allows HTML and JS development on the desktop without the disk and RAM costs of Electron.

@essellejaye  Just want to include it here, we spoke offline about the possibility of a port to AvaloniaUI.
But that was a port of the original FFH.
Would you consider porting this instead?


Transfer Data

Hi!
I'm unable to find the transfer learning data-- transfer_data.smi. Do you potentially know what the cause might be?
Thanks!

Hi @hello1910
This file is created in the ipython-notebook automatically.


Rename flavor API and CRDs to instancetype

The term flavor was taken from the OpenStack Nova project and while it
does encapsulate parts of what the API is trying to achieve within
KubeVirt it isn't entirely obvious to non-OpenStack users. Before the
API and associated CRDs move out of alphav1 this change replaces the use
of Flavor with the more commonly used term of instance type [1].
[1] https://aws.amazon.com/ec2/instance-types/
Signed-off-by: Lee Yarwood<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
This PR is HUGE, I'm open to better ways of doing this.
Release note:

The flavor API and associated CRDs of `VirtualMachine{Flavor,ClusterFlavor}` are renamed to instancetype and `VirtualMachine{Instancetype,ClusterInstancetype}`.

/retest

/retest

/remove-sig network

https://storage.googleapis.com/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/8039/pull-kubevirt-e2e-k8s-1.21-operator/1544332169525071872/artifacts/k8s-reporter/1_kubevirtCR.log
                        "message": "An error occurred during deployment: unable to create ClusterRole \u0026ClusterRole{ObjectMeta:{kubevirt.io:admin      0 0001-01-01 00:00:00 +0000 UTC \u003cnil\u003e \u003cnil\u003e map[app.kubernetes.io/component:kubevirt app.kubernetes.io/managed-by:virt-operator kubevirt.io: rbac.authorization.k8s.io/aggregate-to-admin:true] map[kubevirt.io/generation:1 kubevirt.io/install-strategy-identifier:55e335eb1d3912d32b89a76fe9dde26c35b9708b kubevirt.io/install-strategy-registry:quay.io/kubevirt kubevirt.io/install-strategy-version:v0.54.0] [] []  []},Rules:[]PolicyRule{PolicyRule{Verbs:[get],APIGroups:[subresources.kubevirt.io],Resources:[virtualmachineinstances/console virtualmachineinstances/vnc virtualmachineinstances/guestosinfo virtualmachineinstances/filesystemlist virtualmachineinstances/userlist],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[update],APIGroups:[subresources.kubevirt.io],Resources:[virtualmachineinstances/pause virtualmachineinstances/unpause virtualmachineinstances/addvolume virtualmachineinstances/removevolume virtualmachineinstances/freeze virtualmachineinstances/unfreeze virtualmachineinstances/softreboot virtualmachineinstances/portforward],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[update],APIGroups:[subresources.kubevirt.io],Resources:[virtualmachines/start virtualmachines/stop virtualmachines/restart virtualmachines/addvolume virtualmachines/removevolume virtualmachines/migrate virtualmachines/memorydump],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[get delete create update patch list watch deletecollection],APIGroups:[kubevirt.io],Resources:[virtualmachines virtualmachineinstances virtualmachineinstancepresets virtualmachineinstancereplicasets virtualmachineinstancemigrations],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[get delete create update patch list watch deletecollection],APIGroups:[snapshot.kubevirt.io],Resources:[virtualmachinesnapshots virtualmachinesnapshotcontents virtualmachinerestores],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[get delete create update patch list watch deletecollection],APIGroups:[flavor.kubevirt.io],Resources:[virtualmachineflavors virtualmachineclusterflavors virtualmachinepreferences virtualmachineclusterpreferences],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[get delete create update patch list watch deletecollection],APIGroups:[pool.kubevirt.io],Resources:[virtualmachinepools],ResourceNames:[],NonResourceURLs:[],},PolicyRule{Verbs:[get list watch],APIGroups:[migrations.kubevirt.io],Resources:[migrationpolicies],ResourceNames:[],NonResourceURLs:[],},},AggregationRule:nil,}: clusterroles.rbac.authorization.k8s.io \"kubevirt.io:admin\" is forbidden: user \"system:serviceaccount:kubevirt:kubevirt-operator\" (groups=[\"system:serviceaccounts\" \"system:serviceaccounts:kubevirt\" \"system:authenticated\"]) is attempting to grant RBAC permissions not currently held:\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineclusterflavors\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineclusterpreferences\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineflavors\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachinepreferences\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}"

Looking into this now.

So I'm still unable to get these tests to work, I've made the following changes:
https://gist.github.com/lyarwood/070c5e4e7e34819aec2531bf5bbf4cdf
However when the KubeVirt CR is updated virt-operator fails to load the install strategy config map as it now somehow references the Route CRD from OKD/OpenShift?!
 {"component":"virt-operator","level":"info","msg":"Install strategy config map not loaded. reason: UNKNOWN TYPE Route detected","pos":"kubevirt.go:879","timestamp":"2022-07-07T14:33:33.588666Z"}

/cc @davidvossel
Wondering if you can help me with the following virt-operator CI failure:
https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/8039/pull-kubevirt-e2e-k8s-1.21-operator/1544332169525071872
Tests Suite: [Serial][sig-operator]Operator [rfe_id:2291][crit:high][vendor:cnv-qe@redhat.com][level:component]should update kubevirt [release-blocker][test_id:3145]from previous release to target tested release by patching KubeVirt CR expand_less | 9m8s
-- | --
{ Failure tests/operator_test.go:1784
Timed out after 420.000s.
Unexpected error:
    <*errors.errorString | 0xc0067a1f80>: {
        s: "Waiting for phase to be deployed (current phase: Deploying)",
    }
    Waiting for phase to be deployed (current phase: Deploying)
occurred
tests/operator_test.go:388}

https://storage.googleapis.com/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/8039/pull-kubevirt-e2e-k8s-1.21-operator/1544332169525071872/artifacts/k8s-reporter/1_kubevirtCR.log
[..]
clusterroles.rbac.authorization.k8s.io \"kubevirt.io:admin\" is forbidden: user \"system:serviceaccount:kubevirt:kubevirt-operator\" (groups=[\"system:serviceaccounts\" \"system:serviceaccounts:kubevirt\" \"system:authenticated\"]) is attempting to grant RBAC permissions not currently held:\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineclusterflavors\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineclusterpreferences\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachineflavors\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}\n{APIGroups:[\"flavor.kubevirt.io\"], Resources:[\"virtualmachinepreferences\"], Verbs:[\"get\" \"delete\" \"create\" \"update\" \"patch\" \"list\" \"watch\" \"deletecollection\"]}"
[..]

AFAICT this is due to the older CR that we are trying to install attempting to grant RBAC permissions that the newer virt-operator didn't provide during the original installation given my rename of the flavors API to instancetype.

yep, so here's what needs to be done. It's going to sound odd but it will work.
Virt-operator is given a cluster role which is a superset of all the rbac that every controller needs. As part of the KubeVirt update, the new virt-operator has to be able to create a backup of the old RBAC (the one that has flavor referenced) before it creates the new clusterrole for the updated components.
Here's why
Lets say we're on v1 of kubevirt

v1 of kubevirt gives permission foo to virt-controller
v2 of kubevirt removes permission foo from virt-controller
during the update, there's a brief period of time where we're rolling over v1's virt-controller to v2. During this time virt-controller needs rbac for both v1 and v2 in order to guarantee virt-controller continues to work while rolling over.
after the roll out is complete, the old rbac is removed (which removes the permission for the foo object)

This means that virt-operator needs permission to perform operations on the flavor api even though the flavor api is being removed, because during the update virt-operator will create a backup rbac that references the flavor api as a rule.
manually add the now non-existent flavor api to this rbac [1] and the update will likely work.

https://github.com/kubevirt/kubevirt/blob/1f7c616daac748e6b11660920514eb8613d71ec2/pkg/virt-operator/resource/generate/rbac/operator.go#L82

Excellent thanks @davidvossel the update tests are passing for me locally now, I've pushed an updated branch hopefully CI will now also pass.

/retest

/cc @fabiand FYI just a heads up and request for an ACK regarding the new name of the API and CRDs if you get a chance.


Search modification

Is your feature request related to a problem? Please describe.
As if the user search on P2P then he needs a patient number, it is the same for all cases either it is state or city. It would be great if a user would search city wise and state wise both.
Describe the solution you'd like
It should also show the result on the basis of the searched city or state.
Describe alternatives you've considered
Or when city filter is selected it should provide an option to select a city. Same for the state. Also on hovering over a particular state, it will show statistics of that particular state.

Duplicate of https://github.com/someshkar/covid19india-cluster/issues/81


refactor: add http error factory

:tada: This PR is included in version 1.9.2 :tada:
The release is available on:

v1.9.2
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Wish to know if Graph Nets can model Graph2Graph encoder decoder network

The problem I am working on is about dimension reduction of 2D profiles into 1D curve.
Input is a polygonal geometry (graph) and output is a polyline geometry (graph). So, like Machine Translation, its a Graph2Graph encoder decoder problem. I have data-set of input and output geometries. I am looking for graph2graph neural network architecture which will learn the transformation from input to output.
More details:

Video: https://lnkd.in/f9Vtv3j  (longish, so for your spare time viewing)
Presentation: https://lnkd.in/fqbW3np
Short paper:  https://lnkd.in/fP6MVqZ
Github repo, source code: https://lnkd.in/fpsNT2P
My LinkedIn Profile https://www.linkedin.com/in/yogeshkulkarni

Even Graph Net does not appear to be correct representation of polygonal geometry. Graph is about topology/connectivity and not about spatial placing. Graph nodes cannot represent points which have coordinates and arcs cannot represent lines which may have lengths (well, arcs can have weights, but not lengths). So need more enriched data structure than graph to solve geometric dimension reduction problem. Any clues?

Thanks for your message, I am not sure I follow. In principle it is possible to specify node positions in the node features, and properties of the edges in the edge features. This is indeed what was done to model objects such as strings in the original Interaction Networks paper, where models predicted new positions for were the nodes would nodes move, without changing the number of nodes.
However, if what you are looking for is a good model that goes from a graph to a different graph with a different number of nodes and edges, then my understanding is that there is not yet a canonical way to do this. That would require a much more specific and sophisticated model architecture for the graph generator which would need to be designed and built by the user.

Later is what the problem needs. Input polygon (say, longish rectangle) is transformed into a polyline (mid-line). So, input graph has different number of nodes, positions than the output graph.
I am currently creating images out of these inputs and outputs and running simple/cnn/pix2pix encoder decode networks, which seem to learn, but that's not solving the real problem. Learning Geometric transformation is. If you come across any theory, implementation around it, do let me know.

Sounds good, thanks for the clarification, I am closing this for now, since this is more a research question than a library question :)


Can't download yum repodata in default version v1.18

Version

Computer

OS: 64bit Mac OS X 10.15.7 19H15
Kernel: x86_64 Darwin 19.6.0

autok3s

Version: {"gitVersion":"v0.2.0-rc1","gitCommit":"883f5faf3454b4e7c4ce8e1830b3157c90cb7ddf","gitTreeState":"","buildDate":"2020-11-12T08:25:40Z","goVersion":"go1.13.12","compiler":"gc","platform":"darwin/amd64"}

Detail
I want to create a k3s cluster in my server.
I try exec:
autok3s create --provider native --ui --worker 2 --master 1 --master-ips '<IP_ADDRESS>' --worker-ips '<IP_ADDRESS>,<IP_ADDRESS>' --name test-k3s

And get some errors in the terminal.
INFO[0000] [native] executing create logic...
INFO[0000] [native] executing init k3s cluster logic...
INFO[0000] [native] creating k3s master-1...
ERRO[0013] Process exited with status 1
INFO[0013] [native] executing rollback logic...
DEBU[0013] [native] nodes [10-100-60-251 10-100-60-198 10-100-60-252] will be rollback
WARN[0013] [native] rollback error: [cluster] error when uninstall k3s nodes: [dialer] no node IP is specified,[dialer] no node IP is specified,[dialer] no node IP is specified
INFO[0013] [native] successfully executed rollback logic

I can't get any userful infomation. BAD
I try to solve this question.

Fail: Master YUM REPO [v1.18]
https://rpm.rancher.io/k3s/v1.18/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

If you have the same question , try to define the k3s version.
autok3s create --provider native --ui --worker 2 --master 1 --master-ips '<IP_ADDRESS>' --worker-ips '<IP_ADDRESS>,<IP_ADDRESS>' --name test-k3s -d --k3s-channel stable

Stable YUM REPO
rancher-k3s-common-stable Rancher K3s Common (stable)

@zsnmwy ,thx for ur report,I debugged and got the full error info below,you could get the same info if you run yum update on your server after you ran autok3s create command with default v1.18. It looks like a repo problem of k3s 1.18 on centos.
workaround:

delete the v1.18 repo file,rm /etc/yum.repos.d/rancher-k3s-common-v1.18.repo
run command with option --k3s-channel stable

error info
https://rpm.rancher.io/k3s/v1.18/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

 One of the configured repositories failed (Rancher K3s Common (v1.18)),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=rancher-k3s-common-v1.18 ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable rancher-k3s-common-v1.18
        or
            subscription-manager repos --disable=rancher-k3s-common-v1.18

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=rancher-k3s-common-v1.18.skip_if_unavailable=true

failure: repodata/repomd.xml from rancher-k3s-common-v1.18: [Errno 256] No more mirrors to try.
https://rpm.rancher.io/k3s/v1.18/common/centos/7/noarch/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

How about updating the debug log?
Make it easy to help us to debug.
INFO[0000] [native] executing create logic...
INFO[0000] [native] executing init k3s cluster logic...
INFO[0000] [native] creating k3s master-1...

DEBU[0000] [native] k3s master-1 exec command :  curl something.com ...

@zsnmwy will update the debug logic at v0.2.0

@zsnmwy ,thx for ur report, It looks like a repo problem of k3s 1.18 on centos. See also rancher/k3s#2451

change to --k3s-channel=latest solve the problem.

any question, please reopen this issue


Automate deployment

Would be cool if I had GitHub actions doing an automatic deployment to AWS lambda

Won't fix for now. Will wait until we split up the code (if we do) and add some local tests in

We can incrementally go towards it.


Error thrown on  ES2015 Loader import() call

In files using  ES2015 Loader spec (e.g. bundle splitting with webpack@2.2.0-rc.3), import(...) throws with SyntaxError: Unexpected token.
This is true whether using the flow parser or babylon
Sample code:
import React from 'react'
import idbKeyval from 'idb-keyval'

import Shell from './components/app-shell'

class AppShell extends React.Component {
  constructor () {
    super()

    this.state = {app: <Shell />}
  }

  componentWillMount () {
    Promise.all([
      idbKeyval.get('store'),
      import('./root')
    ])
    .then(
      ([data, module]) => { this.setState({app: <module.default initialData={data} /> })},
      (err) => {console.log(err)}
    )
    .catch((err) => {
      console.log('Chunk loading failed', err)
    })
  }

  render () {
    return this.state.app
  }
}

export default AppShell

this is because the babylon plugin dynamicImport isn't used (also on a fork of babylon atm since we haven't released)

@hzoo Just saw that myself... happy to close if it's a known quantity.

Can close via https://github.com/jlongster/prettier/pull/51

Closing per this recommendation


TS Error: GraphQLDocumentError: Unknown type "ImgixFixed"

Versions

gatsby-source-prismic: ^5.2.9
gatsby-plugin-prismic-previews: "^5.2.8"
node: v16.15.0

Reproduction

Minimal reproduction repository: https://github.com/alexanderbluhm/gatsby-ts-prismic-error
Steps to reproduce

Initialize a new Gatsby TS project npm init gatsby -ts (No CMS, Add PostCSS, Responsive Images, React Helmet, Manifest)   Of course it works now with npm start
npm i -D gatsby-source-prismic
npm start
(The same happens if I only install gatsby-plugin-prismic-previews)

What is expected?
I expect that the project starts without any errors and correct type generation.
What is actually happening?
I get this error when starting the dev server:
ERROR #12100  GRAPHQL

There was an error while trying to generate TS types from your GraphQL queries:

    AggregateError: GraphQL Document Validation failed with 300 errors;
  Error 0: GraphQLDocumentError: Unknown type "ImgixFixed".
    at undefined:2:32
  ...

It is working now if I add the plugin to the Gatsby config and connect it to a Prismic repository with two published documents.
However, it shouldn't throw a type error when only adding the packages.

@alexanderbluhm Thanks for following up after finding a semi-solution.
I believe this happens because Gatsby looks through node_modules for any graphql`...` queries when generating TypeScript types.
gatsby-source-prismic defines its own GraphQL fragments with graphql`...` in gatsby-source-prismic/fragments.js, which uses ImgixFixed. The ImgixFixed GraphQL type won't exist unless the plugin is loaded by adding it to gatsby-config.js.
This isn't something that can be fixed in the plugin, and I would consider it a bug in Gatsby's new TypeScript types generation. Gatsby shouldn't read plugins not added to gatsby-config.js.
If the Gatsby team decides it is not a bug, then I think we would need to treat it as a non-issue and require gatsby-source-prismic to be added to gatsby-config.js if it is installed.


docs: add not about vue-tsc

Added a note about vue-tsc, since nuxt3 doesn't work with vue-tsc version 2, I lost a lot of time searching for a solution, I hope this little note helps others and saves a lot of time.

I think there are a few bugs in the latest vue-tsc but it is working in this monorepo (we've updated and run tests with it).
Any issues should probably be raised in http://github.com/vuejs/language-tools - they may already have been resolved.

@danielroe Hi!
It's not work in fresh install: https://stackblitz.com/edit/nuxt-starter-pgvktu?file=package.json

Agreed, the works for me attitude is frustrating. It's definitively not working for Nuxt users who refer to Nuxt's documentation.
At least update the docs that "Hey, everyone of you that enables typeCheck: true will run into this bug. We know, it sucks, but it's not us. Please see this link for more information."

We did add a note to the docs. See the PR linked at https://github.com/nuxt/nuxt/pull/26083

Timing is impeccable. Thank you @danielroe. I just noticed the same and came back here to correct my comment. 🙇


docs: add "What are Configuration Classes?"

Description
Closes #7388
Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[] Unit testing, with >80% coverage
[x] User guide updated
[] Conforms to style guide

If there are no objections, I will merge this within a couple of days.


document how to get the data of a file downloaded with "filesDownload(args)"

Why is this feature valuable to you? Does it solve a problem you're having?
It's hard to tell how to do that, first i could not have known if that was even possible if i haven't looked at the HTTP Api documentation, i have to poke around the source code (which toke a while), to figure out what was happening.
Describe the solution you'd like
document how to get the file data.
Describe alternatives you've considered
document that the javascript API documentation is incomplete, instead have a link to the HTTP Api docs which seems much better.

Thanks for sharing! I'll ask the team to improve the documentation accordingly.


Revise autoscaler doc with appfile focused

Splitted autoscale docs to be appfile focused,
and add cpu utilization scaling policy for appfile
To implemented #564

Add please also add reference doc for autoscaler like other traits.

Add please also add reference doc for autoscaler like other traits.

Please allow me to add this doc later in my evening. Thanks.


Klaviyo

Trying to create an account but the verification email is not landing<EMAIL_ADDRESS>

https://ethyca.atlassian.net/wiki/spaces/EN/pages/2594963514/Klaviyo+Connector+Specification


Support Python 3

Would be awesome to make txpostres work on Python 3.3+

I deferred supporting Python 3 while Twisted itself didn't support it, but I think the state of the art has changed on that... I'll re-check if parts of Twisted that txpostgres uses are Python 3 compatible already.

@wulczer awesome! Should you run into missing parts, please let me know - as I might be able to arrange things to get quickly ported (@hawkowl is working on Crossbar.io and she did a lot of Twisted Python 3 porting work, and is Twisted release manager).

So... it turned out the hardest part in supporting Python 3 was getting the Travis build to pass :)
All tests on master now pass on Python 3.4 and 3.5 locally, and on 3.5 in Travis. Note that txpostres now dropped Python 2.5 compatibility, which I believe is fine - I'm supporting whatever Twisted is supporting at the moment and they even dropped Python 2.6 recently...
I'm going to let this sit in master for a few days and then release it as 1.6.0.

@wulczer awesome! this is great news. Looking forward to the next release. Thanks!

All tests on master now pass on Python 3.4 and 3.5 locally, and on 3.5 in Travis.

Amazing! Thanks :D
I swear I need some sort of page for Twisted ecosystem projects ported to 3...

I'm supporting whatever Twisted is supporting at the moment and they even dropped Python 2.6 recently...

Yep!

Welp, I released 1.6.0 with Python 3 compat. Thanks for nudging me to work on it, it was much easier than I expected!

@wulczer fantastic. thank you so much!


fix: repairing cgroup telemetry for memory and pressure metrics

What type of PR is this?
Repairs cgroup telemetry for memory and pressure metrics
What this PR does / why we need it:
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall First build on antoniovi/cgroup_telemetry at 60.632%

Totals

Change from base Build<PHONE_NUMBER>:
60.6%

Covered Lines:
2572

Relevant Lines:
4242

💛  - Coveralls


Add University of Michigan Theme

Hi, this is a theme using University of Michigan colors. Here is a screenshot:

Thank you! Tweaked to remove the confusing comment in d1aeaa3, added to README in 0aaffa3, and merged in 971f909!


removed use of global namepace

Replaced all uses of $global in the module and tests.  Normalized CRLF line endings in a failing test.

Just added some :)

Thanks for updating those! I just merged in #77 and #78 (Thanks @TimCurwick and @doug-reimer!) there were some pretty big changes and some added $global:polaris references to  some test files.
If you have the time, could you address these? Otherwise, I can address it sometime next week when I'm back from vacation. Thanks for contributing!

Merged a modified version of your changes here: https://github.com/PowerShell/Polaris/pull/83
Your commits stayed in :) thanks for this!


Changes to backgound script [background.js] doesn't trigger hot reloading

Unlike other files, changes made to background.js doesn't propagate automatically and requires manual reloading of the chrome extension. Any workaround?

Yes it doesn't, if you want background scripts to support Hot reload, you have to make more extra works, like glenjamin/ultimate-hot-reloading-example made Express server hot reload.
Also, a correctly behavior is automatically full-reload (see webpack/replace/log-apply-result.js#L16-L18), because we change to webpack-hot-middleware, so currently it doesn't work. The code should move to webpack-hot-middleware/process-update.js, I'll update it.


Test cases added for add/update/mark/unmark command

Coverage increased (+3.7%) to 82.252% when pulling 15cefca918037ea1e04fcf3435ce6cbb6b524e05 on KohJunWei:V0.5 into af47e5a22f49564a7888d993826cf88be2c6a2aa on CS2103JAN2017-T11-B1:V0.5.


The macos environment is bash but cannot be used bash-insulter

help

can you give some more context?


Unable to add SQLDelight shared KMM code to the Compose Multiplatform template

Related to
https://github.com/JetBrains/compose-multiplatform/issues/3178
https://github.com/JetBrains/compose-multiplatform/issues/3178#issuecomment-1568982375

I am having a different, but possibly related, problem when adding SQLDelight to my KMM Compose project. It's the same problem described by this other person who posted on stackoverflow: https://stackoverflow.com/questions/76676789/compose-multiplatform-gradle-plugins-build-errors

//setting.gradle.kts
pluginManagement {
    repositories {
        maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
    }
}

//share.build.gradle.kts
plugins {
    id("app.cash.sqldelight") version "2.0.0-rc02"
}

kotlin {
    listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach {
        it.binaries.framework {
            baseName = "shared"
            isStatic = true
            linkerOpts.add("-lsqlite3")
        }
    }

    sourceSets {
        val commonMain by getting {
            dependencies {
            }
        }
        val androidMain by getting {
            dependencies {
                //database
                implementation("app.cash.sqldelight:android-driver:2.0.0-rc02")
            }
        }
        val iosX64Main by getting
        val iosArm64Main by getting
        val iosSimulatorArm64Main by getting
        val iosMain by getting {
            dependencies {
                implementation("app.cash.sqldelight:native-driver:2.0.0-rc02")
            }
            iosX64Main.dependsOn(this)
            iosArm64Main.dependsOn(this)
            iosSimulatorArm64Main.dependsOn(this)
        }
    }
}

sqldelight {
    databases {
        create("LeDB") {
            packageName.set("com.le.database")
        }
    }

    linkSqlite.set(true)
}

in Xcode:

I can use it through the above configuration

Also facing the same with sql delight version 1.5.5

@Atlands Thanks, but when I upgrade to sqldelight version "2.0.0-rc02 (was on 1.5.5) I get an error "Compose 1.4.1 is not compatible with Kotlin 1.8.22", which is weird because I have Kotlin 1.8.20 everywhere in my configuration. Also databases in the sqldelight block is not recognized.
Can anyone suggest a set of compatible versions of

Kotlin
Compose Multiplatform
Compose compiler
SQLDelight

that would work for an Android and iOS multiplatform project?

Upgraded to SQLDelight 2.0.0-rc02. The problem persists.

With Compose Multiplatform (CMP) 1.5.0-beta01 isStatic=true is no longer required for CMP. Thus one cocoapod can now host both CMP and SQLDelight.
Note: iOS build works only from Xcode, not from AS Giraffe | 2022.3.1
https://github.com/JetBrains/compose-multiplatform/issues/3178 is also closed.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


add micro-optimization to throughput on "keccak_p1600" to remove allocations and clean up profiling results

Thanks @LilithHafner! I'm wondering, how does this compare to using EMPTY_STATE and redefining EMPTY_STATE to be @ntuple 25 zero(UInt64)?

Ok, I wanted to add more throughput tests, and I did what I mentioned along the way. If I'm not imagining it, keccak_p1600 got a nice little speed-boost from this! Thanks for raising this :)


[dd-search] update DD search to include latest attributes

💪 Motivation
...so that I can search all attributes from one interface, versus needing to use the docbook interface for PDS4
📖 Additional Details

Per user request from mission data provider, bringing all this metadata together would really help data providers track down information about PDS4 attributes.
https://pds.nasa.gov/tools/dd-search/
⚖ Acceptance Criteria
Given
When I perform
Then I expect

⚙ Engineering Details

closing as wontfix. dd-search has been deprecated


Patch 2

Q
A

issue or Enhancement
issue

BC breaks?
no

Deprecations?
no

Changelog updated?
yes

Tests exists and pass?
no

Related tickets

License
MIT

What's in this PR?
Adds support für Variation Bundle stocks. Stock entries with IDs that differ from the main variant are ignored.
Why?
Stocks for Variation Bundle Items are summed up.
Example Usage
Checklist

[x] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix

To Do

[x If the PR is not complete but you want to discuss the approach, list what remains to be done here

solved with #244


Local shared repository

How can I setup a shared repository for spark packages, for managing non-open-sourced packages we build internally?
Jianshi

Hi,
I'm not sure if I understood your question correctly, but I'll give it a try. The Spark Packages repository is a maven repository on Bintray. You can set up a private repo on Bintray, or a host of your choice and add that repository as a resolver in your build.sbt (as we do to add the Spark Package repo here ).
Burak

I see. Then i can just publish to our local nexus. Just wondering how it would package python code for distribution.
Jianshi

spPackage packages the python code in the root directory of the jar (in addition to the Java/Scala class files). When the jar is added to the sys.path or PYTHONPATH, python codes should run without a problem.
Burak

Ah it's in the jar. I see. Thanks for the explanation. Would you recommend
using it for all Spark apps? As it handles python by default which saves
people some configurations. :)
Jianshi
On Sun, Mar 15, 2015 at 3:43 AM, Burak Yavuz<EMAIL_ADDRESS>wrote:

spPackage packages the python code in the root directory of the jar (in
addition to the Java/Scala class files). When the jar is added to the
sys.path or PYTHONPATH, python codes should run without a problem.
Burak
—
Reply to this email directly or view it on GitHub
https://github.com/databricks/sbt-spark-package/issues/2#issuecomment-80690646
.

--
Jianshi Huang
LinkedIn: jianshi
Twitter: @jshuang
Github & Blog: http://huangjs.github.com/

Most certainly!
Burak


Missing integration with the main Edit menu operations

The binja Edit menu cut/copy/paste operations do not interact with the notepad widget.
Not sure how difficult that would be to fix, just something I noticed.

Confirmed that I can reproduce this, but I'm not sure how to proceed. Investigating now.


Rename set_to_groups and set_to_target

I changed title for #1114 . Let's discuss new names here if we remove sos_groups and say sos_targets have groups. I was thinking set_each for paired_with and group_with as is.

Renamed to paired_with and group_with for backward compatibility.


Delete events after completing run()

This moves the memory deallocation from
the performance sensitive XMLEventStream::generate()
to the XMLEventStream destructor.

I'm not a big fan of this change because I think it is important to treat all events the same and this pattern does not fit well with algorithmically generated events or events that we read incrementally from a file.


eve-glue and esi.evetech.net

[ ] Add link to https://github.com/esi/eve-glue  (maybe to #using-esi-data?)
[ ] Add link to https://esi.evetech.net/ in the readme (There is already a link in esi_introduction.md maybe that is enough?)

I would do it myself, but, it end up being CarbonAlabel who did all the work the last time...

Some thoughts on this:
As mentioned in https://github.com/esi/eve-glue#readme, it would be best if apps used the string values returned by ESI enums, and not the IDs and bitmasks that are used to represent them in the monolith, so if anything, I'd link to it from the "Transitioning from XML/CREST" docs.
The front page of the docs could indeed use a nice, big link to https://esi.evetech.net/. As for https://docs.esi.evetech.net/docs/esi_introduction.html, it could use an overhaul to make it read less like marketing talk (which, being a copy-paste of https://developers.eveonline.com/blog/article/introducing-the-esi-api, it actually is), and more like a guide on taking your first steps with ESI.

ESI enums is the right way to store those values, but, to get the text used in-game, you still need to do enum -> id -> sde. Therefore, It is my opinion is that glue is still an important part of ESI development and should be part of the documentation (until an alternative to get the in-game text is available). That is just my opinion, though, and I may be totally wrong...


ADMIN FEATURES

specific color of admin
more commands
To report in chat that an admin has entered
TAG [ADMIN] IN THE CHAT

more ideas?

I am willing to pay, since the youtubers that play on my server want this i want this too xD
Like royal kept asking me and Risky and bang.
Its only chat colours!

YES PLEASE ADD !!

2 things.

User levels are already implemented into the system. There is no reason to add it. This is supposed to be a base, you can add everything else by learning and working with the code.
You'll need work on your client as well for it to really work as well. (Since IP's change)

There is no point in this. Not all people want it, this is more of a base. Everything else, you'll have to add.

@MastaCoder is right, people with custom clients should use the base to their advantage to do as they please with chats and such. Adding it into the server itself would not be such a good idea, considering how many different clients people use.

specific color of admin

you can just set your color using the color command

more commands

I could probably consider this, anything from CommandList and PlayerCommand does not affect performance so I could add as many commands as I want. But which commands would you like to see?

To report in chat that an admin has entered

What I said earlier

TAG [ADMIN] IN THE CHAT

What I said earlier

main commands like /mass - /kick - /ban - /playerlist - /minion - /tp - /kill

How would mass - kick - etc work if you don't know player ID's? You can't fit a whole playerlist inside a chat of course. We need to find another way. Of course I can add a packet to Cigar to do things like this. (Show more information), but I'll need to get them from @Megabyte918 on how he will add the code to the server first.


Disable Valgrind because of leak in 1.83 unit test runner

[x] I agree to follow the project's code of conduct.
[x] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

I give up...


home controller

bind event listener to the search form
spread the data in the view template (still missing the data)

spread data ---> done
search form ---> remains

search done


Remove unnecessary calls to rb_hash_dup when keyword args are directly passed through to another method call

Motivation
Follow up PR to stripe/sorbet_llvm#520
This PR handles the following case:
def foo(**args)
  bar(**args)
end

Here, the keyword args are being directly passed through to bar, so there's no need to duplicate them again.
Test plan

See included automated tests.
Benchmark (on master):
ruby vm startup time: 0.129
stripe/while_1_000_000.rb       0.136   0.144
stripe/kwargs_splat_pass_through.rb     0.545   0.351
stripe/kwargs_splat_pass_through.rb - baseline  0.409   0.207

Benchmark (on this branch):
ruby vm startup time: 0.122
stripe/while_1_000_000.rb       0.135   0.133
stripe/kwargs_splat_pass_through.rb     0.538   0.292
stripe/kwargs_splat_pass_through.rb - baseline  0.403   0.159

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_K2BxsMzZxUg9fx
→ https://go/builds/bui_K2ByqYvLJCxQoh


Do not crash LiveView with empty amount field in movement form

Pull Request Test Coverage Report for Build 28659829b925e895c9f60fd42652ee291c6548e5-PR-212

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.351%

Totals

Change from base Build 526fae8c7ef9ca800d8f132d1f5b07f242cda2d1:
0.0%

Covered Lines:
491

Relevant Lines:
740

💛  - Coveralls


Add NumUniqueSelection

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (32bbaea) 100.00% compared to head (8c0dc89) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #245   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           73        73
  Lines         1875      1886   +11
  Branches       201       201
=========================================
+ Hits          1875      1886   +11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Better license statement

You are creating great software, thank you very much for that.
An improvement could be a better display of the license for each file.
I am a license compliance expert working for Siemens. We scan all open source we use
to know all licenses, for example with tools like FOSSology (https://www.fossology.org/).
These tools have a hard time analyzing your file header, because they are not prepared to resolve
a URL like https://github.com/RicoSuter/NJsonSchema/blob/master/LICENSE.md.
The standard for license compliance would be an SPDX identifier like SPDX-License-Identifier: MIT,
see https://spdx.dev/ids/ for details. If you want to do a perfect job, you could also have a look at
https://reuse.software/.
I have my own OSS projects, so I know that updating each file costs some effort ... but it would make
your projects a little be mote perfect and better to use.

Can you propose a header

Thanks for asking. A minimum change would be
//-----------------------------------------------------------------------
// <copyright file="DefaultTypeNameGenerator.cs" company="NJsonSchema">
//     Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>MIT License</license>
// <author>Rico Suter<EMAIL_ADDRESS>//-----------------------------------------------------------------------

Including the tag SPDX-License-Identifier makes it more unambiguously:
//-----------------------------------------------------------------------
// <copyright file="DefaultTypeNameGenerator.cs" company="NJsonSchema">
//     Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// Licensed under the MIT License.
// SPDX-License-Identifier: MIT
// <author>Rico Suter<EMAIL_ADDRESS>//-----------------------------------------------------------------------

I do fully understand that updating all license headers costs some effort.
I did this to have my projects being REUSE compliant, see https://github.com/tngraf/Tethys.Logging
or https://github.com/tngraf/Tethys.Dgml.
Why not taking just the license of the package?
Well, if you have well maintained code or strict rules, then this would be possible. But as soon
as there are 50 or more contributors or the project is quite old or no one takes really care,
then you and up with files under different licenses. I have analyzed thousands of OSS components
and some of them had more than 40 different licenses. Some of them had more than 20 different
variants of the BSD license The law allows every developer to come up with his/her own license.
From the legal point the license referenced in a single source file is the correct
one - the license of the package can be different.


Add fda_linker processor to docker cloud config

Will merge this now, as we need it to run the FDA linker in docker cloud. Please take a look when you can, it has pretty much the same config as the other images.


six tries to import inappropriate modules under certain circumstances

Originally reported by: ceridwenv (Bitbucket: ceridwenv, GitHub: Unknown)

I found this happening under unusual conditions, so I don't know how much of a general problem it is.  I'm trying to use Pympler to profile the memory used by a script that uses Construct for binary data parsing.  Construct imports six.  When trying to use a particular Pympler function, pympler.asizeof.asizeof(all = True), I get the following traceback:
#!python
Traceback (most recent call last):
  File "./dvilike.py", line 1150, in <module>
    print(pympler.asizeof.asizeof(all = True))
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 2086, in asizeof
    s = _asizer.asizeof(*t)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1681, in asizeof
    s, _ = self._sizes(objs, None)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1651, in _sizes
    s[i] = self._sizer(o, 0, sized)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1627, in _sizer
    s += z(o, d, None)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1627, in _sizer
    s += z(o, d, None)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1627, in _sizer
    s += z(o, d, None)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1627, in _sizer
    s += z(o, d, None)
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 1626, in _sizer
    for o in r(obj, False):
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 526, in _refs
    for _, o in _dir2(obj, **kwds):
  File "/usr/local/lib/python3.4/dist-packages/pympler/asizeof.py", line 370, in _dir2
    if hasattr(obj, slots):
  File "/usr/local/lib/python3.4/dist-packages/six.py", line 109, in __getattr__
    _module = self._resolve()
  File "/usr/local/lib/python3.4/dist-packages/six.py", line 106, in _resolve
    return _import_module(self.mod)
  File "/usr/local/lib/python3.4/dist-packages/six.py", line 77, in _import_module
    __import__(name)
ImportError: No module named 'winreg'

I'm on a Linux system, so of course there is no winreg module.
In trying to figure out what was happening with the debugger, I couldn't find any evidence that asizeof() was directly requesting the winreg import, so I suspect the problem is in six itself, but I don't understand what it's doing well enough to verify that.

Bitbucket: https://bitbucket.org/gutworth/six/issue/87

I'm seeing this as well when importing boto3 on pythonista.  I know it's been nearly 3 years since @benjaminp commented last, and I hate to necro this post, but is this still a problem for anyone else?
import boto3
Traceback (most recent call last):
File "/var/containers/Bundle/Application/FB154B72-0B7E-4803-A25A-82E79B42CCEB/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 127, in getattr
_module = self._resolve()
File "/var/containers/Bundle/Application/FB154B72-0B7E-4803-A25A-82E79B42CCEB/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 111, in _resolve
return _import_module(self.mod)
File "/var/containers/Bundle/Application/FB154B72-0B7E-4803-A25A-82E79B42CCEB/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 78, in _import_module
import(name)
ModuleNotFoundError: No module named 'winreg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/boto3/init.py", line 16, in
from boto3.session import Session
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/boto3/session.py", line 17, in
import botocore.session
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/botocore/session.py", line 26, in
import botocore.credentials
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/botocore/credentials.py", line 27, in
from dateutil.parser import parse
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/dateutil/parser.py", line 17, in
from . import tz
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/dateutil/tz.py", line 19, in
from dateutil.tzwin import tzwin, tzwinlocal
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/dateutil/tzwin.py", line 26, in
TZKEYNAME = _settzkeyname()
File "/private/var/mobile/Containers/Shared/AppGroup/9AD20990-8045-4AF3-9A60-0E6470679929/Pythonista3/Documents/site-packages/dateutil/tzwin.py", line 17, in _settzkeyname
handle = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
File "/var/containers/Bundle/Application/FB154B72-0B7E-4803-A25A-82E79B42CCEB/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/six.py", line 129, in getattr
raise AttributeError(attr)
AttributeError: ConnectRegistry


Runner IO: Annotating any Input fails

Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML

[x] No

2. I have searched for existing issues

[x] Yes

3. This bug occurs in Hera when...

[ ] exporting to YAML
[x] submitting to Argo
[ ] running on Argo with the Hera runner
[ ] other:

Bug report
Describe the bug
Hello, I have an issue with IO function parameter using Runner constructor that fail when I annotate Input/Ouput object.
I spotted it with my code, and then reproduced it with a simple example. I need this approach cause:

Only one function parameter can be specified when using an Input.
I need to annotate information that differ from one function to another, with the same IO object. Else I have to create a new model just for annotation.

This works:
@script(constructor="runner")
def pydantic_io(my_input: MyInput) -> MyOutput

This doesnt works:
@script(constructor="runner")
def pydantic_io(my_input: Annotated[MyInput, {"bla":"whatever"}]) -> MyOutput

_Error log:
hera.exceptions.BadRequest: Server returned status code 400 with message: `templates.main.steps[1].pydantic-io templates.pydantic-io inputs.parameters.my-input was not supplied`

To Reproduce

from hera.workflows.io import Input, Output
from hera.workflows import Artifact, ArtifactLoader, Parameter, Steps, Workflow, script
from hera.workflows.archive import NoneArchiveStrategy
from prj.cfg.config import *

from typing import Annotated
from pydantic import BaseModel

class MyObject(BaseModel):
    a_dict: dict  # not giving a default makes the field a required input for the template
    a_str: str = "a default string"

class MyInput(Input):
    param_int: Annotated[int, Parameter(name="param-input")] = 42
    an_object: Annotated[MyObject, Parameter(name="obj-input")] = MyObject(
        a_dict={"my-key": "a-value"}, a_str="hello world!"
    )
    artifact_int: Annotated[int, Artifact(name="artifact-input", loader=ArtifactLoader.json)]

class MyOutput(Output):
    param_int: Annotated[int, Parameter(name="param-output")]
    artifact_int: Annotated[int, Artifact(name="artifact-output")]

@script(constructor="runner")
def writer() -> Annotated[int, Artifact(name="int-artifact", archive=NoneArchiveStrategy())]:
    return 100

@script(constructor="runner")
def pydantic_io(
        my_input: Annotated[MyInput, Parameter(name="my-input")],
) -> MyOutput:
    return MyOutput(exit_code=1, result="Test!", param_int=42, artifact_int=my_input.param_int)

with Workflow(generate_name="pydantic-io-") as w:
    with Steps(name="main"):

        write_step = writer()
        pydantic_io(
            arguments=[
                write_step.get_artifact("int-artifact").with_name("artifact-input"),
                {
                    "param_int": 101,
                    "an_object": MyObject(a_dict={"my-new-key": "my-new-value"}),
                },
            ]
        )
    w.create()

Expected behavior
Being somehow able to annotate Input/Output object-based in my function definition. Or any alternative.
Environment

Hera Version: 5.17.1
Python Version: 3.11.6
Argo Version: 3.5.2

Hey @sam2x! I'm unsure if there's a misunderstanding of the feature, or you want to do something different, if you could help clarify! 🙏
When you use Input as a function parameter, that is how you tell Hera to use all the fields of your subclass of Input as template parameters. When you use Parameter in an annotation, that is telling Hera that "this is a single template parameter".
Therefore
my_input: Annotated[MyInput, Parameter(name="my-input")],

doesn't really make sense - you want an input parameter called my-input, but it is also an Input class, so its fields should also be parameters.
If you want to use metadata in Annotated which is unrelated to Hera (i.e. for your own purposes), that should also work
my_input: Annotated[MyInput, "some metadata"],

From your description

Only one function parameter can be specified when using an Input.
I need to annotate information that differ from one function to another, with the same IO object. Else I have to create a new model just for annotation.

I'm not sure what you mean by "annotate information"? Are the parameters different? Or are the defaults different for each function but using the same parameters? etc...
Please let me know so I can try to help! 🚀

Hello @elliotgunton, thanks for your answer.

Therefore
my_input: Annotated[MyInput, Parameter(name="my-input")],

doesn't really make sense - you want an input parameter called my-input, but it is also an Input class, so its fields should also be parameters.

You are right, I tried in despair different approach, but the reuse of "Parameter" inside an Input was the worst example.

If you want to use metadata in Annotated which is unrelated to Hera (i.e. for your own purposes), that should also work
my_input: Annotated[MyInput, "some metadata"],

That's exactly the issue, the sample won't work even with your example, the hera "signature" parser doesn't seems to detect MyInput when it is specified in this way. Based on your statement, and updating my bug sample, if you try to change from this working definition:
def pydantic_io(my_input: MyInput) -> MyOutput

To this:
def pydantic_io(my_input: Annotated[MyInput, "some metadata"]) -> MyOutput

This would raise the following exception on my side:
hera.exceptions.BadRequest: Server returned status code 400 with message: `templates.main.steps[1].pydantic-io templates.pydantic-io inputs.parameters.my_input was not supplied`

Hope i didn't misinterpret your explanation, and my comment is relevant to you.
Br,
Sam

That's perfect, thank you! All clear from my side, that is indeed a bug/feature we need to fix/add 🚀

Hey again,
I have been digging a bit in the source code. I may have make a mistake on the origin of the issue. This may also come from:
def _get_inputs_from_callable(source: Callable) -> Tuple[List[Parameter], List[Artifact]]:

I would appreciate if you have a look at this discussion, those topics seems to link the same code part :
https://github.com/argoproj-labs/hera/discussions/1241#discussioncomment-10962827


Adding Sparse Matrix Indexing

Summary:
Looking over the Eigen docs I think we can support the following in the stan language
data {
  int N; // rows
  int M; // cols
  int nnz_vals; // number of nonzero values
  int nnz_vec_vals; // number of nonzero values in vector
  int nnz_rows[nnz_vals]; // row position of nonzero values
  int nnz_cols[nnz_vals]; // col position of nonzero values
  int nnz_vec_rows[nnz_vals]; // row position of nonzero vector values
  matrix[N, M] A_mat; // basic matrix
  sparse_matrix[nnz_rows, nnz_cols, N, M] A_sparse; // sparse matrix
  sparse_vector[nzz_vec_rows, N] A_sparse_vec; // sparse vector
}

transformed data {
  sparse_matrix[N, M] A_sparse_mod = A_sparse;
  sparse_vector[N] A_sparse_vec_mod = A_sparse_vec;

  // Coeff access anywhere (slow but doable, fine for preallocated nnz areas)
  A_sparse_mod[1, 5] = 10.0;
  // Row / Column assignment:
  //     From sparse vec
  A_sparse_mod[1, ] = sparse_vector; // stored as column major so efficient
  A_sparse[, 1] = sparse_vector; // bad performance but low effort
  //    From normal mat (possible but why?)
  A_sparse_mod[1:10, 1:10] = A_mat[1:10, 1:10];
  A_sparse_mod[1, ] = A_mat[1, ];
  A_sparse_mod[, 1] = A_mat[, 1];
  //
}

@avehtari which of these would we want? All of them? Am I missing any?
Current Version:
v2.22.0

I'm fine with these. We discussed also rbind and cbind type functions, but I guess it's not indexing.
Pinging @dpsimpson, too.

Cool cool! Yeah I would add rbind and cbind to stan math

Will a dense to sparse conversion lose derivative information on the zero entries?
We have append_row and append_col instead of rbind and cbind.  What signatures are you considering adding?

Will a dense to sparse conversion lose derivative information on the zero entries?

Do you mean like
  A_sparse_mod[1:10, 1:10] = A_mat[1:10, 1:10];

For that I would preserve the zero value entries so it would retain the derivative information

Yes.  That was the question.  If it's data, you can drop the zeros, but if it's parameter, you need to keep all those in the sparse form.

Yes. That was the question. If it's data, you can drop the zeros, but if it's parameter, you need to keep all those in the sparse form.

Cool! Yeah dropping would be better for data but we can do that optimization later.
Also good news! Turns out the stuff I did in #2893 to generalize the rvalue and assign functions make them all pretty much just work on sparse matrices. I'm working on the tests now to verify

I got confused for a moment by nnz_rows which I interpreted as "number of non-zero rows", not the rows that have non-zeros in them (it's the first n that's the problem). Maybe nonzero_rows or row_index would be clearer.
Still not a fan of dense -> sparse (or sparse -> dense) assignment.

I got confused for a moment by nnz_rows which I interpreted as "number of non-zero rows", not the rows that have non-zeros in them (it's the first n that's the problem). Maybe nonzero_rows or row_index would be clearer.

Fixed!

Still not a fan of dense -> sparse (or sparse -> dense) assignment.

I'm fine with not allowing it, in stanc3 I can write the assignment so that it only works for sparse->sparse


Pull in dates when using Importer

Pull the timestamps from BeatMods when using the importer

implemented, requires testing. needs to be done before deployment.


Make StringIO#warn public and track any exceptions in the test.

Add a missing test when the test raises an exception.
We should now see the database exception message if the test raises.
Fixes #2104
Failure/Error: MiqDbConfig.log_activity_statistics(buffer) NoMethodError: private method warn' called for # #
Review with &w=1 in the URL since half of the changes are whitespace.
cc @tenderlove

@Fryguy @kbrock Please review/merge, it keeps failing and the exception is being swallowed due to the  private method  warn error


[SPARK-19933][SQL] Do not change output of a subquery

What changes were proposed in this pull request?
The RemoveRedundantAlias rule can change the output attributes (the expression id's to be precise) of a query by eliminating the redundant alias producing them. This is no problem for a regular query, but can cause problems for correlated subqueries: The attributes produced by the subquery are used in the parent plan; changing them will break the parent plan.
This PR fixes this by wrapping a subquery in a ReturnAnswer top level node when it gets optimized. The RemoveRedundantAlias rule now recognizes ReturnAnswer and makes aure that the output attributes of the ReturnAnswer node are retained.
How was this patch tested?
Added a test case to RemoveRedundantAliasAndProjectSuite and added a regression test to SubquerySuite.

cc @cloud-fan @ueshin

cc @wzhfy

Test build #74453 has started for PR 17278 at commit 54cbad1.

Test build #74453 has finished for PR 17278 at commit 54cbad1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/74453/
Test PASSed.

Test build #74505 has started for PR 17278 at commit 3e460b6.

Test build #74505 has finished for PR 17278 at commit 3e460b6.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class Subquery(child: LogicalPlan) extends UnaryNode

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/74505/
Test PASSed.

LGTM except for the pr description, which still uses ReturnAnswer.

Merging to master. Thanks for the review!


Update AWS Elastic Beanstalk Docker Setup docs

Review the existing AWS Elastic Beanstalk Docker Setup product documentation for technical accuracy and update as needed.
The following user feedback has been shared with Mattermost about this page of product documentation:
- These instructions do not match the steps or labels now used at the AWS Elastic Beanstalk web interface.
- Multi-Container Docker is no longer an option for Environment Type.
Prerequisites: Experience with and access to AWS Elastic Beanstalk is needed to complete this technical review and apply required updates.

@cwarnermm I would like to work on this issue

We appreciate your help with this, @Hard-Coder05! Thank you!


Custom Block issue

In custom block not create using  Section, Column and  Image
Kindly provide the latest example using Section Column And Image. We are using your Nov 28 verified Commit

https://github.com/m-Ryan/easy-email-demo/blob/main/src/CustomBlocks/MyFirstBlock
Please see this demo


Fixed broken links - 05.2022

How to categorize this PR?

/area documentation
/kind enhancement
What this PR does / why we need it:
This PR fixes broken links
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/retest-required


ValueError: The metric [context_recall] that that is used requires the following additional columns ['reference'] to be present in the dataset.

[ ] I checked the documentation and related resources and couldn't find an answer to my question.
Your Question
I am getting this error while executing
ValueError: The metric [context_recall] that that is used requires the following additional columns ['reference'] to be present in the dataset.
Code Examples
from ragas import evaluate
result = evaluate(
question_dataset,
metrics=metrics,
)
result
Additional context
Anything else you want to share with us?

@dosu
in this documentation. It is mentioned that we should have the following columns
features: ['question', 'ground_truth', 'answer', 'contexts'],
n i have these available.
Anyhow, i have renamed the column from contexts to references.
now I'm getting another error.
ValueError: The metric [faithfulness] that that is used requires the following additional columns ['retrieved_contexts'] to be present in the dataset.

@dosu so do i need 4 columns or 5 columns? Earlier you mentioned i should have reference column as well
Example dataset
data = {
"question": ["What is the capital of France?"],
"answer": ["The capital of France is Paris."],
"retrieved_contexts": [["Paris is the capital city of France."]],
"ground_truth": [["Paris is the capital city of France."]]
}

this is still not working. I am getting the following error now. @dosu
ValidationError: 1 validation error for SingleTurnSample
retrieved_contexts
value is not a valid list (type=type_error.list)

Now i, getting a new error  @dosu
ValidationError: 1 validation error for SingleTurnSample
reference
str type expected (type=type_error.str)
whereas my output is in expected format
from ragas import evaluate
result = evaluate(
question_dataset,
metrics=metrics,
)
result

the issue still persists

import pandas as pd
import numpy as np

# Load each CSV file into a separate DataFrame
hr_queries = pd.read_csv('hr_queries_part1.csv')
ground_truth = pd.read_csv('ground_truth.csv')
context = pd.read_csv('context.csv')

# Extract the 'question' and 'answer' columns from the 'hr_queries' DataFrame
user_input = hr_queries['questions']
response = hr_queries['answers']

# Extract the first column from the 'ground_truth' DataFrame
reference = ground_truth.iloc[:, 0]

# Extract the 'context' column from the 'context' DataFrame and rename it to 'retrieved_contexts'
retrieved_contexts = context['context']  # Replace 'context' with the actual column name if it's different

# Create a data dictionary
data_dict = {
    'user_input': user_input,
    'response': response,
    'reference': reference,
    'retrieved_contexts': retrieved_contexts,
}

# Concatenate the DataFrames in the data dictionary
df = pd.concat(data_dict, axis=1)
df = df.astype({"retrieved_contexts": str})  # Explicitly convert to string column

user_input = df['user_input'].map(str).tolist()
response = df['response'].map(str).tolist()
reference = df['reference'].map(str).tolist()
retrieved_contexts = df['retrieved_contexts'].map(str).tolist()

# Save the concatenated DataFrame to a new CSV file
df.to_csv('hr_queries_ragas.csv', index=False)

print(df.columns)

import pandas as pd
from datasets import Dataset, DatasetDict
from ragas import evaluate

# Load CSV using Pandas
df = pd.read_csv('hr_queries_ragas.csv')

# Convert DataFrame to Hugging Face dataset
df['retrieved_contexts'] = df['retrieved_contexts'].apply(lambda x: x if isinstance(x, list) else [x])
df['reference'] = df['reference'].apply(lambda x: str(x) if not isinstance(x, str) else x)
dataset = Dataset.from_pandas(df)

# Create a DatasetDict and add the dataset under the key 'baseline'
dataset_dict = DatasetDict({
    'train': dataset
})

# Print the DatasetDict
print(dataset_dict)

from datasets import Dataset, Features, Sequence, Value

# Define the features
features = Features({
    'user_input': Value('string'),
    'response': Value('string'),
    'reference': Value('string'),
    'retrieved_contexts': Sequence(Value('string')),
})

# Convert the DataFrame to a dictionary
data_dict = df.to_dict('list')

# Convert the dictionary to a Hugging Face Dataset
dataset = Dataset.from_dict(data_dict, features=features)

# Print the first few rows of the Dataset
print(dataset[:5])

from ragas.metrics import (
    context_precision,
    answer_relevancy,
    faithfulness,
    context_recall,
)
from ragas import evaluate
# from ragas.metrics.critique import harmfulness

# list of metrics we're going to use
metrics = [
    faithfulness,
    answer_relevancy,
    context_recall,
    context_precision,
    # harmfulness,

]

for m in metrics:
    m.__setattr__("llm", azure_model)

    import ast
from ragas import evaluate
from datasets import Dataset, Features, Sequence, Value

def convert_types(example):
    example['user_input'] = str(example['user_input'])
    example['response'] = str(example['response'])
    if isinstance(example['retrieved_contexts'], str):
        example['retrieved_contexts'] = [example['retrieved_contexts']]
    if isinstance(example['reference'], str):
        example['reference'] = [example['reference']]
    return example

# Apply the function to the dataset
dataset = dataset.map(convert_types)

# Define the features
features = Features({
    'user_input': Value('string'),
    'response': Value('string'),
    'retrieved_contexts': Sequence(Value('string')),
    'reference': Sequence(Value('string')),
})

# Create a new Dataset that contains the 'user_input', 'response', 'retrieved_contexts', and 'reference' columns
question_dataset = Dataset.from_dict({
    'user_input': dataset['user_input'],
    'response': dataset['response'],
    'retrieved_contexts': dataset['retrieved_contexts'],
    'reference': dataset['reference']
}, features=features)

# Print the types of the columns in the dataset
for column in question_dataset.column_names:
    print(f"{column}: {type(question_dataset[column][0])}")

# Evaluate the dataset using the defined metrics

import pandas as pd
from datasets import Dataset
from ragas import evaluate, RunConfig
from ragas.metrics import (
    answer_relevancy,
    faithfulness,
    context_recall,
    context_precision,
    context_entity_recall,
    answer_correctness,
    answer_similarity,
    noise_sensitivity_relevant,
    noise_sensitivity_irrelevant
)

from ragas import evaluate

result = evaluate(
    question_dataset,
    metrics=metrics,
)

result

This is my output

ValidationError: 1 validation error for SingleTurnSample
reference
  str type expected (type=type_error.str)

same question.
And it only occurs when I use OpenAI's model. When I choose other models such as Zhipuai, it will not appear. The version of my RAGAS is 0.1.20.
I found another issue mentioned this error and it said that “ContextPrecision required reference (v0.2 naming)/ground_truth(v0.1 naming) to be present in the dataset”  and this error is actually a bug in 0.017.

https://github.com/explodinggradients/ragas/issues/1299
However as I mentioned my version of RAGAS is 0.1.20 and this problem still exists.

so did it work for you @Qinlilseven ?