Autoloader doesn't load javascript when loading markup?

Information:

Prism version: latest v1.x rom cdn
Plugins: autoloader
Environment: browser

Description
When using the autoloader plugin, and highlighting html with script tags with javascript in them, the javascript is not highlighted. Likely because the javascript langauge is not loaded by the autoloader plugin.
I'm loading the following files from cdn:

<EMAIL_ADDRESS><EMAIL_ADDRESS>
I've even tried loading the javascript component file (and some others) myself from the cdn but it doesn't work either:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Example
My site
https://magpie-manual.netlify.app/00_getting_started/03_vue_js.html
Your site
https://prismjs.com/test.html#language=markup
I'm not sure if you are using the autoloader here, but try entering <script>console.log('fooo')</script>. It will not get highlighted until you select Javascript once and go back to markup in the language settings.

JS and CSS both modify Markup in order to add highlighting to <script> and <style> tags. This means that Markup has to be loaded before JS and CSS. However, since highlighting for <script> and <style> tags is optional, Autoloader won't load JS and CSS if you only request Markup.
There are two ways to solve your issue:

data-dependencies: This is the intended way to use Autoloader.
Instead of loading<EMAIL_ADDRESS>use<EMAIL_ADDRESS>This build of Prism includes Markup, JS, and CSS from the start, so Autoloader only has to load languages besides those three.

@RunDevelopment Thanks Michael! Works as intended now :)


Diverging modifies clauses cause unsound vacuity

Diverging (panicking) expressions, such as indexing, in a modifies clause lead to vacuous verification.

Can you please clarify what you mean here? Maybe an example with the current output would be helpful. Will the overall verification succeed?

An example of code that verifies vacuously, found with the help of @pi314mm :
// Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT
// kani-flags: -Zfunction-contracts

// Test that a modifies clause works when a (function call)
// expression is provided
fn infinite_looper() -> usize {
    loop {};
    1
}

#[kani::requires(arr[idx] == 1)]
#[kani::modifies(&arr[infinite_looper()])]
#[kani::ensures(arr[idx] == 2)]
fn modify(idx: usize, arr: &mut [i64]) {
    arr[idx] += 1;
}

#[kani::proof_for_contract(modify)]
fn main() {
    let mut arr: [i64; 4] = [1, 2, 3, 4];
    modify(1, &mut arr);
}

This can be reproduced without modifies clauses as well, e.g.:
#[kani::ensures(result == 1)]
fn foo() -> i32 {
    loop {};
    2
}

#[kani::proof_for_contract(foo)]
fn check_foo() {
    let _ = foo();
}

$ kani contract_loop.rs -Zfunction-contracts
Kani Rust Verifier 0.51.0 (standalone)
warning: unreachable expression
 --> contract_loop.rs:4:5
  |
3 |     loop {};
  |     ------- any code following this expression is unreachable
4 |     2
  |     ^ unreachable expression
  |
  = note: `#[warn(unreachable_code)]` on by default

warning: 1 warning emitted

warning: unreachable expression
 --> contract_loop.rs:4:5
  |
3 |     loop {};
  |     ------- any code following this expression is unreachable
4 |     2
  |     ^ unreachable expression
  |
  = note: `#[warn(unreachable_code)]` on by default

warning: Found the following unsupported constructs:
             - caller_location (1)
             - foreign function (2)

         Verification will fail if one or more of these constructs is reachable.
         See https://model-checking.github.io/kani/rust-feature-support.html for more details.

warning: 2 warnings emitted

Checking harness check_foo...
CBMC 5.95.1 (cbmc-5.95.1)
CBMC version 5.95.1 (cbmc-5.95.1) 64-bit x86_64 linux
Reading GOTO program from file /home/ubuntu/examples/contract_loop__RNvCsiqQmiVO2X69_13contract_loop9check_foo.out
...
SUMMARY:
 ** 0 of 1312 failed (1 unreachable)

VERIFICATION:- SUCCESSFUL
Verification Time: 1.7906353s

Complete - 1 successfully verified harnesses, 0 failures, 1 total.

And with a divergent while loop as well if loop contract synthesis is enabled:
#[kani::ensures(result == 1)]
fn foo() -> i32 {
    let i = 0;
    while i < 10 {}
    2
}

#[kani::proof_for_contract(foo)]
fn check_foo() {
    let _ = foo();
}

$ kani contract_loop.rs -Zfunction-contracts --synthesize-loop-contracts --enable-unstable
Kani Rust Verifier 0.51.0 (standalone)
warning: Found the following unsupported constructs:
             - caller_location (1)
             - foreign function (2)

         Verification will fail if one or more of these constructs is reachable.
         See https://model-checking.github.io/kani/rust-feature-support.html for more details.

warning: 1 warning emitted

Running loop contract synthesizer.
warning: This process may not terminate.
warning: Loop-contracts synthesizer is not compatible with unwinding bounds. Unwind bounds will be ignored.
Checking harness check_foo...
CBMC 5.95.1 (cbmc-5.95.1)
CBMC version 5.95.1 (cbmc-5.95.1) 64-bit x86_64 linux
Reading GOTO program from file /home/ubuntu/examples/contract_loop__RNvCsiqQmiVO2X69_13contract_loop9check_foo.out

...

SUMMARY:
 ** 0 of 1318 failed (1 unreachable)

VERIFICATION:- SUCCESSFUL
Verification Time: 1.8091615s

Complete - 1 successfully verified harnesses, 0 failures, 1 total.

One way to fix that is to fail if the post-condition is unreachable. In the case above, the check is indeed reported as unreachable:
Check 116: foo_check_516471.assertion.1
         - Status: UNREACHABLE
         - Description: "result == 1"
         - Location: contract_loop.rs:1:1 in function foo_check_516471

Why isn't this unwinding assertion failing in this case?

Apparently, CBMC replaces infinite loops with assume(false). This is an excerpt from the CBMC output:
Starting Bounded Model Checking
replacing self-loop at file contract_loop.rs line 5 column 5 function foo_wrapper_493980 by assume(FALSE)
no unwinding assertion will be generated for self-loop at file contract_loop.rs line 5 column 5 function foo_wrapper_493980

But in the case of using the loop synthesizer, one has to prove that the loop terminates for the loop abstraction to be sound.

Apparently, CBMC replaces infinite loops with assume(false). This is an excerpt from the CBMC output:
Starting Bounded Model Checking
replacing self-loop at file contract_loop.rs line 5 column 5 function foo_wrapper_493980 by assume(FALSE)
no unwinding assertion will be generated for self-loop at file contract_loop.rs line 5 column 5 function foo_wrapper_493980

This sounds like UB. C compilers also assume that you never write infinite loops.

@JustusAdam ,
Could you provide the context in which this error can be reproduced? Building kani on your fork and then running it on this seems to fail.

#3223 should address most of what is discussed here, except https://github.com/model-checking/kani/issues/2909#issuecomment-2140906570 requires further investigation.

Oh I made a mistake. I thought this issue was from the old assigns clause implementation, not modifies (I also observed vacuous verifications for that assigns clause though). I don't recall the example I tried this on, sorry.

I suggest that we close this issue once #3223 is merged and @qinheping could investigate the example from https://github.com/model-checking/kani/issues/2909#issuecomment-2140906570, which it seems to be more related to loop synthesis, as a separate issue. @zhassan-aws @tautschnig any thoughts?


Update PAVED page

Change homepage link address to: https://sepolia.paved.gg/

#226 heres the ticket


New CLI + umlaute fix

Currently, a tool demonstration proposal is being created.
For this purpose, a new CLI interface has been added to the project.
Further changes:

The umlaute issue hopefully is now finally fixed.
Removed orphaned files.
All reference BPMN files now are included from the test suite project only.
Added a new facade module in order to allow for a leaner CLI. Now, the CLI JAR only contains the reference BPMN files and not any test results. That way, the JAR is now 15 MB large instead of 39 MB.

Closed as a new pull request was opened using a different branch.


Is there a way to import the configuration you already have?

I have so many plugins I have trouble keeping track of what they do. I am beginning to use the plugin, and for my 'default' setup I would like to just import everything I already have active (ideally with their configurations too...?). The alternative, is clicking individual boxes to reach my default setup.
Very cool plugin! Thanks.

To add all of your configurations to a preset you can create a new preset with all settings

or in the edit panel select "Add all" from the ellipsis menu


Fix dns

Should fix #170

Thank you so much for hard work @ishentras

I will make a PR soon to backport integration test for kube-DNS from #172.


cube: Use VK_GOOGLE_display_timing extension

Show how to use the VK_GOOGLE_display_timing extension (currently, only
available on the Android O release).  There are many diagnostic
DBG_MSG()'s, which can help show the usage.

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

I made the requested changes @Tony-LunarG and @mark-lunarg

Hey Ian, you should also click/sign the license/CLA -- the link on the CLAssistant box above.

FYI ... I see that this doesn't build on Windows.  I'm trying to work on that now.

It compiles and runs on Windows, Linux, and Android.  I squashed some of today's commits and did a force-push.
I think it's ready to go.


Block Mario Game (done Chenges)

Have you read the Contributing Guidelines ?
yes
Description
Game
Fixes #657

Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

done!!

