Autodesk delete metadata (?)

Translated with google Translate:
After editing and saving .ipt .iam .ipn files the metadata is missing.
Thanks a lot!

Some file editing programs use an update strategy that goes: write new file, delete old file, rename new file to old file name. This has the benefit of protecting the original file should a problem occur while writing the new one, but destroys any meta data to the old file when it is deleted.
Many file editors replace the contents of a file in place, and so do not have this problem. But where it does occur, I know of no way round it other than to backup and restore the meta data.
Dijji

Hello, I dont fully understand the issue here.
I have Autodesk inventor ipt, iam files and the iproperties (metadata inside the files) are still present.
So far this is a great program.
Regards
Warren.


Model's getDirty returns an empty array after updating only the decimal part of a float casted field. Removing the cast makes it work as expected.

Laravel Version: 7.17.1
PHP Version: 7.4.6
Database Driver & Version: MYSQL 5.7

Description:
I have a simple model with a field called points. It is created with a migration using the $table->decimal('points')->default(0); so naturally my $casts attribute has a 'points' => 'float'.
Whenever I'm trying to update this model if I try to update only the decimal part of points (ex: from 1.5 to 1.9) it doesn't update, if I update the integer part as well it does (ex: from 1.5 to 2.0).
As stated in the title, the getDirty() method also returns an empty array if I try to update only the decimal part.
The error goes away if I remove points from the $casts array for some reason.
Steps To Reproduce:

Create a table with a decimal field using $table->decimal('column');
Create the model for that table and add a 'column' => 'float' cast option at the $casts array.
Store an instance of that model with a 1.5 value for column.
Retrieve the instance from the database and update column value to 1.7.
Call the getDirty() method on the instance.
It should be empty.

Ok, problem if gone after updating to 7.21.0. First thing I should've done before opening this issue, my apologize for this!


Update docstrings to document recent functionalities

@constantinpape
This PR addresses mostly super minor updates. In brief:

Adding docstrings (and modifying some) for most new functionalities
Minor refactor to import arrangements in favor of readability

This is GTG from my side. Thanks!


Laravel 5.3 plans?

@francescomalatesta, are there plans for upgrading this to Laravel 5.3?

+1

+1

+1

I am thinking about it but nothing planned yet. Will let you know!

1

+1

@sandervanhooft @Sogl @alexjose @limatheus @rickyjwhong @DanJFletcher just started to work on the 5.3 version. Hope to publish something in a few days.

Now my boilerplate runs on Laravel 5.3! Closing this :)


Updated lint rules

Removed deprecated rules, added a few new ones, removed some experimental ones.

@HelenaSewell can you summarise key changes?


build/build.html referenced in README, but file not in directory.

Unless I'm missing something? I'm looking to do a custom build.

Looks like I removed it almost 4 years ago in b11665eb8347b42b3b8cfc280359daf5d109cb86.
What are you looking to custom build? ATM I think we should just remove this mention, I'm not sure we can actually support removing components.

No worries it's all good, I thought that the README reference implied something more than running a simple jake command.

Nah, just run jake and it'll build everything.
I'll remove that reference, thanks.


[android_intent_plus] fix flutter/flutter#71518 by adding launchChooser method.

Description
In https://github.com/flutter/flutter/issues/71518 the author requested a way to be able to launch Intents with the createChooser wrapper.
In this PR I have added the method channel launchChooser which allows users to do that.
Usage:
final intent = const AndroidIntent(
  action: 'android.intent.action.SEND',
  type: 'plain/text',
  data: 'text example',
);
intent.launchChooser('Chose an app');

Related Issues

https://github.com/flutter/flutter/issues/71518
https://github.com/fluttercommunity/plus_plugins/issues/75

Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[x] All existing and new tests are passing.

Note: I have added e2e and unit tests, but there's also some Espresso Android tests which won't even run, so I couldn't add anything there.

