Remove SMC referral sections in Doorway

Bug:
The referral sections on SMC listings are showing up in Doorway.

Fix:
We will go through all of the listings that were ported over from SMC and remove any of the referral sections below. We should also add this to our runbook for the next jurisdiction we transition into Doorway as well.

Postgres script was run on Friday that removes this
@YazeedLoonat to post the script he used to fix one listing
That script is extendable, and we should be able to use that to do this long term

-- tells you how many you are going to delete
SELECT
    SUM(1)
FROM application_methods
WHERE listing_id IN ('d6d08820-a870-4549-9040-8ca05b969c21')
    AND type = 'Referral';

-- deletes them
DELETE FROM application_methods
WHERE listing_id IN ('d6d08820-a870-4549-9040-8ca05b969c21')
    AND type = 'Referral';

The only listing with a referral section was a draft listing Yazeed made during his investigation and resolution of the previous issue. This test listing has been deleted and no other listing have referral sections on Doorway


Nd4j: broadcast_dynamic_shape gives wrong values with rank 1 shapes

The broadcast_dynamic_shape op gives the wrong result when used with a shape array with one element.
@Test
public void testBroadcastInt1() {

    INDArray out = Nd4j.create(new long[]{1});
    DynamicCustomOp op = DynamicCustomOp.builder("broadcast_dynamic_shape")
            .addInputs(Nd4j.trueVector(new int[]{1}), Nd4j.trueVector(new int[]{4}))
            .addOutputs(out)
            .build();
    Nd4j.getExecutioner().exec(op);
    assertEquals(Nd4j.trueVector(new int[]{4}), out);

}

@Test
public void testBroadcastInt2(){
    INDArray out = Nd4j.create(new long[]{2});
    DynamicCustomOp op = DynamicCustomOp.builder("broadcast_dynamic_shape")
            .addInputs(Nd4j.trueVector(new int[]{2, 2}), Nd4j.trueVector(new int[]{1}))
            .addOutputs(out)
            .build();
    Nd4j.getExecutioner().exec(op);

    assertEquals(Nd4j.trueVector(new int[]{2, 2}), out);
}

The values should be [4] and [2, 2] as per this, but it returns [0] and [2, 0].
Also, it returns and accepts floats, whereas tensorflow's version forces ints.

@shugeo ^^

Confirmed fixed, (updated) tests above are passing.


Adding library to current library claims success, fails

From @jenesaisdiq on February 23, 2017 22:5
Still working with the NeoGPS library of the previous two issues. When I search for the LIS3DH library, select "Use"... "Add to current library" I see a success message but this include has not been added to library.properties.
Copied from original issue: spark/particle-dev#190

@jenesaisdiq I'm unable to reproduce it. Can you record a screencast with those actions?


Alexa-browser-client html page content not visible on local host.How to

Please include steps to reproduce the error.

Sir I followed each and every step:

Created amazon developers account
2.Registered Product as application and I got client id,secret id and device type.

3.Installed alexa_browser_client api
4.Added alexa_browser_client and channels into installed apps of setting script.
5.Added url(r'^', include('alexa_browser_client.config.urls')), to urls.py url_patterns and include('alexa_browser_client.config.routing.channel_routing') to routing.py channel_routing.
6.For refresh token added local host url under allowed origins and allowed return url.

Copied complied snowboy folder on to the top of my project folder

Ran the server using command python manage.py runserver and typed local url link http://<IP_ADDRESS>:8000 in the browser but I am getting blank web page.

What do you see in the terminal? I expect there would be an error?

Sir I have resolved all issues now everything is working fine but I have one question If we enable a third party  skill in alexa skill store Will we able to get the activity performed for which that particular skill is meant to be like I enabled healing music skill I am able to get AVS response Welcome to healing music Playing healing music but nothing play after this.Is there a need of audio player integration on the web page ? Do I need to modify html code ?
thank you for your efforts in making this api it helped me a lot in completing my office project thank you so much Sir


Add option to use local LLM

Some options:

GPT4All
Dalai

Done in https://github.com/htadashi/GPT3-AHK/commit/c7de601d7417180d851190080048ba40ad6f74e5


jackson json library support and modularisation

@guilhermegps - This should be ready for merging to main?

Sorry man, this is deprecated. I need to review the changes and the original need.

Please check #59 - There is a conflict with the Marker.java and I am struggling resolving it. Maybe you will have more luck?


Compare charts over location/time periods; COUNTRY=cambodia

This fixes issue #930 and #931
How to test the feature:

go to the charts tab
click the "compare locations" switch
select locations 1 & 2
select time period and chart layers
see charts show up

TODO

[x] Provide 2 CSV files when comparing
[x] Limit number of selectable layers to 2 (is this really needed?)
[x] Adjust styling
[x] Add time period comparison

Screenshot/video of feature:

This is more or less ready to review. There's an open point in the todo list above. I think it makes sense to keep the code as is, allowing multiple layers to be compared, but maybe I'm missing something on the "business" logic side.
Also CSV filenames are a bit chaotic, not sure how to make them nicer. Ideas welcome!

This is looking great, thanks @laurentS! I would like to test a bit more locally tomorrow with other regions but the surge deployment mostly works as expected. I did see strange behavior with the CSV filenames. It seems an admin 2 name is being added to the filename even if I am only requesting to admin 1. See screenshots below.

I'm also thinking about how we can improve the UX for time period selection. More on this tomorrow!

Comparing locations when we have admin0 (country-level) data crashes the app. Screenshot below.
Steps to reproduce:

COUNTRY=rbd
Go to charts choose a single location (country, Benin for example)
Keep default dates
Choose any chart
Next, toggle 'compare locations'. The app will crash with the message below. This seems to only happen if you choose a chart for a single country and then try to compare locations afterwards

When comparing locations for the RBD deployment, we don't need the text 'Regional Bureau Dakar' in the location header. It incorrectly replaces the country name. See screenshots below.

Comparing locations when we have admin0 (country-level) data crashes the app. Screenshot below.

Fixed in 88c70e5172d70f140c53e091929ac8a75f8195be

When comparing locations for the RBD deployment, we don't need the text 'Regional Bureau Dakar' in the location header.

Fixed in ca3b242a8df7b0b2cb63f5c73d3b022a3b0fcc66

It seems an admin 2 name is being added to the filename even if I am only requesting to admin 1.

Fixed in 8445cd2695cec00567ed95e9b8ddb8a40932d19f
I think I got all your comments above.
 It seems that with country=rbd, there is something like 160MB of country boundary data that is loaded. Most of it is cached, but the page still takes over 12 seconds to be responsive, which seems like too much to me. Not sure if we can do something about it?


Doubled "class" attribute in Blurred image placeholders

It seems there is an error in the "Blurred image placeholders" docs section. The "class" attribute is used twice here:
<Img class="better-blur" class={loaded} on:load={() => (loaded = true)} {src} alt="cat" />.

Thanks, fixed by https://github.com/zerodevx/svelte-img/commit/de029f83fbb3008fb205a120f1b2b1ad25b793df. Good catch!


Unable to set breakpoint -- unknown file

When trying to debug https://github.com/jackc/sqlfmt
jack@edi:~/dev/go/src/github.com/jackc/sqlfmt$ git rev-parse HEAD
b0817b8347e58ff96a01cf2d67ff5b3ad959893f
jack@edi:~/dev/go/src/github.com/jackc/sqlfmt$ ls
lex.go  main.go  sql.go  sql.y
jack@edi:~/dev/go/src/github.com/jackc/sqlfmt$ dlv run
Type 'help' for list of commands.
(dlv) b sql.go:170
Command failed: unknown file: /home/jack/dev/go/src/github.com/jackc/sqlfmt/sql.go
(dlv)

So, oddly enough I think this is actually a Go linker bug. It seems to include sql.y instead of sql.go.
derekparker at sqlfmt(master+) dlv run
Type 'help' for list of commands.
(dlv) info sources sql
/Users/derekparker/go/src/github.com/JackC/sqlfmt/lex.go
/Users/derekparker/go/src/github.com/JackC/sqlfmt/main.go
/Users/derekparker/go/src/github.com/JackC/sqlfmt/sql.y
/Users/derekparker/go/src/github.com/JackC/sqlfmt/yaccpar
(dlv)

And with GDB:
Command name abbreviations are allowed if unambiguous.
(gdb) b sql.go:177
No source file named sql.go.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) b main.go:1
Breakpoint 1 at 0x2e30: file /Users/derekparker/go/src/github.com/JackC/sqlfmt/main.go, line 1.
(gdb) quit

And if we look at the info in the .debug_line section with objdump (gobjdump on OSX):
derekparker at sqlfmt(master+*-) go build
derekparker at sqlfmt(master+*-) gobjdump --dwarf=line sqlfmt | grep sql
sqlfmt:     file format mach-o-x86-64
  1     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/lex.go
  2     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/main.go
  3     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/yaccpar
  4     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/sql.y
derekparker at sqlfmt(master+*-)

I'll dig into this a bit more because it's interesting, but it doesn't seem to be an issue with Delve.

For a bit more info, it actually seems to think that sql.go is yaccpar:
derekparker at sqlfmt(master) go build
derekparker at sqlfmt(master) gobjdump --dwarf=line sqlfmt | grep sql
sqlfmt:     file format mach-o-x86-64
  1     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/lex.go
  2     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/main.go
  3     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/yaccpar
  4     0       0       0       /Users/derekparker/go/src/github.com/JackC/sqlfmt/sql.y
derekparker at sqlfmt(master) dlv run
Type 'help' for list of commands.
(dlv) b yaccpar:170
Breakpoint 1 set at 0x526b for main.sqlParse /Users/derekparker/go/src/github.com/JackC/sqlfmt/yaccpar:170
(dlv)

Hi , I have same problems. How to fix it?


Network - Detailed view - Bullet points and line break in projects/organizations descriptions

User story
As an admin drafting the description of projects and organizations from the back office, I want to format the text I enter so that it is better organized and easier for users to digest.
Acceptance criteria

Admin users can add content in bullet points
Admin users can start writing in a new line

For reference
Check the example of Agricultural Producers Group TERRA where Emilie has entered bullet points that are not displayed as such on the front end.

or do we have wiziwig options in Back Office?

Hi @EmilieVrot , I've re-phrased this item's title and description before discussing it with the team. Could you please take a look and confirm it makes sense to you?

Hi Carla, it is fine for me. If other formatting options are available, it could be useful (I am thinking of adding a picture/logo).
Thanks