@photon149 have a look .


Sacred crashes with an exception when working directory does not directly contain the main script.

I have a python script inside of a package that creates a run a sacred experiment using automain.  In simplified terms, my directory structure looks like this:
root
+--data
+--mypackage
      +--__init__.py
      +--myexperiment.py

myexperiment.py looks like this:
from sacred import Experiment

ex = Experiment("My Experiment")

@ex.automain
def run_main():
    ...

When I run this experiment, by running:
python mypackage/myexperiment.py
It crashes with an exception.  When I traced down the issue, it seems that the problem is that when it gathers the names of the source files used in the experiments, it registers the filename of the main script only myexperiment.py, nots its path.  It then later tries to read the script file using that file name, but since the file name is resolved relative to root, it fails to find the file and throws an exception.
Since I have a complex project and lots of experiments, its necessary to organize things into folders/packages, so keeping all the experiment scripts in the root folder would be highly inconvenient.
I'm not sure if it makes a difference, but I'm using the SQLObserver.

Hi,
When I run this setup on my machine it works as expected. Could you help me reproduce your problem by  posting the following?

the output of python myexperiment.py print_dependencies
and the stacktrace when running your experiment from the root folder using the -d flag

It's possible it depends on the observers you have registered as well.  I'm using the SQL Observer.
Here is the result of python mypackage/myexperiment.py print_dependencies.
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 mypackage/myexperiment.py print_dependencies
INFO - Train-RLWDP-Model - Running command 'print_dependencies'
INFO - Train-RLWDP-Model - Started
INFO - Train-RLWDP-Model - Completed after 0:00:00
Dependencies:
  numpy                == 1.13.0
  sacred               == 0.7.0

Sources:
  myexperiment.py                              c09244a52f4a91ca4b282e62b645329b

Process finished with exit code 0

Running experiment from the root folder with the -d flag.
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 mypackage/myexperiment.py -d
INFO - Train-RLWDP-Model - Running command 'run_experiment'
WARNING - Train-RLWDP-Model - The observer '<sacred.observers.sql.SqlObserver object at 0x10489d128>' failed at some point during the run.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 220, in __call__
    self._emit_started()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 320, in _emit_started
    _id=self._id
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/observers/sql.py", line 289, in started_event
    sql_exp = Experiment.get_or_create(ex_info, self.session)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/observers/sql.py", line 172, in get_or_create
    for s, md5sum in ex_info['sources']]
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/observers/sql.py", line 172, in <listcomp>
    for s, md5sum in ex_info['sources']]
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/observers/sql.py", line 31, in get_or_create
    md5sum_ = get_digest(filename)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/dependencies.py", line 44, in get_digest
    with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'myexperiment.py'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mypackage/myexperiment.py", line 7, in <module>
    @ex.automain
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/experiment.py", line 130, in automain
    self.run_commandline()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/experiment.py", line 242, in run_commandline
    return self.run(cmd_name, config_updates, named_configs, {}, args)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/experiment.py", line 187, in run
    run()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 241, in __call__
    self._stop_heartbeat()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 276, in _stop_heartbeat
    self._emit_heartbeat()  # one final beat to flush pending changes
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 339, in _emit_heartbeat
    result=self.result)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/run.py", line 386, in _safe_call
    getattr(obs, method)(**kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sacred/observers/sql.py", line 329, in heartbeat_event
    self.run.info = json.dumps(flatten(info))
AttributeError: 'NoneType' object has no attribute 'info'

Process finished with exit code 1

Here is my code:
from sacred import Experiment
from sacred.observers import SqlObserver

ex = Experiment("Train-RLWDP-Model")
ex.observers.append(SqlObserver.create('sqlite:///data/experiments.sqlite3'))

@ex.automain
def run_experiment():
    print("Finished")


Exemplar: Use generic interface for attachment values.

Updates #1058.
Similar to Java PR https://github.com/census-instrumentation/opencensus-java/pull/1779. Though in Go I think we can take advantage of the flexibility on interfaces so I just used interface{} for generic attachment values. WDYT?

FYI this PR doesn't contain user-visible changes. Will merge by EOD today if there're no other comments/concerns.


About Flutter Internationalization

    "items":"{count, plural, =0{no items} =1{1 item} **>99{99+ items}** other{{count} items}}",     "@items": {       "description": "A plural message",       "placeholders": {         "count": {           "type": "num",           "format": "compact"         }       }     },
how to realize bold position

{ count, plural, =0{no items} =1{1 item} }

99  what should be done ?

Hi @zrbyhelp
The goal of this Github repo is not to give assistance on personal code or the whole package/plugin project, but to improve flutter reporting bugs or feature requests.
If you encounter behavior that you believe could be a bug, please provide a completed and minimal reproducible code sample that represents the problem. Also, please provide the output of flutter doctor -v as well.
Instead, if you think that the issue might depend on your implementation, please see flutter's community for resources and ask questions like this. You may also get some help if you post it on Stack Overflow and flutterhelp.
Thank you!


PDF Watermarker

Description
Add watermark to every page of the PDF or to a specific page (ask the user to give the page number as input)
Technologies and Languages

Python

Any other language and technology are welcomed.
Aditional Work
Make a GUI for this

Can you assign to me?

sure

Please assign this to me if person before me can't do it.

@jp2373  Sure 👍


Dispatch queue: com.google.firebase.auth.globalWorkQueue   Thread crashed.

Describe your environment

Xcode version:  10.1
Firebase SDK version: 0.16.0 (firebase_auth for Flutter)
Firebase Component: Auth
Component version:  firebase_auth: ^0.16.0

Describe the problem
App is crashing on iPhone and iPad (IOS 13.5 13.5.1) when user is trying to login using existing account
Crash log:
attachment_1779773927076952969crashlog_DEB8BBA5_31FA_4531_9280_B5402109D7E7.txt

Hi, thanks for the report and sorry for the troubles you're seeing.
Can you please symbolicate the crash report? It's going to be impossible to figure out what was going wrong without seeing what methods were called, and even then we're likely going to need some sample code that can reproduce this.
You can find more information about how to symbolicate crashes here: https://developer.apple.com/library/archive/technotes/tn2151/_index.html
Also this could be a flutter specific issue, in which case this should be opened against the flutterfire repo: https://github.com/FirebaseExtended/flutterfire

Thank you for response. I'll try.
The problem is -this logs are from apple review team, and that is only info i have.
On my own device i cant even reproduse this issue.
But apple team somehow can.
here are the other logs they provided. Problem is the same.
attachment_1779773927076952969crashlog_DEB8BBA5_31FA_4531_9280_B5402109D7E7.txt
attachment_14194784670888038541crashlog_FD0DDC66_11FE_4556_9E29.txt
attachment_4863837703299290265crashlog_A09E97FA_A82B_4674_AA32_9C3FE5C2C648.txt
attachment_3367746561920500978crashlog_A4FC5CE9_65BC_454D_981E_75A45101DDCF.txt

If you have the dSYM files for the build you uploaded to Apple, you should be able to symbolicate the crash log even if the crash was not generated on your machine.

Can you share the exception message as well? It looks like it's probably crashing due to an unrecognized selector exception, which suggests the request variable has the wrong type.

Can you share the exception message as well? It looks like it's probably crashing due to an unrecognized selector exception, which suggests the request variable has the wrong type.

Where can i find it? Sorry for the incompetence, I'm new to ios development.

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY

If you disable all breakpoints and allow program execution to continue, there should be an exception message printed to console if the crash was caused by an exception.
Looking at the screenshot again, this is probably not the result of a thrown exception. Can you reproduce this crash in a project and share it with us?


[Question] - Is stripe allowed to take payments on Mobile app (without google or apple pay)

I integrated stripe with my React Natve App. My question is: Is stripe allowed to collect payments for in app purchases? We are selling online consulting services.
In the screenshot below if the user selects credit/debit card option then Google pay will not recieve its cut. I am worried that this might cause ban on Google or Apple stores. Have you guys considered this issue? Apologies if this issue is not an issue - wanted to seek clarification rather than thinking and worrying about it.
I spoke to someone on the support and he mentioned that there is no way to hide the second option (collecting debit/credit card info).

If you're selling digital products or services within your app, (e.g. subscriptions, in-game currencies, game levels, access to premium content, or unlocking a full version), you must use the app store's in-app purchase APIs. See Apple's and Google's guidelines for more information. For all other scenarios you can use this SDK to process payments via Stripe.
I've added a section to the README for this: https://github.com/stripe/stripe-react-native#recommended-usage

Hi, I've got my app rejected by Apple because of the problem of not having in-app purchases. I checked the docs you've attached above but I am not sure what to do because no one says a clear way of achieving this in react native and that's a bit hard to know what to do because we did all the process with react-native stripe SDK and now we have to redo the process I guess but I would like to know for sure what to do...
Thank you :)


Add nested fields

AnyISalIn's MR https://github.com/Frankkkkk/pykorm/pull/11 introduced nested fields. It wasn't merged in #13  because some tests didn't pass and the change would've been too big.
However the idea was really good and they should be inttroduced into pykorm

nested fields in very important, It can reduce code redundancy.

I know I'm asking a lot, but would it be possible for you to rebase from the master branch and re-introduce the nested fields funcionality ? That would be very useful