[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the [Flutter Style Guide].
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[x] No, this is not a breaking change.

Hey @miquelbeltran thank you so much for this, it looks very good so far. One question there is a way in which i can try this out in my codebase to validate if this indeed solves my issue?

Yes indeed! You can clone this repo, checkout the branch mb-issue-71518 and then you can add the dependency to android_intent_plus by path (see: https://dart.dev/tools/pub/dependencies#path-packages)
Note that the action, category, etc. must match the Android constants. I actually tried your email example and the OS told me "there's no app available" :shrug:, but at least the chooser intent was launched.

Ok, i'll try that!
In my use case i'm attempting to open the inbox (not sending an email) with the following code:
      AndroidIntent intent = AndroidIntent(
        action: 'android.intent.action.MAIN',
        category: 'android.intent.category.APP_EMAIL',
      );

Now i'll try to see what happen if i try to launch the chooser using that intent
I'll let you know 👍🏼

Just tried your example and seems to work, it opened the GMail app although there was no chooser displayed (maybe because I have no other apps)

From the answers I was able to get online seems like there is no "easy" way of accomplish that. There are some complex workaround such as this one: https://stackoverflow.com/a/42532719/4420152
But i guess there are no easy way to do that only using this plugin


Output full html doc

Is there a way to get a full html document output in addition to the converted markup?

See #956
I believe the closest you could get, as full pages is not what markdown is designed to do, is to run a mixed string through Marked with the <html> tags in it.
In other words, Marked is not designed to be a full HTML generator, only a Markdown processor.


Allow for multiple guests in host_guest topology graphs.

I am unsure exactly how you may do this considering the need to input arrays for guest positions and vectors, but I think it would be very cool to be able to do this.
Additionally, SpinDry could be used to ensure there was no overlap between the guests.
Assign me and I will do a PR in the near future.
Something like:

host = stk.BuildingBlock(...)
guests = (stk.BuildingBlock(...), stk.BuildingBlock(...), stk.BuildingBlock(...))

complex = stk.host_guest.Complex(
    host=host,
    guest=guests,
    ...
)

what about

complex = stk.host_guest.Complex(
    host=stk.BuildingBlock(...),
    guests=(
        stk.host_guest.Guest(
            building_block=stk.BuildingBlock(...),
            start_vector=...
             end_vector=....
            displacement=.....,

        ),
    ),
)

Yes! I like that!


Customizing SVG Icon doesn't seem to work

Hello,
I'm trying to make a layer with SVG Icons and customize them but it doesn't seem to work properly
I can display my svg icon like this (take care it's white by default so not very visible)
string svg =
    "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.2222 8.77778H1.77778C1.35 8.77778 1 9.12778 1 9.55556V14.2222C1 14.65 1.35 15 1.77778 15H14.2222C14.65 15 15 14.65 15 14.2222V9.55556C15 9.12778 14.65 8.77778 14.2222 8.77778ZM4.11111 13.4444C3.25556 13.4444 2.55556 12.7444 2.55556 11.8889C2.55556 11.0333 3.25556 10.3333 4.11111 10.3333C4.96667 10.3333 5.66667 11.0333 5.66667 11.8889C5.66667 12.7444 4.96667 13.4444 4.11111 13.4444ZM14.2222 1H1.77778C1.35 1 1 1.35 1 1.77778V6.44444C1 6.87222 1.35 7.22222 1.77778 7.22222H14.2222C14.65 7.22222 15 6.87222 15 6.44444V1.77778C15 1.35 14.65 1 14.2222 1ZM4.11111 5.66667C3.25556 5.66667 2.55556 4.96667 2.55556 4.11111C2.55556 3.25556 3.25556 2.55556 4.11111 2.55556C4.96667 2.55556 5.66667 3.25556 5.66667 4.11111C5.66667 4.96667 4.96667 5.66667 4.11111 5.66667Z\" fill=\"white\"/></svg>";
svg = "data:image/svg+xml;utf8, " + svg;
Marker marker = new Marker(coordinate, svg, 16, 16, 8, 16);

// trying to change the color of the svg icon
// marker.Fill = "red";
// or
// marker.Styles[0].Fill = new StyleOptions.FillOptions() { Color = "red" };

_layer.ShapesList.Add(marker);

But modifying the color, size, or others properties don't do much, only Scale property works correctly.
Did I miss something ?
Can you help me on this please.
I also tried with a svg file and this is the same behavior
Thank you

I just found that changing the color inside the style of icon works
marker.Styles[0].Icon.Color = "red";

But I still can't figure out how to change the size.

As the scale works, I can change the size with this parameters for now.
So what I didn't understand is that I need to change the IconStyleOptions inside the Styles of a Shape to define properties of my icon, I can't use other properties, is that right ?

Here are my findings on svg icon.
I switch to svg file because it's way more easy to manage across all problems found.

Width/Height on style icon doesn't work (it resize the container but not the image)
Scale works but if used with Color I think it's not an svg anymore so the resize can be very pixelized (I had a 16x16 with scale 4 and it was all blurry)
Working on svg data directly (no svg file) is a no go, because it doesn't understand color in hexadecimal only string color like red, black but not all of them either

Hi Thomas,
This seems to work:
`protected override async Task OnAfterRenderAsync(bool firstRender)
{
    if (firstRender)
    {
        int radius = 13;
        string fillColor = "orange";
        string strokeColor = "black";
        string color = "red";
        int strokeWidth = 1;
        string text = "99";
        string fontSize = "0.7em";

        var svg = $"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{radius * 2}\" height=\"{radius * 2}\">" +
          $"<circle cx=\"{radius}\" cy=\"{radius}\" r=\"{radius - strokeWidth}\" stroke=\"{strokeColor}\" stroke-width=\"{strokeWidth}\" fill=\"{fillColor}\"/> " +
          $"<text x=\"50%\" y=\"50%\" text-anchor=\"middle\" font-size=\"{fontSize}\" dy=\".3em\" style=\"fill: {color}; \">{text}</text> " +
          "</svg>";
        svg = "data:image/svg+xml;utf8, " + svg;

          Marker marker = new Marker(new Coordinate(long, lat), svg, radius * 2, radius*2, radius, radius);
      //  marker.Scale = 1;

        _layer.ShapesList.Add(marker);
    }
}`

But the size is independent on the zoom level.


[backport -> release/3.2.x] perf(proxy): use more reasonable keepalive default value for Nginx tuning

backport https://github.com/Kong/kong/pull/12223
also backport this PR: https://github.com/Kong/kong-ee/pull/6507

Summary

Bumped default values of nginx_http_keepalive_requests and upstream_keepalive_max_requests to 10000.
Checklist

[ ] The Pull Request has tests
[x] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix KAG-3360

Because 3.2.x has been deprecated, so we do not need this PR now.

Kong Gateway 3.2 will enter its end-of-life (EOL) phase in Feb 2024


adding -outpubkey option to genpkey

Adding the option -outpubkey <filename> to output a public key via the genpkey command.
Fixes #22132

This pull request is ready to merge

Squashed and merged. Thanks for the contribution!


Profiling a user-supplied bug report

We have a bug report archive (it's big, hence omitted here) produced by KEVM Foundry proof about an ERC20 that crashes and/or loops forever. We suspect that it is due to a memory-leak in the Booster.
This issue will track my efforts to investigate. It is not (yet) intended to be reproduced by others.
The interaction has 52 request-response pairs and appears to hang on request 53 (this is a wild guess). We have the JSON for the last request.
The steps I'm taking to profile this interaction:

compile K and KEVM from source without Nix

git submodule update --init --recursive
make deps
make plugin-deps
make poetry
make build

using the tools above produce interpreter.so for KEVM which we will supply Boosterr with
# kup remove k # if paranoid
# make sure to have local K on PATH
kevm foundry-kompile --require lemmas.k --module-import ERC20:DEMO-LEMMAS --with-llvm-library

compile Booster with profiling via cabal build --enable-profiling, natively, without Nix

produce a simple profiling report:
kore-rpc-booster --llvm-backend-library ../../foundry-demo/out/kompiled-llvm/interpreter.so ../../foundry-demo/out/kompiled/definition.kore --module FOUNDRY-MAIN --server-port 8888 +RTS -p -RTS

produce an Info Table profiling report:
kore-rpc-booster --llvm-backend-library ../../foundry-demo/out/kompiled-llvm/interpreter.so ../../foundry-demo/out/kompiled/definition.kore --module FOUNDRY-MAIN --server-port 8888 +RTS -l -hi -i0.5 -RTS

Try valgrind --leak-check=yes (oh, so slow...):
valgrind --leak-check=yes kore-rpc-booster --llvm-backend-library ../../foundry-demo/out/kompiled-llvm/interpreter.so ../../foundry-demo/out/kompiled/definition.kore --module FOUNDRY-MAIN --server-port 8888

must execute all add-module requests (004 and 005)
when executing 053 (execute), valgring reports Conditional jump or move depends on uninitialised value(s) at 0x4390BF9 many times. It looks like it's all the same jump. Anyway, that's too low-level. After a while valgring stops caring about this and prints More than 100 errors detected.  Subsequent errors will still be recorded, but in less detail than before..
valgrind reports a lot of leaks, but, well, left it running for quite a while and executed several calls: one simplify, two add-module and one execute (terminated). I will work to pin-point where the leaks are by compiling with additional debug info.

Try valgrind --tool=cachegrind. May be useful, see this blogpost

After looking at valgrind's log, it seems like that boolean simplification indeed leaks memory, but not that much:
Leak summary (total leak is ~10 megabyte):
==1766347== LEAK SUMMARY:
==1766347==    definitely lost: 10,297,256 bytes in 416,152 blocks
==1766347==    indirectly lost: 0 bytes in 0 blocks
==1766347==      possibly lost: 219,458 bytes in 10 blocks
==1766347==    still reachable: 149,168,481 bytes in 697,631 blocks
==1766347==         suppressed: 0 bytes in 0 blocks

One of the last calls on a larger configuration (leaking 0.25 megabyte):
==1766347== 261,272 bytes in 59 blocks are definitely lost in loss record 2,724 of 2,746
==1766347==    at 0x89AE848: malloc (vg_replace_malloc.c:431)
==1766347==    by 0xA17B61B: serializeConfiguration (src/main/native/llvm-backend/runtime/util/ConfigurationSerializer.cpp:417)
==1766347==    by 0xA293CD4: kore_simplify (src/main/native/llvm-backend/bindings/c/lib.cpp:230)
==1766347==    by 0x438FBFA: ??? (in /home/geo2a/Workspace/RV/hs-backend-booster/pr/dist-newstyle/build/x86_64-linux/ghc-9.2.8/hs-backend-booster-0.0.0/x/kore-rpc-booster/build/kore-rpc-booster/kore-rpc-booster)
==1766347==    by 0x2FEFFB08F: ???
==1766347==    by 0xFFFFFFFF00000001: ???
==1766347==    by 0xFE1EC4B: ???
==1766347==    by 0xE59957F: ???

Of course this is only a very short interaction, so a real proving session likely has a much more significant impact.
I'll do Haskell-specific memory profiling to make sure we don't get huge thunks floating around.


Adjust to OIIO change to IC/TS API

Didn't catch them all in #1848 -- missed the BatchedRendererServices side.

Merging immediately as it demonstrably un-breaks the CI.


Ktor z/chw 83/address path handler

Description
Implement handler for creating new address path according to BIP-44 specs.

NOTE I started to work from CHW-37 branch which turns out not to be the ideal branch. @denisshevchenko is rebasing a more accurate branch on top of develop at the moment so ideally, the few commits added by this PR should be cherry-picked there and the base target should be changed accordingly!

NOTE #2 The linter currently fails in the integration tests because of code duplication. I know however that we've changed quite a lot of stuff in those files and therefore, this will most probably be fixed upon rebasing + adopting new style.

Linked issue
[CHW-83]
Type of change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] 🛠 New feature (non-breaking change which adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[ ] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

[x] I have added tests to cover my changes.
[ ] All new and existing tests passed.

QA Steps

Screenshots (if available)

Closed in favor of https://github.com/input-output-hk/cardano-sl/pull/2924.


export types needed for typescript inference with esm

additional fixes for https://github.com/vanilla-extract-css/vanilla-extract/issues/739 similar to https://github.com/vanilla-extract-css/vanilla-extract/pull/890 which was missing a few types necessary for export

bump - could someone take a look at exporting these additional types? This is currently a blocker from using our component library in modern tooling, without having to patch vanilla extract in our build pipeline.

Strange a trivial fix like this takes so much time to review / merge. Where the maintainers at?

Just ran into this issue as well - I think I was able to workaround it by basically isolating the theme contract  and disabling emitting declarations for that package, but definitely not ideal for something  fairly trivial to handle properly.

Might have been a lack of changeset, added here: https://github.com/pkieltyka/vanilla-extract/pull/1

Hey, we were discussing this one today and want to understand the use case a bit more clearly before we take on the increase to the public API footprint.
Can you provide a simple reproduction example demoing the use case?

Hi @jungpaeng & @pkieltyka ,
I was not able to reproduce the issue. I used the code from this comment https://github.com/vanilla-extract-css/vanilla-extract/pull/907#issuecomment-1474265207 and type inference on the Button inside the Boo component worked as expected:

In my attempt to reproduce the issue, I have tested with:

<EMAIL_ADDRESS>with default config
<EMAIL_ADDRESS>or<EMAIL_ADDRESS>installed
"type": "module" in package.json
"module": "ESNext" (or NodeNext) and "moduleResolution": "node16" (or nodenext) in tsconfig.json

Let me know if I missed something. A repo with more specific code and steps to reproduce would be helpful. We'll close the issue for now, but if you can provide more details, we'll be happy to reopen it.


Rename a few things

curs -> cursor
conn -> connection
task_worker.py -> worker.py
worker() -> run_worker() (or something else ?)
task run -> job

@nadege have you checked @sdispater 's PR #13 ? And likewise ? It seems you might be doing kind of the same work in parallel :/

Hi, yes I did :) So I started my branch from his. But I didn't get the time to actually do some work yet anyway.

:+1: The branch is now merged, so you're good to go.
That being said, it looks like the 2 only relevant things left are:

task_worker.py -> worker.py
task run -> job

So things continue to move around. Now the task run is no more, but might be reintroduced later (probably as "job")
I think the only thing left is renaming "task_worker.py" into "worker.py" and... As much as I'd love to include your contributions, I'm not sure this is worth a ticket anymore.
Let us know what you plan to do :)
That being said, #19 makes a trivial modification in this file and no other PR touches it, so it's not a bad time to make the move.

Ah, we could also rename the SQL table "tasks" into "jobs".

"targeted_object" could be renamed "lock" to stay consistent with the rest of the codebase.

I did not had the time to work on this and I'll not have more soon, I'll unassign myself

Thank you, that being said, you're very welcome to join the project later :)


python: fix errors found by static analysis

fvlbypass: uninitialized variable.
opae.io: use of wrong, invalid parameter.
opae-clean: anchoring of regex.
Signed-off-by: Tim Whisonant<EMAIL_ADDRESS>

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.005%) to 65.952%

Totals

Change from base Build<PHONE_NUMBER>:
0.005%

Covered Lines:
13137

Relevant Lines:
19919

💛  - Coveralls


[Feature] Add custom sortable helper renderer

Currently, the sortable helper is being created by cloning the node that a user drags. In the future, it would be great to be able to provide a custom sortable helper renderer to handle use cases such as #50

+1
My use case is that I'm converting a larger web app to React, one tab at a time. I have to keep the React styles separate from the older non-React styles so they don't interfere - plus I'm using LESS, which encourages nested styles. Since sortable helpers are appended to  instead of the parent element, I have to write some clunky overwrite styles so make sure the sortable helpers are styled the same as the original elements.
Or perhaps I've missed another way to handle this kind of situation? Otherwise this library is very easy to integrate with my existing components, and it generally lovely!

Agreed. I need to allow users to select and re-order multiple elements.

Update, this is possible using the updateBeforeSortStart prop, which lets you update the render output of your component before sorting begins. This can be used to update the render output of the element that is about to be sorted, or to enable re-ordering multiple elements, as shown in this example: https://github.com/clauderic/react-sortable-hoc/tree/master/src/.stories/grouping-items

@clauderic Why did you add an example link for your demo instead of screen recording?


ETL#7 - FACT on Request Snapshot factRequestSnapshot

Title of ticket:
Description
The purpose of this task to develop ETL Data load for FACT Tables on Request Snapshot.
Dependencies
No
DOD

[ ] Plan for FULL and Incremental load for FACT Request Snapshot
[ ] Develop Queries for DATA migration
[ ] Design, Develop - Control and Data Flow - FULL and Incremental
[ ] Test Migration - FULL and Incremental

As per the findings we notice that AXIS is not storing historic data in a format for us to pull and show the status of each request as of a particular day. So are reducing the scope of this ticket to take a daily snapshot of requests that are not in closed status starting from the release day.
Status captured for each request will be as of the end of day, for example if a request goes through multiple status in a day we will not be able to capture all of them but only the last one which happens before the ETL run.
We will also capture current action for each request as of a particular day.


[JavaScript SDK Web][Adaptive Card Designer] [Designer does not render custom elements registered in adaptive cards]

Web JS SDK
What platform is your issue or question related to? (Delete other platforms).

[ ] JavaScript

Author or host
All
Version of SDK
What version are you using? Latest
Details
Explain your issue. If you just have a question, please post on StackOverflow instead.
https://docs.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/javascript/extensibility
This documentation shows an example to show a progress bar and create your own action
But how do I then show those in the designer ? Where can I find documentation for the same?
For the ProgressBarPeer, this is my class type : export class ProgressBarPeer extends ACDesigner.TypedCardElementPeer
This is what I sent to registerPeer : ACDesigner.CardDesignerSurface.cardElementPeerRegistry.registerPeer(
ProgressBar,
ProgressBarPeer,
"Elements",
'acd-icon-columnSet'
);
If I use AC.TextBlock instead of my own custom component ProgressBar I do see changes in the properties as defined in my ProgressBarPeer
Please let me know what maybe missing to see the ProgressBar under elements in the designer. I am using all the latest npm packages.
I am attaching as evidence my registry that contains an action and an element with their peers.
It would be great if there was some more documentation and an example for adding an action and an element to the designer. Thanks.

#5240

https://stackoverflow.com/questions/66680403/adding-custom-card-elements-into-the-adaptive-card-designer

@dclaux - can you please investigate and respond back with the right action we should take?

You can reproduce this easily by using your own ProgressBar example and the TextBlockPeer file. I would appreciate any resolution you can provide cause this is very important at the moment for us. This project is amazing, we love the extensibility of it. Thank you so much!

#5240

I'm not sure how I can help you without seeing your code. Every single element in the designer is implemented exactly as you would if you were to create your own custom element. It requires an element registered with the renderer, and a designer peer registered with the designer. I am working on a custom element myself right with n associated designer peer and things work as expected.
We do lack proper documentation at the moment on how to extend the designer, we'll get to that. Please share you ProgressBarPeer implementation as well as the code you use to register both the ProgressBar element and the peer in order for me to be able to diagnose. Also make sure that the target version selected in the designer isn't lower than the version for which your element/peer are registered.

`import * as Adaptive from 'adaptivecards';
import { ProgressBar } from './ProgressBar';
import * as ACDesigner from 'adaptivecards-designer';
export abstract class CardElementPeerInplaceEditor<
TCardElement extends Adaptive.CardElement

extends ACDesigner.DesignerPeerInplaceEditor {
readonly cardElement: TCardElement;

constructor(cardElement: TCardElement) {
super();
this.cardElement = cardElement;

}
}
export class ProgressBarPeer extends ACDesigner.TypedCardElementPeer {
static readonly textProperty = new ACDesigner.StringPropertyEditor(
Adaptive.Versions.v1_3,
'text',
'Text',
true,
true
);
static readonly wrapProperty = new ACDesigner.BooleanPropertyEditor(Adaptive.Versions.v1_3, 'wrap', 'Wrap');
static readonly maxLinesProperty = new ACDesigner.NumberPropertyEditor(
Adaptive.Versions.v1_3,
'maxLines',
'Maximum lines',
0
);
static readonly fontTypeProperty = new ACDesigner.EnumPropertyEditor(
Adaptive.Versions.v1_3,
'fontType',
'Font type',
Adaptive.FontType
);
static readonly sizeProperty = new ACDesigner.EnumPropertyEditor(
Adaptive.Versions.v1_3,
'size',
'Size',
Adaptive.TextSize
);
static readonly weightProperty = new ACDesigner.EnumPropertyEditor(
Adaptive.Versions.v1_3,
'weight',
'Weight',
Adaptive.TextWeight
);
static readonly colorProperty = new ACDesigner.EnumPropertyEditor(
Adaptive.Versions.v1_3,
'color',
'Color',
Adaptive.TextColor
);
static readonly subtleProperty = new ACDesigner.BooleanPropertyEditor(Adaptive.Versions.v1_3, 'isSubtle', 'Subtle');
// protected createInplaceEditor(): ACDesigner.DesignerPeerInplaceEditor {
//     return new ACDesigner.TextBlockPeerInplaceEditor(this.cardElement);
// }
protected internalGetTreeItemText(): string {
return 'blue';
}
protected internalAddCommands(context: ACDesigner.DesignContext, commands: Array<ACDesigner.PeerCommand>) {
super.internalAddCommands(context, commands);
if (context.dataStructure) {
  commands.push(
    new ACDesigner.PeerCommand({
      name: 'Bind...',
      alwaysShowName: true,
      toolTip: 'my element.',
      execute: (command: ACDesigner.PeerCommand, clickedElement: HTMLElement) => {
        let fieldPicker = new ACDesigner.FieldPicker(context.dataStructure);
        fieldPicker.onClose = (sender, wasCancelled) => {
          if (!wasCancelled) {
            this.changed(true);
          }
        };
        fieldPicker.popup(clickedElement);
      },
    })
  );
}

}
populatePropertySheet(
propertySheet: ACDesigner.PropertySheet,
defaultCategory: string = ACDesigner.PropertySheetCategory.DefaultCategory
) {
super.populatePropertySheet(propertySheet, defaultCategory);
propertySheet.add(defaultCategory, ProgressBarPeer.textProperty);

propertySheet.add(
  ACDesigner.PropertySheetCategory.LayoutCategory,
  ProgressBarPeer.wrapProperty,
  ProgressBarPeer.maxLinesProperty
);

propertySheet.add(ACDesigner.PropertySheetCategory.StyleCategory, ProgressBarPeer.fontTypeProperty);

}
getToolTip(): string {
return 'Double click to edit';
}
initializeCardElement() {
super.initializeCardElement();
if (!this.cardElement.title || this.cardElement.title == '') {
this.cardElement.title = 'New TextBlock';
}
}
}
`

ProgressBarPeer.txt

ProgressBar.txt

If I use this same peer and register Adaptive.RichTextBlock or some other component I do see the property sheet as implemented in the ProgressBarPeer file

  AC.GlobalRegistry.elements.register(ProgressBar.JsonTypeName, ProgressBar, AC.Versions.v1_3); ACDesigner.CardDesignerSurface.cardElementPeerRegistry.registerPeer(ProgressBar,ProgressBarPeer,"Elemnts", "acd-icon-columnSet");

ProgressBar's properties are title and value. Your ProgressBarPeer declares wrapProperty, fontTypeProperty, sizeProperty, etc. These properties are irrelevant to ProgressBar. Your peer needs to declare properties for title and value.

I still dont see a progress bar element in the designer but if   I use Adaptive.RichTextBlock then I do see my added value and title properties

Difference between ProgressBar and another component

Sorry I am confused as to what you're showing or what you're trying to explain.
To add support for a specific element in the designer, you need to implement a peer that declares the properties of the element you want to see in the property editor. For ProgressBar you need a ProgressBarPeer that declares title and value properties and you need to add those properties to the property sheet in populatePropertySheet. That's really about it.

ProgressBarPeer.txt

I did do that but was unable to render the Progress bar element in the Elements section of the designer. But If I replace the ProgressBar that I made with Adaptive.RichTextBlock that Peer file does work and you can see a Title and Value property on the property sheet

Are you registering the ProgressBar element in the initialize method of your HostContainer?

nope that maybe the problem, I can try that .
This is all I am doing
let hostContainers: any = ACDesigner.defaultMicrosoftHosts;
// Optional: add the default Microsoft Host Apps (see docs below)
hostContainers = [];

this.designer = new ACDesigner.CardDesigner(hostContainers);

Do you have an implementation handy?

I am registering it at the start of the application before rendering the designer and adaptive card and I do see the component rendering in the adaptive card, just not in the designer.

We really do need documentation, I'll try to find some time soon.
In the designer, which elements are supported (and thus displayed) is tied to the selected "host app". Under the covers, a host app is implemented by creating a class that extends the abstract HostContainer class. That base class declares its own element and action registries.
If you do not pass any host container to the constructor of the designer, it uses a default host container that only exposes built-in elements. If you need to use custom elements (and/or actions) in the designer you need to provide your own host container implementation, and the initialize method of that host container is where you can register your custom elements/actions.
It's very simple:
class YourHostContainer extends DefaultContainer {
    initialize() {
        super.initialize();

        this.elementsRegistry.register(ProgressBar.JsonTypeName, ProgressBar);
    }
}

let designer = new CardDesigner([ new YourHostContainer ]);

Or you should even be able to do this:
let hostContainer = new DefaultContainer("your container name", "<path-to-its-css-stylesheet>");
hostContainer.elementsRegistry.register(ProgressBar.JsonTypeName, ProgressBar);

let designer = new CardDesigner([ hostContainer ]);

Amazing ! Worked, thank you so very much !
let hostContainer = new ACDesigner.DefaultContainer("MyHost", "../../styles/custom-styles.css");     hostContainer.elementsRegistry.register(ProgressBar.JsonTypeName, ProgressBar);     this.designer = new ACDesigner.CardDesigner([hostContainer]);
You already have most of it documented :)

