[BUG] Config options in router not honoured

Discussed in https://github.com/Lissy93/dashy/discussions/542

Originally posted by lephtHanded March  8, 2022
heya!
latest update (or my config) seems borked with the latest docker pull.
the routingMode and startingView options don't seem to have an effect.
i have mine set to hash and minimal respectively and the page loads to the default view.
links to ../minimal or ../#/minimal that I got working from this thread just open the default view now.

Probable Cause
The config isn't finished fetching when the router is initialised

I've been working on this for a long time now. startingView is a fairly simple fix, but I have not been having any luck in figuring out how to get routingMode to work.
Vue router only accepts the mode option being passed at initialization and it can't be changed at runtime. Since the config is now fetched this leads to the issue.
Do you have any ideas on a way to sort this out?

I guess the only option would be to use an environmental variable,
const mode = process.env.VUE_APP_ROUTING_MODE || 'history';
I was also thinking, since routing mode is unlikely to be something the user changes frequently it could be read statically at build time, but this doesn't seem very neat

The environment variable would work for reading at build time. That would mean adding the build step back into the docker image. Which isn't too bad as it would only have run on first start and change to that variable, but it would mean removing the ability to drop the size of the image by removing all the vue dependencies.

Ahh it's a tricky one. but I think for now, moving src/ back into the container is the only way to fix this

I've actually come up with a solution that works!. We can add a script tag to the top of index.html that initializes before the Vue app and loads any variables needed before it, like routingMode.
This file can even be generated from conf.yml by the server. Those using a static host would have to edit the additional file if they want to change routingMode, but like you mentioned earlier, it's not something that will be changed often, if at all after the original setting.
What're your thoughts?

Would that work? I think the Vue router stuff is compiled at build time- I might be wrong, but playing around with it that seemed to be the case. If it works, then that's awesome

you guys fixt it!
thank you!

Yay, nice one @Ateroz! Glad it's working again now :)

Yay, nice one @Ateroz! Glad it's working again now :)


NullPointerException on getting excluded/included groups

TestNg Version <IP_ADDRESS>
My testng.xml file contains block <groups></groups> with some defined excluded groups in. I'm running the tests by using Maven. Just on starting I've got the following NPE:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project ui-test: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: There was an error in the forked process]
org.testng.TestNGException: java.lang.NullPointerException
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:325)
at org.testng.TestNG.run(TestNG.java:1081)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.NullPointerException
at org.testng.xml.XmlSuite.getExcludedGroups(XmlSuite.java:1072)
at org.testng.xml.XmlTest.getExcludedGroups(XmlTest.java:227)
at org.testng.internal.OverrideProcessor.process(OverrideProcessor.java:37)
at org.testng.xml.Parser.parse(Parser.java:225)
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:305)

Everything works OK on the previous older version (e.g. 6.9.8)

Could you share your testng.xml?

It looks something like that:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="My Suite" verbose="2"  parallel="tests" thread-count="1">
<groups>
    <run>
        <exclude name="broken"/>
    </run>
</groups>

<test name="Some Tests">
    <classes>
        <class name="com.project.some.SomeMyTests"/>
    </classes>
</test>

</suite>

@juherr - I would like to give this a try and see if i can fix it. The issue is recreateable.
Here's what I have found so far.
By default the data member XmlRun is never instantiated when you create a XmlGroup instance, but the code tries to access the list of included and excluded groups via XmlGroup.getRun() method which leads to the NullPointerException. In the previous versions somehow m_xmlGroups was always null and as such the fact that getRun() would result in a null was never triggered, but now somehow for the same test m_xmlGroups is not null anymore. I will continue debugging this after work today. Just thought I would call this out, so that someone else doesn't also end up picking this issue and work :)

@krmahadevan Ok, great! I think the most important part is to add some tests.

As run is optional, I don't know if we should create a new instance with the groups object. But I've no recommendation, then I let you find the best solution :)

Sure Julien. Will do that. I am also not completely sure as to how the fix
would be. I have just managed to come closer to where the problem might be.
I will add tests as well, when I raise the Pull Request.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
On Wed, Oct 5, 2016 at 1:04 PM, Julien Herr<EMAIL_ADDRESS>wrote:

@krmahadevan https://github.com/krmahadevan Ok, great! I think the most
important part is to add some tests.

As run is optional, I don't know if we should create a new instance with
the groups object. But I've no recommendation, then I let you find the
best solution :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cbeust/testng/issues/1180#issuecomment-251603071, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA3hzRK5nXhrtIkZWoXjGYYGa6eMARXwks5qw1LugaJpZM4KN56g
.

👍

issue :
How to solve NULLPOINTEREXCEPTION while using grouping concepts in POM with Extends Reporting ?
Solutions:
       1. Use below parameters to all the configuration annotations which we are using i.e. in base test;
	(alwaysRun = true)
	2. Use valid try catch block inside the page class and don’t use throws [incorrect exception]
	3. Use parameterized values instead of taking hardcode values inside the page or script.


In time mode returning Date , Solution is below try it.Basically It's returning time in 24 hours format .

In time mode returning Date , Solution is below try it.
Basically It's returning time in 24 hours format .
So this is how I handled it.

<DateTimePickerModal
isVisible={this.state.showDate}
mode={"time"}
onConfirm={this.onChangeDate}
onCancel={this.hideDatePicker}
date={new Date()}
minuteInterval={1}
/>

below is my onChangeDate function where I handled this issue.
  onChangeDate = (text: any) => {
    let hours = parseInt(JSON.stringify(text).slice(12, 14)) - 6;
        let minutes = parseInt(JSON.stringify(text).slice(15, 17)) - 30;
        console.warn("befor", hours, text);

        if (minutes < 0) {
          hours = hours - 1;
          minutes = 60 + minutes;
        }
        if (hours < 0) {
          hours = 24 + hours;
        }

        if (hours > 12) {
          hours = hours - 12;
          console.warn(`Time is => ${hours}:${minutes} AM`);
        } else {
          console.warn(`Time is => ${hours}:${minutes} PM`);
        }
    this.hideDatePicker();
 }

Now It's Working fine.
Originally posted by @ArjunVaskale in https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues/578#issuecomment-1033412960

Let's keep the discussion in #578 👍


[Model] add a bunch of supported lora modules for mixtral

all-linear option for mixtral produces these target modules:
"target_modules": [
    "o_proj",
    "k_proj",
    "v_proj",
    "w2",
    "w1",
    "gate",
    "q_proj",
    "w3"
  ],

This PR adds the missing modules (w1, w2, w3 and gate) to the supported_lora_modules in mixtral.
Updated mixtral LoRA unit test to point to https://huggingface.co/dyang415/mixtral-lora-v0, which has all supported target modules:
  "target_modules": [
    "k_proj",
    "w3",
    "q_proj",
    "o_proj",
    "gate",
    "w1",
    "v_proj",
    "w2"
  ],

Fix https://github.com/vllm-project/vllm/issues/5155
BEFORE SUBMITTING, PLEASE READ THE CHECKLIST BELOW AND FILL IN THE DESCRIPTION ABOVE

 PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:

[Bugfix] for bug fixes.
[CI/Build] for build or continuous integration improvements.
[Doc] for documentation fixes and improvements.
[Model] for adding a new model or improving an existing model. Model name should appear in the title.
[Frontend] For changes on the vLLM frontend (e.g., OpenAI API server, LLM class, etc.)
[Kernel] for changes affecting CUDA kernels or other compute kernels.
[Core] for changes in the core vLLM logic (e.g., LLMEngine, AsyncLLMEngine, Scheduler, etc.)
[Hardware][Vendor] for hardware-specific changes. Vendor name should appear in the prefix (e.g., [Hardware][AMD]).
[Misc] for PRs that do not fit the above categories. Please use this sparingly.

Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:

We adhere to Google Python style guide and Google C++ style guide.
Pass all linter checks. Please use format.sh to format your code.
The code need to be well-documented to ensure future contributors can easily understand the code.
Include sufficient tests to ensure the project to stay correct and robust. This includes both unit tests and integration tests.
Please add documentation to docs/source/ if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.

Adding or changing kernels
Each custom kernel needs a schema and one or more implementations to be registered with PyTorch.

Make sure custom ops are registered following PyTorch guidelines: Custom C++ and CUDA Operators and The Custom Operators Manual
Custom operations that return Tensors require meta-functions. Meta-functions should be implemented and registered in python so that dynamic dims can be handled automatically. See above documents for a description of meta-functions.
Use torch.libary.opcheck() to test the function registration and meta-function for any registered ops.  See tests/kernels for examples.
When changing the C++ signature of an existing op, the schema must be updated to reflect the changes.
If a new custom type is needed, see the following document: Custom Class Support in PT2.

Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with rfc-required and might not go through the PR.
What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:

 After the PR is submitted, the PR will be assigned to a reviewer. Every reviewer will pick up the PRs based on their expertise and availability.
 After the PR is assigned, the reviewer will provide status update every 2-3 days. If the PR is not reviewed within 7 days, please feel free to ping the reviewer or the vLLM team.
 After the review, the reviewer will put an  action-required label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.
 Please respond to all comments within a reasonable time frame. If a comment isn't clear or you disagree with a suggestion, feel free to ask for clarification or discuss the suggestion.

Thank You
 Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!