ok, I will submit a new PR

Closed by #17


Clarification: is there a canonical range going to the end of a line?

Conceivably, there are two possible representations of a range going to the end of a line. For example, if you have the text
abc
def

to represent the first line, you can either say
{
  "start": {
    "line": 0,
    "character": 0
  },
  "end": {
    "line": 0,
    "character": 4
  }
}

or
{
  "start": {
    "line": 0,
    "character": 0
  },
  "end": {
    "line": 1,
    "character": 0
  }
}

Should one of these representations be used over the other? Should they be considered to be equal?

I'm dealing with this issue at the moment as well. My intuition is that the former range would represent all of the text on the line excluding the newline, whereas the latter range would represent the line itself including the newline. But I'm currently dealing with a client implementation that seems to treat them equivalently, so I'm not sure if that's actually correct. Clarification on this would be great.

My intuition is that the former range would represent all of the text on the line excluding the newline

I don't think that sounds right. The line only has 3 characters so {line: 0, character: 4} also includes the newline character. So yea, I think those two representations are 'equivalent'. If you don't want the newline include it should be {line: 0, character: 3}.

If you don't want the newline include it should be {line: 0, character: 3}.

You're right, I was doing the indexes wrong in my head. Thanks.

The two ranges given are not equivalent because one the first one doesn't include the newline character(s) and the second one does.
According to the protocol:

Position
Position in a text document expressed as zero-based line and zero-based character offset. A position is between two characters like an 'insert' cursor in a editor.

As a position is the area between two characters, a position of {line: 0, character: 4} is actually the cursor position after the c in abc. It is not representative of the newline (or carriage return on Windows) character at index 4, it is the text caret position between index 3 and index 4 (that is, the caret position right after the c).

Range
A range in a text document expressed as (zero-based) start and end positions. A range is comparable to a selection in an editor. Therefore the end position is exclusive.

A range that spans from {line: 0, character: 0} to {line: 0, character: 4} would highlight the three characters abc and nothing else given that the end position is exclusive.

@rcjsuen I'm not sure I follow. When I model the positions as cursors, I get this:
| a | b | c | \n |
0   1   2   3    4

which would include the newline character.
Are you trying to say that you cannot count newline characters in the calculation of positions on line, and that {line: 0, character: 4} is an invalid position? If so, that would establish a canonical representation, and I think it would require some clarification in the spec.

@arxanas Sorry. Never mind. I too was doing the math wrong in my head. :(

It is the second. The reason is that this makes them agnostic to the line end characters used, especially when there are two like on Windows.
I added the following to the spec:

Positions are line end character agnostic. So you can not specify a position that denotes \r|\n or \n| where | represents the character offset.

and for the character:

If the character value is greater than the line length it defaults back to the line length.

and for the range:

If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line. For example:

{
    start: { line: 5, character: 23 }
    end : { line 6, character : 0 }
}


Add docs concerning webpack external configs

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>

@ixrock PTALA, I added some descriptor of the work you are doing in #5290 as well.

@chenhunghan @ixrock PTALA


composer: take into account rollup transaction nonce when submitting

currently, if composer sees two rollup txs from the same account with, for example, nonce 0 and nonce 1, it may submit the tx with nonce 1 to the sequencer first, causing both rollup txs to fail. although there are many edge cases, we should at least handle the naive case where if we see multiple txs at the same time, we should check if there are any from the same account, and if so, order them by nonce within the sequencer tx bundle.

this is a non issue because of the way composer receives txs and builds bundles they are always received in nonce order for pending txs, only in rare edge case restarts do we see problems. These will be solved by more complex builder functionality,

This issue is stale because it has been open 45 days with no activity. Remove stale label or this issue
be closed in 7 days.

This issue was closed because it was stale


Implementation of a two-step role transfer at cw_controllers::Admin

Is there a reason for not implementing a two-step admin transfer at cw_controllers::Admin?
It seems to be a common recommendation among security firms to limit the chances of updating the owner/admin to an incorrect/typo address.

Propose new admin, old admin retains privileges.
Proposed admin accepts the role, role is actually transferred.

I think this is just an extra step on top of "simply" carefully checking address which you input.
It would have to come with mechanism to revert decision in case of a mistake.

Right, being able to drop an existing proposal should be part of the flow too

I agree with this idea, but it is a different API.
Happy to include an "SafeAdmin" controller, that is like Admin, but has the two-step pattern. We need to document it and contracts can choose which one to use.


Update org.yaml

adding junggil to Kubeflow org member

/assign @chensun for approval

/assign @chensun

/assign chensun

Sorry for the noise, I just realized the first comment worked.


github/workflows: fix broken yaml

Fix yaml syntax that got broken in
19bbdd5438fd30bf09c7e33930a5877b9f4b4418.
In addition there's another (required) patch to simplify the workflow file.

@marquiz I mean I screwed up my earlier review of your PR where I was wondering about the same but I was hasty and approved it. Then it went in, although I think it should never have. We have another workflow already in place which is dealing exclusively with publishing documentation. It is this publish-docs.yaml. I think it would be better to stick with that (it is basically the same as you added) and make fixes there.

Isn't this conflicting with publish-docs.yaml ?

No, that one is about actually publishing the docs. This one just verifies that the docs are buildable and that the gh-pages update script doesn't fail.

ping @klihub @jukkar the CI is broken until we merge this one


resrc_mtr: add summary mod with a common framework

What problem does this PR solve?
Added support for the collection and reporting of summary data recording the number of scanned keys. In addition, a general resource metering framework is abstracted, and cpu/summary related codes are used as sub-modules to work under the new framework.
What is changed and how it works?
What's Changed:

Add a new public abstraction layer, including public models such as Recorder, Reporter and Collector.
Support the processing of summary statistics under the public abstraction layer.
Migrate the processing of cpu statistics to the public abstraction layer.
The only background thread supports collecting multiple resources at the same time.
Insert the code to collect scanned keys in the main logic.
Add a lot of unit tests.

Related changes

PR to update pingcap/kvproto: pingcap/kvproto#814

Check List
Tests

Unit test
Integration test

Side effects

Performance regression

Consumes more CPU
Consumes more MEM

Release note
Support the statistics of scanned keys in resource metering.

/run-all-tests

/run-all-tests

This PR was split into two: 10998, 11085


gif not show in release apk - React native

Hi I have use giphy API for the my React native app. but gifs show in debug apk. but gifs not show in release version. is anyone have this issues. Thank you....

Hi @Rananjaya
Can you provide additional information, such as the RN version and platform? Also, it would be great if you could share a minimal sample that demonstrates when this issue arises.


Question regarding moment calculation

Hi,
I just started using spectral-cube (v0.2.dev672) and I have a couple of questions:
-Why is the beam information not preserved when calculating the moment maps?
-The original cube is stored in Ra-Dec-Freq, with the rest-frequency in the header. Is it possible to get the moment-0 in units of K km/s instead of K Hz?
This is the code I'm using at the moment (clearly not efficient, but it works):
	cube = SpectralCube.read(file_in)
	# Creates masks for line emission
	# This works but is not efficient!
	mask_mom=np.zeros( cube.shape, dtype=bool)
	mask_mom[index_peak] = True
	mask_mom = mask_mom & np.isfinite( (cube.unmasked_data[:,:,:]).value )
	cube_main = cube.with_mask(mask_mom)
       #calculate moment-0 and export fits file
        mom_0 = cube_main.moment(order=0)
        mom_0.write( file_in.replace('.fits', '_mom0.fits'))

OK, I solved the second issue (unit conversion) but the first question is still there --Jaime

@jpinedaf - Glad you solved the unit conversion issue.  with_spectral_unit is the tool if anyone else comes to this issue.
As for the lack of beam parameters - I think this is a bug and I'll investigate.  Check out the radio-beam package for turning headers into astropy unit objects.

Also, if you include some more information about index_peak, I can probably tell you how to make that snippet more efficient.

Thanks! I'll check radio-beam.
In this case:  index_peak=np.arange(335,420)

Oh, in that case, I think you could shorten your code to
mom_0 = cube[335:420].moment0()

but I'm not sure I read your intent exactly correctly.  Also, github tip: backticks around code (`) formats it nicely; triple backticks are good for code blocks

Interesting. The moment calculation works only when I give an specific range of channels, but not if I try to select them using an array with indices:
In [30]: mom_0 = cube[600:800,:,:].moment(order=0)
In [31]: index_peak=np.arange(600,800)
In [32]: mom_0 = cube[index_peak,:,:].moment(order=0)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-32-0d1ac2c9458c> in <module>()
----> 1 mom_0 = cube[index_peak,:,:].moment(order=0)

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spectral_cube-0.2.dev672-py2.7.egg/spectral_cube/spectral_cube.pyc in __getitem__(self, view)
    816                          copy=False,
    817                          unit=self.unit,
--> 818                          meta=meta)
    819
    820         newmask = self._mask[view] if self._mask is not None else None

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spectral_cube-0.2.dev672-py2.7.egg/spectral_cube/spectral_cube.pyc in __new__(cls, value, unit, dtype, copy, wcs, meta, mask)
    135
    136         if np.asarray(value).ndim != 2:
--> 137             raise ValueError("value should be a 2-d array")
    138
    139         if wcs is not None and wcs.wcs.naxis != 2:
ValueError: value should be a 2-d array

Is this the expected behaviour? Since I will be using an user defined channel range I need to use the array :(

@jpinedaf - there is currently no support for creating sub-cubes with discontinuous spectral axes.  Still, the error you got is not the intended response.
A workaround that will work once I fix a bug that it has revealed (sorry....) is:
cube = SpectralCube.read('grs-48-cube.fits')
inds = np.arange(cube.shape[0])
mask = (inds < 100) | (inds > 400)
cube.with_mask(mask[:,None,None]).moment0()

So you use your index_peak to create a boolean array mask and mask the cube with that before computing the moment.  That will be reasonably efficient and should address most use cases.


[FLINK-6332] [build] Upgrade Scala versions

Upgrade to the last maintenance releases of Scala 2.10 and 2.11.

lgtm


gaussian_filter seg faults on float16 numpy arrays

<<Please describe the issue in detail here, and for bug reports fill in the fields below.>>
Using gaussian_filter from scipy.ndimage.filters on numpy arrays with dtype=np.float16 causes a segmentation fault.
Reproducing code example:

from scipy.ndimage.filters import gaussian_filter
import numpy as np
gaussian_filter(np.array([1],dtype=np.float16), 1)

Error message:
Segmentation fault (core dumped)
Scipy/Numpy/Python version information:
('1.0.0', '1.13.3', sys.version_info(major=2, minor=7, micro=14, releaselevel='final', serial=0))
1.0.0 1.13.3 sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)

Confirmed with master (version '1.1.0.dev0+4019b40').
I have optimistically added this issue to the 1.0.1 milestone.  Seg. faults are nasty, so I hope someone can work on this for the next point release.


how to build this project in android studio

Describe the bug/request
well, i am new to kotlin and android development. if i opened this project in the android studio how to run it

@UchihaSR You should first learn some basics I guess. Running an application within Android Studio is among the basics. There are thousands and thousands of tutorials on Internet.

@UchihaSR Please read https://developer.android.com/guide for building the first App. Please create a more specific issue regarding your problem. @PatilShreyas Please review close this due to an incomplete problem statement.

Thanks @mwshubham. Closing it


Numpy Operator Inconsistency

argmax
The dtype return be argmax is float32 instead of int
>>> d = mx.np.array([0, 1])
>>> mx.np.argmax(d)
array(1.)
>>> mx.np.argmax(d).dtype
<class 'numpy.float32'>

repeat
import mxnet as mx
from mxnet import util

@util.use_np
def func():
    x = mx.np.array([[1,2],[3,4]])
    print(mx.np.repeat(x, [1, 2], axis=0))

func()

mxnet.base.MXNetError: Invalid Parameter format for repeats expect int but value='[1, 2]', in operator repeat(name="", axis="0", repeats="[1, 2]")

softmax
import mxnet as mx
from mxnet import util

@util.use_np
def func():
    x = mx.np.array([], ctx=mx.gpu(0)).reshape(2, 0, 0)
    print(mx.npx.softmax(x))

func()

Floating point exception (core dumped)

mean
import mxnet as mx
from mxnet import util

@util.use_np
def func():
    x = mx.np.array([], ctx=mx.gpu(0)).reshape(2, 0, 0)
    print(mx.np.mean(x))
func()

0.0 (expect NaN)

prod
import mxnet as mx
from mxnet import util

@util.use_np
def func():
    x = mx.np.array([], ctx=mx.gpu(0)).reshape(2, 0, 0)
    print(mx.np.prod(x))
func()

0.0 (expect 1.0)

@mxnet-label-bot add [Numpy]

duplicate: https://github.com/apache/incubator-mxnet/issues/16048

@zachgk assign [@reminisce ]

transpose fixed in https://github.com/apache/incubator-mxnet/pull/16414.

Issues with np.transpose and  np.split are fixed, removing those parts from the issue.

@Yiyan66 is looking into it.

closed by #18286 #18371


Add possibility to override error messages for recursive comparison

Added possibility to override a error message for a specific fields/types for the recursive comparison.
This functionality especially useful for custom equals/comparators. For example:
class Foo {

    private final Integer bar;

     private Foo(Integer bar) {
             this.bar = bar;
      }
}

Foo actual = new Foo(1);
Foo expected = new Foo(1);

BiPredicate<Integer, Integer> greaterThan = (a, e) -> Objects.equals(a, e + 1);

Assertions.assertThat(actual)
                .usingRecursiveComparison()
                .withEqualsForFields(greaterThan, "bar")
                .isEqualTo(expected);

This code snippet would throw a error with a description:
when recursively comparing field by field, but found the following difference:

field/property 'bar' differ:
- actual value  : 1 (Integer@3f3c7bdb)
- expected value: 1 (Integer@3f3c7bdb)

Looks silly, doesn't it?
This pull request provides to override the description:
class Foo {

    private final Integer bar;

     private Foo(Integer bar) {
             this.bar = bar;
      }
}

Foo actual = new Foo(1);
Foo expected = new Foo(1);

BiPredicate<Integer, Integer> greaterThan = (a, e) -> Objects.equals(a, e + 1);
String message = "Property bar of expected object must be incremented by 1";

Assertions.assertThat(actual)
                .usingRecursiveComparison()
                .withEqualsForFields(greaterThan, "bar")
                .withErrorMessageForFields(message, "bar")
                .isEqualTo(expected);

And the result message for this field will be overridden.
when recursively comparing field by field, but found the following difference:

Property bar of expected object must be incremented by 1

Check List:

Fixes #??? (ignore if not applicable)
Unit tests : YES
Javadoc with a code example (on API only) : YES
PR meets the contributing guidelines

Following the contributing guidelines will make it easier for us to review and accept your PR.

Good idea thanks @groov1kk, I'll put that for our next release.

Integrated thanks @groov1kk, very nice work!
When integrating this PR I did change one thing: I removed the overloaded withErrorMessageForFields and  withErrorMessageForType that took a list of args, the rationale being that the difference with withErrorMessageForFields(String message, String... fieldLocations) / withErrorMessageForType(String message, Class<?> type) was not super clear and the value not compelling as one can simply build  the same message with String.format before passing it to withErrorMessageForFields /  withErrorMessageForType (it's even better since you don't have to create a list to use String.format).
Thanks again for the good work!


⚠ Bofrost.de has degraded performance

In 7e56b8d, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 793 ms

Resolved: Bofrost.de performance has improved in 3624e8e.


Cannot add Accept: application/stream+json header

My server guys are requiring me to use
Accept:  application/stream+json
header to receive their Spring Flux server sent events.  After tracing through the code, it appears that the prepareCall(Request request) method in the RealServerSentEvent class is forcing the request object to always have the same default headers for every call.  This is preventing me from adding new headers to my ServerSentEvent object.
Request newRequest = request.newBuilder()
            .header("Accept-Encoding", "")
            .header("Accept", "text/event-stream")
            .header("Cache-Control", "no-cache")
            .build();

    call = client.newCall(newRequest);

I'm wondering if this is by design, since server sent events should be sent with the text/event-stream header.  I think the reason they are requiring the application/stream+json header is that works in Google Chrome developer tools, which they are using for debugging.

Request request = new Request.Builder().url(path).build();
request.addHeader("Accept", "application/stream+json");
OkSse okSse = new OkSse();
ServerSentEvent sse = okSse.newServerSentEvent(request, listener);

Interestingly, when the onClosed method is inevitably called, the headers on the ServerSentEvent object show that I've added the application/stream+json header, which I believe may be another bug.  The actual headers on the SSE object used to make the call is not the same as the headers on the SSE object returned in the callback methods.  That threw me off for awhile, because I was trying to debug viewing the headers in the onClose method:
@Override
public void onClosed(ServerSentEvent sse) {
    // sse request headers on this sse object actually includes the added Accept: application/stream+json header
}

The protocol says that the header should have Accept text/event-stream.
But I'll take a look

Okay great, that's what I was thinking, that this was by design.  I had them change the code so that both text event stream and application stream json are produced in the Spring Boot server.  OkSse is now working in our implementation, thanks again for this awesome library!
@GetMapping( value = "v1/status/events", produces = {
MediaType.APPLICATION_STREAM_JSON_VALUE, MediaType.TEXT_EVENT_STREAM_VALUE } )
public Flux<GeneralLinkStatus> ...

Glad to help. Even though I will take a look at the behavior you described.


Submmiting an CHAOSS unconference session to COSCon'24 Nov 11.2-3