JIRA #ORC-422


BOOST_PARSER_DEFINE_RULES not available?

The docs for BOOST_PARSER_DEFINE_RULES say:

This macro is only available when the Boost.Preprocessor headers are available.

here
So how do I define a rule in a stand-alone (non-Boost) version?

That's just a doc bug (cruft from a previous implementation).  It's always available now.


Update Data Factories Overview for .NET

Add overview text with links to related services and introduction, add links to tutorials, document management library with example, show link to sample code and add boilerplate samples link. Tagging @CamSoper for review and @JennieHubbard as listed manager. CDA team will review for sign-off tag.

:warning: Validation status: warnings

File
Status
Preview URL
Details

api/overview/azure/data-factory.md
:warning:Warning
View
Details

api/overview/azure/data-factory.md

Line 24: [Warning] Invalid file link:(~/api/overview/azure/data-factory/data-factory-introduction).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

api/overview/azure/index.yml
:x:Error

Details

:x:Error

Details

api/overview/azure/index.yml

[Error] Error transforming model "W:\3k4w-o-a4d6583d\raw-\zj1c1ro4.usb\rawmodel\api\overview\azure\index.raw.json" generated from "api/overview/azure/index.yml" using "ManagedReference.html.primary.js". Error running Transform function inside template preprocessor:

[Error] Error transforming model "W:\3k4w-o-a4d6583d\raw-\zj1c1ro4.usb\rawmodel\api\overview\azure\index.raw.json" generated from "api/overview/azure/index.yml" using "ManagedReference.html.primary.js". Error running Transform function inside template preprocessor:

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:x: Validation status: errors

File
Status
Preview URL
Details

api/overview/azure/index.yml
:x:Error

Details

:x:Error

Details

api/overview/azure/index.yml

[Error] Error transforming model "W:\mjkc-o-2e097070\raw-\djoop5xo.x0i\rawmodel\api\overview\azure\index.raw.json" generated from "api/overview/azure/index.yml" using "ManagedReference.html.primary.js". Error running Transform function inside template preprocessor:

[Error] Error transforming model "W:\mjkc-o-2e097070\raw-\djoop5xo.x0i\rawmodel\api\overview\azure\index.raw.json" generated from "api/overview/azure/index.yml" using "ManagedReference.html.primary.js". Error running Transform function inside template preprocessor:

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

#Sign-off


modin DataFrame does not qualify as DataFrame in pd.MultiIndex.from_frame

System information

OS Platform and Distribution: Linux Ubuntu 16.04
Modin version: 0.8.2
Python version: 3.8.2
Code we can use to reproduce:

from modin import pandas as pd
df = pd.DataFrame(
     [["bar", 1], ["bar", 2], ["foo", 1], ["foo", 2]],
     columns=["first", "second"],
)
print(type(df))
pd.MultiIndex.from_frame(df)

Problem
When trying to look at the indices of the DataFrame created as above the type of the DataFrame is not recognized.
So, with
print(type(df))
# <class 'modin.pandas.dataframe.DataFrame'>

the output of the following
pd.MultiIndex.from_frame(df)

returns
TypeError: Input must be a DataFrame

Source code / logs
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
~/myscript.py in <module>
      4      columns=["first", "second"],
      5 )
----> 6 pd.MultiIndex.from_frame(df)