Can you add a test to verify that this works?

Hmm, let's not remove the existing tests. Instead, please add new sets of tests so we can check that the both formats can be loaded.

@DarkLight1337 done


When building on Windows in the Cmder (or possibly msys), the build script invokes Linux commands

I'm inclined to say that even though there is a "sh" command available, all windows builds should be treated as pure windows builds, and not invoke bash scripts. (Rakudo doesn't currently build for Cygwin, and msys/Cmder are simply a more friendly interface to native Windows executables.)
Note that when I re-ran the build in cmd.exe, it worked without error.
Output:
===> Building: Linenoise:ver<0.1.1>:auth
/usr/bin/sh: perl6: command not found
gmake: *** [C:\Users\user.zef\store\p6-linenoise.git\480fd919b2c082e691c518fd50c19ad8719532b6/resources/libraries/linenoise.dll] Error 127

I'm guessing this is the doing of make - I'm only really familiar with using make to build things, so if you have a suggestion on how I could build the necessary binary components without using make on Windows, I would really appreciate it!

It does work on Windows, but only in the main CMD.exe command shell. I'll
have a look and see if I can tell why "sh" is being invoked.
On Thu, Sep 21, 2017 at 11:20 PM Rob Hoelz<EMAIL_ADDRESS>wrote:

I'm guessing this is the doing of make - I'm only really familiar with
using make to build things, so if you have a suggestion on how I could
build the necessary binary components without using make on Windows, I
would really appreciate it!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hoelzro/p6-linenoise/issues/23#issuecomment-331189280,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACDk41tC51l15YFMKiyCSrTtyhqvPFVDks5skn6IgaJpZM4Pe0-5
.

I can't find the cause. This is surely a bug in make, or possibly the way Cmder invokes make. I'm closing this, because in either case, it's not something you can reasonably fix.

I don't think it's a bug in make - make happens to invoke sh to execute commands.  The only way I can see this being fixed, however, is to not use make.  The makefile isn't terribly complicated, fortunately, so maybe we could invoke the commands directly in Perl 6.

Make invokes sh on Windows as well? If that's the case, it could be that
Cmder is losing/changing the PATH variable. I'll look at that next week,
and also compare behavior with the other two related console emulators:
Cmder lite (without unix executables), and ConEmu.
On Sat, Sep 23, 2017, 12:47 AM Rob Hoelz<EMAIL_ADDRESS>wrote:

I don't think it's a bug in make - make happens to invoke sh to execute
commands. The only way I can see this being fixed, however, is to not use
make. The makefile isn't terribly complicated, fortunately, so maybe we
could invoke the commands directly in Perl 6.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/hoelzro/p6-linenoise/issues/23#issuecomment-331499980,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACDk4-5IeLKhagcYHb-o-jJ77NLs6Hzbks5sk-SogaJpZM4Pe0-5
.


Add function to get windows around the current one

Mainly due to https://github.com/vim/vim/issues/1839 it is not possible anymore to use wincmd k etc in a FileType autocommand to get this information.
I think it would be useful to have a function for this, e.g. getwindowindirection(direction) that could be used and would return a winid.

Yegappan has posted two patches wininfo.diff and winlayout.diff on vim_dev and they are in the todo list.  I too think they would be a useful addition.
In the meanwhile, could you emulate it using win_screenpos()?  You should be able to add a bounds check based on the cursor position.  See also https://vi.stackexchange.com/questions/16248/detect-if-window-has-neighbour-in-given-direction

Thanks!
From the linked solution:

It will not tell you which window is to the immediate right

That's a problem: I need to get to the window.
In https://github.com/vim/vim/issues/1839#issuecomment-348301996 I've mentioned to have tried screenrow and winline already, which appear to be similar.
Having the patches from Yegappan would be good after all - without having looked at them yet.

Hi,
On Fri, Jul 13, 2018 at 2:57 PM, Daniel Hahler
<EMAIL_ADDRESS>wrote:

Thanks!
From the linked solution:
It will not tell you which window is to the immediate right
That's a problem: I need to get to the window.
In #1839 (comment) I've mentioned to have tried screenrow and winline
already, which appear to be similar.
Having the patches from Yegappan would be good after all - without having
looked at them yet.

The pull request https://github.com/vim/vim/pull/2521 adds a 'neighbors'
field to the dictionary returned by the getwininfo() function. This list field
contains the identifiers of the neighboring windows of the given window.
If more than one window is present in a given direction, then the identifier
of the first window is returned.

Yegappan

Awesome, exactly what I would need.
Thanks!
Closing in favor of https://github.com/vim/vim/pull/2521 then.

On Fri, Jul 13, 2018 at 2:57 PM, Daniel Hahler
<EMAIL_ADDRESS>wrote:

Thanks!
From the linked solution:
It will not tell you which window is to the immediate right
That's a problem: I need to get to the window.
In #1839 (comment) I've mentioned to have tried screenrow and winline
already, which appear to be similar.
Having the patches from Yegappan would be good after all - without having
looked at them yet.

The pull request https://github.com/vim/vim/pull/2521 adds a 'neighbors'
field to the dictionary returned by the getwininfo() function. This list field
contains the identifiers of the neighboring windows of the given window.
If more than one window is present in a given direction, then the identifier
of the first window is returned.

I think this is hardly useful.  Especially if a window has several
neighbors on one side, just arbitrarily returning the first one is just
guessing what the caller wanted.
Having a function that returns the list of all windows, with their
positions and sizes, allows the caller to do whatever he wants.
Adding "wincol" and "winrow" to getwininfo() is probably sufficient.
--
hundred-and-one symptoms of being an internet addict:
243. You unsuccessfully try to download a pizza from www.dominos.com.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Thanks, it's https://github.com/vim/vim/releases/tag/v8.1.0184.
I will see what I can do with that - appears to be similar to nvim's API that I've tried to use already.

Well, win_screenpos() already existed.
Except now the situation is now super confusing because getwininfo() returns  wp->w_winrow/wp->w_winrow and win_screenpos() returns wp->w_winrow + 1/wp->w_wincol + 1.

Andy Massimino wrote:

Well, win_screenpos() already existed.
Except now the situation is now super confusing because getwininfo()
returns  wp->w_winrow/wp->w_winrow and win_screenpos() returns
wp->w_winrow + 1/wp->w_wincol + 1.

Right, let's keep them equal.  I also see there are a few mistakes in
the help.
--
hundred-and-one symptoms of being an internet addict:
250.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


[FLINK-10327][streaming] Expose processWatermarks notifications to (Co)ProcessFunction

This PR exposes hooks for processWatermark, processWatermark1 and processWatermark2 to ProcessFunction and CoProcessFunction.
Verifying this change
Added new tests to ProcessOperatorTest and CoProcessOperatorTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Hi @pnowojski !
I can understand that this can be an interesting addition for some usecases, but it is a big one, and it should be discussed more thoroughly and, most importantly, more publicly. I would be against merging it as just a sub-commit of another feature.
The reason is that this allows users to "play" with watermarks from the level of a Function and not Operator, which was, intentionally, the case so far.
If you want to "hold back" the watermark, the this should be done by a watermark assigner.
If you want to run a "callback" upon watermark, then so far the trick is to register a timer for watermark + 1.
I can find usecases which do not fall into any of the above, but for those so far we implement custom operators.

I'm closing this PR since I have realised that it's incomplete (missing implementation in other types of ProcessFunctions). @kl0u lets move this discussion to Jira.


New version: Perimeter81Ltd.Perimeter81Ltd version <IP_ADDRESS>3

Pull request has been created with komac v2.5.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run


TikTok Login Issue

I had to change oauth url and replace /auth/authorize/ with /v2/auth/authorize/ to make it work.

@dzbrozek  please can you explain the problem you way facing? Was it  this ?
We couldn't log in with TikTok. This may be due to specific app settings.
If you're a developer, correct the following and try again:
redirect_uri
Refer to our Developer Documentation for more information

@MeryAmun Yes, it was that error

@dzbrozek  please how did you get around it

@MeryAmun used patch-package and fixed the library
reactjs-social-login+2.6.3.patch.txt

thank you very much @dzbrozek

Change URL to /v2/auth/authorize/ worked for me too. Otherwise tiktok returned "Something went wrong"
https://developers.tiktok.com/doc/login-kit-web/
URL  https://www.tiktok.com/v2/auth/authorize/


Got stuck on selecting the color on colorpicker-hue panel when colorpicker is applied on several elements.

Description
On the live example on jsfiddle I setup for elements colorpicker. Issue occurs when I try to select color on the third element where the colorpicker-hue panel got stuck unless I click first on the colorpicker-saturation.
Context
bootstrap-colorpicker version: 2.5.1
bootstrap version: 4.3.1
jQuery version: 3.4.1
Browser name and version: Version 90.0.4430.93 (Official Build) (64-bit)
Operative System name an version: Windows 10
Expected behavior
Able to select color on the colorpicker-hue panel.
Actual behavior
Color picker still appears on the end of the body
Live Example
https://jsfiddle.net/7crmgbjk/

The actual issue is that the third color is #373737 which is in the gray-scale, so the hue is locked to one color until you move the saturation to a non-grayscale area


Async Vue.js Components are not minified in one case since 1.6.0 version