I will be attending the Chinese Open Source Conference 2024 (COSCon'24) on November 2-3.
Currently, the website is in Chinese, which may limit its usefulness for the global community seeking information about the event. However, there is an Open Source Evaluation and Data Insights track, where I plan to host a CHAOSSunconference session.
This issue serves to track the proposals, discussion topics, and outcomes for the unconference session.
Any suggestions, ideas, or are interested in participating in COSCon'24, please share your thoughts in this issue.

The unconference session will happen in


endpoint to file upload

- endpoint:
    method: POST
    path: /file-upload
    store: upload-filesystem
    interceptor: multipart
    response:
      status: 200
      headers:
        Content-Type: application/json
      body: >
        {
          "url": "https:/..."
        }

There are two variables that we need to control in this type of endpoint: store (where the file will be persisted) and interceptor (will it receive the file or in base64 format).
example:
store: upload-filesystem
interceptor: multipart

store:

upload-filesystem
upload-s3

interceptor's:

file-multipart
file-base64

Let me see if I understood correctly.
This post endpoint if the store: is upload-filesystem we need to implement an interceptor that will get the file from post and save it in the file system, and the same thing to s3 if has store: upload-s3we need to save the content of the post into a bucket. Do I understand it correctly?
is the URL returned from the body the locally which this file was saved?
 body: >
        {
          "url": "https:/..."
        }

is the URL returned from the body the locally which this file was saved? May I did not understand this URL

almost that :D
our body system (API return declared via configuration file) uses a template processor, i.e., when the user writes the configuration file he can use as many variables as he wants and structure the return as he thinks best.
When the user uses the interceptor file-multipart or file-base64, we will put an array with the metadata from the uploaded file into the template variables
https://github.com/avelino/moclojer/blob/d49c34091f52f568b12abf0b45ce30dd51bef63d/src/moclojer/handler.clj#L26-L29

so the user could download the file if he clicks on this URL?

May I got.
So we will create this URL inject at the body and the user when click it will be able to download the file?
This URL will be an URL to access that uploaded resource, right?

With PR #30 we can be sure that this work both on OpenAPI and moclojer file format.
I can write a test using moclojer file format to ensure.
https://github.com/avelino/moclojer/pull/30/files#diff-9f5080dca598e93e24b78e407670c67caff9c1c8e33c3b9507e035eedb805266L47

Done in https://avelino.run/projects/moclojer/


Mac date fix

Hey @jordemort,
the secrets.sh list command wasn't working for me on my mac. So I added this, so I thought I'd share. 👍

Hey can you reproduce the error that you were having? I tried with /bin/date on my Mac and it seems to support both of the formats I'm using:
jordan@dorothy:~/GitHub/for-business (build-release-planning-2018-07 % u=)$ /bin/date '+%F %I:%M%p %Z'
2018-07-26 10:04AM CDT
jordan@dorothy:~/GitHub/for-business (build-release-planning-2018-07 % u=)$ /bin/date '+%s'
1532617469

When I use secrets.sh out of the box
[deleonjavier: (master)@deleonjavier secrets.sh]: secrets list
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
javier                                                                                |

Where my date command is

DATE(1)                   BSD General Commands Manual                  DATE(1)

NAME
     date -- display or set date and time

SYNOPSIS
     date [-jRu] [-r seconds | filename] [-v [+|-]val[ymwdHMS]] ... [+output_fmt]
     date [-jnu] [[[mm]dd]HH]MM[[cc]yy][.ss]
     date [-jnRu] -f input_fmt new_date [+output_fmt]
     date [-d dst] [-t minutes_west]

I also found this in my .bashrc  commented out.
#PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

where this exists:
date -> ../../bin/gdate


Add TetraMesh class to handle tetrahedral mesh

Hi,
I would like to propose this PR to introduce new class TetraMesh which is defined reffering to raysect.primitive.mesh.MeshData.
When constructing a kD tree for tetrahedral meshes, MeshKDTree3D class in raysect.core.math.function.float.function3d.interpolate.common module was used, and I need more general way of handling tetrahedral vertices or indices.
So, I decided to add some mesh-handling methods and put it into raysect.primitive module.
According to this modification, I improved some implementations and documents.
In addition, Tetmesh in external package used in demo scripts: Py3DViewer does not work well because of incompatible with version (I guess.), so I changed to use numpy.load method to load tetrahedral vertices and indices arrays.
I would appreciate it if you would confirm my PR and marge it into develop branch:)

I'm a little unsure how a tetrahedral mesh fits as a primitive? Primitives are meant to define a surface that may or may not enclose a volume. A tetrahedral mesh doesn't just represent a surface alone. Raysect has no mechanism for inspecting a more complex representation.
I've unfortunately not got much time to look through this at present as it is a large merge request. I will make one quick comment: the tetra mesh bunny file is a bit large! A simpler mesh would be sufficient for a demo.

As @CnlPepper mentioned, TetraMesh is not actual primitive objects. I think it is similar to the MeshData definition (actually I imitated it to implement TetraMesh)

the tetra mesh bunny file is a bit large! A simpler mesh would be sufficient for a demo.
I remove .mesh file due to the out of use. The numpy binary files (.npy) I added have smaller size (totally 30MB) than the .mesh file (45.9MB).

the tetra mesh bunny file is a bit large! A simpler mesh would be sufficient for a demo.
I compressed mesh data in a .npz format, including both the tetra mesh's vertices and indices.
This file has a size of about 12MB. What do you think about this change?

I'm a little unsure how a tetrahedral mesh fits in the primitive module.

As you mentioned, I think the name TetraMesh should be changed to TetraMeshData because the previous one is not inherited from the Primitive object as well.
I want to push this PR to implement the functionality to save/load the tetrahedral mesh structure generated by the kd-tree core like the MeshData.save or MeshData.load.
I would appreciate it if you would take it into account.


Cloudshell link updated and instructions to add sub module

Cloud shell link update
Instructions to add sub module
TOC updates.

CI is failing

I think we need to rebase this, and we can merge

ok to test