I do have my custom element now rendering in the designer but unfortunately if I do update its properties, try to drag it etc. none of that works. It is not updating within the card payload editor. And even if I save the payload it doesnt contain my Progress Bar element. Is there something we need to do to enable the new component to get added to the adaptive card JSON and show up in the Card Payload Editor?

I believe I got it, added this to progress bar
protected populateSchema(schema: AC.SerializableObjectSchema) {
super.populateSchema(schema);
}

That can't be it. This code is totally unnecessary since by default super.populateSchema() is called automatically.

Ya, that is not it. My ProgressBar works fine but the new element I am creating is not working. I do see a typescript error in
hostContainer.elementsRegistry.register("name", Component)

I am doing dependency injection in my custom component, at this time that is the only thing remaining to test.

There's really no reason why it should be that hard. Would you mind sharing your code with me?

I found the problem! I am using a node_module import in my project to get the custom class component because we have two projects : one with the designer embedded and the other is the one that actually renders the card. So to avoid duplication and future use cases in other projects I created a component. That works as expected up untill this point perhaps due to this method
ACDesigner.CardDesignerSurface.cardElementPeerRegistry.registerPeer(
ProgressBar,
ProgressBarPeer,
'Elements',
'acd-icon-columnSet'
);

It looks like this issue has been resolved.


