Use rollup to build the app

It's now an npm project with those advantages:

introduces a build step to allow for using modern code syntax
that will be automatically transpiled to support older browsers.
includes commit hook to automatically lint the code on committing
enables (selectively) type checking to catch issues early during development
allows to clean up the code and separate into smaller chunks that will
be combined into a single bundle
releases will be versioned so that it's possible to refer to concrete
versions and possibly include changelogs.
versioning also allows to have non-random URLs for included scripts
so that those can be cached by the browser

The end-user code is now generated in dist/ so that is what user has to
deploy rather than all files in the repo.

@resoai @akloeckner @cgarwood It's a pretty serious change. For those who are involved in the development or plan to be, I encourage you to try it and report issues, annoyances, or anything that might be wrong with this approach. We go forward with it only when everyone is happy. :)

BTW. The approach with document.write'ing the config file from the index.html is neither great nor very compatible with this approach. It required to do it in a sort of hacky way by processing globals/constants and the rest of the app in two input steps, and then document.write'ing the config in between.
A proper solution would be to make the config file be an angular service that could be loaded asynchronously but that would be a breaking change that would require all user configs to be adapted. So I don't really see this happening anytime soon.

Also, I did as minimal as possible changes to existing scripts. If this gets accepted and merged we can do further things with the scripts like:

using more modern JS
enabling more linting rules
structuring script files better
possibly splitting some code into smaller chunks (it all gets bundled together anyway)

Wow. Looks like a great deal of changes. I'll have to deep dive into npm and test with some of my devices... I'll report back!

So, I checkout out your branch and copied my config files to the dist folder. I receive the "invalid config" error... Is stuff like that not allowed anymore?
testEntity='sensor.aktuell_infizierte_in_koln';
//testEntity='input_select.mode';
//testEntity='input_number.wohnzimmer_ontime';

/**
 * Load JS file synchronously and evaluate
 */
function loadJS(url) {
   var xhttp = new XMLHttpRequest();
   var script = document.createElement( "script" );
   xhttp.open("GET", url+suffix, false);
   xhttp.send();
   script.text = xhttp.responseText;
   document.head.appendChild( script ).parentNode.removeChild( script );
}
loadJS('autoconfig.js');

/**
 * AUTOMATIC TILE SIZING
 *
 * Calculates tile size automatically for different screensizes.
 */

var groupWidth  =   2; // count of tiles horizontally
var groupHeight =   4; // count of tiles vertically
var tileMargin  =   6; // px between tiles
var groupMargin =  50; // px between groups
var headerSize  =  60; // px of group or page header
var maxTileSize = 120; // px

var tileSize = setTileSize();
window.addEventListener('resize', function () {CONFIG.tileSize = setTileSize();});

function setTileSize () {
   var width   = window.innerWidth  - headerSize - groupMargin - tileMargin * (groupWidth  - 1);
   var height  = window.innerHeight - headerSize               - tileMargin * (groupHeight - 1);
   var optimum = Math.min(width/groupWidth, height/groupHeight);
   return Math.min(maxTileSize, optimum).toFixed(1);
}

@akloeckner it should still work. You should check the browser console for the exact error.
When I've tried this code here I got an error about undefined suffix so I guess you were relying on the global one from the old index.html?

Ok. I replaced the suffix. Now, it's complaining about angular not being found. Also window.angular doesn't get found. I'm using angular.equals and angular.element...
BTW: Yes. I just prefer my setup to be tidy. So, I moved all helper functions outside of config.js. I just couldn't find my way around in that humongous file anymore...

Right.
Due to this document.write nonsense, I'm creating two bundles, one with just essential global constants and utilities and another with the rest of the app. Config only has access to the former when it's evaluated and that former bundle doesn't have angular source yet.
Adding angular source to that first bundle would duplicate angular which means a much bigger bundle size and also some warnings from angular due to being evaluated twice.
I can't see an immediate clean solution for that but I can look more into it later if we are not fine with this being a breaking change.

I could get rid of element. But I need this in a few places:
var id = window.angular.equals(id0, {}) ? undefined : id0;

I could get rid of element. But I need this in a few places:
var id = window.angular.equals(id0, {}) ? undefined : id0;

Such a simple check could probably easily be replaced with something like Object.keys(id0).length === 0 but still this is something that should probably be addressed.

I don't understand the process of bundling that you introduced. But would it help for this issue to have only one bundle? And what changes would be required on the user side? If the required changes are easily explainable, I'd say we do the restructure properly in the first place and put a migration section into the wiki.

There are two bundles because the config needs to be loaded between those two. Those two bundles are:

Constants and Global Utils
The whole rest including angular, dependencies, and TileBoard.

Config needs to be loaded between those two as it needs access to constants like TYPES.* and all the other.
At the same time, the TileBoard needs access right away to CONFIG from App.config and such.
Making one bundle could work if Config would utilize angular.service and angular.provider. The config would be structured something like this:
angular.module('App').provider('configProvider', function () { this.$get = function(Constants, Noty) { ... } })

I believe that should work. I haven't actually tried it yet.

👍
Have you tried to make app initializing asynchronous? I'm not sure what was the original problem, probably was too lazy to make it. It should help to those who want to make module configs. Though, without rebuilding the app.
May be adding global require function could help solve that problem?

Your comment reminded me that there is a way to initialize angularjs manually. It actually works quite well with just a single bundle now. Thanks! :)

I've reverted some unnecessary style changes to make diffs easier to review.
Style issues will be handled in a separate PR.

In the latest commit, I have fixed issues with assets referenced from CSS not being included in the dist/ folder which meant that those wouldn't be available after deploying.
Also made production bundles have hashes in the filename. That means that on every change of some code, the hash will change which should eliminate issues with caching and not seeing the latest changes after updating to the new version. Also we don't have to bust cache on every request which allows the browser to cache those and load TB faster.

I replaced the angular.equals by your suggestion. No issue anymore. Now it complains about me using mergeObjects, which is apparently found. But inside of it window.angular.merge is not found...

@resoai let's just merge it and solve all problems afterwards :)

@resoai let's just merge it and solve all problems afterwards :)

That is exactly our way! Since I still have absolutely no way to test it, I will leave it up to @rchl and @akloeckner to decide when it is time to merge.

@akloeckner Actually with my latest changes all of angular should be available in your config. So you can keep using it.
As for mergeObjects, I've pushed small change for that but it should have worked already. Maybe try again and post exact error?

Thanks! That seems to work now! (With original config, using angular.merge directly.)
When trying to start the development environment (impressive, I must say), I noticed a few thing to probably add to the CONTRIBUTING docs:

config.js must be copied to dist-dev (not dist)
http://<your-dev-server>:8080 needs to be added to HA's http: cors_allowed_origins:
in case you use https for HA, the default in config.example.js does not work anymore, because dist-dev is served on http

I have one open question still:
In my "production" environment I use multiple branches currently, which I merge together: master for sure, plus secret with my config, plus a few feature/fix branches for testing before I open PRs. As I understand, that will not be possible anymore, because merging does not execute the bundling step, right? (I guess, it boils down to the fact that I have local modifications of the code. An I'm sure, I'm not alone with this.) What would be the steps, I have to take? (Probably, I wouldn't want to override dist, because this would leave me with a dirty git repo. And I also wouldn't want to be running npm run dev all the time.) I suggest to put those steps in the contributing docs (or some more suitable place) as well.
As to the huge amount of changes, I'll have to trust you @rchl , since I have no idea of the magic you have done!
So, apart from these documentation changes, I suggest to merge the PR. Looks promising!

Good foodback. Will try to address it later.
As for your development situation with different branches I'd have to understand that better. Would you be using dist-dev output or dist?

More observations:

somehow the history graphs don't have tooltips anymore.

some graphs fail with r is undefined

the endpoints of the graphs are strange.

As to different branches, i usually do something like this:
git checkout -b deploy master
git merge secret fix-camera-title cleanup-less

This leaves me with a working directory including all features I need/want. Will those merges work with dist? I have the impression, it will be a matter of luck, if merges will conflict, due to the toolchain inbetween. I don't mind changing my workflow. But I'd like it to be as easy (automated) as possible. I could extend my above script with some rollup command. Or I could set up an npm dev service.
Probably the branching thing is a specialty of mine. But others might have simple modifications/fixes they don't bother to put in a PR. Such as fixing the issue here #425 .
So, suppose the user has fixed that one line from #425 locally, what would be the steps to bring this change into dist? And will it survive a git pull?

With the latest changes the hash in the name of generated bundle changes whenever there is change to any script file. So that will not work with merges at all *. Unless git is smart enough to figure out that it's basically the same file with some small changes (which in fact it might be able to do).
I guess we could consider not committing dist/ directory at all and instead automatically generating a release package on commit (through github actions). Then the end-user would find the zipped release on the Releases page and developers would have to npm run build locally to generate their own version with modifications.

I mean when it comes the dist directory of course. The changes in /scripts would still merge as well as before so you could still generate your release bundle easily from that.

some graphs fail with r is undefined

If you are able to reproduce it, can you check what response from API do you get when that happens?

Unless git is smart enough to figure out that it's basically the same file with some small changes (which in fact it might be able to do).
I guess we could consider not committing dist/ directory at all and instead automatically generating a release package on commit