Laravel Mix Version: 1.6.0, 1.7.0, 2.0.0 (npm list --depth=0)
Node Version (node -v): 8.9.4
NPM Version (npm -v): yarn 1.3.2
OS: Ubuntu 16.04.3 LTS

Description:
Async Vue.js components are not minified in production mode in case webpack config specified:
.webpackConfig({
    output: { chunkFilename: '[name].js?id=[chunkhash]' }, // ?id=[chunkhash] this is main part
})

If I specify chunkhash like this [name].js?id=[chunkhash] then chunks are not minified anymore. It works well with versions till 1.5.0. But it does not work anymore since 1.6.0
This would be nice to have it back
Steps To Reproduce:

create package.json

{
  "private": true,
  "scripts": {
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "dependencies": {
    "vue": "^2.4.2"
  },
  "devDependencies": {
    "babel-plugin-syntax-dynamic-import": "^6.18.0",
    "cross-env": "^5.0.5",
    "laravel-mix": "2.0.0"
  }
}

create one file veu.js component Component.vue

<template>

Component

</template>

create index.js

import Vue from 'vue'
new Vue({
    el: '#root', // use any selector you need
    components: { index: () => import('./Component.vue') }
})

create .babelrc to support dynamic imports

{
  "plugins": ["syntax-dynamic-import"]
}

build index.js with next config webpack.mix.js:

const { mix } = require('laravel-mix')

mix.js('index.js', 'build')
    .version()
    .setPublicPath('build')
    .webpackConfig({
        output: { chunkFilename: '[name].js?id=[chunkhash]' },
    })

After some investigation and experiments I found solution for myself. This can help someone else.
I added additional config for mix:
mix.options({
    uglify: {
        test: /\.js($|\?)/i
    },
})

And mix started to minify chunks again.

I found reason of issue in webpack-contrib/uglifyjs-webpack-plugin#220
This was fixed in webpack-contrib/uglifyjs-webpack-plugin#251
And it is added to 1.2.3 milestone of uglifyjs-webpack-plugin. So when 1.2.3 version is released it makes sense to update uglifyjs-webpack-plugin.

Your solution has fixed the problem for me too.

Great,solve my problem


WIP: add events to production calculator

This PR seeks to add events to the production calculator. In Eevee Week, Raikou Research, and Entei Research, we saw buffs to Pokemons' stats, like skill rates. These impact Pokemons' productions, so SleepAPI's production calculator ideally would support this.
We don't know what sort of events Select Button will run in the future, or how they might influence things. This PR handles event buffs with a function passed to the production calculator that modifies a Pokemon. When there's no active event, this function is simply the identity function: (mon: Pokemon) => mon. For other events, this function is a little more complicated. The ingredient drop boost in Raikou and Entei was complicated enough to warrant a helper function, which is in event-util.ts.
Another approach would be to add more inputs to the production calcualtor to handle events. So far, we've only seen a small number of changes made: increased skill rate, increased ingredient drops, and restricting bonuses to a specific type. I don't like this approach, because I think it risks making it harder to maintain the codebase as new events have new mechanics. If a future event restricts some bonuses to one type and other bonuses to another type, then we'd have to rewrite anything that assumes all bonuses will either go to all Pokemon or to only Pokemon of a specific type.
WIP Status:
The first commit adds the Event data type, and it adds the events we've seen so far. Future commits will add the ability to pass an event into the production calculator, add an event parameter to the production calculator API route, and add an API route to get a list of all events.

I want to push the event adjustment all the way into setupAndRunProductionSimulation. Doing that means changing the PokemonIngredientSet type to have "AAC" (for example) rather than a full IngredientSet[]. That would be a rather large refactor.
If I don't do that, it's easy to get calculatePokemonProduction in production-service.ts to use the Event it receives and pass the modified Pokemon into setupAndRunProductionSimulation. Similarly, calculateOptimalProductionForSetCover has a ProductionStats object and can make use of the Event.
However, getAllOptimalIngredientFocusedPokemonProduce in contribution-calculator.ts (used for the tier list) doesn't have a full ProductionStats object, so I can't do anything there. This is probably fine, but I think it'd be cool just as a curiosity to see what changes events make to the tier lists.
I think I'll try to do the refactoring. From a "don't repeat yourself" perspective, it feels wrong to deal with event modifications in multiple places. If tier lists don't want to deal with events, that's fine; they can simply not pass in any Event, and setupAndRunProductionSimulation can apply NO_EVENT.

I started working on the refactor, and I ran into an error as soon as I tried to import Event into the backend. I've pushed the broken commit in case you want to be able to reproduce the issue. Here's the error message I got from npm run build:
There was a problem resolving type of 'Event'.
There was a problem resolving type of 'ProductionStats'.
Generate swagger error.
 GenerateMetadataError: Unknown type: FunctionType
At: ~/SleepAPI/common/dist/domain/event/event.d.ts:7:7.
This was caused by 'statModifier: (mon: Pokemon) => Pokemon;'
    at TypeResolver.resolve (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:480:19)
    at TypeResolver.propertyFromSignature (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1195:119)
    at ~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1160:39
    at Array.map (<anonymous>)
    at TypeResolver.getModelProperties (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1160:18)
    at TypeResolver.getModelReference (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1054:33)
    at calcReferenceType (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:920:50)
    at TypeResolver.getReferenceType (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:933:24)
    at TypeResolver.resolve (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:513:36)
    at TypeResolver.propertyFromSignature (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1195:119)

I started working on the refactor, and I ran into an error as soon as I tried to import Event into the backend. I've pushed the broken commit in case you want to be able to reproduce the issue. Here's the error message I got from npm run build:
There was a problem resolving type of 'Event'.
There was a problem resolving type of 'ProductionStats'.
Generate swagger error.
 GenerateMetadataError: Unknown type: FunctionType
At: ~/SleepAPI/common/dist/domain/event/event.d.ts:7:7.
This was caused by 'statModifier: (mon: Pokemon) => Pokemon;'
    at TypeResolver.resolve (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:480:19)
    at TypeResolver.propertyFromSignature (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1195:119)
    at ~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1160:39
    at Array.map (<anonymous>)
    at TypeResolver.getModelProperties (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1160:18)
    at TypeResolver.getModelReference (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1054:33)
    at calcReferenceType (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:920:50)
    at TypeResolver.getReferenceType (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:933:24)
    at TypeResolver.resolve (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:513:36)
    at TypeResolver.propertyFromSignature (~/SleepAPI/backend/node_modules/@tsoa/cli/dist/metadataGeneration/typeResolver.js:1195:119)

This is because ProductionStats interface is returned on the API for some routes. For example both the api/optimal/meal/{name} and your own api/optimal/ingredient/{name} return an attribute called filter of type SetCoverProductionStats which just extends ProductionStats. So Swagger is complaining that we can't return a function on the API, since Event type contains statModifier which is a typescript function and not compatible with a HTTP response

Bluh...okay I understand the error now. I guess one option is to have the ProductionStats store a string that's the name of an Event? And then do a lookup. That would prevent power-users from writing their own custom event functions, which is probably desirable, to prevent us from running random user code that we don't trust.

Bluh...okay I understand the error now. I guess one option is to have the ProductionStats store a string that's the name of an Event? And then do a lookup. That would prevent power-users from writing their own custom event functions, which is probably desirable, to prevent us from running random user code that we don't trust.

I think in general for the API incoming request we use ProductionRequest interface. So for incoming requests and lookup we can add an event identifier such as an id or name or something like ENTEI_2024 as id would be cool.
I think the issue with ProductionStats is that today our APIs are too verbose, we probably shouldn't just return the entire ProductionStats interface out. I think we return some stuff like subskills, nature etc so that the old frontend could use it to list input settings on the results page. We probably should just add event to ProductionStats, but return more explicit type from the APIs. Might need a little refactoring though.
I believe the new frontend doesn't need the input settings returned at all and the team simulator doesn't. The new frontend sends the input settings to the backend and so it already has those beforehand ready.


bar_chart now reorders bars within groups based on descending proportions of the most abundant fraction in the stacked bar plot.

Hi @OscarGVelasco,
I have delved a bit into the behaviour of the bar_chart() function, and implemented some changes!

I have set up the basis for faceting, if you desire for that in the future.
This also allowed for the reordering of the bars within groups based on the descending proportions of the most abundant fraction in the stacked bar plot.
This reordering is not implemented for the subtype_only or contribution variants of the plot.

This way, bars are ordered and a better aesthetic looking plot is achieved. Things to take into account for the future:

If the user has a pre-defined order for the bars to be displayed.

Perhaps a natural enhancement of this feature would be to incorporate it as a parameter of the function, to toggle the behaviour on/off.
As per my last PR, I have tested the new code with the examples provided in readme.md.
I hope this helps! Let me know if you would like any further modifications.
Best,
Enrique

Thanks again @enblacar for your contribution, looks much nicer with the ordered bars. Next step will be to extend it for the  'subtype_only' and 'contribution'


Can't connect to Sql Server with Microsoft Active Directory Integrated

Description
When I try to connect, I'm asked to download driver libraries. I tried lots of times, and tried deleting and reseting, but no luck. The error I get is this:
Failed to load both mssql-jdbc_auth-12.4.1.x64 and MSAL4J Java library for performing ActiveDirectoryIntegrated authentication. Please install one of them to proceed.
Then I tried to add the files manually, like this:

But I still get the same error.
Im using Ubuntu, and this is the reponse of "java -version":
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7-post-Ubuntu-0ubuntu222.04.1)
OpenJDK 64-Bit Server VM (build 11.0.22+7-post-Ubuntu-0ubuntu222.04.1, mixed mode, sharing)
DBeaver Version
24.0.1
Operating System
Ubuntu 22.04
Database and driver
driver name: SQL Server
driver class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
Steps to reproduce
No response
Additional context
No response