README: Link to godoc for minio-go

Please make it easier for users to find the ordinary Go docs for the minio-go package, such as by dropping a link to https://godoc.org/github.com/minio/minio-go in the README.

Please make it easier for users to find the ordinary Go docs for the minio-go package, such as by dropping a link to https://godoc.org/github.com/minio/minio-go in the README.

We have them documented here with examples http://docs.minio.io/docs/python-client-api-reference .


Fixed #4203: Do not show empty items in Recent Views

Closes #4203
Describe your changes :

I worked on removing recently viewed entities missing name

Type of change :

[x] Bug fix

Frontend Preview (Screenshots) :

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers
@open-metadata/ui @harshach

@darth-coder00 Can you please take care of the code smell?


server: detach data disks before destroying vms

Description
This PR fixes #4902
The testing results with this change:

When destroy VM without expunge and when no data disk is selected for deletion
destroy vm: VM is stopped, data disk is detached from vm (in Ready state)
recover vm: vm is ready only with root disk.

When destroy VM without expunge and when one or more data disks are selected for deletion
destroy vm: VM is stopped, Data disks marked for deletion are detached and in Destroy state . the remaining disks are detached from VM
recover vm: vm is ready only with root disk.
recover data disk in Destroy: volume is ready, and not attached to vm.

When destroy VM with expunge and when no data disk is selected for deletion
VM is destroyed and expunged completely.
data disks are detached from vm.

When destroy VM with expunge and few data disks are selected for deletion
VM is destroyed and expunged completely.
Data disks marked for deletion are deleted. the remaining disks are detached from VM

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[x] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@weizhouapache can you target this PR to the main branch?

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 993

@blueorangutan test

@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-1761)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33898 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5356-t1761-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 89 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

Trillian test result (tid-1814)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35434 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5356-t1814-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
Smoke tests completed. 87 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File


Dataset models should determine how they are added to the map panel

Right now MapPanel.js is an area where each individual dataset needs to define how it gets rendered within one if statement. This should be generalized in some manner, maybe an individual dataset model can specify it's own addDataset which will handle the rendering.

@danlamanna I am not sure if having a addDataSet int he model itself would be the best thing. Some alternate solution would be:

have some sort of mapper objects that can take the data and the map?
have some sort of layer util which can generate new layers depending on the dataset type?

Yes, this is a constant sore spot.  You can see that I went back and forth on this very issue when we built support for WMS layers in #115.
I don't like the idea of defining it in the model, since that seems to violate MVC separation, and is the reason I moved the WMS rendering back to the MapPanel.
Having the mapper/layer util is probably the best path forward.  Some dataset types like contour are lucky enough that they can just provide a reader.  Geojson works like this in the general case, but if you want to do anything custom to the rendering, this isn't so straightforward.
It might be nice to wait until we have one or two more dataset types before refactoring this to get a better sense of the needs.
Related issues

a dataset type will have to provide a way to remove itself from the map
if/when we split out the legend from the map, datasets will need to specify how to add/remove from the legend
any new dataset type will have to define a reader/mapper
we will need to define a similar and related path for datasets to display on time serious plots
where do we store all of the properties that specify how we want the dataset rendered (e.g. color tied to a particular field, or opacity)?  they probably don't belong on the dataset itself, maybe in some object tied to the dataset and stored in the session?

@danlamanna if you have a dataset type not already in master, please report on the relevant details for how it is working for you.  Also I'm curious to get your take on this w.r.t. time series plots.

After looking at #205, I have some new thoughts for direction here.

Introduce Layer or LayerView objects that understand how different map layers work, and can have the appropriate layer type created for a dataset.  These are Rendering Adapters that are specific to the Dataset type and also to the fact that the Dataset is being rendered in a GeoJs map.
Create a Sandwich Model that holds an ordered list of these layers

for most cases this will have a special basemap layer at the "bottom"
for the initial implementation this will have a special UI layer at the "top"

The sandwich has an api like

add (dataset or layer, not sure wich yet, probably a layer based on the dataset)
remove
move up X
move down X
change opacity (if supported by the layer)
possibly some legend related APIs
possibly some feature related APIs

The sandwich stores state (probably not GeoJs layers, but the properties of the layers that are not included in the dataset), and is saved in the session
The Session object saves the state of the sandwich
The SessionPanel and MapPanel, both being views, listens for events from the sandwich and update their view state accordingly

There might be better names than Sandwich, but I doubt it. :fork_and_knife:
I think this is a better direction than what we are currently doing, but needs to be cleaned up a bit to ensure better separation of models from views.  It is still a bit unclear to me where the reference to the GeoJs layers will be held.  Will these be held in the sandwich by the adapters, or in the MapPanel and there will be some correspondence between the adapter and the GeoJs layer?  In other words, the line separating the adapter from the GeoJs layer is still hazy.

@mgrauer First,  +1 for sandwich which coordinates layers.
In terms of individual Dataset to Renderer conversion  shouldn't the MapPanel be responsible for rendering a set of fixed interfaces?  These can be implemented as functions on the MapPanel (e.g. render_geojson(),  render_maptiles(),  render_contourjson(), etc...).  If this is the case, rendering datasets fall into two cases:

the Dataset model contains data in a format that doesn't need conversion
the Dataset model can implement that interface and be passed directly to the MapPanel, no adapter needed.

the Dataset model contains data that has to be converted before it is rendered
the Dataset should be wrapped in an Adapter that implements the interface needed by one of the render_* functions

Obviously javascript doesn't have built in functionality for interfaces,  but we can skip it by having  a LayerModel track this information with tuples of minerva.MapPanel.render_* function and the Adapter/Dataset that implements that Interface needed by that function.  The individual LayerModel objects are managed by the SessionPanel's sandwhich Model.  This makes rendering easy because if you are going to render a layer you just take the first argument of the tuple and call it on the second argument.
Example
I have a PointDataset that models point data,  it extends GeoJSONDataset because it's underlying data representation is GeoJSON.  In the DatasetPanel I render a view on this model that has two buttons,  One renders the data as points,  one renders the data as a 2D KDE plot.  When I click on the 'points'  button I add a LayerModel with (minerva.MapPanel.render_geojson,  this.model)  to the sandwhich model on SessionPanel (keep in mind that this refers to the DatasetView with the two buttons).   If I click on the KDE button I add a LayerModel with the tuple (minvera.MapPanel.render_contourjson,  KDEAdapater(this.model))  where KDEAdapter implements functions necessary to turn the point data into contour data following the KDE algorithm.
In some cases that Adapater will be a pure javascript transformation,  but in many cases (e.g,  KDEAdapater)  it will need to call out to the server to do the heavy lifting.  I would recommend SynchronousAdapter and AsynchronousAdapater superclasses for all Adapters.  The LayerModel can condition on these types and either call the MapPanel.render_* function directly on the Adapter/Dataset,  or pass the rendering function as a callback to the adapter,  or Adapater/Datasets can implement an is_renderable flag and AsynchronousAdapaters can signal an event when they have finished processing and re-render the layers.