Cryptocurrency conversion feature [US #108] [Task #130 #131 #132]

PR for user story #108, task #130 #131 #132
WHAT kind of change does this PR introduce?
Added a new view for the cryptocurrency conversion feature that supports conversion between the major cryptocurrencies Bitcoin, Ethereum, Litecoin, Ripple and USD
...
HOW is this accomplished?
It is done by Implementing a new view that shows 6 decimal numbers and that will convert between BTC, ETH, LTC, XRP and USD by grabbing live data from https://min-api.cryptocompare.com through an asynchronous task.

...
Checklist

[x] Docs have been added / updated to reflect the changes
[x] I have reviewed and tested the changes :white_check_mark:
[x] I have squashed my commits to have a reasonable amount of commits
[x] All of the code I have written adhere to the coding conventions outlined in the coding conventions section of the wiki

Can you amend the last commit so that it's linked to an issue?

✅ Styling is adequate and follows coding conventions outlined by the Kotlin Foundation
✅ New methods and functionalities have appropriate tests (testing edge cases + good coverage)
** Testing is through **
✅ Branch has an acceptable amount of commits with descriptive names and
✅   PR description matches the code outlined a has mentions to issues
✅ This PR attempts to implement a specific feature (no code blob or epic pr)
** Overall this is good there a few lines of code pertaining to tax conversions if i'm not mistaken. **
Status: Requested Changes

@miisaka first commit name should be changed using an interactive rebase. Look at the last answer on this post

@izconcept @jusleg changed the name of the Tax toast commit by linking it to issue #140.

✅ Styling is adequate and follows coding conventions outlined by the Kotlin Foundation
✅ New methods and functionalities have appropriate tests (testing edge cases + good coverage)
Testing is through
✅ Branch has an acceptable amount of commits with descriptive names and
✅   PR description matches the code outlined a has mentions to issues
✅ This PR attempts to implement a specific feature (no code blob or epic pr)
Overall this is good there a few lines of code pertaining to tax conversions if i'm not mistaken.
Status: Approved


[MM-20414] Migrated NavbarInfoButton to Typescript

Summary
Migrate Navigation bar Info Button to Typescript.
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/16159
https://mattermost.atlassian.net/browse/MM-20414

Hello @Saucistophe,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

I guess my only question is why in some places was ChannelInfoButton renamed to NavbarInfoButton ?
Why couldn't we just keep the name ChannelInfoButton as it was?

The class is named NavbarInfoButton, so it felt wrong importing NavbarInfoButton as ChannelInfoButton in the tests. I'm not sure which one is the best :shrug:

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @jfrerich @emilyacook

/update-branch

Closing this PR as inactive, @Saucistophe let us know if you plan on finishing this up.


Feign clients created manually doesn't work with feign.Okhttp client

Feign clients created manually with Okhttp client doesn't work, I believe it's because Okhttp class is final and the AOP approach doesn't consider final classes. Should be ok to remove this final type validation from the aspect? Or is there another way to make this work with the Okhttp client?

What do you mean by manually? Providing a feign.okhttp.OkHttpClient bean?

When I create a feign client with Feign builder:
Feign.builder()
    .client(new OkHttpClient())
    .target(FeignInterface.class, "http://localService");

OkHttpClient  is a final class: https://github.com/OpenFeign/feign/blob/master/okhttp/src/main/java/feign/okhttp/OkHttpClient.java

@emersonborges thanks, would you like to create a fix for this?


load existing segmentation actually runs auto-segmentation

https://github.com/OCR4all/LAREX/blob/27dc5bc9f263e5036a7d6dbcd9feeba5b2b1b832/src/main/webapp/resources/js/viewer/guiInput.js#L275
IMHO this should read: _controller.loadAnnotations()

Thanks a lot for the hint.
Clicking Load Now should now actually load an existing annotation when the setting is activated.


Add files via upload

Request inclusion of Test US Federal TLS Root CA.

@robstradling - Hi Rob, any idea when the Dodo update script will run next?

@ryancdickson @connellyt Sorry for the delay.  We'll aim to get this root added to Dodo this week.

Thanks, @robstradling! We appreciate it.

@ryancdickson @connellyt This root has now been added to Dodo.  I've add-chain'd the root certificate itself to confirm it's working: see https://crt.sh/?id=1305347383

@ryancdickson @connellyt This root is being removed from Dodo in order to avoid it from being spammed into uselessness.  It has come to our attention that (other than the root certificate itself) the only certificate submitted to Dodo that chains to this root is a Subordinate CA certificate whose corresponding private key is publicly known.

@robstradling Thanks for the information. We've already destroyed that CA and corresponding private keys.


Report of Exported Data

This is great. However, it would be even more awesome if it exported some type of csv report that includes all data that was exported in an easy-to-read format.

I'm curious, what kind of report would be useful to you? A summary of the count of each type of object that is exported? Any particular metadata?


Fix aot compilation issues

This merge should fix the aot compatibility problems referenced by the issues below
#2 , #9 , #7

Can we get this merged asap?


[MTB]Add additional fields dynamically to README

/assign @JimBugwadia

/ok-to-test
/lgtm
/approve


Clear up dependencies

Our setup.py needs to specify, inter alia, django, twisted, and path.py.

Someone is still having this problem:
https://gist.github.com/collinanderson/221e39ee89b324cee2f0


Ingest and Dockerise everything

Ingest and Dockerise it!

Create basic structure of docker files
This structure should ingest any python file and dockerise it (use prompt to input python file)

I can take this up as I want to work on docker.

sure @varishtsg

@varishtsg are you still working on this issue? If not let me know, so I'll unassign it and keep it open :)

I am not working on it atm. I have added some boilerplate code though for starters.

I can work on the dockerfile!

I can work on the dockerfile!

Sure, go ahead and request a PR

Hello @achoudh5, Is this issue still open? I can work on it if it hasn't been resolved.

Hey @achoudh5, I would like to work on this issue. But I need your guidance too. Because I guess their exist some bugs in dashboard.py file.
Regards,
Devarsh


Fix for running MediaSourceTest

Added target compatibility 1.8 to common module's build.gradle
Implemented missing method in TestMediaSource

Thank you! Merging this in with a related change and then I'll push it.

Thanks again!

Thanks for reviewing and merging!


"ArgumentError: Polymorphic associations do not support computing the class" when building schema

I have a polymorphic model called Document that looks like this:
class Document < ApplicationRecord
  belongs_to :documentable, polymorphic: true

  # OTs
  has_many :document_ot_links, dependent: :destroy, inverse_of: :document
  has_many :ots, through: :document_ot_links
  # Products
  has_many :document_product_links, dependent: :destroy, inverse_of: :document
  has_many :products, through: :document_product_links
  # Uploads
  has_many :document_upload_links, dependent: :destroy, inverse_of: :document
  has_many :uploads, through: :document_upload_links

  accepts_nested_attributes_for :documentable

  def build_documentable(params)
    self.documentable = documentable_type.constantize.new(params)
  end
end

When starting up my app, this error appears on my console for each polymorphic model in my app (Document is just one of many):
Polymorphic associations do not support computing the class

This leads to my polymorphic models not being loaded into the schema, which results in a JavaScript error when trying to go to the page of a resource that has that model. This error being:
TypeError: Cannot read property 'columns' of undefined # this happens in query_utils.js, method fieldsParams()

I encountered this error after the rich text implementation. I'm pretty sure it happens when calling ref.klass inside the Motor::BuildSchema::LoadFromRails#build_reflection_column method.
That's the info I could gather for now, but if anything else is needed I'll keep looking. Thanks!

thanks @dantevvp it has been fixed in the newest release.
It was the time to add a polymorphic association to the test suite :)


TS Server fatal error:  Debug Failure.

Issue Type: Bug
❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 4.0.2
Steps to reproduce crash

Have VS Code deno extension installed
Create deno project and open its folder in VS code
Open a ts file, watch ts server crash.

TS Server Log
❗ Please review and upload this log file to help us diagnose this crash:
c:\Users\myuser\AppData\Roaming\Code - Insiders\logs\20200919T093521\exthost1\vscode.typescript-language-features\tsserver-log-Y012YU\tsserver.log
The log file may contain personal data, including full paths and source code from your workspace. You can scrub the log file to remove paths or other personal information.

Info 6    [9:35:24.33] event:
{"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":7320}}
Info 7    [9:35:24.35] request:
{"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true,"includePackageJsonAutoImports":"auto"},"watchOptions":{}}}
Info 8    [9:35:24.36] Host information vscode
Info 9    [9:35:24.36] Host watch options changed to undefined, it will be take effect for next watches.
Info 10   [9:35:24.36] response:
{"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 11   [9:35:24.36] 0::configure: async elapsed time (in milliseconds) 1.0240
Info 12   [9:35:24.37] request:
{"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","sourceMap":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"resolveJsonModule":true}}}
Info 13   [9:35:24.38] Scheduled: ensureProjectForOpenFiles
Perf 14   [9:35:24.38] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 1.3206
Info 15   [9:35:24.38] response:
{"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 16   [9:35:24.38] request:
{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts","fileContent":"import { Rhum } from '../../deps/rhum.ts';\nimport { combinations } from './do-stuff.ts';\n\nRhum.testPlan('do-stuff.ts', () => {\n  Rhum.testSuite('combinations', () => {\n    Rhum.testCase('combinations([...Array(4).keys()], 3)', () => {\n      const c = combinations([...Array(4).keys()], 3);\n      Rhum.asserts.assertEquals(c.next().value, [0, 1, 2]);\n    });\n  });\n});\n\nRhum.run();\n","projectRootPath":"c:\Users\myuser\proj\deno_learning","scriptKindName":"TS"}]}}
Info 17   [9:35:24.40] Search path: c:/Users/myuser/proj/deno_learning/src/_1_business
Info 18   [9:35:24.41] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/_1_business/tsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 19   [9:35:24.41] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/_1_business/jsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 20   [9:35:24.41] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/tsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 21   [9:35:24.42] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/jsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 22   [9:35:24.42] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/tsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 23   [9:35:24.42] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/jsconfig.json Currently impacted open files: RootsOfInferredProjects:  OtherOpenFiles: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts Status: File added to open files impacted by this config file
Info 24   [9:35:24.42] For info: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts :: No config files found.
Info 25   [9:35:24.45] Loading global plugin typescript-vscode-sh-plugin
Info 26   [9:35:24.45] Enabling plugin typescript-vscode-sh-plugin from candidate paths: c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features,c:\Users\myuser.vscode-insiders\extensions\denoland.vscode-deno-2.2.3,c:/Program Files/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../..
Info 27   [9:35:24.45] Loading typescript-vscode-sh-plugin from c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features (resolved to c:/Program Files/Microsoft VS Code Insiders/resources/app/extensions/typescript-language-features/node_modules)
Info 28   [9:35:24.56] typescript-vscode-sh-plugin initialized. Intercepting getEncodedSemanticClassifications and getEncodedSyntacticClassifications.
Info 29   [9:35:24.56] Plugin validation succeded
Info 30   [9:35:24.56] Loading global plugin typescript-deno-plugin
Info 31   [9:35:24.56] Enabling plugin typescript-deno-plugin from candidate paths: c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features,c:\Users\myuser.vscode-insiders\extensions\denoland.vscode-deno-2.2.3,c:/Program Files/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../..
Info 32   [9:35:24.56] Loading typescript-deno-plugin from c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features (resolved to c:/Program Files/Microsoft VS Code Insiders/resources/app/extensions/typescript-language-features/node_modules)
Info 33   [9:35:24.80] Loading typescript-deno-plugin from c:\Users\myuser.vscode-insiders\extensions\denoland.vscode-deno-2.2.3 (resolved to c:/Users/myuser/.vscode-insiders/extensions/denoland.vscode-deno-2.2.3/node_modules)
Info 34   [9:35:24.176] [typescript-deno-plugin] "Create typescript-deno-plugin"
Info 35   [9:35:24.177] Plugin validation succeded
Info 36   [9:35:24.177] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/_1_business/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 37   [9:35:24.177] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src/_1_business/tsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 38   [9:35:24.177] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/src/_1_business/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 39   [9:35:24.177] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/_1_business/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 40   [9:35:24.177] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src/_1_business/jsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 41   [9:35:24.178] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/src/_1_business/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 42   [9:35:24.178] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 43   [9:35:24.178] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src/tsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 44   [9:35:24.178] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/src/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 45   [9:35:24.178] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/src/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 46   [9:35:24.178] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src/jsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 47   [9:35:24.178] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/src/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 48   [9:35:24.178] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 49   [9:35:24.178] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/tsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 50   [9:35:24.178] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 51   [9:35:24.178] ConfigFilePresence:: Current Watches: :: File: c:/Users/myuser/proj/deno_learning/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Open file was set as Inferred root
Info 52   [9:35:24.178] FileWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/jsconfig.json 2000 undefined Project:  WatchType: Config file for the inferred project root
Info 53   [9:35:24.178] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/myuser/proj/deno_learning/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/myuser/proj/deno_learning/src/_1_business/do-stuff.test.ts OtherOpenFiles:  Status: Updated the callback
Info 54   [9:35:24.179] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
Info 55   [9:35:24.190] DirectoryWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/deps 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Info 56   [9:35:24.190] c for path c:/Users/myuser/proj/deno_learning/deps not found in cache...
Info 57   [9:35:24.190] Starting C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe with args:
["c:/Program Files/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/watchGuard.js","c:/Users/myuser/proj/deno_learning/deps"]
Info 58   [9:35:24.286] WatchGuard for path c:/Users/myuser/proj/deno_learning/deps returned: OK
Info 59   [9:35:24.288] Elapsed:: 98ms DirectoryWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/deps 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Info 60   [9:35:24.290] DirectoryWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Info 61   [9:35:24.290] watchDirectory for c:/Users/myuser/proj/deno_learning/src uses cached drive information.
Info 62   [9:35:24.291] Elapsed:: 1ms DirectoryWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
Info 63   [9:35:24.293] DirectoryWatcher:: Added:: WatchInfo: c:/program files/microsoft vs code insiders/resources/app/extensions/node_modules 1 undefined Project:  WatchType: node_modules for closed script infos in them
Info 64   [9:35:24.293] watchDirectory for c:/program files/microsoft vs code insiders/resources/app/extensions/node_modules uses cached drive information.
Info 65   [9:35:24.294] Elapsed:: 1ms DirectoryWatcher:: Added:: WatchInfo: c:/program files/microsoft vs code insiders/resources/app/extensions/node_modules 1 undefined Project:  WatchType: node_modules for closed script infos in them
Info 66   [9:35:25.46] DirectoryWatcher:: Added:: WatchInfo: c:/Users/myuser/proj/deno_learning/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
Info 67   [9:35:25.46] watchDirectory for c:/Users/myuser/proj/deno_learning/node_modules/@types uses cached drive information.

Error: Debug Failure.
    at Object.releaseDocumentWithKey (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:117868:35)
    at Object.onReleaseOldSourceFile (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143365:34)
    at Object.createProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:102829:26)
    at synchronizeHostData (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143333:26)
    at Proxy.getProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143425:13)
    at InferredProject.Project.updateGraphWorker (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148270:53)
    at InferredProject.Project.updateGraph (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148203:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150285:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151805:26)
    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:97
    at Object.flatMap (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:153081:46)
    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:88
    at IOSession.Session.executeWithRequestId (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154944:28)
    at IOSession.Session.executeCommand (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:33)
    at IOSession.Session.onMessage (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154977:35)
    at Interface.<anonymous> (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:157193:27)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