Hi @simonsk90
Please try to download the missing library here:  https://mvnrepository.com/artifact/com.microsoft.azure/msal4j
And then add it manually by pressing Add File.

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


Streaming many 200mb files to s3 - is this the right library?

Hi all -
The header says it all! I'm looking for a way to stream ~30 200 mb files to s3. would you say this is the correct library to do so? I'd like to do this in a way that is async using python 2.7, and I've had some trouble doing this task.
One thing I've noticed is that smart_open seems to fail if I make a call within a python multiprocessing.process. I believe this is actually some issue with boto3. I'm thinking boto3 cannot find the right aws_profile_name I'm using (or other credentials) inside of the multiprocessing.Process? Maybe I'm mistaken as to the true cause, though. I get a an os error with fork when I do so.
Anyways, I'm curious how other's would accomplish this task. Maybe calling smart_open inside of a grevent thread or some other IO specific thread is the right way?
cheers,
Trent

would you say this is the correct library to do so?

yes
30 files looks not so much, can be easily done in sequential model (without any multiprocessing), but if you really needed - can you please share your current code (that raise an Exception) with full trace, we'll have a look.
as idea, what's about standart threads (most of this task are IO -> GIL released ->  should works OK with standart threads)?

Just to update, I used standard threads and that worked great!
+1 for using the simplest solution, even though I didn't end up using your library.
Thank you!
-Trent


added capabilities to accept min length for query parameter for ajax …

Description (required)
Currently there's no way to limit number of characters before actual ajax request is sent to server to pull data options.

Please don't include the compiled source files in the PR

Also, this duplicates the #97 request/PR.

Ok


Kernel Panic OS X

It's probably just my app and the way I'm using this gem, but I get kernel panics every once in a while using this. I had live-reload on and I figured that was the issue, but since disabling it I still get a panic once in a little while.
With that being said -- I love this gem.

Glad you like it! Sorry you're having issues. It doesn't really sound like the kind of problem I'd be able to solve. You're sure the problem is middleman-php, and not some PHP or Ruby thing? The code in this project is pretty mundane.
I'm going to close this because it doesn't seem too definite right now, but if you have more information, or if anybody else is also having this problem, I'd love to hear it!


@abilites appear to call the caster's ability scores rather than the targets

When casting Mage Armor from the DAE SRD Spells compendium, if the target and caster are not the same, the spell uses the caster's ability scores rather than the target's ability scores.

This is a core DAE issue, and has been communicated to Tposney


Select component selected prop is not working correctly

In the Select component, when binding variable with selected
let selectedValue;

...
<Select
  ...
  bind:selected={selectedValue}
/>

Even if the selectedValue is undefined the first SelectItem is shown as selected, if selectedValue dynamically changes user also sees the first item selected but in fact it's not.
Additionally, the Select should have the null state with no value selected and an additional placeholder prop.

Have you tried initializing the selected value with a disabled/hidden SelectItem?
<script>
  import {
    Select,
    SelectItem,
    SelectItemGroup,
  } from "carbon-components-svelte";
</script>

<Select labelText="Carbon theme" selected="0">
  <SelectItem value="0" text="Select a theme" disabled hidden />
  <SelectItemGroup label="Light theme">
    <SelectItem value="white" text="White" />
    <SelectItem value="g10" text="Gray 10" />
  </SelectItemGroup>
  <SelectItemGroup label="Dark theme">
    <SelectItem value="g90" text="Gray 90" />
    <SelectItem value="g100" text="Gray 100" />
  </SelectItemGroup>
</Select>