I agree. Git is probably smart enough to track changes through renames. But a merge will still fail, because the two different renames will create a conflict for sure...
Creating ZIPs automatically will probably make it even easier for more non-techy people to use Tileboard. 👍
Possibly, it will make sense to also commit dist, but on a branch which is likely to not need merges, say release. That would allow for the average user to do a simple pull, instead of downloading ZIPs. But it would add quite some overhead to maintaining the repo. If I were you, I'm not sure, if I'd do that.
The developer user will probably be fine with running an additional command to build. I will be at least. (Actually, I'm looking forward to having the dev server, which will not break the production dashboard while I'm playing with new features for it.)

some graphs fail with r is undefined

If you are able to reproduce it, can you check what response from API do you get when that happens?

I've managed to reproduce by restarting HA and then trying to run TB as early as possible after HA restarts.
This is possibly due to some timing issues.
It all goes south when due to this:
               // Create extra state with current value.
               dataset.push({
                  x: Date.now(),
                  y: $scope.states[firstStateInfo.entity_id].state
               });

That last state seems to be a bit broken in this case:
x:<PHONE_NUMBER>645
y: "unknown"

So it looks like $scope.states doesn't have up to date information at that point. Not sure it's a new problem...

@akloeckner

somehow the history graphs don't have tooltips anymore.
some graphs fail with r is undefined
the endpoints of the graphs are strange.

Turns out angular-chart was bundled with old version of chart.js. Fixed all those issues by forcing the latest version of chart.js.
Note that even there is no crash anymore, the #434 is still valid to fix the issue with a wrong graph display.

Another thought I just had: I have tileboard as a sub-repo in my HA config repo. So, instead of copying files from dist, I'll just open a different URL. The same might hold true for people simply checking out tileboard to their webserver.

I've added an index.html in the root.

config.js must be copied to dist-dev (not dist)

Changed

http://<your-dev-server>:8080 needs to be added to HA's http: cors_allowed_origins:

Added a note about that. Unfortunately, that won't work for history API right now (https://github.com/home-assistant/core/issues/39727).

in case you use https for HA, the default in config.example.js does not work anymore, because dist-dev is served on http

Added a note on setting that.

Created #434 for it.

My HA is runing for days. So this is probably not my very issue. (Still good, it's identified!) My debugging pointed me to some tooltip code. (tooltip is replaced by r in the bundled code, but the dev server still had tooltip.) So, I hope, this problem will be solved by you having forced the latest Chart.js version.

Fixed all those issues by forcing the latest version of chart.js.

Could you commit that change , so I can test on my end again?

Unfortunately, that won't work for history API right now (home-assistant/core#39727).

Well, actually, for me that does work, as I noted in #386. However, good it's in the docs now. I'd still suggest to also give a hint to the HA setting, because that's what I had to do to be able to authenticate with HA, even.

Could you commit that change , so I can test on my end again?

Sorry... I didn't see that commit. Tested and all seems to be fine now! Thanks!

I'd still suggest to also give a hint to the HA setting, because that's what I had to do to be able to authenticate with HA, even.

Thanks for the remainder. Forgot about it. Now it's added.

EDIT: Tested in dev server. Very neat. But had to rebuild the dist using npm run build.

Yes, every change in the scripts or dependencies requires rebuild.
I think this should be solved by forcing build on every commit but since we've decided to investigate not committing the dist folder, I'll look into that instead.

CORS...

Thanks! Sorry for being pedantic: localhost will not always be the right host. Probably developers will notice. But since we're discussing it here... I'd phrase it:
Configure http.cors_allowed_origins setting in Home Assistant to allow your server (e.g. localhost) to communicate with the HA API:
http:
  cors_allowed_origins:
    - http://<your-server>:8080

every change in the scripts or dependencies requires rebuild.

Which takes 2m18s on my pi! 30s for the dev server. Maybe we can speed this up once we have the system in place. In my opinion that's anything but "iterate quickly"... Also, it seems to write lots of files. Not sure, what it will do to my SD card wear...

Which takes 2m18s on my pi! 30s for the dev server. Maybe we can speed this up once we have the system in place. In my opinion that's anything but "iterate quickly"... Also, it seems to write lots of files. Not sure, what it will do to my SD card wear...

Personally, I develop on my main Desktop and have a script that just pushes built files to PI.
You could speed up production build by removing terser plugin (appPlugins.push(terser()); line) which is for minifying the code. This is probably what makes the biggest difference. Or maybe try with treeshake: false, in the config.
But yeah, it can be a bit heavy. There are pros and cons to everything...

Personally, I develop on my main Desktop

I should start that, too, maybe... :-) I'll try your options and see, what it does.