Info 183  [9:35:30.558] response:
{"seq":0,"type":"response","command":"updateOpen","request_seq":11,"success":false,"message":"Error processing request. Debug Failure.\nError: Debug Failure.\n    at Object.releaseDocumentWithKey (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:117868:35)\n    at Object.onReleaseOldSourceFile (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143365:34)\n    at Object.createProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:102829:26)\n    at synchronizeHostData (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143333:26)\n    at Proxy.getProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143425:13)\n    at InferredProject.Project.updateGraphWorker (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148270:53)\n    at InferredProject.Project.updateGraph (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148203:42)\n    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150285:25)\n    at ProjectService.assignProjectToOpenedScriptInfo (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151805:26)\n    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:97\n    at Object.flatMap (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)\n    at ProjectService.applyChangesInOpenFiles (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:41)\n    at Session.handlers.ts.Map.ts.getEntries._a. (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:153081:46)\n    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:88\n    at IOSession.Session.executeWithRequestId (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154944:28)\n    at IOSession.Session.executeCommand (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:33)\n    at IOSession.Session.onMessage (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154977:35)\n    at Interface. (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:157193:27)\n    at Interface.emit (events.js:223:5)\n    at Interface._onLine (readline.js:315:10)\n    at Interface._normalWrite (readline.js:460:12)\n    at Socket.ondata (readline.js:172:10)\n    at Socket.emit (events.js:223:5)\n    at addChunk (_stream_readable.js:309:12)\n    at readableAddChunk (_stream_readable.js:290:11)\n    at Socket.Readable.push (_stream_readable.js:224:10)\n    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)"}
Info 184  [9:35:30.559] request:
{"seq":12,"type":"request","command":"configurePlugin","arguments":{"pluginName":"typescript-deno-plugin","configuration":{"enable":true,"unstable":false,"import_map":null,"lint":false}}}
Info 185  [9:35:30.559] [typescript-deno-plugin] "onConfigurationChanged: {"enable":true,"unstable":false,"import_map":null,"lint":false}"
Info 186  [9:35:30.559] response:
{"seq":0,"type":"response","command":"configurePlugin","request_seq":12,"success":true}
Perf 187  [9:35:30.559] 12::configurePlugin: async elapsed time (in milliseconds) 0.4729

I have also opened https://github.com/denoland/vscode_deno/issues/220 in case it is more appropriate there.

Sounds like this is caused by deno so please follow up with that extension

Issue Type: Bug
❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 4.0.2
Steps to reproduce crash

Have VS Code deno extension installed
Create deno project and open its folder in VS code
Open a ts file, watch ts server crash.

TS Server Log
❗ Please review and upload this log file to help us diagnose this crash:
c:\Users\myuser\AppData\Roaming\Code - Insiders\logs\20200919T093521\exthost1\vscode.typescript-language-features\tsserver-log-Y012YU\tsserver.log
The log file may contain personal data, including full paths and source code from your workspace. You can scrub the log file to remove paths or other personal information.
TS Server Error Stack
Server: semantic
Error: Debug Failure.
    at Object.releaseDocumentWithKey (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:117868:35)
    at Object.onReleaseOldSourceFile (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143365:34)
    at Object.createProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:102829:26)
    at synchronizeHostData (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143333:26)
    at Proxy.getProgram (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143425:13)
    at InferredProject.Project.updateGraphWorker (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148270:53)
    at InferredProject.Project.updateGraph (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:148203:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150285:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151805:26)
    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:97
    at Object.flatMap (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152062:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:153081:46)
    at c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:88
    at IOSession.Session.executeWithRequestId (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154944:28)
    at IOSession.Session.executeCommand (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154953:33)
    at IOSession.Session.onMessage (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154977:35)
    at Interface.<anonymous> (c:\Program Files\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:157193:27)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

VS Code version: Code - Insiders 1.50.0-insider (d1f267742169584db010716d92addf50d4cd8139, 2020-09-17T07:23:18.487Z)
OS version: Windows_NT x64 10.0.18363

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.74GB (5.60GB free)

Process Argv
--crash-reporter-id 97747014-2080-4ee2-a761-378c83d52fb7

Screen Reader
no

VM
0%

Extensions (10)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.1.8

vscode-deno
den
2.2.3

EditorConfig
Edi
0.15.1

intellij-idea-keybindings
k--
0.2.41

vscode-docker
ms-
1.6.0

vscode-kubernetes-tools
ms-
1.2.1

dhall-lang
pan
0.0.4

vscode-yaml
red
0.11.0

markdown-preview-enhanced
shd
0.5.13

just
ske
2.0.0


Not compatible with Sodium 0.5.2

Describe the Bug
Not compatible with Sodium 0.5.2
Reproduction Steps
1.Run minecraft
2.See error
3.
...
Expected Result
Minecraft run.
Screenshots and Videos

Crash Report or Log
https://pastebin.com/2hBqwR6r
Operating System
Windows 11
Mod Version
0.5.1d
Minecraft Version
1.20.1
Other Mods

Additional Context
No response

#1039 - duplicate 7


Zephyr coap client

Add an asynchronous coap client.
The coap client processes requests, sends those to server and awaits for response.
Currently supports 1 request at a time.

@SeppoTakalo @juhaylinen @plskeggs please review.

@jarlamsa -- I've been testing this out and noticed that you do not send a Content-Type header, only Accept.
It would be very helpful for compatibility with the server I am working with to be able to include both, ideally with separately specified values in the coap_client_request structure.
Optionally, being able to only set one, the other, or both, depending on the method (GET, PUT, etc.) and payload presence would be a bonus.

@jarlamsa -- I've been testing this out and noticed that you do not send a Content-Type value (COAP_OPTION_CONTENT_FORMAT), only Accept (COAP_OPTION_ACCEPT).
It would be very helpful for compatibility with the server I am working with to be able to include both, ideally with separately specified values in the coap_client_request structure. Optionally, being able to only set one, the other, or both, depending on the method (GET, PUT, etc.) and payload presence would be a bonus.
Unfortunately, the way the code is structured, coap_client_init_path_options() (not coap_client_init_request()) would need to handle the COAP_OPTION_CONTENT_FORMAT due to the requirement to add options in numeric order. So that makes this a bigger change than it could be. Maybe that function could simply return pointers to the start and end of the URI vs. query portions, perhaps iteratively, and let the calling function add the options to the packet, rather than do all of this in one function.

Thanks for noticing, yeah, the option ordering is a bit awkward in this case. However, CoAP-library now supports the option reordering, so as if you add an option too late, it will move it and reorganize the message.