Not working for me either @metonym , I tried the following and the first item is always selected no matter the value I pass into it :
<Select
              light
              labelText="Mutuelle"
              bind:selected={selectedHealthInsurance}
            >
              {#each $insurances as insurance}
                <SelectItem value={insurance.id} text={insurance.name} />
              {/each}
            </Select>
``

bind:selected is not working for me either (nor bind:selected={} for one select or more than one select input in the same form. Is there any working example I could look at?
When I use bind:selected on both select inputs on the same form, I get "Attributes need to be unique"

Can you please provide a repro?
The following code demonstrates the following:

initial selected value
updating the Select should update the bound selected value
programmatically updating selected should update the value

https://svelte.dev/repl/f1d79bc28ad34179b7ce556d85948c11?version=3.48.0
<script>
  import { Select, SelectItem } from "carbon-components-svelte";

  let values = ["white", "g10", "g90", "g100"];
  let selected = "g10";
</script>

<Select labelText="Carbon theme" bind:selected>
  {#each values as value}
    <SelectItem {value} text={value} />
  {/each}
</Select>

<button
  on:click={() => {
    selected = "g90";
  }}
>
  Update to "g90"
</button>

{selected}

@metonym my apologies, this was a bug in my code. I should have provided an example.
I had bind:selected and selected = {} in my component which caused duplicate issue.  I originally thought this was an issue because of multiple selects in the same form was causing an issue.  This is working as expected. Thank you for the detailed response and the code snippet which helped identify the issue.

@metonym maybe I'm wrong, but maybe selected should match the selected value if unassigned, like the native select: https://svelte.dev/tutorial/select-bindings
Now its starting value is undefined

@nicrizzo-guess In the example, selected is set to the first value if undefined. Is that the expected behavior that you propose?
In the REPL, logging the value of selected shows the following:
undefined
{ id: 1 ,text: "Where did you go to school?" }

Yes, because otherwise I have to use a ref to the native select (__typesSelect in my case) and assign its value to the variable:
let newProjectType;
...
$:{
  if(__typesSelect){
    newProjectType = __typesSelect.value;
  }
}

Does it sound right to you?
Thank you very much!

Fixed in v0.66.0.
If the selected prop is undefined or not provided to Select, its value will be set to the value of the first SelectItem to emulate the native select behavior.


AQL query is very slow on Cluster in compare to Single node

My Environment

ArangoDB Version:        3.10.4
Deployment Mode:       Cluster
Deployment Strategy:   Kubernetes
Infrastructure:              GKE
Operating System:        COS (Container-Optimized OS from Google)
Total RAM in your machine:        12.76 GiB, coordinator - 4 GiB, agent - 1 GiB
Disks in use:        8GiB HDD (pd-standard), DB - 50GiB ssd (pd-ssd)
Used Package:              Docker

Component, Query & Data
Affected feature:
AQL query very slow on cluster
AQL query (if applicable):
for c in @@col
LET info = DOCUMENT(@@info_col, c.current.name)
return c._key

Single node AQL profile:
Query String (76 chars, cacheable: false):
 for c in @@col
 LET info = DOCUMENT(@@info_col, c.current.name)
 return c._key

Execution plan:
 Id   NodeType                  Calls   Items   Runtime [s]   Comment
  1   SingletonNode                 1       1       0.00001   * ROOT
  2   EnumerateCollectionNode      17   16011       0.01949     - FOR c IN vul_cve_78   /* full collection scan, projections: `_key`, `current`.`name`  */
  4   CalculationNode              17   16011       0.00337       - LET #2 = c.`_key`   /* attribute expression */   /* collections used: c : vul_cve_78 */
  3   CalculationNode              17   16011       0.19304       - LET info = DOCUMENT("cve_info", c.`current`.`name`)   /* simple expression */   /* collections used: c : vul_cve_78 */
  5   ReturnNode                   17   16011       0.00138       - RETURN #2

Indexes used:
 none

Optimization rules applied:
 Id   RuleName
  1   move-calculations-up
  2   reduce-extraction-to-projection

Query Statistics:
 Writes Exec   Writes Ign   Scan Full   Scan Index   Filtered   Peak Mem [b]   Exec Time [s]
           0            0       16011            0          0        5341184         0.21763

Query Profile:
 Query Stage           Duration [s]
 initializing               0.00000
 parsing                    0.00006
 optimizing ast             0.00001
 loading collections        0.00001
 instantiating plan         0.00002
 optimizing plan            0.00017
 executing                  0.21734
 finalizing                 0.00004

Cluster AQL profile:
Query String (76 chars, cacheable: false):
 for c in @@col
 LET info = DOCUMENT(@@info_col, c.current.name)
 return c._key

Execution plan:
 Id   NodeType                  Site  Calls   Items   Filtered   Runtime [s]   Comment
  1   SingletonNode             DBS       1       1          0       0.00001   * ROOT
  2   EnumerateCollectionNode   DBS      17   16232          0       0.01204     - FOR c IN vul_cve_78   /* full collection scan (projections: `_key`, `current`.`name`), 1 shard(s)  */
  4   CalculationNode           DBS      17   16232          0       0.00294       - LET #2 = c.`_key`   /* attribute expression */   /* collections used: c : vul_cve_78 */
  8   RemoteNode                COOR     34   16232          0       0.04440       - REMOTE
  9   GatherNode                COOR     34   16232          0       0.00420       - GATHER   /* unsorted */
  3   CalculationNode           COOR     34   16232          0      12.51273       - LET info = DOCUMENT("cve_info", c.`current`.`name`)   /* simple expression */   /* collections used: c : vul_cve_78 */
  5   ReturnNode                COOR     34   16232          0       0.00021       - RETURN #2

Indexes used:
 none

Optimization rules applied:
 Id   RuleName
  1   move-calculations-up
  2   scatter-in-cluster
  3   distribute-filtercalc-to-cluster
  4   remove-unnecessary-remote-scatter
  5   reduce-extraction-to-projection

Query Statistics:
 Writes Exec   Writes Ign   Scan Full   Scan Index   Cache Hits/Misses   Filtered   Requests   Peak Mem [b]   Exec Time [s]
           0            0       16232            0               0 / 0          0         19        5406720        12.58018

Query Profile:
 Query Stage           Duration [s]
 initializing               0.00000
 parsing                    0.00008
 optimizing ast             0.00001
 loading collections        0.00000
 instantiating plan         0.00002
 optimizing plan            0.00288
 executing                 12.57735
 finalizing                 0.00094

Dataset:
I don't think the dataset really matters here, on every query i do that uses two different collections i get a very slow query.
Size of your Dataset on disk:

Replication Factor & Number of Shards (Cluster only):
Replication Factor: 3
Number of Shards: 1
for both collections
Steps to reproduce

use the query i used on whatever two collections you choose (i did it on various collections).

Problem:
the execution time difference between the Single node and the Cluster is too big.
Expected result:
the execution time doesn't have to be the same, be should be pretty close.

Hi,
Please note that EnumerateCollectionNode equals a full collection scan. All these documents are then sent to the coordinator.
You need to find a way to use indices on the db-server to reduce the number of documents transmitted to the coordinator.

Thank you for your quick response
the query i use here it's just an example, but it showcased the issues i'm having.
in the query above, what am i supposed to do in case i want to join data between two collections and filter/sort by a field i'm getting from the second collection (the DOCUMENT function)?
i have to fetch the data from the second collection for all the documents in the first collection to do that.
on the Single node i was able to do that in a matter of milliseconds.

did you have a look at:
https://www.arangodb.com/docs/stable/aql/examples-join.html
The DOCUMENT() function can be a workaround for places where you want to fetch from dynamic collections, but most of the time one should try to avoid it.
You clearly should try to have the collection of the join which can have a better index support on the outside of the two loops.

yes i saw the document and it did help me with some of my simple queries, but i have a few more complex queries that i would love to hear from you what are your suggestions are, because they got real slow once i moved to the cluster.
i don't have a profile but i'll give you an example.
i have an edge collection that connects between 3 different collections, i'm trying to aggregate some data collected from more than one of them and i don't know in advance which collection it would use. i just use the _from field to get it.
FOR v IN @@edgeCollection
FILTER v.dataType == 4 OR v.dataType == 1
LET product = DOCUMENT(v._from) // using DOCUMENT() since i don't know the collection in "_from" field
COLLECT name = product.name INTO ids = v._from
RETURN { name: name, ids: UNIQUE(ids) }

thank you very much for the help


feat: \nonumber/\notag support, \tag per row of {align}

Support \nonumber (and equivalent \notag) using a global macro \@eqnsw to track whether one occurs in each row, similar to how amsmath uses global \@eqnswtrue/\@eqnswfalse.  Fix #2950.
I also added support for \tag on each row of an {align} or {align*} or similar environment, so each row is either automatically numbered (represented by true), not automatically numbered (represented by false), or has an explicit tag (represented by an array of parse nodes). Fix #2379.
This required a more general mechanism for expanding a macro (\df@tag) that doesn't actually appear in the source code.  We previously did this in parseTree.js only after parsing everything, but now we need it mid-parse too.  The new Parser.subparse does the job.
I also had to add a mechanism for undefining a macro value.  TeX represents this as setting a macro to \relax, but undefined was already used in some places in Namespace.js so I used that.
I added basic documentation and tests.
Example:

The tags are center-justified instead of the correct right-justified, but that was an existing bug that we can look at in another PR.

Codecov Report

Merging #2952 (de9ab31) into master (2935355) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2952      +/-   ##
==========================================
+ Coverage   93.92%   93.94%   +0.01%
==========================================
  Files          87       87
  Lines        6326     6340      +14
  Branches     1308     1312       +4
==========================================
+ Hits         5942     5956      +14
  Misses        354      354
  Partials       30       30

Impacted Files
Coverage Δ

src/parseNode.js
73.33% <ø> (ø)

src/environments/array.js
98.37% <100.00%> (+0.05%)
:arrow_up:

Continue to review full report at Codecov.

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

Hmm, perhaps I should try to implement \tag-per-row at the same time; this should be doable with a similar (if not the same) mechanism.

OK, I've added support for \tag in rows. This was harder than expected, but not too bad. See root post for details. Now ready for review.

I fixed the merge conflicts here, so this is ready to review again. FWIW, we've had a recent explicit request for this feature (#3183), and #2379 has 5 thumbs-up. PR #3214 also currently depends on this one. Let me know if you'd rather I split this up into multiple PRs.

@ylemkimon Thanks for the nice improvements! Should be ready to look at again.


Add support for arrays in rely/guarantee specs.

In progress...

This has been implemented in 581a9c159d0cb13b1076e358ac7b62d61c03a68a and a3da14ac8c635ec0d860a82f53e6fb20db8694c0 and will be merged into main before too long


Introduce ansible-lint and prettier to format Ansible files

A follow up for https://github.com/teemtee/tmt/pull/2198#issuecomment-1921488851

Hi @thrix, please help to review PR #2666, thanks very much!


Fix #1952: Airflow Openmetadata lineage allow config to be read from …

…env variable
Describe your changes :

I worked on the ..... because ...

Type of change :

[ ] Bug fix
[x] Improvement
[x] New feature
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have performed a self-review of my own.
[ ] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

documentation to be updated:
export AIRFLOW__LINEAGE__BACKEND=airflow_provider_openmetadata.lineage.openmetadata.OpenMetadataLineageBackend

export OPENMETADATA_LINEAGE_CONFIG=/tmp/openmetadata.json  (absolute path required)

openmetadata.json should contain the following details

{
    "airflow_service_name": "sample_airflow",
    "api_endpoint": "http://localhost:9585/api",
    "auth_provider_type": "no-auth"
}

change those details as per user's settings


Ionic serve stops working out of nowhere

I have an RC0 app that was working fine last night. "ionic serve" worked fine.
Now all of a sudden this morning I type "ionic serve" and it will not work. Logs:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/6.2.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'watch' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle ionic-hello-world@~prewatch: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~prewatch: no script for prewatch, continuing
7 info lifecycle ionic-hello-world@~watch: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~watch: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~watch: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop/node_modules/.bin:/usr/local/Cellar/node/6.2.0/bin:/usr/local/share/npm/bin:/Users/al/.rbenv/shims:/Users/al/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle ionic-hello-world@~watch: CWD: /Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop
11 silly lifecycle ionic-hello-world@~watch: Args: [ '-c', 'ionic-app-scripts watch' ]
12 silly lifecycle ionic-hello-world@~watch: Returned: code: 1  signal: null
13 info lifecycle ionic-hello-world@~watch: Failed to exec watch script
14 verbose stack Error: ionic-hello-world@ watch: `ionic-app-scripts watch`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:850:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd /Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop
17 error Darwin 15.6.0
18 error argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "run" "watch"
19 error node v6.2.0
20 error npm  v3.10.8
21 error code ELIFECYCLE
22 error ionic-hello-world@ watch: `ionic-app-scripts watch`
22 error Exit status 1
23 error Failed at the ionic-hello-world@ watch script 'ionic-app-scripts watch'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ionic-app-scripts watch
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs ionic-hello-world
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Here's the output from running "ionic serve"
ionic serve

Running 'serve:before' npm script before serve
> ionic-hello-world@ watch /Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop
> ionic-app-scripts watch
module.js:457
    throw err;
    ^

Error: Cannot find module '../dist/index'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop/node_modules/.bin/ionic-app-scripts:19:3)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)

npm
 ERR! Darwin 15.6.0

npm ERR! argv "/usr/local/Cellar/node/6.7.0/bin/node" "/usr/local/bin/npm" "run" "watch"

npm ERR! node v6.7.0
npm
ERR! npm  v3.10.8
npm ERR! code
 ELIFECYCLE
npm ERR! ionic-hello-world@ watch: `ionic-app-scripts watch`
npm ERR!
 Exit status 1
npm ERR!
npm ERR!
 Failed at the ionic-hello-world@ watch script 'ionic-app-scripts watch'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR!
 If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts watch

npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hello-world
npm
 ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm
 ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/al/Dropbox/Development/chopchop/ionic-app/ChopChop/npm-debug.log

Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

+1
I have the same problem

Could you provide me with the output from ionic info from within your project directory? Thanks, this should help in troubleshooting.

I could pass this state by doing the following:

deleting all dependencies in "node_modules" folder and restoring the packages again.
reinstalling ionic

+1
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

Update:
If I make a new project and copy the modules from there to the broken app it works. until I put my machine to sleep and wake it up. At which point the same error occurs.

This is a copy of my CLI from last night and this morning. The only thing that's changed is that the machine went into lock screen when I went to bed.
Garrys-MacBook-Air-2:ScholarPack garry$ ionic serve
Running 'serve:before' npm script before serve

ionic-hello-world@ watch /Users/garry/Dropbox/MOBILE/ScholarPack
ionic-app-scripts watch
[18:52:46]  ionic-app-scripts 0.0.28
[18:52:46]  watch started ...
[18:52:46]  build dev started ...
[18:52:46]  clean started ...
[18:52:46]  clean finished in 17 ms
[18:52:46]  copy started ...
[18:52:46]  typescript compiler started ...
[18:52:46]  lint started ...
[18:52:46]  copy finished in 105 ms
[18:52:47]  lint finished in 1.34 s
[18:52:52]  typescript compiler ready in 6.38 s
[18:52:52]  bundle dev started ...
[18:53:06]  bundle dev finished in 13.81 s
[18:53:06]  sass started ...
[18:53:08]  sass finished in 2.05 s
[18:53:08]  build dev finished in 22.27 s
[18:53:08]  watch ready in 22.42 s
Running live reload server: http://<IP_ADDRESS>:35729
Watching: www//*, !www/lib//, !www/**/.map
√ Running dev server:  http://<IP_ADDRESS>:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

ionic $ q
THIS MORNING:
Garrys-MacBook-Air-2:ScholarPack garry$ ionic serve
Running 'serve:before' npm script before serve

ionic-hello-world@ watch /Users/garry/Dropbox/MOBILE/ScholarPack
ionic-app-scripts watch
module.js:457
throw err;
^

Error: Cannot find module '../dist/index'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/Users/garry/Dropbox/MOBILE/ScholarPack/node_modules/.bin/ionic-app-scripts:19:3)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
npm
ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch"
npm ERR! node v6.7.0
npm ERR!
npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ watch: ionic-app-scripts watch
npm ERR!
Exit status 1
npm ERR!
npm
ERR! Failed at the ionic-hello-world@ watch script 'ionic-app-scripts watch'.
npm
ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR!
If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm
ERR!     ionic-app-scripts watch
npm ERR!
You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hello-world
npm
ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/garry/Dropbox/MOBILE/ScholarPack/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues

I have the same problem. Yesterday ionic serve was working fine. Today its giving this error.
My system information:
Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.5.0
Xcode version: Xcode 8.0 Build version 8A218a

I had same issue
running git clean -x -d -f; git reset --hard; npm install fixed this.

I have (so far so good) found a workaround, by deleting the node_modules and running 'npm install' in the project directory.

Only way I could fix it (tried everything I saw in multiple forums) was to make a new project and port over code. I saw this when upgrading from Ionic RC0 to RC1.

I have the same problem except the exit code is 137
Your system information:

Cordova CLI: You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1

Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS: Distributor ID:     Ubuntu Description:     Ubuntu 14.04 LTS
Node Version: v6.8.1

Same issue. @garrysaddington's fix did not work for me.

I am also facing the same issue for two days. deleting node modules and reinstalling ionic is not working and I did several times :crying_cat_face:

Same issue here as well.
ionic info:
Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: OS X El Capitan
Node Version: v7.2.1
Xcode version: Xcode 8.1 Build version 8B62
Tried deleting node_modules of the project and did npm install again. No luck.
I had did option + command + delete. After that app kept giving me the error mentioned above.

If you are working on an RC project please be sure to have @ionic/app-scripts installed and your package.json file.
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },

https://github.com/driftyco/ionic-app-scripts#npm-scripts

I also experienced this issue after a restart.  Mine had something to do with an included library:
[10:19:51]  ionic-app-scripts 0.0.48
[10:19:51]  ionic-app-script task: "serve"
[10:19:51]  Error: Cannot find module 'lodash/assign'
Error: Cannot find module 'lodash/assign'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spectora-mobile package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts serve
Deleting the modules and doing a npm install fixed it.
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: OS X El Capitan
Node Version: v7.2.1
Xcode version: Xcode 8.1 Build version 8B62

@jthoms1  i have same issue got this errors  while i run ionic serve
`module.js:471
throw err;
^
Error: Cannot find module 'C:\Users\adirz\myapps\HaverSami\node_modules\ionic\bin\ionic'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3`

In my case, files generated for xCode was the problem.
Im sync with git for view the differences and revert all (chages in node_module). After this wotks well.

Trying to create a project I got this error.

npm install
✖ Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):

    npm WARN deprecated<EMAIL_ADDRESS>Please update to the latest object-keys
    npm WARN prefer global<EMAIL_ADDRESS>should be installed with -g

    ><EMAIL_ADDRESS>install /home/hommydejesus/DenunciasApp/node_modules/node-sass
    > node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/linux-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.0/linux-x64-57_binding.node":
    HTTP error 404 Not Found

    Hint: If github.com is not accessible in your location
          try setting a proxy via HTTP_PROXY, e.g.

          export HTTP_PROXY=http://example.com:1234

    or configure npm proxy via

          npm config set proxy http://example.com:8080

<EMAIL_ADDRESS>install /home/hommydejesus/DenunciasApp/node_modules/fsevents
node install

    ><EMAIL_ADDRESS>postinstall /home/hommydejesus/DenunciasApp/node_modules/node-sass
    > node scripts/build.js

    Building: /usr/bin/nodejs /home/hommydejesus/DenunciasApp/node_modules/node-gyp/bin/node-gyp.js rebuild --verbos

e --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/nodejs',
gyp verb cli   '/home/hommydejesus/DenunciasApp/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import platform; print(platform.python_version());" returne
d: "2.7.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.0.0
gyp verb command install [ '8.0.0' ]
gyp verb install input version string "8.0.0"
gyp verb install installing version: 8.0.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.0.0
gyp verb build dir attempting to create "build" dir: /home/hommydejesus/DenunciasApp/node_modules/node-sass/buil
d
gyp verb build dir "build" dir needed to be created? /home/hommydejesus/DenunciasApp/node_modules/node-sass/buil
d
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/hommydejesus/DenunciasApp/node_modules/node-sass/build
/config.gypi
gyp verb config.gypi checking for gypi file: /home/hommydejesus/DenunciasApp/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /home/hommydejesus/DenunciasApp/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/hommydejesus/DenunciasApp/node_modules/node-
gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/hommydejesus/DenunciasApp/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/hommydejesus/DenunciasApp/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/hommydejesus/.node-gyp/8.0.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/hommydejesus/.node-gyp/8.0.0',
gyp info spawn args   '-Dnode_gyp_dir=/home/hommydejesus/DenunciasApp/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/hommydejesus/.node-gyp/8.0.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/hommydejesus/DenunciasApp/node_modules/node-sass',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/hommydejesus/.node-gyp/8.0.0
gyp verb which succeeded for make /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /home/hommydejesus/DenunciasApp/node_modules/node-sass/build'           g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1'  '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.0.beta.2"' -I/home/hommydejesus/.node-gyp/8.0.0/ include/node -I/home/hommydejesus/.node-gyp/8.0.0/src -I/home/hommydejesus/.node-gyp/8.0.0/deps/uv/include -I/home/hommy dejesus/.node-gyp/8.0.0/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m6 4 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/li bsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp         make: g++: Command not found         make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127 make: Leaving directory /home/hommydejesus/DenunciasApp/node_modules/node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/hommydejesus/DenunciasApp/node_modules/node-gyp/lib/build.js:25
8:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.4.0-78-generic
gyp ERR! command "/usr/bin/nodejs" "/home/hommydejesus/DenunciasApp/node_modules/node-gyp/bin/node-gyp.js" "rebu
ild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/hommydejesus/DenunciasApp/node_modules/node-sass
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    ┌────────────────────────────────────────────────────────────────┐
    │                    npm update check failed                     │
    │              Try running with sudo or get access               │
    │              to the local update config store via              │
    │ sudo chown -R $USER:$(id -gn $USER) /home/hommydejesus/.config │
    └────────────────────────────────────────────────────────────────┘

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/hommydejesus/.npm/_logs/2017-06-02T14_44_29_769Z-debug.log

Andd, another error when I try to run the ionic serve command
hommydejesus@Hommy-PC:~/DenunciasApp$ ionic serve
? Looks like this is an Ionic Angular project, would you like to install @ionic/cli-plugin-ionic-angular and continue? Y
es

npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
Error: Cannot find module '@ionic/app-scripts'


Get-BitlockerVolume causing errors when run in Vagrant/Chef

Hi,
I'm getting the following error reported when I include the "boxstarter::default" Chef recipe in a Windows 10 Vagrant VM (PowerShell version 5.1.14393.0):
<S S="Error">Get-Win32EncryptableVolumeInternal :  does not have an associated BitLocker volume._x000D__x000A_</S>
<S S="Error">At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\BitLocker\BitLocker.psm1:707 char:42_x000D__x000A_</S>
<S S="Error">+ ...       $AllWin32EncryptableVolume = Get-Win32EncryptableVolumeInternal_x000D__x000A_</S>
<S S="Error">+                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S>
<S S="Error">+ CategoryInfo          : NotSpecified: (:) [Write-Error], COMException_x000D__x000A_</S>
<S S="Error">+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Get-Win32EncryptableVolumeInternal_x000D__x000A_</S>