~/somepath/.venv/lib/python3.8/site-packages/pandas/core/indexes/multi.py in from_frame(cls, df, sortorder, names)
    626         """
    627         if not isinstance(df, ABCDataFrame):
--> 628             raise TypeError("Input must be a DataFrame")
    629
    630         column_names, columns = zip(*df.items())
TypeError: Input must be a DataFrame

Yes, we currently reuse Pandas class MultiIndex as is, and therefore its method from_frame expects a Pandas DataFrame type, not Modin. As a temporary workaround you can write pd.MultiIndex.from_frame(df._to_pandas()) and it should work.

Yes, we currently reuse Pandas class MultiIndex as is, and therefore its method from_frame expects a Pandas DataFrame type, not Modin. As a temporary workaround you can write pd.MultiIndex.from_frame(df._to_pandas()) and it should work.

The fix for this can be relatively simple, we can just monkey-patch the from_frame classmethod.
from pandas import MultiIndex

def from_modin_frame(df):
    if isinstance(df, modin.pandas.DataFrame):
        df = df._to_pandas()
    return MultiIndex.from_frame(df)

MultiIndex.from_frame = from_modin_frame

The fix for this can be relatively simple, we can just monkey-patch the from_frame classmethod.
from pandas import MultiIndex

def from_modin_frame(df):
    if isinstance(df, modin.pandas.DataFrame):
        df = df._to_pandas()
    return MultiIndex.from_frame(df)

MultiIndex.from_frame = from_modin_frame


Update public documentation to reflect new changes

The OS patching script has changed recently

@mogorant : Thanks for your contribution! The author, @omidm1, has been notified to review your proposed change.

@mogorant : Thanks for your contribution! The author, @omidm1, has been notified to review your proposed change.

@mogorant Thanks for your contribution. For the info in the Note, could we try something like, "This script will not automatically apply updates for all future update cycles. Run the script each time new updates need to be applied in order to install the updates and reboot the VM." Also, what is the frequency of the update cycles? Is the timing fixed (ie weekly, monthly, quarterly)?

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

Hi @mogorant Thank you for your contribution. Could you take a moment to sign the Contributor Licensing Agreement (CLA)? After you sign the CLA, someone will review your proposed changes. Thanks.

@mogorant : Thanks for your contribution! The author, @omidm1, has been notified to review your proposed change.

@mogorant Thanks for your contribution. For the info in the Note, could we try something like, "This script will not automatically apply updates for all future update cycles. Run the script each time new updates need to be applied in order to install the updates and reboot the VM." Also, what is the frequency of the update cycles? Is the timing fixed (ie weekly, monthly, quarterly)?

Added this change to the latest commit.

#sign-off

@hrasheed-msft: I'm sorry - only the author of this article, @omidm1, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

#sign-off


HttpAuth dialog pops up when session is expired

Prevent HttpAuthentivcation dialog from appearing in browser.
Happens when API calls are made with expired session key.

Fixed in b409407b1d76d5f70fd2e7d7810bd3e500e16dd by specifying a custom WWW-Authenticate value in server.py.


Update for the new parser

This PR supports update statement for the new parser. The newly added test cases depends on PR #581 to test OperatorExpression in the SET caluse.

Coverage increased (+0.04%) to 66.398% when pulling 4c04903eb94be8bc3f9324b6c65b5402d8c71b52 on hzxa21:parser into 8b8d122d8424185650d22883acb5a8c247c0fb4a on cmu-db:master.

Coverage increased (+0.1%) to 66.413% when pulling 0680c9327ce4d689b801fd466819c65f39f2c989 on hzxa21:parser into d3cd3386f5432ce7ada691679d241a7ae74f69fd on cmu-db:master.

Coverage increased (+0.03%) to 66.434% when pulling e697282c65930c8a578e2ef315af3a2946de1d69 on hzxa21:parser into 0667a8da9c9968175892045e62cc05ce85ff71f2 on cmu-db:master.

Coverage decreased (-0.08%) to 66.331% when pulling e697282c65930c8a578e2ef315af3a2946de1d69 on hzxa21:parser into 0667a8da9c9968175892045e62cc05ce85ff71f2 on cmu-db:master.


[SMALLFIX] Fix read timeout bug

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14211/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14213/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14215/
Test PASSed.

Thanks for the bug fix!


Repeat rows by transaction-sector

Repeat rows by transaction-sector  as part of the collapsable csv output by line

This is not being implemented as part of launch.
Each transaction can only have one sector attached to it, so no need to repeat.
Future enhancement should be repeating transactions by activity level sector information.


Unable to use view chart in explore feature on 1.4.0

After upgrading to 1.4.0, we are unable to use view chart in explore feature for some charts. When I try to open in explore, I'm getting a blank chart as seen in the picture.
Only thing I detected common between these charts is that they all have ../superset/explore/?URL_IS_TOO_LONG_TO_SHARE&... in their urls. Maybe something wrong with url conversion?
How to reproduce the bug
Try to open chart in explore
Expected results
Charts need to be opened in explore mode
Actual results
Getting blank chart
Screenshots

Environment

browser type and version: Chrome 97
superset version: 1.4.0 installed with official docker image.

Hi @iercan how do you suggest someone replicate this? For example -- should someone setup Superset in 1.3, make a time series chart, then upgrade and try to recreate this?

@srinify Unfortunately  I'm not sure how to replicate it. I'm just suspecting URL_IS_TOO_LONG_TO_SHARE conversion. We were using 1.3.2 for long time and didn't encountered this. I'm pretty sure it happened after 1.4.0 upgrade.

@iercan you appear to be running into a long standing problem in Superset which @michael-s-molina has been hard at work to solve once and for all. Here's the PR that should fix this problem for good: #18181. Not sure what's causing the URL to overflow in 1.4 compared to 1.3, but can you check how big the chart metadata blob is?

We also noticed the same issue. I noticed, it happened on all large size dashboard, and our large dashboard are with tabs. Small dashboard without tabs seemed to be okay.

can you check how big the chart metadata blob is?

@villebro  Sorry I don't know how to get this information, can you explain it?

@iercan you can do the following:

Go to the "Charts" page and hover over the chart in question. You'll see a link similar to this: http://localhost:9000/superset/explore/?form_data=%7B%22slice_id%22%3A%20747%7D. For this chart the chart id is 747
Go to the following url, replacing 747 with the chart id: http://localhost:9000/chart/edit/747
Here you'll see the "Parameters" secion which contains the chart metadata

One question: does the error only come up when you go from the Dashboard page and click on "View chart in Explore", or does it also happen when going to Explore from the "Charts" page?

It happens only from dashboard page. Charts menu works fine. If I click it from charts menu I don't see URL_IS_TOO_LONG_TO_SHARE keyword in the url which kinda validate my suspects right?
I saved metadata to a file and it seems 77 line and about 3kB.

My initial hunch is that these cherries would be needed: #16621 and #17123. But it appears they're already included in 1.4.0. So maybe there's yet another cherry that's needed. @iercan and @fritzb can one of you copy the link from the "View chart in Explore" menu item and post it here so we can see what additional metadata the URL contains?

This is the url before I click. (I decoded them for easy read)
https://superset.mydomain.com/superset/explore/?URL_IS_TOO_LONG_TO_SHARE&form_data={"datasource":"129__table","viz_type":"echarts_area"}
and this is converted url after I click
https://superset.mydomain.com/superset/explore/?form_data={"viz_type":"echarts_area","datasource":"129__table","time_range_endpoints":["inclusive","exclusive"],"granularity_sqla":"__time","time_grain_sqla":"P1D","time_range":"No filter","groupby":[],"adhoc_filters":[],"order_desc":true,"row_limit":10000,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"x_axis_title_margin":15,"y_axis_title_margin":15,"y_axis_title_position":"Left","color_scheme":"supersetColors","seriesType":"line","opacity":0.2,"only_total":true,"markerSize":6,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","rich_tooltip":true,"tooltipTimeFormat":"smart_date","y_axis_format":"SMART_NUMBER","truncateYAxis":true,"y_axis_bounds":[null,null],"extra_form_data":{}}

I tried to repro on 1.4.0, but I don't have any massive enough dashboards that would cause this. Out of curiosity, do you have a lot of different labels on the problematic dashboard? That's the main thing I can think of that might bloat the URL..

Dashboard I get this error is not so big actually. Here is some characteristics of it if helps.

There is 9 native filters. 2 of them is nested. And 2 of them have another scopes.
There is 3 tab in the dashboard.  First one have 10 charts, second one have 5 charts and last one have just 1 charts.
There is 2 different dataset. Charts that have this problem shares same dataset. I also checked another dashboard that use same dataset and saw they don't have this problem.
There is some predefined filter in the charts. I also tried to remove them but result didn't change.

I also forgot to send a working url sample of a chart If I open it from Charts menu.
https://superset.mydomain.com/superset/explore/?form_data={"viz_type":"echarts_area","datasource":"129__table","slice_id":1151,"time_range_endpoints":["inclusive","exclusive"],"granularity_sqla":"__time","time_grain_sqla":"PT5M","time_range":"Last+day","metrics":["total_user"],"groupby":[],"adhoc_filters":[{"clause":"WHERE","comparator":"0","expressionType":"SIMPLE","filterOptionName":"filter_2hk7pthcti9_4t133u8ju3w","isExtra":false,"isNew":false,"operator":"!=","operatorId":"NOT_EQUALS","sqlExpression":null,"subject":"integer_userId"},{"clause":"WHERE","comparator":"0","expressionType":"SIMPLE","filterOptionName":"filter_svpaf2824g_6azb3l7o3de","isExtra":false,"isNew":false,"operator":">","operatorId":"GREATER_THAN","sqlExpression":null,"subject":"integer_pageView"}],"limit":null,"timeseries_limit_metric":[],"order_desc":true,"row_limit":null,"rolling_type":null,"time_compare":["1+day+ago","1+week+ago"],"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"x_axis_title_margin":15,"y_axis_title_margin":15,"y_axis_title_position":"Left","color_scheme":"googleCategory10c","seriesType":"line","opacity":0.2,"only_total":true,"markerSize":6,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","rich_tooltip":true,"tooltipTimeFormat":"smart_date","y_axis_format":"SMART_NUMBER","truncateYAxis":true,"y_axis_bounds":[null,null],"extra_form_data":{}}

@iercan and @fritzb are either of you able to help trying to debug this issue using a slightly modified build of 1.4? I can open a branch with a small code change that will print out some info that should show what's causing this problem.

@villebro We are using official docker image to deploy and we also have another deployment for debug purpose. I can test easily if you can provide me a docker image.

Ok I'll see if I can make one

Problem still exists on 1.4.1

FYI: This issue is solved in the forthcoming 1.5.0 release.

I've tested 1.5.0rc3. It seems resolved. Thanks.


Docs / Static site domain

We need to get some kind of domain or static hosting for this project. With the intention that it may be grouped in as a dependency that the Radix Vue org helps maintain, are there any considerations we need to make there? Are all of Radix Vue's domains currently registered, hosted etc with a particular provider? Does it help if Vaul Vue does the same?

Discussion was started in this issue here

https://vaul.unovue.com/ 😁


Layer depth not always rendering player sprite correctly

Scene.cs now uses sortMode: SpriteSortMode.BackToFront when drawing the system entities but the layer depth of the rendered sprites is not always correct or consistent. For example, the player sprite is drawn below the blacksmith even though the player is lower and the layer depths are equal.

Replaced the SpriteSortMode with a custom sort based on the layer depth (Y co-ordinate) with an optional layer depth offset.


[BUG] Comment delete failure

Describe the bug
While trying to delete multiple comments comment_cashout error appeared on deleting about 5th comment.
To Reproduce
Steps to reproduce the behavior:

Go to post comments with a number of your comments
Click on delete for each
Delete fails after a few deletions

Expected behavior
There should be a user friendly way to representing the rejection.
Screenshots or Video

Smartphone (please complete the following information):

Device: iPhone 11
OS: 15.0
Version: 3.0.26

@noumantahir that usually means cashed out comment and posts are not possible to delete. Only when comment/post has negative net_rshares and no replies and before payout/cashout, any of them false won’t allow delete. We need to add that logic and show button only if condition is satisfied for better UX, we have it on vision.


SQLAlchemy Scoped Session - ValueError: generator already executing

Hello,
In part of our code we use scoped sessions from SQLAlchemy. Frequently we run into the error ValueError: generator already executing (see screenshot). The only workaround we've found at the moment is to set auto_enabling_integrations=False in the sentry.init function.
Let me know if any additional information is needed. Thanks!
Environment
How do you use Sentry?
on-premise v21.5.1
Which SDK and version?
Python v3.8, Sentry SDK 1.1.0
Steps to Reproduce
Creating a scoped session
scoped_session = db.create_scoped_session()

This bug seems to be triggered by this bit of code:
    def get_files_from_blob(self, files, text=False):
        """get files content in thread pool in bytes or text format"""
        start = time.time()
        pool = ThreadPool(4)
        results = pool.map(partial(self._get_file, text=text), files)

        # close the pool and wait for the work to finish
        pool.close()
        pool.join()
        logger.debug("DEBUG time to get in pool: %d", time.time() - start)
        return results

    def _get_file(self, file, text):
        """..."""
        blob_file = BlobFile(file.filename)
        if text:
            data = blob_file.read_from_blob_to_text().replace("\r", "")
        else:
            data = blob_file.read_from_blob_to_bytes()
        return file, data

Expected Result
There should be no errors thrown by the sentry-sdk
Actual Result
Traceback (most recent call last):
  File "/src/helpers/processing.py", line 165, in instrumented_upload_processing
    processed_data = processor.run_processing()
  File "/src/helpers/processing.py", line 670, in run_processing
    outputs += self.load_hmd()
  File "/src/helpers/processing.py", line 785, in load_hmd
    data = self.get_files_from_blob(self.hmd_files, text=True)
  File "/src/helpers/processing.py", line 556, in get_files_from_blob
    results = pool.map(partial(self._get_file, text=text), files)
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 364, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/src/helpers/processing.py", line 566, in _get_file
    blob_file = BlobFile(file.filename)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 294, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 725, in get
    value = state._load_expired(state, passive)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/state.py", line 652, in _load_expired
    self.manager.deferred_scalar_loader(self, toload)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 1006, in load_scalar_attributes
    result = load_on_ident(
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 200, in load_on_ident
    return load_on_pk_identity(
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 286, in load_on_pk_identity
    return q.one()
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3490, in one
    ret = self.one_or_none()
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none
    ret = list(self)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement
    ret = self._execute_context(
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context
    self._handle_dbapi_exception(
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1514, in _handle_dbapi_exception
    util.raise_(exc_info[1], with_traceback=exc_info[2])
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1281, in _execute_context
    self.dispatch.after_cursor_execute(
  File "/usr/local/lib/python3.8/site-packages/sqlalchemy/event/attr.py", line 322, in __call__
    fn(*args, **kw)
  File "/usr/local/lib/python3.8/site-packages/sentry_sdk/integrations/sqlalchemy.py", line 77, in _after_cursor_execute
    ctx_mgr.__exit__(None, None, None)
  File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
ValueError: generator already executing

Dependencies
[packages]
Fiona = ">=1"
Flask = "==1.1.1"
Flask-Migrate = "~=2.7.0"
Flask-Executor = "==0.9.1"
Flask-Script = ">=2"
GeoAlchemy2 = "==0.6.3"
Jinja2 = "==2.10.3"
Werkzeug = "==0.16.0"
alembic = "==1.2.1"
azure-mgmt-managementpartner = "==0.1.1"
flask-restplus = "==0.12.1"
geopandas = "==0.4.0"
kubernetes = "==12.0.1"
ray = ">=1"
requests = "==2.25.0"
sendgrid = ">=6"
treelib = "==1.5.5"
gunicorn = ">=20"
numpy = "==1.19.1"
psycopg2 = "==2.8.2"
azure-storage-blob = "==2.1.0"
xlrd = "==1.2.0"
pandas = "==0.25.3"
pytruth = "*"
shapely = "*"
newrelic = "*"
opencensus-ext-azure = "*"
sentry-sdk = {extras = ["flask"], version = "*"}
python-dotenv = "*"
flask-sqlalchemy = "==2.4.4"
sqlalchemy = "==1.3.24"

Any update on this?

Hello @bobbydams and @sp1rs !
Could you please verify if this problem still exists with the newest Python SDK and can you give us a minimal example project where we could reproduce this?
Thanks a lot!

@antonpirker auto_enabling_integrations=False worked for me. I will try the latest version of sentry and let you know.

Faced exactly the same problem. As a result of the research, the case turned out to be in the contest manager based on the generator. The generator in python is not thread safe. As a result, this error appears. As a solution, I propose to replace the context manager with a based context manager class. Checked on my project, everything works fine


optimize hunter_config + GIT_SUBMODULE

As noted in #414 ...

on change the config-id will be affected, hence every small change of package create new root directory
(2) can be optimized with cellar system feature: #153

This is most time consuming for Android platforms, due to unpacking the SDK.

Duplicate of https://github.com/elucideye/drishti/issues/153


Feature request: Option to setLogger for metrics as it is done with tracer

Use case
Currently, tracer.provider.setLogger(logger) allows the customization of the logger. However, in the Metrics class there is not an option to do the same.
Solution/User Experience
Instead of only using this.setConsole() here as a private method, it is possible to update the MetricsOptions and receive a logger there.
Alternative solutions
- Update `MetricsOptions` to receive a custom logger
- Expose `setConsole` method as public and receive a param `logger: Logger` of the same type of `tracer.provider.setLogger`.

Acknowledgment

[X] This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
[X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET

Future readers
Please react with 👍 and your use case to help us understand customer demand.

Hi, thank you for opening this issue.
We already have an issue to track this at #2126, and a PR open to implement this at #3057.

Thank you so much for replying. I guess I used the wrong terms when I was looking for an existing topic about the same issue 🙂.

No worries, it's not easy to keep track of existing issues and the title of that one wasn't super clear.
I'm going to close this in favor of #2126, which should also be closed soon.


System.Net.Http load errors during installation

Hello, Thank you all of you have done so far.
I was just curious in the future will there be Linux / Steam Deck support?
I have a reading disability and this extension made it so I was able to play FF14. Thank you for all you do!

I'm not sure why this doesn't work on Linux to begin with, I've heard of people using it on Linux in the past. This might be a regression that wasn't immediately reported.

Aye, Thank you for your help. Here is some pictures if it helps any one.

If you could upload the dalamud log that could help! I also have a steam deck so maybe I'll install the same on there some time and see what's up.

I have the same issue I'm going to attach my full log here relevant info should be toward the bottom.
dalamud.log

I have the same issue I'm going to attach my full log here relevant info should be toward the bottom. dalamud.log

I did not know how to get the dalamud.log. Hope It helps.

Looks like the same error I've seen on Discord - still trying to make sense of it, and I unfortunately do not have a Steam Deck to test on. I've heard that regular Linux support still works, so this seems to be Deck-specific.
The error is basically saying that a system library (which has to be installed on everything that can run Dalamud) is missing, which is very strange.

Cannot get it to work on desktop Linux either - running CachyOS, which is Arch-based.  Hope it can be fixed, would be nice to notice conversations while I'm running around.

yea im getting this same problem im an arch user Garuda  OS

Are there any other plugins people with this issue have that fail with the same error? This kind of error signals that there's something unexpected about the system itself - I can't even replicate this on my Mac install, so it can't just be a Wine thing.

same issue on Nobara linux, here is my log if it helps
dalamud.log

getting the issue on popos 22.04 using the kde plasma desktop enviroment

Has anyone found a solution to this problem.  I have just installed the launcher for the first time but can't seem to install the texttotalk plugin, keeps failing to install - the same error as shown above.
dalamud.log


Bug with inserting tags with new audio events based on case sensitivity

This line: https://github.com/QutBioacoustics/baw-server/blob/develop/app/models/audio_event.rb#L315
Is causing problems. A case-insensitive query needs to be done.
And:
https://github.com/QutBioacoustics/baw-server/blob/develop/app/models/audio_event.rb#L321
also needs to be changed to case-insensitive compare.
Additional issue:
The error that occurs when it saves, it seems to be trying to insert information from audio_events table into the audio_events_tags table
Related to this line: https://github.com/QutBioacoustics/baw-server/blob/develop/app/controllers/audio_events_controller.rb#L82

Case issue is closed. Other issue is here #174


Not tested with Ruby 3.1

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description

The following PRs could not be resolved by me and need to be resolved by someone else.

https://github.com/fastlane/fastlane/pull/20746

Maybe I can check this when I have time 👀


Some questions

Hey there!
Thanks for this package, it makes creating desktop apps so simple!
I have some questions, hope you're ok with me not opening a bunch of issues :D

Do you have a roadmap? If so, can you share it?
Is there a way to work with menus?
Is it possible to create an app which is just a client? electrify seems to bundle a Meteor server as well

Thanks again, great work!

Hi there!
Lets answer your questions:

Not yet, however I'm in the middle of a refactoring to make the code more maintainable and testable -- testing things manually in a cross-platform way is awful. After this, I'll move on and put up a Roadmap, but I can tell that I'm looking forward to:

Provide a simple plugin architecture for easy expansion of functionalities
Provide options to build server+client or just the client (connecting to a remote host)
Provide integration between Meteor's server and Electron API through plugins this one will require further research

Not currently.  But there's no current channel of communication between Meteor's server and Electron API. Probably you'd want to manually build a socket channel between Electron x Meteor, as I've suggested this approach here #9 as well

Yes but you'll have to dig a little and figure out the way -- however as I said I imagine it will be possible through plugins, but it will require further analysis, i.e. define which one (server or client) will have acess to Electron, or both. There's some things that need a closer look before anything else.

hello! Firstly, super cool project. Keep the momentum :+1:
It would be very helpful to have a sample project/guide on setting up connection between server and electron build

Hi @greatramu, thanks and sorry for the huge delay.
Just to let you know, I'm working with the plugins API and I see this as another plugin in the stack (as mongo, nodejs etc). Without a proper API it would require lots of hacking to get it to work effectively.
However, as I've said, besides the plugins api this question itself requires further research because there's various scenarios of how and where this communication should be established.
I myself will have to dig a little into this topic, anyway it should be out sooner than later.
Stay tuned.

Implemented in 2.0.0.
Check the project README for more info:
https://github.com/arboleya/electrify#meteor-x-electron-integration


Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table.

I consistently cannot get this to work on a one of my large partitioned tables. I created the target schema (partition function and scheme) by scripting the source, so its identical.
However, when running the copy, I get the following error:
Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (2016-11-06, 8406347, 20), primary key of second row: (2016-11-02, 8406348, 1)
Everything looks good from the INFO logs:
Source and destination tables have compatible partitioning logic. Parallel load available
Partition By: Date
Order By: TransactionId,CategoryId
Source and destination clustered rowstore index have same ordering. Enabling ORDER hint.
Parallel load will use 18 physical partition(s)
Analysis result: usePartioning=True, partitionType=Physical, orderHintType=ClusteredIndex
Any ideas ?

Ok, so the issue seems to be caused by this:
public string GetOrderBy()
{
return SourceTableInfo.PrimaryIndex.GetOrderBy(excludePartitionColumn:true);
}
This means the ORDER BY generated in the SELECT statement excludes the partitioning key, but the ORDER BY added to the BulkCopy itself includes the  partitioning key. When I change excludePartitionColumn to false, it works fine.

Good catch, thanks! Not sure I understand what are the conditions that make this issue happen. You have the table on source and the destination created with the same partitioning function and scheme. Both have an Clustered Index.
Adding the Partition column to the order by is needed to make sure sorting does not happen on the destination.
Are you able to create a repro so that I can take a look at it?
Thanks!

This script should highlight the issue: By excluding the partition column, the sort order of the data will be different on select and in bulk copy object.
CREATE PARTITION FUNCTION pfTest AS RANGE LEFT FOR VALUES (N'2018-12-31T00:00:00.000', N'2019-12-31T00:00:00.000')
GO
CREATE PARTITION SCHEME [psTest] AS PARTITION [pfTest] TO ([PRIMARY], [PRIMARY], [PRIMARY])
GO
CREATE TABLE PartitionTest (
PartitionDate date not null,
TransactionId int not null,
CategoryId int not null
CONSTRAINT [PK_PartitionTest] PRIMARY KEY CLUSTERED
(
PartitionDate ASC,
TransactionId ASC,
CategoryId ASC
) ON psTest
)
GO
INSERT INTO PartitionTest (PartitionDate, TransactionId, CategoryId)
VALUES
('2018-01-01', 2, 1),
('2018-01-02', 1, 1)

Thanks, will take a look ASAP

Thanks, I was able to repro the problem and fixed it. Added also unit tests and CI/CD pipeline to make sure not to introduce regression bugs.
Fixed here: b85f6b820c912d9160277f6270e2b938e35d127c


fix(kafka_topic): send false values

About this change—what it does

Doesn't submit kafka topic config default values
Fix sending false values in kafka topic config

tests
also, please review carefully and have tested locally

Lint and Flink acceptance tests run failed in the CI

Lint and Flink acceptance tests run failed in the CI

Fixed by removing the linter.


Assumptions behind expectation of '/admin' routes

I am trying to figure out if we may want to add this to our app and it struck me as odd when I saw the expectation that your api has /admin routes.
This seems to imply a lot about the API you are interacting with, specifically that it should have multiple routes which interact with a single resource (ie a /model resource and a /admin/model resource which perform crud on the same underlying resource). I have always heard people refer to this as an anti pattern and unRESTful.
So is there some advantage to structuring things this way which I am missing?

You can customize this https://github.com/dockyard/ember-admin#namespace

Thanks for the quick response!
I might be interpreting this wrong but it seems like regardless of if it is 'admin' or some other arbitrary string there has to be some separate route {{nameSpace}}/{{modelName}}'. Is there a way just have it hit the normal route /{{model}}.
Does namespace possibly take a null value or something like that?

Yes, you can just set the namespace to undefined

Thanks!

@bcardarella just for reference undefined would blow up for me but null.
Anyway, this is a lot of functionality for very minimal effort. Thanks for the hard work!


Test for the Quantum Initializer extension is needed

The code in qiskit/extensions/quantum_initializer/ is not been tested by the test suite.

ups.. sorry. I think the test is test.python.test_initializer.


CI for Node

Contains the compiled JavaScriptInitializes with two players
Starts the game with a random player
Sets the current player to be whoever it is not hasWinner


URLEncoding differs from Alamofire's URLEncoding

Sending the same request using bare alamofire & Moya/RxSwift yields to different parameters encoding
First Here's how i'm sending the request using Moya/RxSwift
 provider.rx.request(.login(username: "email@example.com",password: "123456",languagID: "8"))
            .subscribe { event in
                switch event {
                case let .success(response):
                    print(response)
                case let .error(error):
                    print(error)
                }

With API Target Type being
  public var path: String {
        switch  self  {
        case .login(let username,let  password, let languagID):
            return "login"
        }
    }
    public var task: Task {
        switch self {
        case let .login(username: username  , password: password  , languagID: languageId):
            return .requestParameters(parameters: [
                "username" : username,
                "password" : password,
                "language_id" : languageId
                ], encoding: URLEncoding.default)
        }
    }

Using Charles to debug the network calls i get this parameter encoding

Now Using this code snippet to send the request with bare alamofire
   Alamofire.request(URL(string : "url")!, method: .post, parameters: [
            "email"<EMAIL_ADDRESS>            "password" : "123456",
            "language_id" : "8"
            ], encoding: URLEncoding.default, headers: nil).responseJSON { (dataResponse ) in

        }

This will  yield to this parameter encoding which is the one i want

How do i get this encoding using moya ?

So the problem was that i was sending ["Content-Type": "application/json"] in the headers, why would that affect the body ?

Hey @wassimseif. This is a good question.
First of all, our URLEncoding is just a typealias on Alamofire's URLEncoding. Thus, these are the same in terms of encoding the parameters.
What you see on Charles is actually interpreted by Content-Type header. The data you send is in fact the same, but the way we/server interpret it depends on Content-Type itself.
Now to the encoding part: because you have your own Content-Type already in the header fields when we encode the request, Alamofire's URLEncoding won't add the Content-Type they usually do for this type of encoding, which is application/x-www-form-urlencoded (more on this matter here). This results in your data being formatted for URLEncoding where your Content-Type says that you encoded it for JSON = your endpoint can't resolve it correctly.
Please let me know if it is clear for you or you have any more questions around this topic. Cheers!


Feature Request: Twister testing

Add the ability to run Twister commands from the UI.
Twister is Zephyr's testing framework and can be invoked using the west twister command.
Testing can be performed in simulation using QEMU or native_sim by defining the platform (in this case QEMU) and runing all test cases in the current directory:
west twister -p qemu_x86 -T .

Hardware in the loop testing can also be performed:
west twister --device-testing --device-serial COM1 --device-serial-baud 115200 -p disco_l475_iot1 -T .

In this case both platform, serial port and baud rate need be specified.
You can specify individual test cases with the -s command, but that would require parsing the testcase.yaml or sample.yaml file in the project directory to list them, or providing a text box to enter manually.
Build files and test results are placed in the twister_out directory. Subsequent tests rename the previous directory to twister_out.1 etc. A button to clean up all twister_out* directories would be appreciated.

Can you make a mockup of what the GUI should look like?
Should the elements be in a side panel and saved persistently in zephyr-ide.json or just run once with quickpicks from a command?

I'd say the board and command-line arguments should be persistent.
If you want to be fancy, look for a -T in the command-line, and if not present, affix -T . to run all tests in the application directory.

Build files and test results are placed in the twister_out directory. Subsequent tests rename the previous directory to twister_out.1 etc. A button to clean up all twister_out* directories would be appreciated.

my mistake. It's twister-out with a hyphen, not an underscore.


Mod settings menu not available in game

I've installed the Community Quick User Interface mod for Civilization VI from here https://github.com/Azurency/CQUI_Community-Edition
In the feature list I read:
Dedicated mod settings menu
With this screenshot: Github: https://user-images.githubusercontent.com/8012430/31861832-13bb16d2-b734-11e7-9524-b7292881f7af.png
But that menu is not in the game, I've looked at about every place, both in the main menu, and after starting a game.

Click the middle icon over the map frame, the one that looks like a pipe.

Thanks man! That was really hard to find. I had read the complete readme file, was googling a lot, and even looked at several XML and LUA files.

It took me a while to find that too back when I first got this mod.
Sent from my iPhone

On Aug 14, 2018, at 3:07 PM, Sharky444<EMAIL_ADDRESS>wrote:
Thanks man! That was really hard to find. I had read the complete readme file, was googling a lot, and even looked at several XML and LUA files.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Document procedure for renewing certificates

Is your feature request related to a problem?
The operator currently generates self-signed certificates with 1 year validity. There's no automated cert renewal process.
Please document how to perform a manual renewal of certificates, as this is an extremely critical operational task
What solution would you like?
A tested and well-documented process for renewing certificates
What alternatives have you considered?
Do you have any additional context?

In addition to self-signed, I think the process for renewing certificates needs documented in general. I would expect updating the certificate secret to cause a rolling restart but it does not which means manual intervention is needed annually to replace certificates (unless this was fixed in operator 2.5 as we have not tested that yet for this use case).

[Triage]
The documentation PR about warning regarding cert expiration is added via the PR https://github.com/opensearch-project/opensearch-k8s-operator/pull/725. Closing this please re-open if required.
Thanks
@trondhindenes @mrvdcsg


Switch MatplotlibAggRenderer to a faster pixel format

10% FPS improvement I estimate.
RendererAgg.tostring_rgb() calls ndarray.take() to shuffle the bytes, slowing things down.
buffer_rgba() doesn't perform shuffling.
https://matplotlib.org/3.1.0/api/backend_agg_api.html#matplotlib.backends.backend_agg.FigureCanvasAgg.buffer_rgba
https://matplotlib.org/3.0.0/api/backend_agg_api.html#matplotlib.backends.backend_agg.FigureCanvasAgg.buffer_rgba
worth bumping matplotlib minimum to 3.1?

Codecov Report

Merging #335 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #335   +/-   ##
=======================================
  Coverage   77.64%   77.64%
=======================================
  Files          25       25
  Lines        3663     3663
=======================================
  Hits         2844     2844
  Misses        819      819

Impacted Files
Coverage Δ

corrscope/renderer.py
85.75% <100.00%> (ø)

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 53f7cec...29732b0.


Updates for 1.6 release

Adds release notes and getting help section.

Coverage remained the same at 38.99% when pulling 171b8f82251627c30d608d73f6f0866a1c112f13 on fredlf:1-6-docs-update into caa5fd0351917ff59b01da70236ea083679023f2 on docker:master.

Thanks @fredlf - could you please sign your commit?

Coverage remained the same at 39.36% when pulling 71f4e13493e99b220d8faca551bdbf5babe1ce95 on fredlf:1-6-docs-update into 19641eb431b23faaad85f3f3e7ad33b454340113 on docker:master.

Okay, @aluzzardi , my git-fu is very weak, but I think it's right now.

Great - LGTM.
Should we merge this now or wait?

Unless something has changed in how we publish docs I don't know about, it should be fine to merge this now. The usual workflow is to cherry pick commits from master to docs whenever we publish or there is a release.

And are the docs sourced from swarm@master or a specific tag?

AFAIK, just from master.


inconsistent datatypes return on code api execId and pipelineId

HKube micro-service
worker
Describe the bug
when using the code API and executing a new algorithm it receives execId which is type string
and when executing sub pipeline it receives pipelineId which is number.
it should be consistent

@eytangro Where you can see that sub-pipeline id is a number?


begin testing on Ruby 2.2

I believe the merge prior to this one broke support for non-Chef 12 tests.
I tried finding if there was a pattern in place to determine how a test suite or feature should be skipped for a particular running version of Chef, but I couldn't.

Fixed in #584. Thanks!


Graduate experimental pkg_rpm to mainline

The pkg_filegroup framework has evolved considerably since its creation, and
the rpm packaging rule that uses it (in pkg/experimental/rpm.bzl) has as
well.  We believe it is time to move it out of experimental and into general
use.
This change moves pkg/experimental/rpm.bzl to pkg/rpm_pfg.bzl for direct
access, and the compatibility macro in pkg/rpm.bzl is also modified to use it.
All tests have been updated and moved to subdirectories of pkg/tests/rpm.
pkg/legacy/rpm.bzl was also updated to indicate its deprecated status.  Distro
packaging and CI configuration were updated as well.
@rules_pkg has been opportunistically removed from some loads in test BUILD
files, and some pathing was also fixed for compatibility with windows.  There may
few other places where both of these would need to be cleaned up, and were not
investigated.
Resolves #307.

I guess this needs the rebase first.

Done.  Will submit after testing is complete.

Thanks for taking a look at this!


IBC Channels Search

tracking: #10, #6
Summary
Add support for searching IBC Channels running on Penumbra to cuiloa's search functionality.
Description
Should return both the channel page itself as well as list of recent transactions relevant to that channel.
Search results page should show:

[x] What type of search it is (IBC Channel, in this case)
[x] What kind of result was returned (IBC Channel ID, linking to its page)
[x] Content showing how the query relates to it. for IBC Channels, this will be associated Clients and transactions and should include:

[x] IBC Client ID (linked)
[x] Transaction Hashs (and appropriately linked)

Closed out by #67


Check-ex-spec exposes solution predicates

Check-ex-spec downloads compiled versions of the wheats and chaffs so that students are unable to read the solution code. However, if a forge/core file imports a wheat (in #lang forge/core), it can print the predicate, thus exposing the solution code. There needs to be some way of hiding the contents of a predicate from this kind of interaction (ideally so that we can make it only usable via check-ex-spec).
Example exploit:

Create and run file with contents:

#lang forge/check-ex-spec "forge2/undirected_tree"

In same directory, create and run file with contents:

#lang forge/core

(require "wheat_undirected_tree.rkt")

isUndirectedTree

Is check-ex-spec really the only thing that needs to use the predicate?
If so, then wheat_undirected_tree.rkt could provide an opaque struct instead of a predicate. And check-ex-spec could unwrap the struct.
Students would be able to unwrap the struct too, though, if they dig through the Forge code. So maybe it's not worth worrying about this.
Another idea is to delete the download files after every run ... but that's not perfect either.

Is check-ex-spec really the only thing that needs to use the predicate?
If so, then wheat_undirected_tree.rkt could provide an opaque struct instead of a predicate. And check-ex-spec could unwrap the struct.
Students would be able to unwrap the struct too, though, if they dig through the Forge code. So maybe it's not worth worrying about this.
Another idea is to delete the download files after every run ... but that's not perfect either.

Check-ex-spec is the only thing that should be requiring any of those downloaded files, yes.
We aren't going to try to defend against overly malicious students; if they try to go into the depths of Forge to find a way to expose the solution, we will have very strong evidence of attempting to cheat. We just want basic level of security.
We want to keep a local version so that they can work offline.

Check-ex-spec is the only thing that should be requiring any of those downloaded files, yes.
We aren't going to try to defend against overly malicious students; if they try to go into the depths of Forge to find a way to expose the solution, we will have very strong evidence of attempting to cheat. We just want basic level of security.
We want to keep a local version so that they can work offline.

Discussed with Tim & Thomas today.
Students aren't using forge/core (yet) and aren't requiring forge models, so this is lower priority.


question about a possible update of the mod to version 1.14.4

@TridentMC I wanted to know if this mod will migrate to version 1.14.4?
Since the creator of the original mod retired, he wanted to know if you who updated it to version 1.12.2 could do the same for version 1.14.4

1.14.4 is not being targeted. Development is currently being focused on making the mod work with 1.15+. Backporting the mod will almost certainly not happen. Sorry.


FIRST/ LAST return "interface is nil, not engine.FirstOrLastAggregatorState"

I've a query which looks like this:
SELECT FIRST(a), FIRST(b) FROM my_series WHERE time > now() - 7d GROUP BY c, d, time(24h) fill(0);

In influxdb 0.7.3 this worked just fine, 0.8.0 returns
Internal Error: interface conversion: interface is nil, not engine.FirstOrLastAggregatorState

I'm not quite sure why this stopped working - according to the 0.8 docs the functions should work the same still.
Removing FIRST makes the query execute again, but it returns different results.

this error persist as of today for
select FIRST(PRICE), MIN(PRICE), MAX(PRICE), LAST(PRICE) from "SPX-INDEX-TRADED" group BY time(1h) fill(0) where time > '2015-07-01 00:00:00' AND time < '2015-07-08 23:59:59'
at http://calvinklein-fluxcapacitor-1.c.influxdb.com:8083

@pablo-tech that server is running version 0.8.2, for which there is no longer ongoing support. As I recommended, try putting the fill(0) at the end of the query, but otherwise the solution is to upgrade to 0.9.


Pharo VM is old

Issue description
(This issue is intended to be self-assigned i.e. something that I will do when unblocked by dependencies.)
The stable Pharo VM in NixOS is an old version that is not compatible with the latest Pharo release (5.0). We should upgrade to a newer VM. The problem is that no newer official release is available yet: the Pharo community all seem to be running unofficial releases directly from CI.
One potential workaround would be to build a more recent version directly from Git but this is complicated. The version available in Git requires more bootstrapping than the official releases. In particular it requires you to already have another version of Pharo available for bootstrapping (and, circularly, the Pharo community usually use the latest version from CI for the build.) To reproduce this bootstrapping step in Nix seems both complex and also error prone if we would use an older Pharo to bootstrap from.
The best solution seems to be for upstream to make a new stable release. I am hoping that this will happen soon and when it does I will update nixpkgs. See mailing list thread for status.

Slow progress.
Pharo upstream are telling me that they don't have the time to make a new source release of the VM. I suspect that everybody else is running binaries produced by their Jenkins CI (probably on Ubuntu.)
Have to think about a new approach, possibly to replicate whatever their Jenkins CI is doing both in terms of build steps and also deciding which commits from their master branch are shippable.
Have to also think about whether that is an adequate solution. The reason I want to use Pharo via NixOS in the first place is that I have had a lot of problems with using the binaries provided by upstream. I want the nixpkgs version to be stable and dependable and this may require taking a different approach to upstream if they are just shipping their nightly builds all the time.

Have to think about a new approach, possibly to replicate whatever their Jenkins CI is doing both in terms of build steps and also deciding which commits from their master branch are shippable.

Maybe just implement our own nightly-beta-stable loop on top of their
nightly picks, with promotion being based of complaints not being
applicable to the good candidate?

I nagged a little bit more (sigh, I don't like being that guy) and it sounds like they are going to make a new VM release but don't have the time at the moment due to an upcoming image release and conference (mailing list post).
I am tempted to wait for a while and see what happens upstream. Browsing the archive it looks like they usually make a VM release every few months and it's an exceptional situation now.
In the background I need to do a little more digging to understand the VM development work that is ongoing, specifically the status of transitioning to the new Cog VM and from 32-bit to 64-bit mode. I have the impression there is a lot going on in that space at the moment. It would be nice to shield nixpkgs users from having to worry about this if possible.

It looks like Pharo has replaced the pharo VM (or at least the GitHub repo?) with https://github.com/opensmalltalk/opensmalltalk-vm.
According to its README.md of the latter, the opensmalltalk/opensmalltalk-vm repo has C exports of the VMs' source code (which are being developed within such VMs in SmallTalk), so that the VMs can be built without needing the VMs first. (Thus solving the bootstrap problem you mentioned, I hope?)
Strangely, there seem to be two tags for the Pharo 7.0 VM:

pharo7.0.0 (currently pointing to OpenSmalltalk/opensmalltalk-vm@5a38b3483dc5c82c7ecc85a590fdf1b095377a1f)
Pharo7.0.0 (currently pointing to OpenSmalltalk/opensmalltalk-vm@234f27281b46dbddd03a70e70901c910a4754385)

Maybe you can find out which one of these (if any) is the "official" one and/or corresponds to the "PharoVM 7.0 for Linux" binary download available on https://pharo.org/download?

Thanks for working on this. Are there any further news?

Squeak is also using an old VM and should be updated to use OpenSmalltalk.


StripGradleApiTask.isGradleApi also matches AGP

I wanted to add all of compileOnly to classpathConfiguration to get rid of R8 warnings about missing classes. However that fails with:
Could not determine the dependencies of task ':plugin:gr8StripGradleApi'.
> Failed to query the value of task ':plugin:gr8StripGradleApi' property 'gradleApiJar$plugin_common'.
   > Collection contains more than one matching element.

When I printed all files in the configurationthe configuration I found this:
.../.gradle/caches/modules-2/files-2.1/dev.gradleplugins/gradle-api/8.0.2/81ef2cba43a0896316935ece786174490ea30758/gradle-api-8.0.2.jar
.../.gradle/caches/modules-2/files-2.1/com.android.tools.build/gradle-api/7.4.2/5f81693f719b0472898c69dafb42befbb18de887/gradle-api-7.4.2.jar

Not sure if this is possible to avoid just based on the path. Maybe it could be possible to have more than one classpathConfiguration and make it configurable which ones are stripped.

Maybe it could be possible to have more than one classpathConfiguration and make it configurable which ones are stripped.

Or instead of strip being a boolean it becomes a configuration name and both classpathConfiguration (not stripped) and strippedClasspathConfiguration (automatically stripped) are added to the gr8 task.

Thanks for reporting this! TBH the whole strip thing is a bit of a hack I added to quickly get rid of some R8 errors. But it may hide a bug in R8 or something else,  I'll try to investigate this a bit more.

Or instead of strip being a boolean it becomes a configuration name and both classpathConfiguration (not stripped) and strippedClasspathConfiguration (automatically stripped) are added to the gr8 task.

The StripGradleApi task has "org/gradle/internal/impldep/META-INF/" hardcoded so it doesn't apply to anything else.
As a first step, I'll tweak the filter to look into the jar file for files in org/gradle/internal/impldep/META-INF/, that will match 1:1 the task. And hopefully at some point we can get rid of the hack altogether.

Thanks for fixing this

Sure thing! Now I'm trying to dig into why this was an issue in the first place and can't find a reproducer anymore. Do you have anything at hand by any chance where stripGradleApi is required?

I've got a reproducer

Checkout this branch https://github.com/freeletics/mad/compare/gr8-strip-gradle
Run ./gradlew testR8Jar

Fails with the following until enabling stripGradleApi
> Task :deeplinks-plugin:testR8Jar FAILED
Error in /Users/gabrielittner/.gradle/caches/modules-2/files-2.1/dev.gradleplugins/gradle-api/8.0.2/81ef2cba43a0896316935ece786174490ea30758/gradle-api-8.0.2.jar:org/gradle/internal/impldep/META-INF/versions/9/org/bouncycastle/crypto/digests/MD5Digest.class:
com.gradleup.gr8.relocated.ot: Class content provided for type descriptor org.gradle.internal.impldep.META-INF.versions.9.org.bouncycastle.crypto.digests.MD5Digest actually defines class org.gradle.internal.impldep.org.bouncycastle.crypto.digests.MD5Digest

With #14 the test-plugin also reproduces it

Thanks! Took a deeper look and this is related to multi release jar files to support multiple versions of Java from the same jar. I'm not sure if R8 supports this but in all cases, files should be inside META-INF/version and not org/gradle/internal/impldep/META-INF/versions so I'm just going to assume this is a Gradle packaging issue and keep the workaround as is for now.


Problem after dismiss view controller

After opening a viewController using the .vertical (or any other) type, the viewController is presented normally, without problems. However, the problem occurs after dismissing the presented viewController.
The collectionView of the first viewController "loses its position", and the entire app is positioned slightly higher.
In addition the statusBar becomes transparent, and the collectionView starts to appear behind it.
1) In this moment, everything is fine

2) Now, the viewController controller is open

3) Now after dimiss, the top of collectionView is a little higher.

4) And, if a i scroll the collectionView, this happen.

I am presenting the viewController like this
           let detailViewController = ScrollFadeViewController()

            configurator.dragDownEnabled = true
            configurator.dragLateralEnabled = false

            let transition = CiaoTransition(style: .vertical, configurator: configurator)

            detailViewController.ciaoTransition = transition
            detailViewController.transitioningDelegate = transition
            detailViewController.modalPresentationCapturesStatusBarAppearance = false
            detailViewController.modalPresentationStyle = .fullScreen
            detailViewController.hidesBottomBarWhenPushed = true

            navigationController?.delegate = transition
            present(detailViewController, animated: true, completion: nil)

And im my initial viewController, i configurate the collectionView like this:
        feedCollectionView.delaysContentTouches = false
        feedCollectionView.dataSource = self
        feedCollectionView.delegate = self
        feedCollectionView.clipsToBounds = false
        feedCollectionView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
        feedCollectionView.contentInsetAdjustmentBehavior = .never

Thanks in advance for any help.

The same problem occurs if hide the status bar in presented viewController. If present a viewController, the hide status bar, and next dismiss, the same problem occurs.


Machine mac-5 went dead from Health_doctor check monitoring website.

Machine mac-5 went dead from Health_doctor check monitoring website.

Machine mac-5 is up and running fine, I can login remotely from my end.


small (but nonzero) resource usage from pointer events?

I noticed that keyd will have a small amount of cpu usage while I'm using my touchpad (~0.3% on my i7-1065G7). Indeed, running KEYD_DEBUG=2 keyd show several hundred lines of output like this per second:
DEBUG: src/device.c:407: Unrecognized EV_ABS code: 35
DEBUG: src/device.c:407: Unrecognized EV_ABS code: 36
DEBUG: src/device.c:454: unrecognized evdev event type: 4 5 253000
DEBUG: src/device.c:407: Unrecognized EV_ABS code: 35
DEBUG: src/device.c:407: Unrecognized EV_ABS code: 36
DEBUG: src/device.c:454: unrecognized evdev event type: 4 5 260100

This is even though I have restricted ids in /etc/key/default.conf to what should be only my keyboard.
It seems like the issue is that
https://github.com/rvaiya/keyd/blob/4a86057943ed594ca384d88047411979bac643d0/src/device.c#L323
doesn't prevent keyd from reading from the device because if I add
dev->fd = -1; at the top of the definition of device_ungrab()
https://github.com/rvaiya/keyd/blob/4a86057943ed594ca384d88047411979bac643d0/src/device.c#L318-L325
the issue goes away.
I assume that a better way of fixing this would be to remove unwanted devices from device_table.

This is by design. keyd passively monitors all input events, including those of ungrabbed devices in order to accommodate things like clearing oneshot modifiers on click. Trackpads in particular will produce a lot of extraneous ABS events which are mostly ignored (at the moment). This should only be observable when moving the mouse and should still constitute a tiny fraction of CPU usage. Is this causing a real world issue? What caused you to notice this?

I wanted to make sure that keyd wouldn't add any unnecessary battery drain so I checked htop and saw that keyd was using more cpu than I was used from interception-tools / caps2esc. 0.3% of one core is probably not a "real world issue" although I always that these things could add up, especially on older hardware.


Add Dr. Jet's Chop Shop from SpaceDock

This pull request was automatically generated by SpaceDock on behalf of Dr_Jet, to add Dr. Jet's Chop Shop to CKAN.
Mod details:
name = /mod/530/Dr.%20Jet%27s%20Chop%20Shop
author = Dr_Jet
description = ***************************
***		  Chute			***

Modular parachute system. Not as advanced as RealChute, but much easier to use.

***		Electrics		***

SPP - Smart Solar Panels with 2 axis rotation. 0.625m, 1.25m and 2.5m sizes. Ensures you have maximum possible solar power at ANY vehicle orientation or even during slow rotation.
LED - Small flat LED headlight for placement on rovers.

***		Propulsion		***

Impeller - Small electric impeller, imitating sound of real jet. Oxygen independant.
LTS - lander tank systems Mk1 is a system of core tank and jettisonable side tanks (inbuilt Asparagus fuelling) with ridges to mount langing legs; MK2 is bigger 2-stage lander tank system. Will not drag landing legs back to orbit as LTS Mk1 does.
SmallerEngines - configuration files for 0.625m aerospikes and jets.

***		  Rovers		***

RTG_Rover - contains a rover body, capable of hosting 4 stock RTGs as power source. Still old proof-of-concept model with crappy mesh and texture. Will be changed in next release.
RuggedRover - contains a fully reworked rover body, designed specially for TR2-L Ruggedized Wheels. Special safe trunks for any non-ruggedized side equipment included. Also contains a roof solar panel, fitting for this bigger-than-average rover.
MRR - contains manned version of RuggedRover without trunks but with fully functional IVA.

***	   Rovers/PimpMyRover	***

Since most previosly supported mods are obsolete or incompatible with 0.90 and newer versions, this subproject folder contains only (re)configuration files for stock rover part and one flat solar panel.
If you feel like wanting to do some necromancy - explore deprecated.zip

***		Science			***

DAS-1 - real worls CubeSat double-dipole antenna replica.
SoilSampler - Mechanical soil sample retriever. Still experimental beta.

***		Skycrane		***

Deployable Skycranes Mk1 and Mk2 for 1.25m mount / 2.5m payload and 2.5m mount / 5m payload respectively.

***	Structural/Adapters	***

Adapter for stock Aerospike engine, allowing it to be used in upper stages.
2.5m hubs: 4-way 2.5m, 3-way 2.5m, 6-way 1.25m.

***	Structural/Blisters	***

Aerodynamic blisters - both solid and decoupleable.

***	Structural/SPP	***

SpacePlane+ parts. Mainly various butts =^_^= and a couple of nosecones.

***	Structural/Weight	***

Tweakable lead counterweight to finely balance your asymmetrical probes. RCS Build Aid is strongly recommended for using it right.
abstract = Properly oriented rover bodies, deployable skycranes, dual-axis solar panels, SpacePlane+ (Mk2) parts, blisters, structural hubs and other useful parts.
license = GPLv3
Homepage = http://forum.kerbalspaceprogram.com/index.php?/topic/76248-105
Please direct questions about this pull request to Dr_Jet.

It's a ChopShop actually. Formerly hosted on KerbalStuff. Don't duplicate, please.

D'Oh! missed a step there. Glad it got caught. All looks fine, now.


Allow same key two occur multiple times in path

Solves #50
Apart from allowing the same in the path, this change raises and exception if the namespace set up for the component is not found in the path

This is very helpful, thank you Gustavo :)


Refactor grid module

Description
This refactors the grid module to convert 0to360 longitudes to -180to180 and vice versa. It compresses these functions into one convert_lon function that infers which lon it needs to go to.
This also registers convert_lon() as an accessor. Good opportunity for me to figure them out. I registered the accessor for esm_analysis as esm.
Type of change
Please delete options that are not relevant.

[X]  New feature (non-breaking change which adds functionality)
expected)

How Has This Been Tested?

Checklist (while developing)

[X]  I have added docstrings to all new functions.
[X]  I have commented my code, particularly in hard-to-understand areas
[X]  Tests added for pytest, if necessary.
[X]  I have updated the sphinx documentation, if necessary.

I know this is a lot of work for a silly function, but I'm slowly trying to document/test this better and add accessors so we can make it very useful for kitchen sink style functions for us and others.

@aaronspring , is the esm accessor name fine? Any ideas on package names before this gets too far? I liked esmtools but somebody had it registered on readthedocs. I don't love having an underscore but it's fine if need be.

unfortunate that esmtools is already taken. esm-tools or esm_tools is also fine I guess.
for the accessor: what about having at stats accessor for stats functions like rm_trend and grid for convert_lon. Then maybe it reads more logically in the code? (very subjecyive...)
Or do you just want one accessor for the whole package to be wrapped in?

@aaronspring

unfortunate that esmtools is already taken. esm-tools or esm_tools is also fine I guess.

I might try to find a way for readthedocs to remove that one. Since we have esmtools on PyPI.

for the accessor: what about having at stats accessor for stats functions like rm_trend and grid for convert_lon. Then maybe it reads more logically in the code? (very subjecyive...)

I'll have to think about this. On the one hand, having .esm wraps all of our functions into one accessor. .stats is more clear, but I don't want to end up with too many different accessor names to remember.

Okay @aaronspring , I located the contact of the person who has the dead esmtools project on readthedocs and emailed him. I also found this policy in case he doesn't answer: https://docs.readthedocs.io/en/stable/abandoned-projects.html

@aaronspring  I decided to use the .grid call for the accessor. This makes sense since the accessor call will always be identical to the module import call. Thanks!


Update to azurerm 4.7.0

Issue-id
PR Checklist

[x] I have added example(s) inside the [./examples/] folder
[x] I have added the example(s) to the integration test list for normal (~30 minutes) or long runner >30 minutes
[x] I have checked the coding conventions as per the wiki
[x] I have checked to ensure there aren't other open Pull Requests for the same update/change?

Description
Upgrade "hashicorp/azurerm"  version to "~> 4.7.0"
Does this introduce a breaking change

[x] YES
[ ] NO

Many resources have been modified, parameters in the code and examples have been modified.
Resources not supported by the vendor version have also been removed.
The code has been adjusted to the obsolete version so that it does not cause errors in the future.
Testing

@arnaudlh the failed test works fine locally, I don't know why it fails in the mock test :S

@arnaudlh, can someone help me with the test that I have wrong? I can't find a way to fix it :S

@arnaudlh , is anyone there?


Implements PortfolioBias in EWPCM and IWPCM

Description
Implements PortfolioBias in EWPCM and IWPCM. With this new feature, these PCMs will ignore insights that do not respect the desired bias. E.g. for PortfolioBias.Long, on Insights with InsightDirection.Up will be converted into PortfolioTarget.Quantity greater than zero and other InsightDirection will result in PortfolioTarget.Quantity of zero.
Related Issue
Closes #3769
Motivation and Context
Be able to create Portfolio Construction Models with Portfolio Bias.
Requires Documentation Change
Yes. Showcase this option.
How Has This Been Tested?
New regression algorithm and unit tests.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Looking forward here we also have issue #https://github.com/QuantConnect/Lean/issues/3986.
So we have 2-3 parameters; rebalance frequency, minimum order size, and now portfolio bias.
I don't think we should use pseudo "extension methods" like this as the pattern gets messy and unpredictable.
Perhaps we could consider a pattern of constructor args for all PCM's (like how all indicators are aligned)?

Other concepts to consider: Percent deviation from the equal weighting for PCM
https://www.quantconnect.com/forum/discussion/7182/semi-constant-rebalanced-portfolio-scrp/p1

absolute sum of current portfolio weights diverges from the absolute sum of given portfolio weights (at initialization) more than the pre-defined threshold e.g. 10%

MinimumOrderSize which is execution concern,
https://github.com/QuantConnect/Lean/issues/3986
Both should reduce churn in different ways.

And if we add to these models we should add to all of them simultaneously and keep the API constructors consistent between then all. Then likely it'll consolidate to the base class -- then it'll be just 3 lines of code in each consumer to reuse that base class code.


Two different projects under one server, happen .env conflict

Laravel Version: 5..
PHP Version: 5.6.25
Database Driver & Version: MySQL 5.7

Description:
I have two different projects under one server. [Project1, Project2]
Now, I use CURL to call Project2 from Project1
A magical, Project2 throw a PDOException
I try debug it
I found
Project2 PDO's connect setting is load from Project1 (two project is same setting and is Project1's)
Steps To Reproduce:

Set Project1 .env

DB_HOST=localhost
DB_DATABASE=db1
DB_USERNAME=user1
DB_PASSWORD=pwd1

Set Project2 .env

DB_HOST=localhost
DB_DATABASE=db2
DB_USERNAME=user2
DB_PASSWORD=pwd2

In Project1 welcome

class WelcomeController extends Controller {
      public function test(){
             Curl::to('http://localhost/Project2/test')
                     ->post();
      }
}

In Project2 welcome

class WelcomeController extends Controller {
      public function test(){
             return User::first();
      }
}

In Project2 Illuminate\Database\Connectors\Connector

public function createConnection($dsn, array $config, array $options)
    {
        $username = Arr::get($config, 'username');

        $password = Arr::get($config, 'password');

        try {
            \Log::info([$dsn, $username, $password, $options]);
            $pdo = new PDO($dsn, $username, $password, $options);

The results obtained:
exception 'PDOException' with message 'SQLSTATE[HY000] [2002]
And Project2 laravel.log:
[2017-07-11 16:52:06] local.INFO: array (
  0 => 'mysql:host=localhost;port=3306;dbname=db1',
  1 => 'user1',
  2 => 'pwd1',
  3 =>
  array (
    8 => 0,
    3 => 2,
    11 => 0,
    17 => false,
    20 => false,
  ),
)

Why is that so?

You are using Apache on Windows and have forgotten to cache your configuration files. Run php config:cache to fix this.


fix(@embark/webserver): don't spin up webserver if pipeline is disabled

The webserver's job is to serve files generated by Embark's built-in pipeline,
however, since v4 users can choose they front-end tool to take care of building,
bundling and packing their DApps. Usually these tools come with a built-in
dev server as well.
Therefore, when the pipeline is turned off (which also soon will be the default),
there's not need start a webserver.

Thanks for the hint @jrainville !
I've moved the check into config now.


Add support for banner-style images to episode page

In order for this to work for arrested devops, we need to support banner images on episode pages.
For example:

My thought is to add an optional frontmatter to the episode, like this:
episode_banner = "/img/episode/mybanner.jpg"
If this is set, then the single episode template would display the banner across the top instead of the square image, and put the description below it.

I wonder if that would also be possible on the site home page too?  Not a huge deal but just something to consider.

@thercast that would definitely be a good addition, and I don't see why not.
Are you thinking that it would only be for the hero at the top, or for each episode?
The main reason I suspect I would rather have it only be for the hero, is because you might have some episodes with and some without, and it would look odd for the episodes that are the "same" (i.e., not the "latest") to look different from each other.

@mattstratton you are right.  I was thinking for only the hero at the top and I wouldn't want the inconsistency between the latest and non-latest episode views.


EndpointsHandler class (GSI-322)

Centralizes the EndpointsHandler that is defined in both the DCS and Connector, with several differences.
New:

http_exception_handler attribute will allow attaching a custom exception handler for HttpExceptions
Endpoint validation on registration
The assert_all_responses_were_requested fixture is defined/overridden and should be imported along with the EndpointsHandler class

Different:

In the DCS and Connector, class attributes were modified directly. Now it is a regular class that gets instantiated.
To reduce confusion, path refers to the URL pattern defined by the decorator, and url refers to the URL of a request being handled.
The common HTTP methods are available and the common inner wrapper logic is abstracted out.
Before, there was a single function for both matching a url to a registered endpoint and parsing the parameters. That's now two separate functions.
The typed endpoint function parameter info is stored in the RegisteredEndpoint object to simplify the conversion function

(e.g. {"parameter1": <class: 'int'>})

The handle_request function was previously defined in the mock API module for the DCS and Connector, but that's now in the EndpointsHandler class.

Intended Use:
In the module with mock endpoints:
import httpx
from ghga_service_commons.api.endpoints_handler import EndpointsHandler

# define a custom exception handler if needed
def my_http_exception_handler(request: httpx.Request, exception):
    ...

app = EndpointsHandler(my_http_exception_handler)

@app.get("/band/{band_name}/discography/{album_name}/song_by_index/{song_number}")
def my_endpoint(band_name: str, album_name: str, song_number: int) -> httpx.Response:
    ...

In the test module:
# imports
from pytest_httpx import HTTPXMock, httpx_mock
from ghga_service_commons.api.endpoints_handler import assert_all_responses_were_requested
from tests.mock_api_location import app

def test_my_endpoint(httpx_mock: HTTPXMock):
    httpx_mock.add_callback(callback=app.handle_request)
    # some code that makes a request like GET /band/led_zeppelin/led_zeppelin_(remaster)/9

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 105 (0.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ghga_service_commons/init.py
0
1
0.0%

ghga_service_commons/api/mock_router.py
0
104
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
667

💛  - Coveralls


Worker deployment failed due to docker configuration

Organization Name:
Advantech

Short summary about the issue/question:
Kubespray indicates that the worker deployment is failed due to worker docker configuration.
Brief what process you are following:

Use default openpai.yml to execute ansible-playbook -i inventory/mycluster/host.yml cluster.yml --become --become-user=root -e<EMAIL_ADDRESS>--flush-cache
kubespray console output indicates some failure deployment items on worker
Wednesday 13 May 2020  17:05:31 +0000 (0:00:00.311)       0:03:29.889 *********
fatal: [pai2worker-971911-iaas]: FAILED! => {"changed": true, "cmd": ["timeout", "-k", "120s", "120s", "/usr/local/bin/kubeadm", "join", "--config", "/etc/kubernetes/kubeadm-client.conf", "--ignore-preflight-errors=DirAvailable--et
c-kubernetes-manifests"], "delta": "0:02:00.007338", "end": "2020-05-14 01:07:31.717733", "msg": "non-zero return code", "rc": 124, "start": "2020-05-14 01:05:31.710395", "stderr": "\t[WARNING DirAvailable--etc-kubernetes-manifests]: /et
c/kubernetes/manifests is not empty\n\t[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/", "stderr_l
ines": ["\t[WARNING DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty", "\t[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please fol
low the guide at https://kubernetes.io/docs/setup/cri/"], "stdout": "[preflight] Running pre-flight checks", "stdout_lines": ["[preflight] Running pre-flight checks"]}
...
TASK [kubernetes/kubeadm : Join to cluster with ignores] ************************************************************************************************************************************************************************************
Wednesday 13 May 2020  17:07:31 +0000 (0:02:00.175)       0:05:30.064 *********
fatal: [pai2worker-971911-iaas]: FAILED! => {"changed": true, "cmd": ["timeout", "-k", "120s", "120s", "/usr/local/bin/kubeadm", "join", "--config", "/etc/kubernetes/kubeadm-client.conf", "--ignore-preflight-errors=all"], "delta":
"0:02:00.006411", "end": "2020-05-14 01:09:31.876782", "msg": "non-zero return code", "rc": 124, "start": "2020-05-14 01:07:31.870371", "stderr": "\t[WARNING DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
\n\t[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/", "stderr_lines": ["\t[WARNING DirAvailable--e
tc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty", "\t[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes
.io/docs/setup/cri/"], "stdout": "[preflight] Running pre-flight checks", "stdout_lines": ["[preflight] Running pre-flight checks"]}
...
PLAY RECAP *
localhost                  : ok=1    changed=0    unreachable=0    failed=0
pai2master-971908-iaas     : ok=642  changed=89   unreachable=0    failed=0
pai2worker-971911-iaas     : ok=377  changed=39   unreachable=0    failed=2
Follow the step on https://kubernetes.io/docs/setup/production-environment/container-runtimes/ to set native.cgroupdriver=systemd in  /etc/docker/daemon.json and reload docker service. However, the error status is the same upon redeployment.

How to reproduce it:

Reset and redeploy through kubespray

OpenPAI Environment:

OpenPAI version: v0.17.0
Cloud provider or hardware configuration: OpenStack VM
OS (e.g. from /etc/os-release): ubuntu 16.04.6
Kernel (e.g. uname -a): 4.4.0-178-generic
Hardware (e.g. core number, memory size, storage size, GPU type etc.): 1 GPU, 4 CPU, 90G RAM

<!-- **Anything else we need to know**: >

Related to https://github.com/microsoft/pai/issues/4522


when using server search, disableSelectAll doesn't work

As per the title, it seems impossible to search and select all options with one click.
i'm using the latest version.
and also, it seems that document.querySelector('#virtual-select2NPFFOAX00').toggleSelectAll(true); doesn't work either

@sathio could you please share a codepen(or similar) with those use cases?

@sathio could you please share a codepen(or similar) with those use cases?

https://codepen.io/Sathio/pen/QWogJMv

Looking into the code this doesn't seem like an issue but something that is working as expected as per this logic:

well, it looks like it's not a very clever logic doesn't it?
i mean, why shouldn't I be able to select options I'm actually searching for?
I think I'll just monkey patch locally and see how it works for me. thanks anyway!

No idea about the reason. Probably @sa-si-dev is the person who can answer that.

I can confirm that by monkey patching it it seems to be working fine


Providing Snapshot Artefacts

It would be convenient to have snapshot artefacts of the development branch.
One way to achieve this is using jitpack.io, we have integrated support for it in our fork (https://github.com/simplysoft/DBFlow/commit/2ecfbc733e7e83b71be66a40a5225244803acd84) and it works nicely

https://github.com/Raizlabs/DBFlow#including-in-your-project


Error: could not find recipe default for cookbook docker

Previously working cookbook which included docker cookbook is now broken?
Here is the error message
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe default for cookbook docker

This is a library and not a recipe. You only need to include the cookbook in your metadata and then you may call the docker_* providers in your cookbooks.

Hi Peter!
That is correct.... as of 1.0.0 of this cookbook, this cookbook is resource based instead of recipe based.
-s


Pilot implementation for Realtime event based API's - ConnectionStateChange

Realtime events workflow based on Streams handled for both Android and iOS.

Using StreamChannel, which is based on EventChannel

StreamsChannel (EventChannel) is setup on both Android and iOS
ConnectionStateChange is fully supported
Better way to handle codecs using CodecPair<Type>(encoder, decoder)

Supported only on Dart and Android side.
Objective C has separate reader and writer implementations.

Known Issues - Applies only for Event Streams:

Hot-Restart will not dispose of platform side objects

This is a concern only for development phase

In production, the behavior is as below:

On minimising the app (background) - instances stay intact (dart side will be perfectly connected to platform side)
On killing the app - all instances will be created afresh and linked as expected

NOTE: A fix for the above issue is an experimental WIP, and changes related to the same is not available in the repo.

This PR is a continuation for previous PR's. Number of changes will be reduced as pending PR's are merged.

You need to rebase your commits against the target branch as there are conflicts which may be making review harder. Thanks!

@QuintinWillison rebase complete

@mattheworiordan @QuintinWillison
Updated README with "how to run example" and "API usage"
9f9a3f8df536495a6a9607eee2396c6d58e89abf


Make documentation consistent with neo 0.6

Make documentation consistent with neo 0.6:

check that neo.io and neo.rawio difference is clear
check that cascade is removed
check that lazy is depreciated
all typos and bad english gramar.

Close by #504


Added Medical University of Lodz

Institution/School Name
{Medical University of Lodz}
Instiution/School Website
{https://umed.pl/}
Email Users
Please place an x between the square brackets if yes

[x] Students
[x] Academic/Teaching Staff
[ ] Other/Support Staff
[ ] Alumni

Education Levels
Please place an x between the square brackets if yes

[x] Post-graduate research
[x] Graduate School
[x] College (University) or Undergraduate School or equivalent
[ ] Community College or equivalent
[ ] High School or equivalent
[ ] Elementary School or equivalent

10.000 commits? I did something wrong.


Feature Request
Describe the Feature Request

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

Originally posted by @daniel81825 in https://github.com/dogecoin/dogecoin/issues/2550

@patricklodder You can close this one.