Nice work!
Could you please add a reference to this new API to the docs, so that the Doxygen comments are rendered and people are aware that the CoAP client exists?

Nice work!
Could you please add a reference to this new API to the docs, so that the Doxygen comments are rendered and people are aware that the CoAP client exists?

Yes, I plan to do that in a separate PR and add also similar usage example as is done with the HTTP-client.

Nice work!
Could you please add a reference to this new API to the docs, so that the Doxygen comments are rendered and people are aware that the CoAP client exists?

I was planning on adding the documentation to different PR, but as there was still some changes, I pushed the documentation to this PR as well.

Thank you @SeppoTakalo for your review comments, I have addressed those now. Please re-review.

@rlubos please re-review.

This now has 2 approvals with write access, could we get this merged in? @jukkar


Filter By Foreign Key

Hi,
Firstly thank you for the brilliant plugin. I am trying to work out how to filter by a field in foreign key. Can you think of a way that this might be possible? I could run a filter first on the foreign key field and get all the ids then do a second in query but I would like to know if there is a better way.

It's not currently possible to accomplish that with a single query, but I can look into adding support for foreign keys.  I presume you're wanting to filter on the "many" side of a one-to-many relation?
In other words, with this SQL schema:
create table a.person (
  id serial primary key,
  name varchar not null
);

create table a.post (
  id serial primary key,
  headline text not null,
  body text,
  author_id int4 references a.person(id)
);

You'd want to run queries like this:
# All people whose name contains "John" and the associated
# posts that they've authored with a topic of "DISCUSSION"
{
  allPeople(filter: {
    name: { contains:"John" }
    postsByAuthorId: {
      topic: { equalTo: DISCUSSION }
    }
  }) {
    nodes {
      name
      postsByAuthorId {
        nodes {
          headline
          body
          topic
        }
      }
    }
  }
}

Is that correct?

Yes that would be great.

Actually, I was wrong.  You can already build this type of query by adding a filter argument on the nested connection type:
# All people whose name contains "John" and the associated
# posts that they've authored with a topic of "DISCUSSION"
{
  allPeople(filter: {
    name: { contains:"John" }
  }) {
    nodes {
      name
      postsByAuthorId(filter: {
        topic: { equalTo: DISCUSSION }
      }) {
        nodes {
          headline
          body
          topic
        }
      }
    }
  }
}

Let me know if that covers your use case.

I have been checking and yes this works exactly as you describe. Thank you.

This works really well for foreign keys. Would there be a way you could think of to handle many to many relations? For these I can easily do separate queries but if there is a way to do one that would be great.  Ideally top level query results would also filter by all nested queries if a certain flag was set.

@mattbretl In your second example is it possible to only return the people that have posts with a particular topic? I.e. rather than just filtering the posts themselves, filter the people that have those posts?
# All people whose name contains "John" and the associated
# posts that they've authored with a topic of "DISCUSSION"
{
  allPeople(filter: {
    name: { contains:"John" }
  }) {
    nodes {
      name
      postsByAuthorId(filter: {
        topic: { equalTo: DISCUSSION }
      }) {
        nodes {
          headline
          body
          topic
        }
      }
    }
  }
}

I've added support for forward relations (one-to-one and one-to-many) via #54 and backward relations (one-to-one only) via #55. This is included in beta.16, but is disabled by default; set connectionFilterRelations: true on graphileBuildOptions to enable.
We still need to establish a spec for backward one-to-many relations; its ambiguous whether it should enforce an "all" or "any" condition. For example:
{
  allPeople(filter: {
    children: {name: {startsWith: "B"}}
  }) { ...personConnection }
}

That could return people for which:

any of their children's names start with B; or
all of their children's names start with B

I haven't thought about the proper API yet; just adding this comment for reference.

Brilliant thank you. Currently I have split queries in what I am currently work on but I will definitely use this feature at a later point when I rework it.

some ideas regarding one-to-many
{
  allPeople(filter: {
    children: {
      all: {name: {startsWith: "A"}}
      some: {name: {includes: "B"}}
      none: {name: {includes: "C"}}
    }
  }) { ...personConnection }
}

alternative syntax:
{
  allPeople(filter: {
    withAllChildren: {name: {startsWith: "A"}}
    withSomeChildren: {name: {includes: "B"}}
    withNoneChildren: {name: {includes: "C"}}
  }) { ...personConnection }
}

with count filter
{
  allPeople(filter: {
    withChildren: [{
      whose: {name: {startsWith: "A"}}
      count: {moreThan: 1}
    }]
  }) { ...personConnection }
}

I'm conflicted about the last one: I needed to make the constraints an array to be able to have multiple all/none/some/etc. possible at the same time and while none and some are easily translated, all needs to be written as an "inverted none"

and just a note on something else: when I filter the people here, if I want people having at least one children with name starting with "A", I expect to have all children in the ChildrenCollection anyway

as for which solution to choose, I think the any/some is the most useful one, eg: people with children under 18, discussion with message containing "foo", users having the role "contributor"
I also have use cases for none:
{
  allPeople(filter: {
    children: {
      none: {} # with no children
    }
  }) { ...personConnection }
}

similarly we could write "not empty" like this:
{
  allPeople(filter: {
    children: {
      some: {} # with at least one child
    }
  }) { ...personConnection }
}

I don't have many use case in head for all but found this one:
# people with kids, all over 18 years old
{
  allPeople(filter: {
    children: {
      all: {age: {greaterOrEqualThan: 18}}
      some: {}
    }
  }) { ...personConnection }
}

internally it could be rewritten as :
# people with kids, all over 18 years old
{
  allPeople(filter: {
    children: {
      none: {age: {lessThan: 18}}
      some: {}
    }
  }) { ...personConnection }
}

and just thought of this one:
# people with at least 3 children
{
  allPeople(filter: {
    withChildren: [{
      count: {greaterThanOrEqualTo: 3}
    }]
  }) { ...personConnection }
}

I agree that the any/some case is probably the most useful, and I don't want to bury that under too much complexity. You've brought up a few related issues, namely:

The use of {} to mean "exists". I considered this, but I'm leaning against it, for reasons related to https://github.com/graphile-contrib/postgraphile-plugin-connection-filter/issues/58. To illustrate the issue, let's say a client passes a filter object like { children: { none: { age: { lessThan: null } } } }. (Realistically, there would be probably be a GraphQL variable in place of null, and the value or lack of a value would be sent as a query variable, but it resolves to the same object.) Evaluating this object from the inside out (which is how the SQL is built), we get { children: { none: { age: {} } } } and then (presuming age: {} has no meaning) we get { children: { none: {} } }. In your example, this should be interpreted as "with no children", but that's probably not what was intended by the original query. So to keep things simple and predictable, I'd like to avoid assigning meaning to {} and null. To allow for the type of query you proposed, I think we can add exists: true/false fields where appropriate.

Aggregation functions like count. I'm not sure if/when we'll get to that, but it would be nice to leave room in the API for those functions.

I think we have three options for structuring the fields (ignoring the all vs. every, any vs. some debate for now):

allPeople(filter: {
  children: {
    all: { name: { operator: value }
    any: { name: { operator: value }
  }
}) { ... }

I like that this puts children on the same level as other relation fields. The implementation would be straightforward. There's also an obvious place to put fields like exist: true/false and the aggregation functions (at the same level as all/any in a concise list). The negatives.. it doesn't read quite as well as Option 2, and it's an extra level of nesting compared to Option 3.

allPeople(filter: {
  all: { children: { name: { operator: value } }
  any: { children: { name: { operator: value } }
}) { ... }

This reads the best for simple queries, but that's about it. I don't like burying the relations under any and all - not discoverable. It would also put any and all in the same field list as and/or/not - confusing. The implementation would be trickier as well. I think one this is out.

allPeople(filter: {
  allChildren: { name: { operator: value } }
  anyChildren: { name: { operator: value } }
}) { ... }

This cuts out a level of nesting, but that's about it. It doesn't leave room for an existence check (or aggregate functions) other than adding them to the top-level fields.

The use of {} to mean "exists".

it was not something I thought was new, in my mind it's the same as filter:{} matching all already
I like option 1, and I didn't thought of putting the aggregation function at the same level but that's a good idea :)
however I don't see exactly how exists: true/false would fit in here

I think the existing logical operators should cover it

true ! didn't remember that either

The use of {} to mean "exists".

I was referring to this example you gave:
{
  allPeople(filter: {
    children: {
      some: {} # with at least one child
    }
  }) { ...personConnection }
}

That query could return people with at least one child, or it could return all people. I'm advocating for the latter based on the reasoning in #58. Once you consider empty objects as significant, you open up a lot of potential edge cases.
For exists: true/false, I meant exposing a field like this:
{
  allPeople(filter: {
    children: {
      exist: true
    }
  }) { ...personConnection }
}

That would be useful on optional one-to-one relations as well. If a Person has an optional Profile, you might want to run a query like:
{
  allPeople(filter: {
    profile: {
      exists: true
    }
  }) { ...personConnection }
}

@mattbretl thx for the explanation, I hadn't read #58 , what you mean is clearer now. however #58 goals needs to be clearly documented overwise I would have been very surprised if I had already encounter this situation