I'm posting here because the error is being caused by the following code in Boxstarter.Bootstrapper\Include-Reboot.ps1:
if(Get-Module Bitlocker -ListAvailable){
    Get-BitlockerVolume | ? {$_.ProtectionStatus -eq "On"  -and $_.VolumeType -eq "operatingSystem"} | Suspend-Bitlocker -RebootCount 1 | out-null
}

If there are no Bitlocker volumes detected, and error is thrown. The "fix" - at least to stop the error - is as follows:
    Get-BitlockerVolume -ErrorAction SilentlyContinue | ? {...

Thanks for making this product.
Cheers

I too am getting this
Boxstarter: Disabling Automatic Updates from Windows Update
Attempting to build package from 'tmp7EB6.tmp.nuspec'.
Successfully created package 'C:\Users\vagrant\AppData\Roaming\BoxStarter\BuildPackages\tmp7EB6.tmp.1.0.0.nupkg'
Boxstarter: Created a temporary package tmp7EB6.tmp from C:\Users\vagrant\AppData\Local\Temp\BoxstarterGist.txt in C:\Users\vagrant\AppData\Roaming\BoxStarter\BuildPackages

Boxstarter starting Calling Chocolatey to install tmp7EB6.tmp. This may take several minutes to complete...
Installing the following packages:
tmp7EB6.tmp
By installing you accept licenses for the packages.
[NuGet] Installing 'tmp7EB6.tmp 1.0.0'.
[NuGet] Successfully installed 'tmp7EB6.tmp 1.0.0'.

tmp7EB6.tmp v1.0.0 (forced)
tmp7eb6.tmp package files install completed. Performing other installation steps.
Boxstarter: Enabling Remote Desktop...
Boxstarter: Enabling Remote Desktop...
Boxstarter: Enabling Remote Desktop NLA ...
Boxstarter: Enabling Remote Desktop NLA ...
Boxstarter: Setting Windows Explorer options...
Boxstarter: Setting Windows Explorer options...
Boxstarter: Restarting the Windows Explorer process...
Boxstarter: Restarting the Windows Explorer process...
Boxstarter: Restarting the Windows Explorer process...
Boxstarter: Restarting the Windows Explorer process...
Boxstarter: Restarting the Windows Explorer process...
Boxstarter: Restarting the Windows Explorer process...
WARNING: The changes will take effect after you restart the computer PcsServerVM1.
Boxstarter: writing restart file
Boxstarter: writing restart file
Only an exit code of non-zero will fail the package by default. Set
--failonstderr if you want error messages to also fail a script. See
choco -h for details.
The install of tmp7eb6.tmp was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 1/1 packages. 0 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Boxstarter: found C:\Users\vagrant\AppData\Local\Boxstarter\Boxstarter.2988.restart we are restarting

Boxstarter finished Calling Chocolatey to install tmp7EB6.tmp. This may take several minutes to complete... 00:00:10.3436188
Boxstarter: writing restart file
Boxstarter: Restore Automatic Updates from Windows Update
Boxstarter: Restart Required. Restarting now...

Errors       : { does not have an associated BitLocker volume.}
ComputerName : localhost
Completed    : True
FinishTime   : 4/18/2017 4:44:34 PM
StartTime    : 4/18/2017 4:44:19 PM
Stderr from the command:
does not have an associated BitLocker volume.
Get-Win32EncryptableVolumeInternal :  does not have an associated BitLocker volume.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\BitLocker\BitLocker.psm1:695 char:42

...       $AllWin32EncryptableVolume = Get-Win32EncryptableVolumeInternal

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

CategoryInfo          : NotSpecified: (:) [Write-Error], COMException
FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Get-Win32EncryptableVolumeInternal

Still having this issue with version 2.9.14

ok. trying this again with https://github.com/mwrock/boxstarter/commit/5f886ccdb3e7b02a1bf2b46fad940192c5fa7a9c

@paulhanssen @eeevans I appreciate this was some time ago but has this issue been resolved?

I'm not directly involved using this software anymore, but your code change looks like the right one. So I'll close.


Which tools did you use to draw the figures in README?

Which tools did you use to draw the figures in README? I think that style is pretty attractive.

The graphics are all done by @vumichien!  We loved his blog post and asked for permission to use them. :)  You'll have to reach out to him directly to learn what tools he used.  Thanks!


drawing at bottom of screen shows up on top on hardware

Describe the bug
drawing at the bottom of the screen can appear at the top of the screen instead
To Reproduce
Steps to reproduce the behavior:

Go to https://makecode.com/_8vz1jK0prciq
run code, and continuous lines / arcs of random colors (including black / clear) are drawn
download to hardware
See that when a line is drawn and it touches the bottom of the screen, a pixel at the top of the screen is colored in instead

Expected behavior
lines drawn at bottom of screen do not appear at top of screen

@jwunderl still repros?

Smaller repro:
scene.setBackgroundImage(image.create(screen.width, screen.height))
const b = scene.backgroundImage()
b.drawLine(0, screen.height - 2, screen.width, screen.height + 2, 5)

Nice bug.


export Options type

Codecov Report

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

@@          Coverage Diff           @@
##           master    #135   +/-   ##
======================================
  Coverage    98.7%   98.7%
======================================
  Files           1       1
  Lines          77      77
  Branches       26      26
======================================
  Hits           76      76
  Misses          1       1

Impacted Files
Coverage Δ

src/clean-webpack-plugin.ts
98.7% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Allow for childstate queries for multiple child keys

Current we have childstate queries for single keys,
getStorage(
  childKey: PrefixedStorageKey,
  key: StorageKey,
  at: Option<Hash>
): Option<StorageData>

This approach work quite well. However in places where we do use childstate (e.g. crowdloans) we actually want to get multiple entries. For instance, I have 4 accounts for contributed to a specific crowdloan and to retrieve the values need to do 4 individual requests. This is in the cases where I know that the specific accounts have contributed.
Now look at the case where I may want to check if some of my accounts contributed to a specific loan. To do this would need to make X indv. RPC calls (where X = number of available accounts). For an RPC-user perspective and from an Node overhead perspective, it would potentially be much more optimal to have a signature such as -
/// getStorages? getEntries? Not sure about the naming...
getEntries(
  childKey: PrefixedStorageKey,
  keys: Vec<StorageKey>,
  at: Option<Hash>
): Vec<Option<StorageData>>

Which would allow us to query a specific childtrie to retrieve the values for more than one key in a single request.

On which level needs this to be implemented? Is it enough to just call the client's child_storage function for each key, collect the data and return it or is there also a new Trie-Backend function required which is probably more efficient by reducing database operations?


PartitionKey value must be supplied for this operation.

I was to able to see the list of items in the browser but I get the following error when I try to click on "Details", "Edit" or "Delete":
PartitionKey value must be supplied for this operation.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: PartitionKey value must be supplied for this operation.
Source Error:
Line 23:             try
Line 24:             {
Line 25:                 Document document =
Line 26:                     await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, id));
Line 27:                 return (T)(dynamic)document;
Source File:  ...\src\DocumentDBRepository.cs    Line: 25
Following the instructions I used category as PartitionKey and I don't have the chance to change the size of the database.

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

ID: 4255f572-38cc-08aa-6fb7-08c919713cf9
Version Independent ID: c04fe4dd-e75d-1028-8f2e-154d8c303da2
Content: Build a .NET web app with Azure Cosmos DB using the SQL API
Content Source: articles/cosmos-db/create-sql-api-dotnet.md
Service: cosmos-db
GitHub Login: @SnehaGunda
Microsoft Alias: sngun

@noelram This tutorial likely needs to be updated given the partition key requirement. Thank you for the additional details. I am going to assign to the content author to evaluate and update as appropriate.

@SnehaGunda This tutorial is not successful given the product change requiring partition key configuration. Please let me know if you need additional details.

You can get above to work, if you fix 2 errors:

The "Partition Key" must be "/category" and not "/userid" - the latter does not make sense in this example.
Change following line

await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, id));
to
await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, id),new RequestOptions { PartitionKey = new PartitionKey(category) });

@noelram @corneliussens Thanks for your feedback and the suggestions. Apologies for the delay in responding to this issue. I am working on fixing the sample and the doc.

@noelram @corneliussens the above PR's should fix these issue, they are still under review by out PM team. The content will be live in a couple of days. We will now close this issue if you don't have further questions.
#please-close

Hi @SnehaGunda ,
The sample still holds the old snippet, not updated with @corneliussens stated modification - https://github.com/Azure-Samples/documentdb-dotnet-todo-app/blob/master/src/DocumentDBRepository.cs

@SnehaGunda,
When would the new guidance be updated on the official docs?

@corneliussens Hi, what does the new parameter category stand for?
For example, my partition key is based on multiply property and I set it as '/uid/roleid/departmentid' when migrate my data to cosmos db, I tried with the new solution and want to get one single document for my User item based on my uid - (9753), roleid - (2), departmentid - (3) value,
Document document = await client.ReadDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, id)
                    , new RequestOptions { PartitionKey = new PartitionKey(new PartitionKey("9753/2/3"))) });

and got EXCEPTION
Unsupported ParitionKey value component '["/9753/2/3"]'. Numeric, string, bool, null, Undefined are the only supported types.