Mmmm, 🍔
This is what I was talking about in our last meeting (along with #183).  In a more general sense, the views or widgets in minerva should (as much as possible) encode their state in a serializable object so that rendering them is a stateless method that looks like rendering a view in backbone.
I had this concept in mind when I was working on the jquery plugin.  To make this more generally useful, I created static "create" methods on several of the core classes (map, layer, feature, etc.) that are meant to work this way.  The spec objects that these methods take are mostly serializable with the exception of the data accessors.  We can (or should rather) consider baking in jspath somehow in geojs to extend the accessors as the are used currently.

Introduce Layer or LayerView objects that understand how different map layers work, and can have the appropriate layer type created for a dataset. These are Rendering Adapters that are specific to the Dataset type and also to the fact that the Dataset is being rendered in a GeoJs map.

@mgrauer that's what I was referring to mapper like objects (or some registered utils functions). The idea here is that there mappers can take a dataset and create a feature when then can be added to an existing layer or a new layer. It should be possible to register more of these mappers and also you could have multiple mapper to one dataset.


Feature: .NET Core / .NET 5 compatibility

It's been a few years. Hi again!
This PR adds compatibility with .NET Core and the newly released .NET 5. It also moves the main csproj file to an SDK-style project. A .NET 4.5.1 build output is still created. I also added a .NET 5 sample for a proof of concept that uses the latest version of MahApps.Metro (2.3.4 as of this writing).
All that would need to be done after merging this is bumping the version (in the .csproj now) and updating the NuGet.
One way to easy-mode make a NuGet package is to right click the csproj -> Properties -> Package -> check the 'Generate NuGet package on build' checkbox. Then it'll take care of a bunch of annoying details for you.
@AleksandarDev Any chance we could have an updated NuGet when/if this is merged? Thanks! :)

Any news on this topic?

@amkuchta ?

@AleksandarDev ?

Thanks for your work on a .NET Core / 5 version! Shouldn't it become a fork of this project, seeing that there haven't been updates for quite a while now?


WS healthcheck automation

2024/12/14 update
In order to avoid accidental WS collapse in future PRs, I added a script to test the WS healthiness of game and chat services.
So now in addition to check if all containers are running without restart, it will also run a script to test the entrypoint of web socket for /ws/game-server/ and /ws/chat-server/ respectively.
These WS testing relies on dedicated health_test entrypoint for chat and game respectively. ** Please Make sure to keep the following settings untouched: **

Chat service

WebSocket endpoint: /ws/health/chat/
routing.py: re_path(r"^ws/health/chat/$", consumers.ChatHealthConsumer.as_asgi()), # Health check endpoint
consumers.py: the class ChatHealthConsumers

Game service

WebSocket endpoint: /ws/health/game/
routing.py: re_path(r"^ws/health/game/$", consumers.GameHealthConsumer.as_asgi()), # Health check endpoint
consumers.py: the classGameHealthConsumers

How it works

After checking all services are running healthily, WS check comes immediately
The WS test uses the bash scripts in pong-game/tests to run the tests, so the dependencies will be the host machine python version and websockets version. (Since we know that the school computer's websockets version is too out of date, I also added a prepare script to use compatible websockets version. In production mode, it is the web browser to create WS, so it won't be out of date)
The WS health check uses python and websockets to directly build WS connection to server and interact with the backend logic in consumers.py. So we don't need to keep html files in the templates actually.
I created dedicated Consumer class and entrypoint for health check, so it won't affect the production parts.

What to expect
When you run make or make check you shall see:

Everything work fine. (If backend servers aren't ready, it will return 502, and it will retry up to 3 times)

One of the WS is failed after 3 retries (Maybe the WS url pattern is missing)

Both WS are not working after 3 retries (Maybe WS socket server setting is broken)

Direct WS error message (Could be Wrong routing setting)

The semantics I use in game_test.html to communicate with the servers are different, so I'll need this file to be updated at some point. I can get around to doing that when I finish things on my branch later.

I think you misunderstand something. The game_test.html I mentioned is only used for WS_check script to check if WS can be built. You should work on your own html test files or even create new ones with its dedicated paths and views to serve and be responsible for the routing logic.
What I need is to keep the WS_health check test files as they are. The test script won't test other operational html files.

works for me, waiting for the game de vapproval

Updated PR explanations. Now it is ready to merge and won't affect production part backend logic.


Optimize bare send

Fixes #94
A decent amount of formatting changes are included in this PR (essentially every file where changes related to the issue were made). I can remove those to make the changes related to the issue more clear, and follow-up with a cleanup if there is a preference for that.

With the removal of intermediately setting the value of _msg, I think I can move the respective fn send or fn receive out of #[allow(unreachable_code)]. I'm going to look into that real quick.

I think ideally we'd want the guard to only catch potential panics that arise in $m and nothing else. So I'd lean towards that :)


Update project overview

For #81.

Codecov Report

Merging #171 (2d05bed) into master (98fd1a7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #171   +/-   ##
=========================================
  Coverage     74.34%   74.34%
  Complexity      674      674
=========================================
  Files           100      100
  Lines          1988     1988
  Branches        245      245
=========================================
  Hits           1478     1478
  Misses          418      418
  Partials         92       92

Continue to review full report at Codecov.

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

Closed in favour of consistency of introduction.


Setup issues

The first of the 4 frames works fine, but:

2nd: when I click X, Start chatting, and learn more, nothing happens
3rd: login code doesn't work (tried a few times, made sure not to copy/paste a space in the number)
4th: blank

@lorensr I had similar thing, try not to copy paste, just type the numbers. As for bing, it should work, did you try the "x" in the top right? What do you have selected for the frame 4? Have you tried doing command + r to refresh?

for bing, you have to reload it to work, i did say it was a little finnicky but just keep at it. i might demote it from default since i dont love it


how does flutter doctor determine if there is a device, specifically on iOS?

Steps to Reproduce
This is an information request so that I might be able to infer or determine why my configuration does not work. I have posted an issue separately for the specific issue but maybe this is a better approach.
Logs

does xcode need to be running when running flutter doctor?
does itunes need to be running when running flutter doctor?
if there is a 2012 MBA and a 2019 MBA with USB-A and USB-C respectively is there any code in flutter that is effected? I do not know if flutter monitors which USB controller or device. I get different behaviors from Android devices on the same two laptops.

$ flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-US)
    • Flutter version 1.9.1+hotfix.2 at /Users/rbucker/dev/flutter
    • Framework revision 2d2a1ffec9 (3 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/rbucker/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.4.1

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

I have determined that there is a file lockdownd and it seems that the chmod is 0700 and that might not work. Someone suggested changing it to 0705 so that the "user" can read it.
Then I found the util ideviceinfo that pulls plenty of data from the phone. I did post a bug as there was at least one data request that had a bad param.  Flutter is supposed to call this function to retrieve it's configuration but I have not been able to confirm it yet. Yet flutter doctor still returns the NO DEVICES AVAIL.. response.

I have also found idevice_id.  The PROBLEM here is that if you do a flutter doctor -v --bug-report then open the zipfile... and grep the files for idevice_id you'll eventually find the file but the path either may not resolve or the program does not produce the correct results. This is in conflict with the brew installation of libimobiledevice. That project puts the idevice_id in /usr/local/bin

nudge

flutter doctor depends on neither Xcode nor iTunes be open. Device discovery is done via idevice_id, but not we use our own binary that we distribute with the flutter tool. It is located in flutter/bin/cache/artifacts/libimobiledevice/idevice_id.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


python3Packages.apispec: 4.7.0 -> 4.7.1

Motivation for this change
Update to latest upstream release 4.7.1
Change log: https://github.com/marshmallow-code/apispec/blob/dev/CHANGELOG.rst#471-2021-07-06
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 131703 run on x86_64-linux 1

3 packages failed to build:

apache-airflow
python38Packages.apache-airflow
python39Packages.apache-airflow

4 packages built:

python38Packages.apispec
python38Packages.flask-appbuilder
python39Packages.apispec
python39Packages.flask-appbuilder

@ofborg eval


3.16.6 version downloaded

Hello Team,
We are using pro.redisson 3.17.4 version.  We have deleted our .m2 folder and did a clean install and we are getting two versions downloaded one is 3.17.4 and another is 3.16.6.
We are investigating the issue of Redisson dependencies which are downloaded twice.  I even verified version 3.17.4 for an additional version of 3.16.6 but was unable to find one.  Happy to share the download folder structure related to Redisson if required.

When the eclipse is restarted, it has a backup version of the project with the old version of Redisson inside the pom.xml, this has resulted in installing both versions of the Redisson as such install both packages.  This issue can be closed for now.


could not convert string to float:'1\t13894\t0|t13894'

I use : python3 permGWAS.py -x  ./data/mydata.map  -y ./data/mypheno.pheno
The following error occurred：
Failure when running permGWAS2.0
could not convert string to float:'1\t13894\t0|t13894'
mypheno.pheno file is
FID IID phenotype_value
11797 11797 0.96590
9936 9936 0.83560

Hi,
Given the error message, I think your map file is tab delimited and contains a typo (|t instead of \t). However, permGWAS needs the entries in the map file to be separated by a single white space.
I hope this helps.


OutputFunction isn't currently supported.

Any output function defined in the auxiliary code and then specified in the data schema (such as rle.js's decodeEncodedString) is not currently used.
Repro steps:

Go to the run-length encoding problem, once I've pushed my fixes.
Paste in the solution.
Run until you get to the "decode" step.
Your output should return 1x5xb for one correctness test, rather than 5xb, signifying that AuxiliaryCode.decodeEncodedString was not run on the output.

Addressed in #48, I think.

Fixed in #48. Closing.


get Form in controller

Hello everybody,
How can i get my form in controller. For example:

How can i get my_form, to set it pristine.
My controller is something like:
angular.module("Proposal.Justification").controller("JustificationController", JustificationController);
JustificationController.$inject = ["$scope", "JustificationFactory"];
function JustificationController($scope, JustificationFactory) {
var vm = this;
vm.onInit = onInit;
function onInit() {
vm.my_form.$setPristine();
}
}

Please post angular questions to StackOverflow.
Thanks


Use string type for proxy parameters

When I tried creating a new WC on CAPI, this app wouldn't get installed because
status:
  appVersion: ""
  release:
    lastDeployed: null
    reason: |
      values don't meet the specifications of the schema(s) in the following chart(s):
      aws-ebs-csi-driver-app:
      - cluster.proxy.http: Invalid type. Expected: null, given: string
      - cluster.proxy.https: Invalid type. Expected: null, given: string
      - cluster.proxy.noProxy: Invalid type. Expected: null, given: string
    status: not-installed

I realized that cert-manager-app also have these values, so I used the same approach we have there, allowing both null and string. PTAL.


[terra-i18n] Remove Post Install and Default Loaders

Issue Description
The post install script and default loaders in the loaders directory were add keep passivity for consumers with the changes made in https://github.com/cerner/terra-core/pull/1350 to enhance terra's internationalization.
With these changes, the terra-i18n loaders were updated to pull in the dynamically generated intlLoader and translationLoader modules created by the aggregate-translations pre-build tool, instead of referencing the static intl and translation loaders. These dynamic loaders are configured to the specified locales and resolves this previously seen issue. See https://github.com/cerner/terra-core/issues/855.
To keep passivity for consumers not yet utilizing the aggregate-translations pre-build tool, i.e. using the deprecated terra-i18n-plugin, this script adds the previously removed static intl and translation loaders to terra-i18n's node_modules directory. This allows the terra-i18n loaders to reference the intlLoader and translationLoader modules.
Issue Type

[ ] New Feature
[ ] Enhancement
[ ] Bug
[x] Other

Expected Behavior
Remove the post-install script and the loaders directory at the next major version bump of terra-i18n or terra-base. (React 17?)

Additionally, we should remove the aggregate-translations prebuild tool as these have been moved to terra-toolkit.

Discussed this issue today and decided this will require a bug fix release and we'll remove the aggregate-translations prebuild tool and the post install.


Prepare 2.1.0 release

[x] Update docs
[x] Update changelog
[x] Add integration test for new feature
[x] Bump version in package.json

Pull Request Test Coverage Report for Build 67

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

Totals

Change from base Build 66:
0.0%

Covered Lines:
55

Relevant Lines:
55

💛  - Coveralls


Add more components and create a login and normal dashboard component

Kindly create the login and register with the dashboard design component on react. I will be grateful for this. And what's the process you used to create the react version of mazer from scratch. I'll like to create from scratch too with updated version of dependency.

thanks for your suggestion, we still WIP for creating more component from source of Mazer Template, and yes we will build some basic pages until we finished the component first.

Thanks but let say I want to set up my react from scratch and I want to use all your pattern, by installing storey book and other dependency. The reason I want to do that is that I want to run it on the latest version of dependency and react js, an in how will I set up all for build to. Pls kindly share taught.


Create dotnet plugin

the skeleton-typescript-aspnetcore skeleton does not use gulp watch to start the webserver, which is why the url is not shown in the output of gulp watch (and therefore not picked up by monterey: https://github.com/monterey-framework/monterey/issues/215)
turns out that this skeleton uses dotnet core:
https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-typescript-aspnetcore/src/skeleton#running-the-app-without-visual-studio
this will require additional work, as monterey needs to detect dotnet projects and needs to run "dotnet restore" and "dotnet run"

I intentionally did not pursue the dotnet core samples beyond the point reached at this time in the user manual

One thing that is necessary implementation-wise is that we need to detect whether or not a project is a dotnet project. So there needs to be a file (or a property in a file) that monterey can use to know wheter or not to run dotnet restore and dotnet start. Is dotnet a task runner just like gulp? If so, then we need to know which tasks there are (just like gulp --task-list-simple)

No, dotnet core started with the same approach as Aurelia-CLI - with this tool, and has since grown a lot, where this basic piece (dotnet-cli) is used in a family of tools.
Learning all that stuff is highly ranked on my to do list !!

Done with latest commits


unconsistent behavior between uvicorn and pytest

Hello,
In a server.py, I have a simple health check
# in server.py

from datetime import datetime, timezone
from blacksheep import Application, get, ok

app = Application()

@get("/health")
async def health():
    return ok(f"{datetime.now(timezone.utc).isoformat()}")

and reusing the TestClient from https://www.neoteroi.dev/blacksheep/testing/#using-the-testclient-with-pytest, I have a simple test
# in test_api.py

import pytest
from blacksheep.testing import TestClient

@pytest.mark.asyncio(scope="session")
async def test_health_check(test_client: TestClient) -> None:
    response = await test_client.get("/health")
    assert response is not None
    assert response.status is 200
    print(response.headers)
    assert response.has_header(b'content-type')

Bug
When running with pytest -sv, I'm getting an error because response.headers is empty.
$ PYTHONPATH=. pytest -sv
============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-8.2.2, pluggy-1.5.0 -- /home/debian/workspace/cde/cde-global/applications/ontology-server/.direnv/python-3.11.2/bin/python3
cachedir: .pytest_cache
rootdir: /home/debian/workspace/cde/cde-global/applications/ontology-server
plugins: asyncio-0.23.7
asyncio: mode=Mode.STRICT
collected 1 item

tests/test_api.py::test_health_check <Headers []>
FAILED

=================================== FAILURES ===================================
______________________________ test_health_check _______________________________

test_client = <blacksheep.testing.client.TestClient object at 0x7f2d176763d0>

    @pytest.mark.asyncio(scope="session")
    async def test_health_check(test_client: TestClient) -> None:
        response = await test_client.get("/health")
        assert response is not None
        assert response.status is 200
        print(response.headers)
>       assert response.has_header(b'content-type')
E       AssertionError: assert False
E        +  where False = <bound method Message.has_header of <Response 200>>(b'content-type')
E        +    where <bound method Message.has_header of <Response 200>> = <Response 200>.has_header

tests/test_api.py:13: AssertionError
=========================== short test summary info ============================
FAILED tests/test_api.py::test_health_check - AssertionError: assert False
============================== 1 failed in 0.04s ===============================

Expected
However, when I run the server with uvicorn server:app and I try with wget, I do get a content-type header.
$ wget -qS -O - http://<IP_ADDRESS>:8000/health
  HTTP/1.1 200 OK
  date: Sun, 23 Jun 2024 21:11:01 GMT
  server: uvicorn
  content-type: text/plain; charset=utf-8
  content-length: 32
2024-06-23T21:11:02.151666+00:00

Has anyone an idea of the component/code adding this header after I return my response object and not present when testing ?
Thank you,
Pierre

Hey, @ticapix, I found your question interesting. So, I've spent some time trying to figure out the root cause. Here's it...
Blacksheep sets Content-Type header when preparing a response for ASGI. By default, TestSimulator class doesn't set it. As a result you can see the header only during a regular HTTP request.
cdef void set_headers_for_response_content(Response message):
    cdef Content content = message.content

    if not content:
        message._add_header(b'content-length', b'0')
        return

    message._add_header(b'content-type', content.type or b'application/octet-stream')

    if should_use_chunked_encoding(content):
        message._add_header(b'transfer-encoding', b'chunked')
    else:
        message._add_header(b'content-length', str(content.length).encode())

@ticapix take a look my PR #502
❯ pytest -svvv
====================================================================== test session starts ======================================================================
platform darwin -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /Users/User/.virtualenvs/blacksheep-issues/bin/python
cachedir: .pytest_cache
rootdir: /Users/User/workspace/neoteroi/BlackSheepIssues
plugins: asyncio-0.23.7
asyncio: mode=Mode.STRICT
collected 1 item

test_issue_501.py::test_health_check <Headers [(b'content-type', b'text/plain; charset=utf-8'), (b'content-length', b'32')]>
PASSED


Ignore DicomMetadataRead tests

These tests were unignored recently but still failing on Dataflow runner PostCommit: https://github.com/apache/beam/runs/20816595239
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Even though the tests passed on direct runner: https://ge.apache.org/s/x2nb6ldg5vg7o/tests/task/:sdks:java:io:google-cloud-platform:integrationTest/details/org.apache.beam.sdk.io.gcp.healthcare.DicomIOReadIT?top-execution=1 and so #30073 was merged.
R: @svetakvsundhar should we ignore them until a fix or these tests could be excluded from Dataflow Runner ?

We can ignore these for now, but I'll prioritize a fix here given that we don't have any functioning integration tests for DicomIO


Use typed errors

This PR introduces distinct error types derived from std::runtime_error to help applications distinguish various error cases.

LGTM


Add :latest tag for ubuntu 18 images.

We currently use the :latest tag to get the newest ubuntu 16 images for development and for nightly builds and would like to continue to do so with ubuntu 18.

Ubuntu 18 has been added to our CI system, the latest tag now exists.


Document the migration path and changes between API Elements 0.6 and 1.0

We should to specify the kind of changes that have been made to API Elements so that tooling authors can update their code with all the information they need clearly specified in a single page.

Yes, please! 👍

Yep, it's possible we'll gonna need this for attributes-kit.


Take into account base URL on login redirect

We encountered an issue with the IPT hosted at https://members.devel.oceantrack.org/ipt where logging in would redirect to the root of the domain instead of to the base URL. This PR fixes that issue, but please review as I'm a bit suprised that this issue hasn't been reported before.

Thanks for the pool request @pieterprovoost !
I adapted this for the dev branch https://github.com/gbif/ipt/commit/c667310130836c93c50139563d55922951334d64
Closing this


removed use of react-helmet + various QOL

:tada: This PR is included in version 0.19.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Minor cleanup to make buildscripts more concise

Implements suggestions from #29461

@bot-gradle test and merge


urlopen error EOF occurred in violation of protocol (_ssl.c:1131)

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2023.02.17 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I am getting the following error:
urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:1131)
The error occurs on all sites that I have tried.
The error started after the 2022.11.11 update and continues with the latest update (2023.02.17)
The 2022.10.04 release still works on some sites, eg. DailyMotion and Vimeo, but no longer on YouTube.
From earlier issues on the bugtracker it seems that this error is proxy related. But how would this explain the fact that it works on one version but not on the next using the same proxy. Could it be that the version update made the program less forgiving of proxy configuration or mis-configuration? Unfortunately I do not have the option of changing to a different proxy.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['--proxy', 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx', '-v', '--no-check-certificates', 'https://www.dailymotion.com/video/x8ipstv']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No ANSI), error utf-8, screen cp1252 (No ANSI)
[debug] yt-dlp version 2023.02.17 [a0a7c01] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg git-2019-12-26-b0d0d7e, ffprobe 4.0.2
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {'http': 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx', 'https': 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx'}
[debug] Loaded 1782 extractors
ERROR: [dailymotion] x8ipstv: Unable to download JSON metadata: <urlopen error EOF occurred in violation of protocol (_ssl.c:1131)> (caused by URLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
  File "yt_dlp\extractor\common.py", line 693, in extract
  File "yt_dlp\extractor\dailymotion.py", line 231, in _real_extract
  File "yt_dlp\extractor\dailymotion.py", line 66, in _call_api
  File "yt_dlp\extractor\common.py", line 1047, in download_content
  File "yt_dlp\extractor\common.py", line 1011, in download_handle
  File "yt_dlp\extractor\common.py", line 881, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 838, in _request_webpage

  File "urllib\request.py", line 1354, in do_open
  File "http\client.py", line 1252, in request
  File "http\client.py", line 1298, in _send_request
  File "http\client.py", line 1247, in endheaders
  File "http\client.py", line 1007, in _send_output
  File "http\client.py", line 947, in send
  File "http\client.py", line 1421, in connect
  File "ssl.py", line 500, in wrap_socket
  File "ssl.py", line 1040, in _create
  File "ssl.py", line 1309, in do_handshake
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 820, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3726, in urlopen
  File "urllib\request.py", line 525, in open
  File "urllib\request.py", line 542, in _open
  File "urllib\request.py", line 502, in _call_chain
  File "yt_dlp\utils.py", line 1532, in https_open
  File "urllib\request.py", line 1357, in do_open
urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:1131)>

-----------

Here is the -v output using 2022.10.04 release

[debug] Command-line config: ['--proxy', 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx', '-v', '--no-check-certificates', 'https://www.dailymotion.com/video/x8ipstv']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19045-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg git-2019-12-26-b0d0d7e, ffprobe 4.0.2
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {'http': 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx', 'https': 'https://xxxx:xxxx@xxx.xx.xxx.xxx:xxx'}
[debug] Loaded 1690 extractors
[debug] [dailymotion] Extracting URL: https://www.dailymotion.com/video/x8ipstv
[dailymotion] Downloading Access Token
[dailymotion] x8ipstv: Downloading media JSON metadata
[dailymotion] x8ipstv: Downloading metadata JSON
[dailymotion] x8ipstv: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] x8ipstv: Downloading 1 format(s): http-1080-1
[debug] Invoking http downloader on "https://proxy-26.sv4.dailymotion.com/sec(Fv_fkf_PGuaIxoIb3TIJoP-gWqBuoFNyMwgGEjYuSwW_EfQhd90qza7Rr6QnM-mYahHpAs5yigzLkywZrPWy5w)/video/952/661/515166259_mp4_h264_aac_fhd_1.mp4"
[download] Former CBS Broadcaster and NFL Star Irv Cross Posthumously Diagnosed With CTE [x8ipstv].mp4 has already been downloaded
[download] 100% of   36.39MiB

Is your proxy https only? yt-dlp does not currently support https proxies (see https://github.com/yt-dlp/yt-dlp/issues/1890)

As far as I know the proxy is not HTTPS only. It is given to me as HTTP://url:port.
The question is why would it work (and still work right now on some sites) using the 2022.10.04
release and not work with subsequent releases.

As far as I know the proxy is not HTTPS only. It is given to me as HTTP://url:port. The question is why would it work (and still work right now on some sites) using the 2022.10.04 release and not work with subsequent releases.

I misread, sorry. Try passing the proxy as http instead of https?
I'll try have a look at what relevant changes there might have been between those versions.

Try using --legacy-server-connect?
It that works, it could possibly be due to this, which would suggest if you ran 2022.10.04 on python 3.10 you would encounter the same issue.
In this case it's probably an issue with your proxy server. I'm guessing by you using --no-check-certificate it is inspecting your traffic (MITM), and part of that process is probably causing issues with the more modern ciphers (or something along those lines)

Thanks a  lot, --legacy-server-connect handled it.


Add option to pass input and receive output

Hi again.
For my project, I would like to send prompts and receive answers from within Python.
Would it be possible to add that to the roadmap?
Thank you in advance.

Yes, I have a plan to do it, will be back when I'm done. Thank you for suggesting this feature!

We have figured out how to do it and @bachvudinh is working on it, we will update you soon.

Thank you for the update!
In the meantime, it also works using subprocess, although it does not support multi-turn conversations:
result = subprocess.run(
    [GEMMA_CPP_PATH, '--', '--tokenizer', '/path/to/gemma.cpp/build/tokenizer.spm',
     '--compressed_weights', '/path/to/gemma.cpp/build/2b-it-sfp.sbs', '--model', '2b-it',
     '--verbosity', '0'],
    input='some input',
    capture_output=True,
    text=True
)

We just pushed a new version that supports the completion function. You can check the tests/test_chat.py for more details.
In the mean time, we are doing the refactor repo so it can support more features in the future.


Set-Location to file path, like in powershell 6 and lower

Summary of the new feature/enhancement
With powershell 7 we lost the ability to Set-Location to a file path. Set-Location supports only a folder path.
This PS6 feature was a really good productivity feature.
It would be nice to add it again.

Can you share the use case for having the current location set to a file?
I'd consider that a bug if that were allowed, and without hunting down the original issue, that's probably how it was triaged.

PowerShell 5.1 does not allows this too.

Yes maybe it was in powershell 3 not 5, but it used to work in Powershell ISE.
A use case: you copy the path of a file into the clipboard, then open a command line and try to change the current directory to the folder containing this file. You have to manually delete the file part of the path to be able to change it.
It was a nice uncommon feature that helps make powershell unique, without any side effect.

You can use Split-Path to strip off the leaf fragment of the path:
$filepath | Split-Path | Set-Location

I have shared "cd as function" in place of the alias, and it has extra argument completers and transformers to allow things like cd ... (for ....). It would be trivial to add one removal of any file part to leave the path. I think this is better left as a user customization than changing the behavior of Set-Location. (but having done the customization, I would think that!)

Well Set-Location really used to select the folder part of the path it gets in previous versions of powershell and it won't break anything. Why won't you put that as a new good and practical feature, making gain lots of time, instead of simply closing it without  any comment ? You are too conservative guys. Be a little open minded.

You can use Split-Path to strip off the leaf fragment of the path:
$filepath | Split-Path | Set-Location

Of course i can also write binary code to do the same. The idea is to gain time. Time is money. Time is electrical power. Gaining time is green energy. Think about that.

@softlion If the community votes for the enhancement, then it will certainly be realized.


Work With ADAM fasta2adam in a distributed mode

Hello,
I'm beginner in genomic area but I'm studing K-mer sequence and I'm using spark on Hadoop, I want to test ADAM performance on my cluster. As First I want to convert my FASTA test files in adam files using fasta2adam.
I'm using adam-submit command:
adam-submit --conf spark.yarn.jar ${SPARK_HOME}/spark-1.5.0-bin-hadoop2.4/lib/spark-assembly-1.5.0-hadoop2.4.0.jar --master yarn-cluster  --driver-memory 4g --num-executors 15 --executor-cores 2 --executor-memory 4g fasta2adam  INPUT_FILE OUTPUT_FILE
but command does not start on cluster but as single node
could someone help me
thanks for our time
Best regards

I'm not sure why ${SPARK_HOME}/spark-1.5.0-bin-hadoop2.4/lib/spark-assembly-1.5.0-hadoop2.4.0.jar is there, might that be mistakenly interpreted to be the application jar?
https://spark.apache.org/docs/1.5.1/submitting-applications.html#launching-applications-with-spark-submit

Sorry it was a misprint. I want to execute fasta2adam conversion on my test cluster and I'm using this command
adam-submit --master yarn-cluster --driver-memory 4g --num-executors 15 --executor-cores 2 --executor-memory 4g fasta2adam INPUT_FILE OUTPUT_FILE
the cluster works well with hadoop and spark but not using adam-submit
Thanks for your time

You might try
adam-submit \
  --master yarn-cluster \
  --driver-memory 4g \
  --num-executors 15 \
  --executor-cores 2 \
  --executor-memory 4g \
  -- \
  fasta2adam INPUT_FILE OUTPUT_FILE

Note the -- separating the Spark and ADAM options.  This feature was added recently and may not be very obvious from documentation (e.g. I don't see it mentioned anywhere in the current version of README.md).

Thanks for you answer now my job start on my cluster I have all executors that I have been set in command line I'm trying to convert my file thanks for your help. I'll update about my progress
best regards

Thanks with your help I was able to confevert  a fasta file type in an adam file, but when I try to count kmers
adam-submit   --master yarn-cluster   --driver-memory 4g   --num-executors 15   --executor-cores 2   --executor-memory 4g --  count_kmers  hdfs://INPUTFILE hdfs://OUTPUTFILE 20
I receive always the same error:
User class threw exception: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory hdfs://OUTPUTFILE already exists
also if I change it every executions.
It happen if I use the as input file the entire directory of transformed file that contains all part-** sub files and also if I use as input the merged single file created with  hadoop fs -getmerge
I'm finding other solution to solve it.

Closing as resolved/not an ADAM bug.


Error when logging in

I am getting this error when trying to login
thread 'main' panicked at 'Failed to save password to keyring: SecretServiceError(Dbus(D-Bus error: No such interface 'org.freedesktop.DBus.Properties' on object at path / (org.freedesktop.DBus.Error.UnknownMethod)))', libcore/result.rs:945:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:207
   3: std::panicking::default_hook
             at libstd/panicking.rs:223
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:402
   5: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:349
   6: rust_begin_unwind
             at libstd/panicking.rs:325
   7: core::panicking::panic_fmt
             at libcore/panicking.rs:72
   8: core::result::unwrap_failed
   9: traffic::user::credential
  10: traffic::main
  11: std::rt::lang_start::{{closure}}
  12: std::panicking::try::do_call
             at libstd/rt.rs:59
             at libstd/panicking.rs:306
  13: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:102
  14: std::rt::lang_start_internal
             at libstd/panicking.rs:285
             at libstd/panic.rs:361
             at libstd/rt.rs:58
  15: main
  16: __libc_start_main
  17: _start

Installing gnome-keyring fixed this issue

Thanks for  posting the follow up @akhilkpdasan . If any other users have this issue, please post here so we can track how wide-spread this is.


Navigation to page (or refresh of page) with anchornav shows incorrect menu item. Version 1.1.1

Describe the bug
My team has a microsite with the nav component. When we navigate to it or refresh the page, the nav component shows an incorrect menu item.

The nav says "Expired codes", but the expired section doesn't appear in this window:

Navigating from the monolith, "Valid codes" has vertical highlighting that doesn't include the entire phrase vertically "Valid codes"

Verify the version of @aurodesignsystem/auro-nav you have installed
The current version is:

My project has @aurodesignsystem/auro-nav v1.1.1 installed

To Reproduce
Steps to reproduce the behavior:

We updated our site with some TypeScript fixes, so no repro currently. Not sure if this will pass design.

Are you able to reproduce this issue on the Auro doc site?

[ ] YES
[x] NO

Expected behavior
Upon page navigation or refresh, no menu item should be highlighted. Alternatively, the first menu item could be highlighted.
Screenshots
See above
Desktop (please complete the following information):

OS: Windows
Browser Edge

With the dynamic nature of the Gold Guest upgrades not all ids are displayed, so in that case can the anchor navigation default to the first rather than the last option?

With the dynamic nature of the Gold Guest upgrades not all ids are displayed, so in that case can the anchor navigation default to the first rather than the last option?

@jason-capsule42 can you comment on that?

By definition the anchor nav is a list of links to specific elements (identified by the id attribute) within the content of the document. There must be a one-to-one connection of the the link to a valid ID element in the content. Otherwise the anchor nav is little more than a page outline with no reliable functionality which is not currently a supported use case of this component.
Each anchornav link is essentially an auro-hyperlink restyled. It can not do anything the hyperlink wouldn't. I don't see any way to make the anchornav do what it's intended to do without matching the IDs.
The anchornav element position marker works by positioning itself based on whichever section is in view in the scrollable content section. Since an assumption is made that all anchornav links must match the valid IDed content sections this behavior is going to break when they don't.
If we were to force the marker position to line up at the first element in the anchornav it would never change from there since you would never actually scroll to a new anchornav links matched section since none of them match to begin with.
As I understand from earlier comments in this thread, the content sections of the page are dynamically generated from data. The only solution I can think here would be to link that to some javascript which could also dynamically generate the anchornav links so that you can match the IDs.


feat: is_ext utility for checking equality against extension ops

Open to bikeshedding on name of is_ext
left in an assert_eq that just uses cast directly as a comparison (this may not be worthwhile)

Closing as I've convinced myself it's not useful.


[fix][docker] fix kafka test scritps

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


say more on testing against canonical dataset in README

why would a user want to do this? is it as simple as "don't believe us? run this"?
say a bit more about why we include this in the README.

This is basically an integration test https://en.wikipedia.org/wiki/Integration_testing

Does this make sense @hancush ?

i was trying to get at why this section is relevant to a user rather than a developer.
this readme seems oriented toward people who want to develop dedupe while dedupe-examples is more useful for people trying to use dedupe. on second thought, i don't think testing necessarily needs to be expounded upon if we divert the people who only want to use dedupe to dedupe-examples before they get here, as discussed in #503.

okay, closing for now.


Depixel

Coverage remained the same at 100.0% when pulling de751e4079d9b3e359f8aa9c50e9723a7f40aaa5 on dawsonbotsford:patch-1 into 1a936280d4c9569035f9ac6a9808df564d413b30 on Matt-Esch:master.

Bump


fix: workaround for PIP_REQUIRE_VIRTUALENV env variable

If PIP_REQUIRE_VIRTUALENV is set to true in the user's environment, maturin develop fails because the pip subcommand doesn't recognize the env as a venv.
This works around that.

Did the --isolated option not work? It might be even better?

No, --isolated didn't work for me, but you can try to reproduce it to be doubly sure.
Just export PIP_REQUIRE_VIRTUALENV=true in your shell to reproduce the error.


Dev: Allow custom headers on rewrites

- Summary
DEPENDS ON: https://github.com/netlify/libredirect/pull/61
Fixes: https://github.com/netlify/cli/issues/423

- Test plan

Have following in your netlify.toml:

[[redirects]]
  from = "/api/*"
  to = "/.netlify/functions/:splat"
  status = 200
  headers = {X-From = "Netlify"}
[build]
  functions = "functions/"

Have following in /functions/hello-world.js

exports.handler = function(event, context, callback) {
    callback(null, {
        statusCode: 200,
        body: JSON.stringify(event.headers),
    });
}

Goto http://localhost:8888/api/hello-world in your browser
Expect to see "x-from": "Netlify" in the response

- Description for the changelog

Iterate through match.proxyHeaders and set them on request
Make sure functions and addonsrequests are properly routed after rewriting

- A picture of a cute animal (not mandatory but encouraged)
🙈

Is this PR still functioning as I just recreated the demo above and am not seeing the x-from header?

@oscartbeaumont This has not been released on NPM yet. Have you tried after linking repo at this branch with npm link? Apologies for the confusion

No, sorry I assumed this had been released. I tried linking the master branch (commands below) and could also not get it to work.
npm remove netlify-cli -g
git clone https://github.com/netlify/cli.git
npm link cli/ # This seems to npm install
netlify dev

It seems like this also depends on a new release of netlify-redirector which is not open-source. Please wait until that is released, this comment thread will be updated when it is.

Ok, thanks for your help

@oscartbeaumont This change has been published today with the latest version of Netlify CLI.


Slider Component

What do you think about having a slider component?
This allows the selection of values from a range via mouse, touch, or keyboard, similar to <input type="range">
something like this?

I could work on this.

@sivantha96 Hey, sure go ahead 💯
Add a prop named type: 'default' | 'secondary' | 'danger' | 'warning' | 'success'| 'light' - for color of the slider
Just go through the Contribution guidelines in CONTRIBUTING.md
Keep me updated with your progress.
Also star the repository if you like it! Thank you 😄

It would be great if you could add hacktoberfest labels for this.


Agent checks time until expiry

The agent should check how much time is left until expiry before filling a request. Ideally, the agent should be able to configure a value where he is comfortable with filling.
In this way, the agent can go up online and only fill requests which are long enough valid as configured by the entity behind.

Default value 10 minutes
Users get a warning message once at startup if they configure the check time to be greater than the maximum validity period.

We currently did not include giving the user a warning if the time is set to low. Maybe when this issue is done we have a better understanding of what we would consider as to low.