I now also got around to testing this with my old iPad, iOS 9.35. I had to create a long-lived token for it (see https://github.com/home-assistant/frontend/issues/5376). However, the TileBoard does not load. It is stuck on the background color. Usually that is an indicator for some broken JS code, hindering the app to initialize.
TileBoard works as usual in the old structure.

Is it possible to get access to the console and see what it errors on exactly?
It's probably possible to configure builds process to support it.

I'm not sure, how to access the console. The internet seems to suggest that I need Safari on my Laptop and some USB cable. It might take some time to get that up and running...
Looking at this issue, however, the const seems to be unsupported by the old iOS (at least):
https://github.com/rollup/plugins/issues/190

I'm not sure, how to access the console.

Hmm... as it seems, I need Safari for this to work.
https://www.kenst.com/2019/03/how-to-debug-problems-on-mobile-safari/
Unfortunately, Safari is said to be only available on Mac.
https://de.wikipedia.org/wiki/Safari_(Browser)
But I have no Mac. So, I guess I'm stuck...

I Will take care of the const problem and we'll see. The code is supposed to be transpiled for old browsers so there shouldn't be any consts in the production bundle

OK, pushed a change that actually transpiles the code for older browsers. Not sure if it will handle your old iOS by default. If not then we'll have to change config to target older browsers.

OK, some bigger changes in the latest commits:

dist directory is not committed (no built app is included)
both npm run build (production build) and npm run dev output to build directory (so not dist and dist-dev respectively)
New release will be created using npm version patch and that will trigger a github workflow which will automatically build, package and create a new release on https://github.com/resoai/TileBoard/releases. Then people can just download the zip file from there that includes only built code and nothing else.

I checked my old iOS. It works (npm run build)!
Since everything works now on my end, I'll be fine to merge as soon as you (and @resoai) are happy with the workflows!

I'm happy with the changes myself too so will merge later in the day.


Field structure

This functionality is specified in:
https://github.com/NatLibFi/marc-record-validators-melinda/issues/17

Fixes done, passes tests now. NCU updated some packages resulting conflict.


Remove main, move examples to Tests.hs

This ticks off the first two TODOs in #9.

Travis fails?

Uhhhh, one sec.

Seems like a GHC 7.8 vs 7.10 issue. My 7.10 threw a warning about that import, but 7.8 seems to require it. Weird.

@snowleopard see https://github.com/mvdan/concepts/commit/c7867785f9f359015f10472a03e5b70adf3f860b. Any ideas?

I'll just remove it for now.

Let's give better names to C-element related tests: testCElementGateLevel and testCElementProtocolLevel. I prefer not to use contractions like Proto for functions that are not frequently used.

@snowleopard done.

Great, thanks!


whalebird: 4.4.6 -> 4.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/whalebird/versions.
meta.description for whalebird is: "Electron based Mastodon, Pleroma and Misskey client for Windows, Mac and Linux"
meta.homepage for whalebird is: "https://whalebird.social"
meta.changelog for whalebird is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/6n0xzrbfkzws8bbx2mcqq4v17z6v47a3-whalebird-4.5.0/bin/whalebird passed the binary check.
0 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 4.5.0 with grep in /nix/store/6n0xzrbfkzws8bbx2mcqq4v17z6v47a3-whalebird-4.5.0
found 4.5.0 in filename of file in /nix/store/6n0xzrbfkzws8bbx2mcqq4v17z6v47a3-whalebird-4.5.0

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

3 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
whalebird

Instructions to test this update (click to expand)

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

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

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

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

1 package built:

whalebird

Maintainer pings
cc @wolfangaukang for testing.

Please consider #154552, as this PR has an issue with the icon path not being recognized properly. Thanks.


Property 'component' does not exist on type IntrinsicAttributes

There is a bug when trying to use component prop with different mui components such as Button and LoadingButton.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
This error is happening when trying to use component prop on several mui components:
Property 'component' does not exist on type 'IntrinsicAttributes & ICustomButtonProps'

Steps to Reproduce 🕹
I have made a codesandbox here that shows the issue: https://codesandbox.io/s/mui-typescript-issue-t2dpk?file=/src/App.tsx

Does anyone know how to get around this issue?

Duplicate of https://github.com/mui-org/material-ui/issues/13921
See https://github.com/mui-org/material-ui/issues/13921#issuecomment-484133463 for how to fix it


Add Kubernetes related icons (already made) to Clarity iconography

Please add these 5 icons to the Clarity icon library under the Technology category:
K8-icons.zip
This can be added to epic #3309 Icons vol 15 if that is more efficient.

CC-ing @ali5ter

Added in #3309


[tests-only][full-ci] retry requests for Given steps on 409 response code

Description

Refactored the code so that when a response of an API request is 409 it retries 10 times
Related Issue

Fixes https://github.com/owncloud/ocis/issues/6630

Motivation and Context

How Has This Been Tested?

test environment:
locally

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[x] Tests only (no source changes)

Checklist:

[x] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

Note: PR #6835 extends this so that the "retry on 409" also happens for file-upload "Given" steps.


App working on web simulator but not on google home device

Created a custom google application on google actions console(using Dialogflow). Working perfectly fine on the web simulator and google assistant application on my phone but not responding on the google home device. I have signed in the google home device with the same Gmail ID as in the actions console and Dialogflow.
Any Ideas?

I've had this problem before myself. I had to log out all my accounts from the app and factory reset the device to get it to work.

Thanks, It worked for me also.
The reason is Google home device and the android phone which is used to configure the device were not connected with the same wifi which is a precondition to get it work. I suggest if the Google home device is configured by someone else before, then you should factory reset it by pressing the voice mute button on the google home device for sometime and then reconfigure it again from the mobile.
Thanks


When importing artifacts to GO, there are some invalid artifacts

I used Inventory Kamera to scan my artifacts for Genshin Optimiser but for some reason Genshin Optimiser said that there were invalid artifacts. I looked through the json file and for some reason Inventory Kamera scanned some artifacts under the "Tea" artifact set. Also, when I imported the json file to GO, some of my artifacts became 5* Gambler artifacts too.

Looks like there was some weird data that shouldn't be where we're collecting our artifact set information from. It should be a simple filtering fix to make sure something like this doesn't happen in the future.
In the meantime, in the artifacts.json file under inventorylists try deleting the items below (basically delete everything that isn't a real artifact set) and let me know if the scan gets the artifact sets right. They're likely at the very bottom of the file, or very top if you used the auto updater to create a new file.

I did as you told and there are no more artifacts saved under weird names. However I think the scanner has been saving my Ocean Hued Clam artifacts under the scholar artifact set...

Also, I'm not sure if this is related but some of my artifacts have been removed from GO after I uploaded the latest json file that I scanned which presumably has the same artifacts as the previous json file I scanned today as I didn't do anything to my artifacts at all.

Same problem. 35 artifacts from GladiatorsFinale were scanned as Tea. If I delete the items in artifacs.json as suggested, there is no error but the artifacts affected vanished. I have also lost at least another artifact from BlizzardStrayer I detected it becasuse it is equipped for Ayaka and now Ayaka has only 4 artfifacts, not five. In this case is not renamed, it vanished.


Jshint with esnext fails on file

If I use jshint for file like http://pastebin.com/MQRH5nHb it newer completes
node /usr/local/bin/jshint -v
jshint v2.7.0

my .jshintrc:
{
    "esnext": "true"
}

Thanks for the report!
I'm inlining the input to keep things organized:
var React = require('react');
var {DOM} = React;

class App extends React.Component {
    constructor(props) {
      super(props);
    }
    render() {
      return DOM.div(
          {className: 'container'},
          DOM.div({className: 'col-lg-offset-3'}, [
            DOM.form([
              DOM.div(
                {
                  className: 'form-inline',
                  children:  [
                  DOM.div({className: 'form-group'}, [
                    DOM.label('First Name'),
                    DOM.input({className: "form-contol"})
                  ]),
                ]
              ),
            ]),
            //DOM.table({className: 'table'})
          ])
      );
    }
}

React.render(
    React.createElement(App),
    document.body
);

Minimal test case:
class a { b

I've submitted a patch for this at gh-2338.

If it helps, here's another example that can trigger the failure.
class Foo {
  constructor (config = {}) {
    config =
  }
}

I found that I was able to avoid problems with incomplete class definitions by adding a "(end)" token guard in the classbody function (around line 3761):
  if (!checkPunctuators(state.tokens.next, ["("])) {
    // error --- class properties must be methods
    error("E054", state.tokens.next, state.tokens.next.value);
    while (state.tokens.next.id !== "}" &&
           !checkPunctuators(state.tokens.next, ["("])
           && state.tokens.next.id !== '(end)') { // THIS IS THE LINE I ADDED
      advance();
    }
    if (state.tokens.next.value !== "(") {
      doFunction({ statement: c });
    }
  }


:bug: Works with PDF file sets cannot be edited

Story
Currently, when navigating to the edit page of a work with a PDF fileset, we get an exception.  When it was first implemented, we added two checkboxes on the files tab of the edit form to control the showing of the PDF.js viewer and also Download PDF button.  These are no longer working in the Hyku Valkyrie upgrade.
Acceptance Criteria

[ ] Admins can navigate to the edit page of a work with a PDF fileset
[ ] PDF.js loads the PDF on the work's show page if selected as the option.
[ ] The Download PDF and Show PDF Viewer buttons both work as intended

Screenshots / Video

Testing Instructions and Sample Files

[ ] Create a work with a PDF file
[ ] After ingest, view the work and observe that PDF.js loads it correctly
[ ] Edit the work

[ ] Toggle both the show pdf viewer and download pdf buttons to see they work properly

This ticket is not a bug. PDF.js was never fully implemented for valkyrie

After discussing with the team, we will proceed by showing the pdf.js based on the flip flop instead of the property values.
We will revisit fixing the actual implementation in the future, probably when we start the iiif print x valkyrie epic.

SoftServ QA: ✅
Was able to edit using the edit form and it saved
Work

Note, we had to disable the toggle buttons specified above, so those are not a part of this ticket


MULTI links and properties don't always enforce REQUIRED qualifier.

CREATE TYPE test::Base {
    CREATE REQUIRED MULTI PROPERTY name -> str;
};
# Explicit empty set doesn't trigger and error.
INSERT test::Base {name := {}};

See test_edgeql_ddl_required_10 and test_edgeql_ddl_required_11.

This has been fixed. Closing.


OSError: [Errno 22] Invalid argument: '1200_forests/library.txt'

How to solve this error?
PS D:\X-Plane 12\Custom Scenery\o4xp_Seasons_Manager> python .\o4xpsm_install.py
INFO:o4xpsm_install:Version: 1.10
INFO:o4xpsm_install:args: ['.\o4xpsm_install.py']
INFO:o4xpsm_install:
INFO:o4xpsm_install:Parsing scenery_packs.ini
INFO:o4xpsm_install:Global_Forests_v2 detected
INFO:o4xpsm_install:simHeaven_X-World_Vegetation_Library detected
INFO:o4xpsm_install:
INFO:o4xpsm_install:Checking links
INFO:o4xpsm_install:path: ....\Resources/default scenery/1200 forests
INFO:o4xpsm_install:creating junction 1200_forests -> ....\Resources/default scenery/1200 forests
Junction created for 1200_forests <<===>> D:\X-Plane 12\Resources\default scenery\1200 forests
INFO:o4xpsm_install:path: ....\Custom Scenery/simHeaven_X-World_Vegetation_Library/
INFO:o4xpsm_install:creating junction simHeaven_X-World_Vegetation_Library -> ....\Custom Scenery/simHeaven_X-World_Vegetation_Library/
Junction created for simHeaven_X-World_Vegetation_Library <<===>> D:\X-Plane 12\Custom Scenery\simHeaven_X-World_Vegetation_Library
INFO:o4xpsm_install:path: ....\Custom Scenery/Global_Forests_v2/
INFO:o4xpsm_install:creating junction Global_Forests_v2 -> ....\Custom Scenery/Global_Forests_v2/
Junction created for Global_Forests_v2 <<===>> D:\X-Plane 12\Custom Scenery\Global_Forests_v2
INFO:o4xpsm_install:
INFO:o4xpsm_install:Creating library.txt
INFO:o4xpsm_install:Processing XP12 native forests
Traceback (most recent call last):
File "D:\X-Plane 12\Custom Scenery\o4xp_Seasons_Manager\o4xpsm_install.py", line 237, in
season = parse_lib("1200_forests/library.txt")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\X-Plane 12\Custom Scenery\o4xp_Seasons_Manager\o4xpsm_install.py", line 45, in parse_lib
with open(name, "r") as f:
^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: '1200_forests/library.txt'
PS D:\X-Plane 12\Custom Scenery\o4xp_Seasons_Manager>

ah! Now I treid to execute the python script in my vscode terminal, there it worked .... hmmm


Add Ansible.gitignore

Reasons for making this change:
Add support for Ansible Playbooks git repositories
When playbook fails, Ansible creates .retry files to allow users to
retry the playbooks only on failed nodes
Links to documentation supporting these rule changes:
http://docs.ansible.com/ansible/intro_configuration.html#retry-files-enabled
App:
https://github.com/ansible/ansible

@shiftkey do you need more details for this?

+1

@roidelapluie @krzysztof-magosa This was added to gitignore.io if you want to pull it from there in the future: https://www.gitignore.io/api/ansible

Closing in favour of #2100 which puts it under the Global namespace


More description about this project

Hi, this project looks interesting.
I wonder if there could be more description about this project?
Or is there any publications about this project?

I might add some more description eventually, but this is just a hobby project atm to test out how more structured planning algorithms could work with LLMs.


added folders for types of files to make code cleaner and will help adding more file

added folders for types of files to make code cleaner and will help adding more file

as there is error in your code hence the deployment failed, please make sure the project is free from error so that it doesn't breaks the repository. Resolve the error and raise pr accordingly


Update basepettype.ts

While hovering over the pet it displays its name

Codecov Report
Patch and project coverage have no change.

Comparison is base (5bb08c7) 16.95% compared to head (7c93101) 16.95%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #465   +/-   ##
=======================================
  Coverage   16.95%   16.95%
=======================================
  Files          22       22
  Lines        1156     1156
  Branches      156      156
=======================================
  Hits          196      196
  Misses        954      954
  Partials        6        6

Files Changed
Coverage Δ

src/panel/basepettype.ts
2.85% <0.00%> (ø)

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


derive: provide a way to customize prost path.

tower-grpc is based on Prost. I would like to improve the ergonomics of using it by not requiring an explicit dependency on Prost.
To do this, similar to #127, I will re-export prost from tower-grpc. The problem is that the generated derives require the prost crate to be added as a dependency.
One way to do this would be to:

Allow the extern crate to be customized.
Allow the path to prost to be customized.

This could be done with an extra attribute
#[derive(Message)]
#[prost(extern = "extern crate tower_grpc as _grpc", path = "_grpc::codegen::prost")]
pub struct PhoneNumber {
    // ...
}

prost-build already supports the ability to specify [custom type attributes](file:///Users/carllerche/Code/Oss/Rust/prost/target/doc/prost_build/struct.Config.html#method.type_attribute), so tower-grpc's codegen could use that to inject that extra attribute.

If this sounds good to you, I can work on a PR.


Added missing documentation sections to tf.image.convert_image_dtype

Added returns and raises section to make_saveable_from_iterator function #29406
@rthadur
Pull request is now against master.
Recommitted for easier merging into master.

requested changes were made.

@jsimsa Sorry about the title, It has been corrected.


Encrypting and Decrypting byte arrays instead of strings

All byte arrays can be now encrypted and decrypted.
This was tested on text and image files.
Multiple encrypts and decrypts work too.
Test project has been unloaded from the solution.

Thank you and I'm sorry this has hung out here so long. I'm going to try to add the full RNCryptor test suite to this to make sure that it matches all the existing vectors, but in the meantime I want to merge this.


Perform a release

Hi, excited to contribute in this project.

Hi, I am the new Operations Manager Steve from Vancouver Team.

Hi Guys
Excited to work on this project.


GPU Acceleration

The network can hang sometimes. D3 runs all its computations on the CPU. Wouldn't it be nice if we could get D3 to run on the GPU? http://gpu.rocks/

Possible to accomplish with Canvas, but unclear it would generate an improvement in the median case. More importantly, we're completely married to SVG at this point.


Change bound to the numbering of the docked models

To be able to calculate the rmsd for the models. We have to change the numbering of the bound p-mhc using the renumbering_pMHC_to_bound.py to that of the merged file and we also have to make sure that the TCR part is shifted to 2000. This will be the best way now to calculate rmsd for models using the get_results_pipeline.py.

we have now done this.


Allowed Referer Can Be Easily Hacked

Question:
In our scenario, we are using a service secured with token authentication on the server.  We are then using the username and password parameters in the proxy.config.  We also limit the allowedReferers to our domain.
Using any modify header plugin, you can easily bypass the allowed referers, granting logged in access to secured services... This seems like a pretty big security hole.  Any Recommendations?

One recommendation for increased security would be to secure the proxy itself
can you please elaborate a bit more on this ?

@SheikhZayed
You can "secure the proxy" just like any other web page.  There are multiple solutions and the exact implementation would depend on your web server.  Here's some resources for reading more:

https://www.google.com/search?q=web+server+authentication+methods
https://httpd.apache.org/docs/2.4/howto/auth.html
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/


Transition to Mkdocs for versioned api-docs

Pre-requisites
Please ensure you have done the following:

[x] I have read the CONTRIBUTING.md document.
[x] If my change requires a change to the documentation, I have updated the documentation accordingly.
[x] I have added tests to cover my changes.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Describe changes
Dynamically create docstrings when docs are served. Try it out locally by running docs/mkdocstrings_helper.py and then mkdocs serve from within the docs folder.

CUrrently only a draft because I want to remove --push from the default .sh script and because i need to still verify that all dependencies are included in the pyproject.toml file.
Unfortunately the changes inside the yml are not tested for functionality, we will have to see what happens during release or just try doing a testrun.
Feel free to check out docs produced here: http://apidocs.zenml.io/0.5.7/

Will take a look Alexej! Could you change the name of the PR to something more verbose? I think that would make it clearer in the release notes! :)

I jut noticed one mistake. Other than that, i think we should test the deployment in a test run somewhere soon and remove the push also as you suggest.
Btw I notice that https://apidocs.zenml.io/ redirects to https://apidocs.zenml.io/latest which is currently down. I have changed the 0.5.7 docs to go directly to https://apidocs.zenml.io/0.5.7/ for now but we should fix this asap

Currently testing this

I ran tests on two separate branches to verify different versions are pushed subsequently to the equivalent of gh-pages for the github actions.
First this action was executed: https://github.com/zenml-io/zenml/runs/4925657388?check_suite_focus=true
Then this one: https://github.com/zenml-io/zenml/runs/4925797327?check_suite_focus=true
Here you can see the expected two versions (branch names): https://github.com/zenml-io/zenml/tree/misc/test_docs
latest points at the second action that was run, so testing_gh_action_for_api_docs_publish


Context Showing Command Palette Popup

VSCode Version:1.12.1
OS Version:Linux

Steps to Reproduce:

When mouse click on "Indentation" in statusbar, the "Command Palette" should appear next to the clicked button.

The same should happen when you click on other buttons that call up the "Command Palette". Of course not all but the ones that fit. For example, from the menu> View> Command Palette, it should be old.

The popup with the "Command Palette" should adjust to the width of the content. It will look aesthetically.

It could create a new Extension API that will pop up a Command Palette contextually, with the addition of a button extension.

@chrisdias @bpasero - what are your thoughts on this? I think it makes sense UX wise.

+1 on all of the points including the ability for extensions to set the context where the picker opens (e.g. useful when an extension contributes a status bar entry that opens a picker).

@bpasero You have renamed the topic. I just hope that the contextual display will also affect buttons in other places? Not just in the context of the Statusbar?
For example, from "Bookmarks: list" ("Bookmarks" extension) which is in Tabsbar>More.
Same in the context of any other button that fits.

@lukaszpolowczyk my thinking currently is that only when the picker is invoked from the status bar it should be rooted there but in any other cases not because then the action is triggered from the top, isn't that right?

@bpasero My idea was contextual display.
The menu appears where the icon is clicked. Just like being on a mockup.
This is not a new idea in the field of interface design. Just a menu should be as close as possible.

@lukaszpolowczyk how would that work in this case for the "Opened Editors":

You would show the picker right next to the menu?

@bpasero Like this.
And width should always be matched to the content.

I find that a very confusing UX to be honest, why restrict the space so much?
The pain point we want to tackle is that you click somewhere in the status bar and something opens very far away to the top. I do not think we want to change the location of the picker for any other invocation.

Actually, you can do wider. If it's about it?
You can do so that Picker returns to the middle of the window when you delete the command and start typing another one. Could this solve a problem?
Displaying the menu at the place of the button is a natural thing, so it is everywhere when it comes to menus. Picker can do that too.
After all, it is much more convenient that you do not need to wave your cursor.
In fact, the place of appearing picker was absurd to me from the beginning. Yet as I saw it in the Atom editor.
View in the middle when the Command Palette is called with a keyboard shortcut - it's ok.
But wherever the mouse is used, the picker should be as close as possible to the cursor. It's natural.

@lukaszpolowczyk the current position of the picker is not random, it is in the center to the top for a reason: because it should draw attention to it.
All of our pickers can also be triggered via keybindings or from the command palette, so with your suggestion you would suddenly see a picker sometimes at its current position, sometimes close to a button and sometimes close to the status bar.
I think it is fine to show the picker close to the status bar if it was triggered with the mouse from there but I am not convinced for the other places.

@bpasero
It may thus:
From the keyboard shortcut - in center.
From Command Paletter - in center.
From menu bar - in center.
From "More" menu on tabsbar - in center.
From other menu - in center.
From editor context menu - in center.
From sidebar - in center.
And:
From buttons on tabsbar (perhaps only the buttons added by extensions, because I do not see built-in buttons that call Picker) - in context (bypassing "More", because "More" is a menu).
From buttons on statusbar - in context.
In context - means that you want to be right at the click of a button.
This will probably be fairly transparent, because when displayed in the context of the button, it will look almost like a normal menu.

I reverted the summary to how it was and extracted https://github.com/Microsoft/vscode/issues/29193

@bpasero Oh... very sad.

-- Sorry for the English, I used Google Translator --
An idea, I do not know if that would be ...
About this comment
@bpasero , on the thought of @lukaszpolowczyk , maybe viewing the open files next to the menu, could work to similar or Firefox:

and/or Eclipse:

That is, "Show Opened Editors" could be a new button. But it would be up to you to always be fixed, or only when scrolling begins to appear in the open files.
Was it something like this, @lukaszpolowczyk ?
Making it clear that it is not to remove the scroll bar.

/duplicate of https://github.com/Microsoft/vscode/issues/29193

@bpasero
Your topic is a duplicate of my topic. I wrote my first.
And not vice versa.
We have come to the conclusion that they are different.
My idea is better because it is supposed to display in the place of click, closer.

@lukaszpolowczyk I remember.


Add canal icon

We are missing the icon. Should fix https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/443

@ktsakalozos What does it look like?

Its like this @tvansteenburgh:  https://jujucharms.com/u/kos.tsakalozos/canal/2

Nice, thanks!


add picgo

https://github.com/Molunerfinn/PicGo

Same as for upx

Same as for upx

Same as for upx

In fact picgo has an official English homepage, although its GitHub page does not have an English version.

Same as for upx

In fact picgo has an official English homepage, although its GitHub page does not have an English version.

Same as for upx

In fact picgo has an official English homepage, although its GitHub page does not have an English version.

add Picgo with english homepage https://github.com/lukesampson/scoop-extras/pull/5510

Same as for upx

In fact picgo has an official English homepage, although its GitHub page does not have an English version.

add Picgo with english homepage https://github.com/lukesampson/scoop-extras/pull/5510


HDDS-4302 : Shade the org.apache.common.lang3 package as this is coming from other hadoop packages as well.

What changes were proposed in this pull request?
Shading the org.apache.hadoop.lang3 package.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4302
How was this patch tested?
Ran the same duplicate classes tests.

Thanks @elek for help on reproducing the issue locally on duplicate class verification test.
Thanks @bharatviswa504 for the review!


Dot Plot: fixed 2365 Dots are overlapping if visual height is too short

Dot Plot: fixed 2365 Dots are overlapping if visual height is too short

Looks good


something wrong with api or server

if you open something it's loading all time and cant get some information about сity or places on map or temperature.
P.S. sorry for my english.

@maklaymiklyxa you would need to setup a server of your own
We (me and @Swati4star ) are in process of creating a public server for the same, till the time you would have to manage with a personal server.

Thank you for pointing it out.
Fixed by https://github.com/Swati4star/Travel-Mate/commit/3210daac328c01a22aa28e7ec7c4b890c2636cb0


Fix SELinux debug instructions

/usr is read-only, so semodule can't rebuild the policy database. Update
the instructions so the policy store is copied to a writable filesystem

Aha. Nicely fielded. LGTM.


O11Y-3814: version bump

Version 0.18.0

Security Insights
No security relevant content was detected by automated scans.
Action Items

Review PR for security impact; comment "security review required" if needed or unsure
Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@Workiva/release-management-pp

QA +1 ⛄


Add pay with pockets buttons

To avoid copy/pasting, users should be able to click a pay-with-pockets button to load their fuel address.

Looks like there are a few extra places we could use pay-with-pockets. It should also be added anywhere a user is expected to pay an address

added to both fuel address and details page


⬆  Upgrade Debezium to 1.8.1.Final

On the platform the 1.19.2 has been merged. So I'll upgrade this one tomorrow

@zbendhiba please rebase now that https://github.com/apache/camel-quarkus/pull/3772 is merged.


NEP29

Current minimum numpy pins are out of date + Py3.8 is no longer supported.

@hmacdope @richardjgowers @RMeli
Distopia as-is is an optional dependency of the core library. I'm aware that you're working on a separate refactor elsewhere, but could I ask that someone maintain the current "production" repo please?

I'll fix it up


Blas integration

Maybe it would preferable to have a Eigen backend, e.g. EIGEN_BACKEND, as mkl and blas seem to be mutual exclusive.

@JensWehner do we use anything beside blas routines out of mkl? If not we can simply detect mkl as a blas provider and do not special handling of it at all.

With -DBLA_VENDOR=Intel

Yes, the whole LAPACK and the MKL math library and some sparse stuff and maybe at some point the fft. So even if we add LAPACK, MKL will always be a superset.

We also have to find out, which vendors we provided, because openmp does not interact with all of them the same way.

There might be a CMake variable which tells you the vendor.

Looks ready to me, @JensWehner your call!

a) we have to parse the vendors through

One of my systems has netlib blas and no vendor string in the library, so that is no going to be easy.

We need at least for the libraries which have their own OPENMP thread directives, because otherwise there will be threads all over the place.

and at the moment unless you have a really optimized library it will either be slower or just about as good as pure eigen. So at the moment I cannot see the need.

Eigen vs. openblas vs. cuda:
https://medium.com/datathings/benchmarking-blas-libraries-b57fb1c6dc7
Seems to indicate that for most of what we do now, the Eigen internal calculations are surprisingly good. Only very few cases in which openblas is really better, e.g. matrix multiplication with matrices bigger than 900. It definitely requires more testing to see if it is worth it, but again that could be specific to a system.
Maybe we should keep this as an option that is just activated with a Cmake flag -DWITH_EXTERNALBLAS=ON or something?

I would only merge it if the openmp stuff is sorted out

I made this off by default, so we we could merge it now.
One question, what does Eigen do if EIGEN_USE_MKL_ALL and EIGEN_USE_BLAS are used?

@junghans I have no idea what happens if both are on. I am not a friend of merging it now, as we have no experience with it nor a testcase, nor is it used anywhere. It also seems only MKL atm justifies the extra complications, because with other blas libraries the performance improvement was minimal at best.


can I use this as a base for my engine

I am making a engine called otaku engine and I want to use this as a base for my engine.
I will credit you (if you say yes), but if you say no I won't use it and I will make my own version
please and thank you

ok

Of course. I open sourced this to allow others to reuse it or build off of it. Good luck with your engine.

ok thanks I will make sure to credit you


Extract Files Error null

I get the following error when unzipping a file that exists on Ubuntu Bionic:
2019-01-22T15:02:57.9871935Z ##[section]Starting: Extract App
2019-01-22T15:02:57.9874887Z ==============================================================================
2019-01-22T15:02:57.9875026Z Task         : Extract Files
2019-01-22T15:02:57.9875091Z Description  : Extract a variety of archive and compression files such as .7z, .rar, .tar.gz, and .zip.
2019-01-22T15:02:57.9875203Z Version      : 1.142.2
2019-01-22T15:02:57.9875256Z Author       : Microsoft Corporation
2019-01-22T15:02:57.9875365Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=800269)
2019-01-22T15:02:57.9875438Z ==============================================================================
2019-01-22T15:02:58.1512388Z Relative file path: Artifacts/drop/VU.Platform.Content.Web.zip resolving to: /home/build/agent-1/_work/r1/a/Artifacts/drop/VU.Platform.Content.Web.zip
2019-01-22T15:02:58.1531999Z Found: 1 files to extract:
2019-01-22T15:02:58.1532534Z /home/build/agent-1/_work/r1/a/Artifacts/drop/VU.Platform.Content.Web.zip
2019-01-22T15:02:58.1533285Z Creating destination folder: /home/build/agent-1/_work/r1/a/Artifacts/drop/v-dev-we-app-content
2019-01-22T15:02:58.1544384Z Extracting file: /home/build/agent-1/_work/r1/a/Artifacts/drop/VU.Platform.Content.Web.zip
2019-01-22T15:02:58.1562585Z Error: Failed which: Not found unzip: null
2019-01-22T15:02:58.1625374Z ##[error]Failed which: Not found unzip: null
2019-01-22T15:02:58.1635835Z ##[section]Finishing: Extract App

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 05de2755-a21b-91b8-46b3-05bcb55a1eb6
Version Independent ID: ababbcfb-e7d4-68f7-423f-1e68201247f4
Content: Extract Files task - Azure Pipelines
Content Source: docs/pipelines/tasks/utility/extract-files.md
Product: devops
GitHub Login: @andyjlewis
Microsoft Alias: alewis

Can you please tell me more about the 7z file, I am going to use this code in my computer, so can you please help me out?

I am running a custom VM, not the hosted pool.


Deleting google option

Describe the feature
Deleting google option from socials because google option is usually not added on websites.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@kanishk-2 No need


Make data model smaller size for ease of use in striped.md example

It was a bit difficult to appreciate the styling changes on scroll with such a large data set.
This PR introduces a helper function generateDataListener () that could be reused for other tests and limits the data set to 10k rows making the example easier to use.

Thanks for the PR!


--state-values-set is always a string

Operating system
Windows 10
Helmfile Version
0.145.4
Helm Version
3.9.3
Bug description
Given a helmfile.yaml containing the following snippet:
{{- if ge .Values.example 2 }}
foo: bar
{{- end }}

When executing the command e.g. helmfile --state-values-set example=3, instead of evaluating the contents of the conditional block, you will get the error, executing stringTemplate at <lt .Values.example 2>: error calling lt: incompatible types for comparison. This is because, unlike with Helm's --set flag, Helmfile's --state-values-set flag treats all values as strings.
Example helmfile.yaml
values:
  - foo: 1

repositories:
  - name: jenkins-x
    url: https://jenkins-x-charts.github.io/v2/

releases:
  - name: empty
    chart: jenkins-x/empty
    version: 0.0.3
    values:
      {{- if ge .Values.foo 2 }}
      - configMap:
          enabled: true
      {{- else }}
      - configMap:
          enabled: false
      {{- end }}

Error message you've seen (if any)
$ helmfile --state-values-set foo=3 apply
Error: in ./helmfile.yaml: error during helmfile.yaml.part.0 parsing: template: stringTemplate:13:13: executing "stringTemplate" at <ge .Values.foo 2>: error calling ge: incompatible types for comparison
in ./helmfile.yaml: error during helmfile.yaml.part.0 parsing: template: stringTemplate:13:13: executing "stringTemplate" at <ge .Values.foo 2>: error calling ge: incompatible types for comparison

Steps to reproduce
https://github.com/philomory/helmfile-bug-str
Working Helmfile Version
None, that I am aware of
Relevant discussion
No response

http://masterminds.github.io/sprig/conversion.html  I thinks this can help you.

Template function such as atoi provide a passable workaround, but they shouldn't be considered an actual solution to this problem. In the old repository there was an issue for this as well, in the context of booleans - and for booleans the situation is even worse, since there does not exist any sprig function to turn "true" and "false" into true and false, leaving you stuck writing code like {{- if (eq (toString .Values.example) "true") }} at every place where you might otherwise simply write {{- if .Values.example }}.
In fact, for Booleans it gets even worse than that, because as noted in the original ticket from the old repository, the "condition" field on a release must refer to a boolean values key, by name. The only workaround there would be something like condition: {{ eq (toString .Values.foo.enabled) "true" | ternary "alwaysTrue.enabled" "alwaysFalse.enabled" }} with keys alwaysTrue.enabled and alwaysFalse.enabled set to true and false respectively.

@philomory PR is welcome. Thanks very much.


Refactor adapter return values

Most services return useful information, and it makes sense to normalise the return values for each adapter.  This PR would replace all :ok returns with {:ok, map} where map will usually hold an ID provided by the service.
It's something of a suggestion at the moment.  @stevedomin :eyes: please!

Minor comments, looks good otherwise!


Redesign website

Volney started on this and made a Ruby on Rail clone of the site. Will get up this week.

Remade site in Meteor


Implemented decorators feature.

Basic implementation of[Feature Proposal] Add Decorators.
This PR contains a basic implementation of decorators to show how suggested decorators would look like. Examples of decorators present in tests.

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
no

Tests pass?
yes

Hello @samdark and @SilverFire
it was a draft realization for [Feature Proposal] Add Decorators to reduce the talk on the issue so I basically didn't want to spend more time than needed in case we won't agree merging the PR.
I would add more docs later.
With best regards,
Dmitry

I would add more docs later

Hello @samdark and @SilverFire
I've made changes in code based on your requests and added docs. Please review.
With best regards,
Dmitry

Made some adjustments.

Wait wait, we are definitely doing something wrong. The thing we've got makes possible to execute something on object right after its creation. Let's refer to the Decorator pattern article, and read the following:

Decorator objects implement the interface of the extended (decorated) object transparently by forwarding all requests to it and perform additional functionality before/after forwarding a request.

So current implementation is not a decorator. It should be called post-configurator instead, and it's definitely not what we need to do. This feature is absolutely useless, if the decorated object is immutable and does not have neither setters nor public properties.
There are a lot examples on different programming languages on Wikipedia, but all the decoration examples are about wrapping objects to provide additional features, not about changing decorated object internals.

Right. It was same concern on my part in https://github.com/yiisoft/di/issues/10#issuecomment-357382054 and I somehow missed when it went wrong :(

Anyway, while implementation is good and idea to have decorators is fine, I don't think we'll merge the pull request.

What we need is an API to build the following imperative construction in a declarative way:
$car = new RemoteControlledCar(new ElectroCar(new Car()));


Generalising the training module to accomodate varying input

Links #19
In order to accomodate data coming from multiple sources, we need to replace the hardcoded inputs with variables whose values are extracted from the dataset during the code run.
Files that need updating:

[ ] loaddata.py
[ ] Model.py
[ ] train.py

In train.py, the .nc data files are read and the variables are extracted and normalised. This part should be taken out of train.py and be kept in a separate preprocessing.py file, to keep train.py common for different data sources. train.py can be converted into a module instead. We can also have a test notebook in the repo.

In Model.py,  the architecture of the NN is defined. The input/output layer of the NN is hardcoded with the number of input/output variables :

7 input variables that change with vertical levels (93)
4 input variables that do not change with vertical levels
2 output variables that change with 93 vertical levels

So, in order to generalise the modules, changes need to be made in Model.py as well

In train.py, the .nc data files are read and the variables are extracted and normalised. This part should be taken out of train.py and be kept in a separate preprocessing.py file, to keep train.py common for different data sources.

We can include the normalisation of the variables in the neural network architecture instead of train.py


Problem building on MacOS

➜  sparrow git:(e0a66266) ✗ ./gradlew jpackage

> Configure project :
Project : => 'com.sparrowwallet.sparrow' Java module

> Task :createDelegatingModules

(more stuff)

BUILD SUCCESSFUL in 2m 3s
19 actionable tasks: 19 executed

Sparrow.app is built on build/jpackage but when copying it recursively to /Applications and running, MacOS says
Sparrow” is damaged and can’t be opened. You should move it to the Bin.

Never mind: It is necessary to go to Settings, Security Settings, and click "Open Anyway" for Sparrow that is blocked by default on MacOS because of unidentified developer source


Support AWS signing for ElasticSearch client

What changed?
Add optional support for AWS signing
following https://github.com/olivere/elastic/wiki/Using-with-AWS-Elasticsearch-Service
https://github.com/olivere/elastic/blob/release-branch.v7/recipes/aws-connect-v4/main.go

Why?
From a Cadence user:
If turn on protections for ES
We use IAM to ensure only cadence has read/write access to our ES
in order for that to work properly you have to enable the signing of the requests
the client itself has the support baked in, but you have to turn it on

How did you test it?
User will test it.

Potential risks
Very low/minimum risk as it's optional.

This LGTM. I think it should work

This LGTM. I think it should work

Thanks for reviewing the code.

Coverage decreased (-0.1%) to 61.432% when pulling 49f8d308d01e4aadfd7cfe6977e2e3ddcc709667 on qlong-es-aws-signing into b22be7c78e218e876bef1b8aaf101d8a8b1ab534 on master.


IOException

Visual Studio 2019 16.4.0 Preview 1.0.
.NET Portability Analyzer 1.1.10808.0.

System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
at Microsoft.Cci.Pdb.MsfDirectory..ctor(PdbReader reader, PdbFileHeader head, BitAccess bits)
at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, Dictionary'2& tokenToSourceMapping, String& sourceServerData, Int32& age, Guid& guid)
at Microsoft.Cci.PdbReader..ctor(Stream pdbStream, IMetadataHost host, Boolean loadSource)
at ApiPortVS.SourceMapping.CciSourceLineMapper.GetSourceInfo(String assemblyPath, String pdbPath, ReportingResult report)
at ApiPortVS.SourceMapping.SourceLineMapper.GetSourceInfo(IEnumerable'1 assemblyPaths, ReportingResult report)
at ApiPortVS.Analyze.ProjectAnalyzer.<>c__DisplayClass9_0.b__0()
at System.Threading.Tasks.Task'1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at ApiPortVS.Analyze.ProjectAnalyzer.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ApiPortVS.AnalyzeMenu.d__7.MoveNext()

@Logerfo Thanks for reporting the issue. Have you tried latest version of ApiPort VS extension

@Lxiamail I didn't, and the project I was porting back then when I opened this issue is now already ported.

@Logerfo Sorry for the delay response due to the other priorities. Close the issue for now. Please feel free to reopen if you run into it again in latest version of ApiPort VS extension.


Fix measurement-plot story

Closes : https://github.com/zakodium-oss/react-science/issues/660

@wadjih-bencheikh18 commits that only touch the storybook should be using the docs commit prefix


Setting initial value of MatSelect using Reactive Forms does not set matSelect.value

Reproduction
StackBlitz: https://stackblitz.com/edit/angular-reabu9?file=src%2Fapp%2Fapp.module.ts
Steps to reproduce:
0. (Skip these steps and just refer to the StackBlitz)

Create a Reactive Form with MatSelect component
Set the initial value for the MatSelect component when creating the form (e.g. with FormBuilder, etc.)
Display the value of the MatSelect (e.g. using a template ref: <mat-select #select>...</mat-select> ... {{ #select.value }})

Expected Behavior
The value of #select.value should be equal to the initial value set in the FormGroup/FormControl
Actual Behavior
The value for #select.value is empty
Environment

Angular: 8
CDK/Material: 8
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS

Hey, since you're not assigning in your component a default value, it will remain empty.
To assign a default value, add a property in your component and add in the template a property binding.
Template:
To print the default value

The selected color is: '{{ defaultColor }}'

...
Add property binding
<mat-select [(value)]="defaultColor" formControlName="color">
Component:
Add property (under form and data)
defaultColor = '#0000FF';

The default value is set at src/app/app.component.ts:19

Hi I am facing an issue with reactive form control usage. For mat-select I have a default JSON array with name and id. Of which I am showing only name in the drop down. I want to set a name as default using similar JSON but I am not able to do that. Kindly suggest :
`<form [formGroup]="form">

Color
<mat-select [(value)]="state.name" formControlName="state">
<mat-option *ngFor="let state of stateList" [value]="state">
{{ state.name }}

`
 this.stateList=[{name:'def',id:'1'},{name:'ghi',id:'2'}]; this.form = this.formBuilder.group({       state: {name:'abc',id:'1'}     })

WOW SO THIS ISSUE EXIST.


Drone weapons

The weapon mounts are showing on the drone sheet but it is not allowing weapons to added.

I'll need more info on this, I just created a new drone, dragged in the Combat Drone chassis and Weapon Mount module, tweaked the weapon mount module to have 2 slots, then dragged in an acid dart rifle, and it equips just fine.


On android plugin doesnt work second time if whatsapp is opened by my app

On android plugin doesnt work second time if whatsapp is opened by my app ! It opens whatsapp and nothing happens.

closing it. Found a workaround here https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/465#issuecomment-195784459

Reopen, it does not work when whatsapp is opened by my external app.


Update or replace sparsehash?

Look into whether sparsehash has newer features that we want to use. Alternatively, if sparsehash is no longer being developed, is there another library under development that we want to pull in as a replacement?

I updated axom to the latest sparsehash release in January of this year.  https://github.com/LLNL/axom/pull/431 It's fairly recent, August 2020, but I don't know its future status.


cmd/compile/internal/types2: "interface is (or embeds) comparable" for map keys

(I'm not really sure if it's a bug or just an extension of the current type parameters mechanism that wasn't proposed or implemented yet, so please feel free to merge into other issues or close as duplicate.)
I've been playing around with the current type params implementation, and found that this code:
type nullableMakeable[T any] interface {
	type
		[]T,
		map[comparable]T
}

func emptyIfNil[T any, C nullableMakeable[T]](v C) (res C) {
	if v == nil {
		return make(C, 0)
	}

	return v
}

func nilIfEmpty[T any, C nullableMakeable[T]](v C) (res C) {
	if v != nil && len(v) == 0 {
		return nil
	}

	return v
}

Doesn't compile:
$ gotip run --gcflags '-G=3' ./go/typar/main.go
  # command-line-arguments
  go/typar/main.go:69:7: interface is (or embeds) comparable

gotip version is go version devel go1.17-3e48c0381f Wed Jul 21 20:29:18 2021 +0000 linux/amd64.
The intention here is to have an interface, nullableMakeable, that is the interface of types that are nullable, have a length, and that can be instantiated with make.  I haven't found anything prohibiting this in the draft design/proposal, although it's a rather big document, so I might have missed something.

map[comparable]T is not valid. comparable is a constraint and not a type. It can only appear in type parameter lists.

By the way, the proposal currently says that comparable, like all constraints, can be embedded:

Since comparable, like all constraints, is an interface type, it can be embedded in another interface type used as a constraint:
// ComparableHasher is a type constraint that matches all
// comparable types with a Hash method.
type ComparableHasher interface {
	comparable
	Hash() uintptr
}

So at the very least the error message “interface is (or embeds) comparable” is misleading, as it implies that embedding comparable is prohibited.

@ainar-g, I am not sure if you will get useful signal from building things with "gotip run --gcflags '-G=3' " -- gotip tracks the master branch, whereas active development of generics has moved (a while back) to the "dev.typeparams" branch.
Would also like to reiterate that we don't use the issue tracker for questions in Go, I think you would be better off bringing up your question about embedding "comparable" on the golang-dev mailing list.
Closing out this issue, please re-open if you disagree with the above. Thanks.


MediaError code: 3 when back home or open new tab on mobile

When close browser to back home or open new tab in common browser on mobile (iOS & Android),
videoPlayer's progress time & bar will beat, try a few more times, this videoPlayer will be callback error,
VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) The media playback was aborted due to a corruption problem or because the media used features your browser did not support.

Me está pasando el mismo error en Chrome, lo han podido solucionar o porque ocurre, no siempre pero suele pasar.


How to use TensorRT in trained model

I am going to use TensorRT to accelerate my inference step.
For many issues, like the input data is a dict, it cannot be converted to ONNX.

I am going to use TensorRT to accelerate my inference step. For many issues, like the input data is a dict, it cannot be converted to ONNX.

For ONNX, dictionary inputs are not allowed. If there is a function like this:
def forward(self, data):
    x1 = data['label1']
    x2 = data['label2']
    return x1, x2
dummy_input = data

Then converting it to the following format would be suitable:
def forward(self, x1, x2):
    return x1, x2
dummy_input = data['label1'], data['label2']

In this pic, qcnet's input data is a nested dict, which means i need to flatten it to a all tensor parameter list according to your method.
def forward(self, data):
    scene_enc = self.encoder(data)
    pred = self.decoder(data, scene_enc)
    return pred

Editing the function:
def forward(self, x1, x2, x3, x4, x5):
    # Each para of x1,x2,x3,x4,x5 is a tensor in origin dict
    scene_enc = self.encoder(x1,x2,x3,x4,x5)
    pred = self.decoder(x1,x2,x3,x4,x5)
    return pred

Moreover, my model has been trained in original codes from author ZHOU. Is it necessary to rebuild the structures of network, to format dict to tensor in every layers, so that it is suitable to recieve pure tensor data.

Is it necessary to rebuild the structures of network, to format dict to tensor in every layers, so that it is suitable to recieve pure tensor data.
You're right. You need to change the model's input and other code using dictionaries to ensure the model uses pure tensors to forward.

Is it necessary to rebuild the structures of network, to format dict to tensor in every layers, so that it is suitable to recieve pure tensor data.

You're right. You need to change the model's input and other code using dictionaries to ensure the model uses pure tensors to forward.

Thanks for your reply. I will try to deal with it.
By the way, have you ever processed this job, and what's the result like? I am looking foward to your experience.

By the way, have you ever processed this job, and what's the result like? I am looking foward to your experience.

In my computer, the average inference time is approximately 10ms per scenario.

How operator operations in torch_geometric are converted to onn??

How operator operations in torch_geometric are converted to onn??

PyG and ONNX don't work very well together, especially with functions like torch scatter_add. However, the author has shared the excellent embedding codes that you can use to rewrite.

Hi @SunHaoOne have you produced the ONNX, Could you plz share some idea on the TensorRT process?

How operator operations in torch_geometric are converted to onn??

PyG and ONNX don't work very well together, especially with functions like torch scatter_add. However, the author has shared the excellent embedding codes that you can use to rewrite.

I encountered some issues while rewriting this code:
The input of a graph neural network is graph structured data, which is sparse data. When I want to replace PYG operations, I can use dense computing instead. However, dense computing increases the amount of data and reduces computational efficiency, which is not a solution

@xiaowuge1201 hi bro, have you find a solution? i got the same problem for dense computing. The inference speed is so damn slow with onnx-cpu version, and my gpu memory is not enough to run onnx-gpu version

How operator operations in torch_geometric are converted to onn??

PyG and ONNX don't work very well together, especially with functions like torch scatter_add. However, the author has shared the excellent embedding codes that you can use to rewrite.
could you please share the url ?


Add note for Postgres 11 Support

As we're using cloud and also have customers already successfully running postgres 11 in production we should add a note for support

I believe Cloud uses Postgres 11 and we've been using that as well to run our load-test so I don't see any issue. If anything they should upgrade since version 9 is getting rather outdated.

Issue created from a Mattermost message by @streamer45.

@svelle can you tell me in which document the postgres 11 note is required?

You could put it here for example: https://docs.mattermost.com/install/software-hardware-requirements.html#database-software
@cwarnermm what's your thought on this?

Thanks, @svelle! That's a good place to add this information.
@Sayanta66 - I appreciate your willingness to contribute to these open documentation tickets.

@svelle - Is action still needed on this issue?

@svelle - Is action still needed on this issue?

No I think since we now say 10+ this should be fine


All codeium conversations get deleted constantly

Sorry, I just realized there is no Repo for the VSCode extension?
Version: 1.91.1 (system setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045
Not sure if this is related to the VSCode extension.
Every few messages i submit the whole chat disappears, and all my previous conversations are also gone.
Basically rendering this unusable.
Codeium worked well for an hour or so but then these issues began.
(VSCode) 2024-07-23 16:07:58.813 [INFO]: win-ca initialized
(VSCode) 2024-07-23 16:07:58.814 [ERROR]: node-loader:
Error: c:\Users\The5\.vscode\extensions\codeium.codeium-1.8.83\dist\dc2d7f63219ca9f39dedf837aec88181.node is not a valid Win32 application.
c:\Users\The5\.vscode\extensions\codeium.codeium-1.8.83\dist\dc2d7f63219ca9f39dedf837aec88181.node
(VSCode) 2024-07-23 16:07:59.830 [INFO]: Creating manager directory: C:\Users\The5\AppData\Local\Temp\64db4ff2-655f-4b2f-bb00-305e1dbe4782\codeium\manager
(VSCode) 2024-07-23 16:07:59.979 [INFO]: Using cached LS with valid crc32: c:\Users\The5\.vscode\extensions\codeium.codeium-1.8.83\dist\1e20fa38ede961073c4494bc9637bffe13e6a8f4\language_server_windows_x64.exe
(VSCode) 2024-07-23 16:08:00.071 [INFO]: Language server started
2024/07/23 16:08:00 maxprocs: Leaving GOMAXPROCS=28: CPU quota undefined
I0723 16:08:00.130980 25228 main.go:415] [Logging] Initialized the logger
I0723 16:08:00.130980 25228 main.go:503] Setting GOMAXPROCS to 28
I0723 16:08:00.132501 25228 main.go:599] Release 1.8.83 (1e20fa38ede961073c4494bc9637bffe13e6a8f4)
I0723 16:08:00.132501 25228 main.go:657] Starting language server manager with pid 25228
I0723 16:08:00.133008 25228 main.go:118] Manager acquired its lock file C:\Users\The5\AppData\Local\Temp\64db4ff2-655f-4b2f-bb00-305e1dbe4782\codeium\manager/locks/manager.lock
I0723 16:08:00.135025 25228 main.go:257] Waiting for random port file in C:\Users\The5\AppData\Local\Temp\64db4ff2-655f-4b2f-bb00-305e1dbe4782\codeium\manager/child_random_port_1721743680133008400_1352609349519695915 to be created
2024/07/23 16:08:00 maxprocs: Leaving GOMAXPROCS=28: CPU quota undefined
I0723 16:08:00.167583 26380 main.go:415] [Logging] Initialized the logger
I0723 16:08:00.167583 26380 main.go:503] Setting GOMAXPROCS to 4
I0723 16:08:00.169746 26380 main.go:651] Starting language server process with pid 26380
I0723 16:08:00.169746 26380 server.go:156] Language server will attempt to listen on host <IP_ADDRESS>
I0723 16:08:00.170256 26380 server.go:163] Language server listening on random port at 62953
I0723 16:08:00.170256 26380 proxy.go:113] proxyplease.proxy> No proxy provided. Attempting to infer from system.
2024/07/23 16:08:00 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180
I0723 16:08:00.173854 26380 proxy.go:113] proxyplease.proxy> No proxy could be determined. Assuming a direct connection.
I0723 16:08:00.173854 26380 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
I0723 16:08:00.643171 26380 unleash.go:90] Initializing Unleash
I0723 16:08:01.038583 26380 unleash.go:110] Successfully initialized Unleash
E0723 16:08:01.061709 26380 client_manager.go:270] Metadata is nil when trying to refresh user JWT
I0723 16:08:01.062218 26380 server.go:358] Successfully created API server client
I0723 16:08:01.081499 26380 server.go:367] Successfully initialized tokenizer
E0723 16:08:01.136296 26380 context_module.go:349] unable to get default pinned context guideline: open C:\Users\The5\.codeium\codeium_settings.yaml: The system cannot find the file specified.
I0723 16:08:01.139385 26380 server.go:474] Local search is enabled, will index local files.
I0723 16:08:01.139385 26380 server.go:478] Using 4 indexer workers
I0723 16:08:01.139385 26380 sqlite_faiss_db_client.go:70] Using database at C:\Users\The5\.codeium\database\9c0694567290725d9dcba14ade58e297\2\MODEL_EMBED_6591
I0723 16:08:01.153120 26380 sqlite_faiss_db_client.go:84] Successfully created embedding search database in 13ms
I0723 16:08:01.153663 26380 indexer.go:246] Using 4 embed workers
I0723 16:08:01.153663 26380 search_provider.go:236] Successfully created and started indexer
I0723 16:08:01.153663 26380 search_provider.go:263] Successfully created embedding search provider
I0723 16:08:01.160937 26380 server.go:552] Successfully created completion provider
I0723 16:08:01.161442 26380 server.go:600] Child process attempting to acquire lock file C:\Users\The5\AppData\Local\Temp\64db4ff2-655f-4b2f-bb00-305e1dbe4782\codeium\manager/locks/child_lock_1721743680133008400_1643323844188826972
I0723 16:08:01.161509 26380 server.go:608] Child process acquired lock file C:\Users\The5\AppData\Local\Temp\64db4ff2-655f-4b2f-bb00-305e1dbe4782\codeium\manager/locks/child_lock_1721743680133008400_1643323844188826972
I0723 16:08:01.163028 26380 server.go:183] LSP listening on random port at 62965
I0723 16:08:01.163533 26380 web_server.go:240] Chat Web Server listening at ws://<IP_ADDRESS>:62966
62965
I0723 16:08:01.205409 25228 main.go:293] Language server manager found random server port 62953
I0723 16:08:01.205409 25228 main.go:294] Language server manager found random lsp port 62965
I0723 16:08:01.205409 25228 main.go:301] Language server manager attempting to connect to language server at <IP_ADDRESS>:62953
I0723 16:08:01.227168 25228 main.go:172] Fixing language server port at 62953
I0723 16:08:01.227168 25228 main.go:352] Language server manager successfully connected to new language server at <IP_ADDRESS>:62953
(VSCode) 2024-07-23 16:08:01.252 [INFO]: Found language server running on port 62953
I0723 16:08:01.329654 26380 utils.go:182] Analyzing workspace files for d:/Dev/WebDev/3d-printing-marketplace/
I0723 16:08:01.329654 26380 utils.go:242] Done analyzing workspace files for d:/Dev/WebDev/3d-printing-marketplace/
I0723 16:08:01.330655 26380 lsp.go:208] Found 12 files in workspace d:/Dev/WebDev/3d-printing-marketplace/
I0723 16:08:01.330655 26380 lsp.go:232] Adding workspace listener for [0xc0010e01c0]
I0723 16:08:01.330655 26380 indexing_listener.go:219] Add workspace event with uid 1 for workspace d:/Dev/WebDev/3d-printing-marketplace/
I0723 16:08:01.337667 26380 lazy_model.go:32] Successfully created faiss index
I0723 16:08:01.343802 26380 indexing_listener.go:278] Done enqueue workspace with uid 1
I0723 16:08:01.351441 26380 rpcs_miscellaneous.go:318] University version is up to date.
I0723 16:08:04.944804 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
I0723 16:08:23.536970 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
I0723 16:08:35.084471 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
(VSCode) 2024-07-23 16:09:44.762 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:45.680 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:45.821 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:45.913 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.116 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.351 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.443 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.599 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.803 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:46.940 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:50.200 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.044 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.152 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.325 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.572 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.774 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.837 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:51.947 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:52.166 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:52.352 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:52.445 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:52.709 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:52.926 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:53.405 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:53.575 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:53.792 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:53.899 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:53.994 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:54.104 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:54.475 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:54.647 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:55.206 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:55.315 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:55.612 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:55.751 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:58.922 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:59.465 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:59.620 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:59.774 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:09:59.929 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.060 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.130 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.285 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.363 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.587 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.690 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:00.923 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:01.031 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:01.100 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:01.324 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:01.464 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:01.651 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:02.239 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:02.380 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:02.521 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:02.645 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:02.878 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.034 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.251 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.456 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.705 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.892 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:03.996 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.124 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.197 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.256 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.436 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.529 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.669 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.807 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:04.961 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.071 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.133 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.290 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.352 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.494 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.587 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.758 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:05.898 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.085 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.209 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.288 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.676 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.846 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:06.939 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:07.001 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:07.705 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.000 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.139 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.264 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.436 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.576 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.701 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:08.842 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:09.029 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:09.183 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:22.361 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:22.781 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:22.884 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:23.475 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:23.635 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:23.809 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:23.946 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.036 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.195 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.350 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.473 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.675 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:24.831 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:25.000 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:25.141 [INFO]: Codeium is not enabled for the current document.
(VSCode) 2024-07-23 16:10:25.282 [INFO]: Codeium is not enabled for the current document.
I0723 16:10:41.632682 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
W0723 16:11:00.119208 26380 api.go:267] No stream to cancel found for stream ID c2430d5f-9532-4518-95d1-9ed843a357ac
I0723 16:11:00.120463 26380 api.go:355] Handle set draft query:
W0723 16:11:00.274640 26380 chat_token_limit.go:46] error converting token count to int: experiment key CHAT_TOKENS_SOFT_LIMIT does not have variant payload
W0723 16:11:00.849299 26380 chat_token_limit.go:46] error converting token count to int: experiment key CHAT_TOKENS_SOFT_LIMIT does not have variant payload
I0723 16:11:03.126027 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
I0723 16:11:30.526544 26380 api.go:355] Handle set draft query:
E0723 16:11:30.689241 26380 unleash_wrapper.go:153] Error parsing chat model variant: unknown model name MODEL_CHAT_12968: model not found
E0723 16:11:30.689754 26380 interceptor.go:41] /exa.language_server_pb.LanguageServerService/GetChatMessage: unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:154] &{0xc002357008}.GetChatMessage(_) = _, rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:154] &{0xc002357008}.GetChatMessage(_) = _, rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:154] &{0xc002357008}.GetChatMessage(_) = _, rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:154] &{0xc002357008}.GetChatMessage(_) = _, rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:154] &{0xc002357008}.GetChatMessage(_) = _, rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
W0723 16:11:30.690303 26380 api.go:157] Clearing chat history due to error: rpc error: code = Unknown desc = unknown model name MODEL_CHAT_12968: model not found
I0723 16:11:33.529580 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}
I0723 16:13:01.234743 26380 rpcs_miscellaneous.go:114] Local indexer stats: database:{local_sqlite_faiss:{faiss_state_stats:{embedding_source:EMBEDDING_SOURCE_CODE_CONTEXT_ITEM  workspace:"d:/Dev/WebDev/3d-printing-marketplace"  item_count:52}  total_item_count:52  quantized:true}}
I0723 16:13:01.234743 26380 rpcs_miscellaneous.go:115] Memory stats: {"runtime":{"alloc":93688048,"heap_inuse":98377728,"heap_released":1736704,"heap_sys":102367232,"total_alloc":179956816,"stack_inuse":1933312,"sys":113985784,"num_goroutine":53},"proc":{"virt_size":0,"pss":0}}
I0723 16:13:54.347883 26380 api.go:355] Handle set draft query: {"ops":[{"insert":"\n"}]}

i have the same probleme...


Fix csr_accessor crash when moving data from USM or host memory to host memory

Backend function copy_all2all that unifies the data copying across USM and non-USM allocated memory was working incorrectly:
The wrong number of bytes were copied using copy function in the case when both source and destination data buffers are not device friendly.
Copying the increased number of bytes caused out-of-bound memory access which led to crash.
copy was replaces with memcpy that copies exactly the requested number of bytes.
copy was multiplying the requested number of bytes to the type size which produces the wrong size of the copied array.
csr_accessor test was also extended to cover the cases that were failing previously.

/intelci: run

/intelci: run