In addition, why would we need value for id and partition key at same time when retrieving an item from collection?


[feature] Implement AI to Deobfuscation?

Describe your idea
As mentioned in the title of this request,
I asked myself if it were possible to implement
AI to the deobfuscator, naming the variables according to their functionality , maybe add comments to what functions do.
This would make it easier to trace back field usages.

@queerzard please check my reply in similar issue: https://github.com/skylot/jadx/issues/1884#issuecomment-1564587269
In short: it is a good idea, but I don't want to do it, you can create a jadx plugin if you want to :slightly_smiling_face:


Set post commit hooks to check for code formatting issues

FEATURE REQUEST

Currently, we have to run go formatting tools after commit-ing our code. It'll be great if they can be run as soon as we commit our code.

Okay, this might seem intimidating a bit, but honestly it's some of bit hack-slash scripting.
Good starting points

https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

@vharsh I'll work on this one

the hooks are placed in .git/hooks directory but this directory is not managed by git, means it's not sent to github so how do you suggest to share these hooks to others.
This looks like a good way

Thanks @itaditya for the above suggestions!

/open


Implement axis sorting on v2 datasets

Implement axis sorting in PTCZ order for calls to as_array(axis=None) in v2 datasets similar to #75

Looks good once conflicts resolved

All set!


remove broken stop word detection, rely on server side implementation

remove the client side stop word detection and rely on server side implementation
two issues with client side implementation -

it was not being called in the v0.1 series (last worked in v0.0.20), effectively didn't work
it would return part of the stop word (find(...) + 1)

this simplifies the output post-processing, which moves us toward using standard post-processing tools.

I see some logic involving is_stop in _aggregate_msgs() which can be removed as we are not making it part of postprocessing

@raspawar ptal.
i removed extraneous stop params. the is_stopped is used in streaming.


launch.json: support debug active test file

Issue Type: Feature Request
Our launch.json supports debugging all mocha test files perfectly but we can't tweak it to debug a single test file easily without hard coding.
For example, I want to debug a unit test file /home/rebornix/vscode/out/vs/workbench/contrib/notebook/test/notebookFolding.test.js, what I need to do in VS Code launch.json is tweaking Run Unit Test
{
    "type": "node",
    "request": "launch",
    "name": "Run Unit Tests",
    "program": "${workspaceFolder}/test/unit/electron/index.js",
    "args": [
        "--remote-debugging-port=9222",
+.     "--run=/home/rebornix/vscode/out/vs/workbench/contrib/notebook/test/notebookFolding.test.js"
    ],
    "outFiles": [
        "${workspaceFolder}/out/**/*.js"
    ]
}

I'd like to replace the hard code file path with variables, what we have right now are

"workspaceFolder" : "/home/rebornix/"
"relativeFileDirName": "src/vs/workbench/contrib/notebook/test/"
"fileWithNoExtension": "notebookFolding.test"

The only change we need to do is replacing src with out but I guess it requires knowledge of tsconfig. If the typescript can contribute a variable like outputFilePath then the problem can be solved.
cc @mjbvz
VS Code version: Code - Insiders 1.45.0-insider (6e9a34c0de4181a99f11e106733ee3e8c9db79f1, 2020-04-16T05:41:45.257Z)
OS version: Darwin x64 19.2.0

This makes perfect sense and was also requested by @joaomoreno
The alternative approach to contributing variables that need to be resolved is to pass the filter based on the currently active file
Workaround: use .only in your mocha test file until we fix this.
For now assigning to May since I think this would help with our selfhosting.
Also assigning to @connor4312 for ideas
fyi @weinand @roblourens

Since commands can be used as variables, typescript can already contribute a command "outputFilePath".

@weinand nice idea. Is it possible for the typescript extnesion to contribute this command @mjbvz

@rebornix Also wants this.

Yea, I think a command is the way to go here.

Is it possible for the typescript extnesion to contribute this command

This would be nice but might not always be possible in esoteric build setups. js-debug could contribute this since we build a mapping for sourcemaps in the workspace already. Interested to hear Matt's thoughts :)

@mjbvz ping

Just to make sure I understand, the request is for a command that returns the output file path for the currently active TS file? I don't think TS has an API for this but I'll check with the TS team

Correct.

I will not have time to look into this this milestone.
Pushing out to On-Deck.
@connor4312 if you are passionate and can tackle this in the JS-debug feel free to assign back to May


docs/getting-started: add fcct container docs

We publish fcct containers on quay. Document that and add instructions.
Fixes https://github.com/coreos/fcct/issues/19

switched to full pullspecs


[BUG REPORT] Server Crash with version 1.20.1-2.8.6 Fabric Loader

Describe the bug
Server does not start with mod enabled.
Environment
Minecraft version :  1.20.1
mod version :  2.8.6
other mod version : [optional]
To Reproduce
Steps to reproduce the behavior:

Have a Fabric server with loader 0.16.7
Copy latest version of mod into mods folder
Start the server
It crashes

Expected behavior
Server starts without crashing
Pastebin
latest.log
Why do I blame your mod?
Because the server said:
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'createenchantablemachinery' at 'io.github.cotrin8672.fabric.CreateEnchantableMachineryFabric'!
    at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403) ~[fabric-loader-0.16.7.jar:?]
bla...

Thank you for your report!
I will be releasing a patch to fix this within the next few days.

Server is running again with the mod installed. Thank you.


font-family definitions and mixins

As discussed, consider merging o-fonts into this component, since typographic properties are tied to the particular typeface.

Font families will be defined in this component. Version 1 will not need web font assets.


API endpoints with file extensions

Hello! Great project.
To jump right in, it is a hacky experience to create an axios client for a single-endpoint API that also uses a file extension. ie https://coolapi.com/api.php
All url requests make their way through combineURLs.js, to be appended with a / regardless of if there was a relative url attached to the client's request config.
The current hack (it feels like hack...) to get around this is to add a request interceptor to remove the ending slash. I'm currently doing this in a project.
Happy to PR this issue with a fix to combineURLs - but I want to run it past owners first for validity.
Cheers! ✨

I'd be happy to accept a PR for this. Thank you!

Cool! #581


added customization closures

Added the ability to modify the eloquent query via closure
Added the ability to provide the list of activities via closure
Added the ability to set the text/value for TimeLineTitleEntry via closure

all of the closures are backed by the evaluate() function so you're able to inject the regular filament variables like $record, $component etc
ActivityLogTimelineAction::make('Activities')
    ->modifyQueryUsing(function (Builder $query) {
    //some logic modify the query
    // ex return $query->where('log_name', '=', 'custom');
    })

ActivityLogTimelineAction::make('Activities')
    ->activitiesUsing(function (Model $record) {
    //some logic to fetch the activities as a collection
    // ex Activity::all() or $record->activities;
    })

ActivityLogTimelineAction::make('Activities')
 ->shouldModifyTitleUsing(function (Activity $record) {
        //by default returns true, allows user to selectively skip the custom modifyTitleUsing function
        return $record->description !== $record->event;
    })
  ->modifyTitleUsing(function (Activity $record) {
      return $record->description;
  })

fixes #25. HasModifiedState getModifiedState  is typed to return HtmlString but  TimeLineTitleEntry can return a regular string if the description does not match the event.

It looks good, at the weekend I'll take my time to launch a new release.
thanks for the contribution


classifier kwargs and fix adata option for solo

Fixes #1077
Fixes an issue where get_latent_library_size returned samples on the log scale but mean on the linear scale

@adamgayoso
I think something went wrong here as the in silico doublets library size is orders of magnitude larger from the experimental data library size. Looks like the in silico doublets library size isn't getting logged perhaps?

If manually check that seems to be the issue:
import seaborn as sns
import pandas as pd
import copy
vae_loaded = vae.load("results/new/results_pbmc_64_16_1_0.01_2/vae", use_gpu=False, adata=scvi_data)
solo = SOLO.from_scvi_model(vae_loaded, doublet_ratio=2, dropout_rate=.2)

values = copy.copy(solo.adata.X[:,-1])
lib_df = pd.DataFrame(values)
lib_df['experimental_data'] = False
lib_df.iloc[:14619, 1] = True
lib_df.iloc[14619:, 0] = np.log(lib_df.iloc[14619:, 0])
lib_df.columns = ['lib_size', 'experimental_data']
sns.boxplot(x='experimental_data', y='lib_size', data=lib_df


Refactor webhooks to queued jobs

After watching Lorna Mitchell's talk at Laravel Live UK I realized we might be able to refactor the main webhook controller to something dynamic. By offloading the webhook handling to queued jobs we can inform the sender as soon as possible that we received the webhook.

Feel free to steal code from either https://github.com/spatie/laravel-stripe-webhooks or https://github.com/spatie/laravel-webhook-server

@freekmurze thanks! :)

The other nice side of this, is we can retry failed jobs. This would be a really nice improvement.


security: Refactor some utility functions in TSI for better internal use

Factor out the function body of ssl_protector_protect, ssl_protector_protect_flush, and ssl_protector_unprotect to utility functions for internal use.
The previous PR https://github.com/grpc/grpc/pull/29728 was reverted due to a failing test. This PR should fix that.
@ZhenLian

Confirmed offline with the PR author that the failed test was fixed. The failing test is a timeout error that's irrelevant to our code change. Merging now...