DNN 9.7.0-RC2 Upgrade Causes 2sxc Streams to Fail

Description of bug
I was testing 9.7.0-RC2 on one of my sites that uses 2sxc Streams in one of it's templates. This was working without issue in 9.6.2 and when I upgraded to 9.7.0-RC2 any 2sxc app that uses Streams are failing to load.
Steps to reproduce

Install DNN 9.6.2
Install 2sxc 10.25.2
Add a 2sxc app to the page that uses Streams such as the Blog App
Certify it is working correctly
Upgrade DNN to 9.7.0-RC2
Navigate to the page with the 2sxc Blog App

Current behavior
The module crashes and fails to load.
Expected behavior
The module should run as expected when it was using DNN 9.6.2
Screenshots
N/A
Error information
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:2c8bc683-1f97-4cd9-ad9d-bd8634810b2a

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:b7FgndJm0/HMtnIzVIsI6xiKLdo=

Message:Error getting List of Stream. Stream Name: Default DataSource Name: CacheAllStreams

StackTrace:

   at ToSic.Eav.DataSources.DataStream.<get_List>g__EntityListDelegate|20_0() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 100
   at ToSic.Eav.DataSources.Caching.ListCache.GetOrBuild(IDataStream stream, Func`1 builderFunc, Int32 durationInSeconds) in C:\Projects\eav-server\ToSic.Eav.DataSources\Caching\ListCache.cs:line 94
   at ToSic.Eav.DataSources.DataStream.get_List() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 110
   at ToSic.SexyContent.Razor.SexyContentWebPage.AsDynamic(IDataStream stream) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\SexyContentWebPage.cs:line 94
   at ASP._Page_Portals_2_2sxc_Blog_App__FeaturedBlogs_cshtml.Execute() in e:\AndrewHoefling.dnn.dev\Website\Portals\2\2sxc\Blog App\_FeaturedBlogs.cshtml:line 2
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at ToSic.Sxc.Engines.RazorEngine.Render(TextWriter writer) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\Engines\Razor\RazorEngine.cs:line 82
   at ToSic.Sxc.Engines.RazorEngine.RenderTemplate() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\Engines\Razor\RazorEngine.cs:line 92
   at ToSic.Sxc.Engines.EngineBase.Render() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\Engines\EngineBase.cs:line 108
   at ToSic.Sxc.Blocks.CmsBlock.Render() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\Blocks\CmsBlock_Render.cs:line 54
InnerMessage:Error getting List of Stream. Stream Name: Default DataSource Name: Paging

InnerStackTrace:

   at ToSic.Eav.DataSources.DataStream.<get_List>g__EntityListDelegate|20_0() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 100
   at ToSic.Eav.DataSources.DataStream.get_List() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 115
   at ToSic.Eav.DataSources.DataStream.<get_List>g__EntityListDelegate|20_0() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 92
Source:ToSic.Eav.DataSources

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: DESKTOP-8L05G7S

Additional context
The stacktrace doesn't display any DNN specific code, but this exact same module and app were working fine on DNN 9.6.2. After I performed the upgrade it failed to load correctly. I wonder if there is some ASP.NET setting that has changed between the 2 versions or if it corrupted the 2sxc install when copying assemblies.
This was identified during research from #3986
Affected version

[x] 09.07.00 release candidate
[ ] 09.06.02 latest supported release

Affected browser
N/A

I just ran a quick test with the same using 2sxc 11.4 - same problem.
My message says this BTW:
System.Exception: Looking up BlockConfiguration failed because ModuleId is null. at ToSic.Sxc.DataSources.CmsBlock.get_BlockConfiguration() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\DataSources\CmsBlock.cs:line 100 at ToSic.Sxc.DataSources.CmsBlock.GetContent() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\DataSources\CmsBlock.cs:line 125 at ToSic.Eav.DataSources.DataStream.ReadUnderlyingList() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 118 --- End of inner exception stack trace --- at ToSic.Eav.DataSources.DataStream.ReadUnderlyingList() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 138 at ToSic.Eav.DataSources.DataStream.get_List() in C:\Projects\eav-server\ToSic.Eav.DataSources\Streams\DataStream.cs:line 103 at ToSic.Eav.LookUp.LookUpInDataTarget.Get(String key, String format, Boolean& notFound) in C:\Projects\eav-server\ToSic.Eav.DataSources\LookUp\LookUpInDataTarget.cs:line 59 at ToSic.Eav.LookUp.TokenReplace.RetrieveTokenValue(String sourceName, String key, String format) in C:\Projects\eav-server\ToSic.Eav.Core\LookUp\TokenReplace.cs:line 157 at ToSic.Eav.LookUp.TokenReplace.ReplaceTokens(String sourceText, Int32 repeat) in C:\Projects\eav-server\ToSic.Eav.Core\LookUp\TokenReplace.cs:line 120 at ToSic.Eav.LookUp.TokenReplace.ReplaceTokens(String sourceText, Int32 repeat) in C:\Projects\eav-server\ToSic.Eav.Core\LookUp\TokenReplace.cs:line 128 at

Now the lines of the latest code won't match these numbers as I've been working on these files.
My guess

my understanding is that it can't get the ModuleId. There is some code which asks for the current module (Similar to PortalSettings.Current) and this doesn't seem to get anything
Note also that the error log which @ahoefling gave right at the beginning said Portal = -1 etc. I think there is something wrong with the global objects like PortalSettings.Current etc. which don't seem to provide the correct stuff any more.

Could it be that this changed? It would be a likely thing to get reworked as DI matures.

Update: 2sxc leverages the DNN token replace to inject various parameters incl. ModuleId into deeper layers.
For that it creates a TokenReplace object, gives it the ModuleId and PortalSettings and after a replace-run, uses the PropertySource to pass on all PropertySources for further use
https://github.com/2sic/2sxc/blob/fb8a783ca050777f78f0d63c8b304f5f3dcde740/ToSIC_SexyContent/2sxc Dnn/Dnn/LookUp/TokenReplaceDnn.cs
It seems that now in 9.7 RC2 the Module is now an EmptyPropertyAccess - see this screenshot

Any ideas?

This token provider change is probably at least near where your issue is coming from: https://github.com/dnnsoftware/Dnn.Platform/pull/3820/files#diff-abf4e4ef8e94a1825c5e0e1050a83f51R132-R150

I can verify that this error is also present for fresh DNN 9.7.0 installs not just for installs that were upgraded from earlier versions of DNN and it is present in the final release of v9.7.0 not just in RC2. I encountered the error with the 2SXC Events and Courses module.

@iJungleboy So far Token replace has been working fine with Form&List, Newsletter, Html Module, etc. We did run testing on this and so far 2sxc is the only report we had about this problem. 2sxc being so popular it would be nice to have more eyes from you guys in our RCs testing and maybe get involved in figuring out the issue and submitting a PR ? Since we could not reproduce the issue with any other module, we thought this might be an isolated case and did not hold on 9.7.0 for this.
That being said we are now setup for very quick releases and if a solution comes quick we are ready to fire up a 9.7.1 very quickly.

@valadas I simply don't even know how to get a basic DNN 9.x Dev up and running on my system to do a deeper debugging :(. I'm afraid that will take hours - or is there a quick setup or container or VM or something which is just for kicking it off?
That said, all we're doing is initializing a TokenReplace object using : base(Scope.DefaultSettings, "", ps, userInfo, moduleId) so this should be easy to reproduce. After this, the sources inside it show a EmptyPropertyAccess on the ModuleService. I believe this should be really easy to reproduce (if you have a running DNN dev environment.

I would like to ask that this is solved before we release - I expect that 2sxc and DNN would get over 300+ requests of early adopters running into the same bug, which always is very bad for trust in the platform. So if you can fix it awesome, if you can guide me to a very fast setup-dnn-as-dev that's ok too.

As an open-source project, the maintainers of DNN Platform have done more than I feel we should be obligated to do so, by checking more than 10 different implementations/usage of TokenReplace within the platform itself and external modules.
We cannot hold a release for a single third-party vendor.  This isn't meant as any sort of disrespect to 2sxc, or any users of 2sxc, or any other vendor for that matter, but the platform maintainers can ONLY be responsible for the platform.  We have verified the platform is performing.
Local development environment is well documented in the documentation of this repo.  If there is something found that requires a change on DNN Platform we can roll a 9.7.1 RC quickly after a PR is received.

Also, if anyone has a publicly available extension, it's up to each individual vendor to test their respective extensions when RC's are out.  I admit that I didn't do much testing for Hotcakes for the last two releases myself.  :(

@iJungleboy A lot of effort went in to improve the build process and make it easier than it was, we documented the process at https://github.com/dnnsoftware/Dnn.Platform/blob/develop/.github/BUILD.md for many popular use case scenarios. If you follow that process and hit an issue, then we need to improve docs or the build process. Please give it a try and ping me up if you encounter problems I will be glad to help on that. Once that works, it should be as simple as building in debug mode and putting a breakpoint to figure out what is happening.

@valadas I'll give it a try, thx.

I think I found it - there is a funny mechanism in the TokenReplace which caused wrong values to be used. The code starts like this:
        /// <summary>
        /// Gets or sets /sets the current ModuleID to be used for 'User:' token replacement.
        /// </summary>
        /// <value>ModuleID (Integer).</value>
        public int ModuleId {
            get => TokenContext.Module?.ModuleID ?? Null.NullInteger;
            set => TokenContext.Module = GetModule(value);
        }

Then in the GetModule this happens
        private ModuleInfo GetModule(int moduleId)
        {
            if (moduleId == TokenContext.Module?.ModuleID)
                return TokenContext.Module;

            if (moduleId <= 0)
                return null;

            var tab = TokenContext.Tab ?? PortalSettings?.ActiveTab;
            if (tab != null && tab.TabID > 0)
                return ModuleController.Instance.GetModule(ModuleId, tab.TabID, false);

            return ModuleController.Instance.GetModule(ModuleId, Null.NullInteger, true);
        }

The bug happens on these two lines because of the upper-case ModuleId instead of moduleId. This accidentally uses the not-yet-set module-id (as it's still in progress of finding it) to find it. Lower-casing it fixes everything:
                return ModuleController.Instance.GetModule(ModuleId, tab.TabID, false);

            return ModuleController.Instance.GetModule(ModuleId, Null.NullInteger, true);

Closing per #4018 - thanks again @iJungleboy for the fix and to @ahoefling for reporting - all around great teamwork!

I can verify that this error is also present for fresh DNN 9.7.0 installs not just for installs that were upgraded from earlier versions of DNN and it is present in the final release of v9.7.0 not just in RC2. I encountered the error with the 2SXC Events and Courses module.

Tested DNN 9.7.1 RC1 with 2SXC Events and Courses. Appears that the problem is fixed.

That is great news @skarpik - thanks for testing and reporting back your findings!


Can we use bootsrtap and ionic together, if not then why, Please let me know the reason.

Resources:
Before submitting an issue, please consult our troubleshooting guide (http://ionicframework.com/docs/troubleshooting/) and developer resources (http://ionicframework.com/docs/developer-resources/)
Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:
insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here

Hi there! So this doesn't appear to be an issue with the framework itself, rather a question, so I'm going to close it. Please post your question on the Ionic Forum instead.


Cron

Pull Request Test Coverage Report for Build 75

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

Totals

Change from base Build 73:
0.0%

Covered Lines:
789

Relevant Lines:
789

💛  - Coveralls


Release object store minor 0.10.2 or major 0.11.0 (Mid July 2024)

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
https://github.com/apache/arrow-rs/tree/master?tab=readme-ov-file#object_store-crate

The object_store crate is released independently of the arrow and parquet crates and follows Semantic Versioning. We aim to release new versions approximately every 2 months.

Last release was May 14, 2024, that means the next release should be approximately July 14, 2024
Describe the solution you'd like
Make a new object store release
Describe alternatives you've considered
Here are the commits that went into object_store: https://github.com/apache/arrow-rs/commits/master/object_store
Additional context

As of today there do not appear to be any breaking API changes to object store and thus I think we can release a minor 0.10.1 version

@Xuanwo  asked about this in https://github.com/apache/arrow-rs/pull/6013

Unless someone else wants to do this I will plan do make a release candidate early next week with a release timeline of mid next week

As of today there do not appear to be any breaking API changes to object store and thus I think we can release a minor 0.10.1 version

object_store 0.10.0 has already released, we will need a 0.10.2

As of today there do not appear to be any breaking API changes to object store and thus I think we can release a minor 0.10.1 version

object_store 0.10.0 has already released, we will need a 0.10.2

You are right -- https://crates.io/crates/object_store/0.10.1
Thank you @Xuanwo  I updated the description

I plan to work on this this week

Thanks a lot!

I am beginning to make the release now

Vote thread:
https://lists.apache.org/thread/8yzk5zrrwg0lx45706dcrs05xcvfy6y1
Crates.io release: https://crates.io/crates/object_store/0.10.2
We have a release 🎉

label_issue.py automatically added labels {'parquet'} from #6013


Bibliography Update

A new paper on CDOM by Josh Harringmeyer at Boston University.
Please squash the history, thanks!

Added another paper by Graeme Stephens which shows an ISOFIT aerosol retrieval.


Right to left writing feature request

Would be so much appreciated if we had a right to left language support in the editor, all we need is
"editor.lineNumbersPosition": "right"

and
"editor.writeRtl": "true"

Let's track in #11770


real robot standup back push

Hello the team.
Thanks for help.
Now, i can make my ylo2 robot move for a standup.
URDF and SDF ok, inertias and gravity ok.
When running robot_hardware.launch, the robot automatically standup (after a homemade zero calibration = ok)
During standup, all joints have correct direction, imu seems ok,
But robot is pushed backward : it stands up, with anything like 45° up-rear.
Any idea ?
Perhaps should I modify standup pose (joints).
If yes, where?

https://youtu.be/LNuAhMMIKZ0

hello, well even with correct servos direction and correct sit down and standup params :
ylo2@ylo2-UP-WHL01:~$ rosparam get /robot_driver/sit_joint_angles

- 0.165
- 0.59
- 1.36

ylo2@ylo2-UP-WHL01:~$ rosparam get /robot_driver/stand_joint_angles
- 0.0
- 0.5213467868148791
- 1.09094730619712

The robot put it legs right, and perpendicular to body (my real rezero joints)
I don't anderstand what happens..  Any small idea to share to help me progress ?!

Here is my steps :
Ylo2 robot is permanent zeroed with legs parallel, right, and perpendicular to body

Before running code, robot is in a sit position :

Hi @jrenaf
Yes I saw that.
My question is : does the hardware use sit and params, from quad_util/config/ylo2_ config.yaml
And how is calibrate spirit?

Hey, i can confirm the following things :

any changes on sit_joint_angles param, in a1.yaml ( https://github.com/robomechanics/quad-sdk/blob/b04d4f7658215da018b4843c98f49e50b1b339c6/quad_utils/config/a1.yaml#LL76C2-L76C36 )
are without effect on hardware.

(changes are ok on a1 simulation )
My urdf is a1, and i call robot_type = a1.

Hello the team.
Found an error in my joints order...
Working now on joint direction, and initial pose.. Next soon.


.npmignore

I wonder if there's a way that we can hoist the .npmignore file and keep only package-specific entries in the packages.

It could be a grunt task? or a prepublish script? I'm not sure. I don't see an issue managing it at the top level.

i've been reading it is better to whitelist instead of black list. Let's not use .npmignore files at all.


Update file names 411

Pull request to update output file names as part of issue #411. This includes updates to corresponding name constants and arguments in prep_riboviz.nf, riboviz/workflow_r.py, riboviz/workflow_files.py, and generate_stats.figs.R, as well as updating names in any documentations.
The file riboviz_outputs.md has been created to describe each of the output files in detail.
Config file argument do_pos_sp_nt_freq has been updated to output_metagene_normalized_profile, with riboviz/upgrade_config.py updated to reflect this. Config files in example-datasets will likely need to be updated again to reflect this change.
The table of original and new names can be found here.

@3mma-mack I reran all the tests and all is still OK. I've re-reviewed all the changes and have suggested changes above. All of these relate to consistency in naming of parameters and files.
Two additional suggestions are:

Add link [riboviz output files and figures](./docs/user/riboviz_outputs.md) to README.md in the Usage bullet list under "Running the RiboViz Nextflow workflow".
Combine content from prep-riboviz-operation.md ## Read counts file section into the relevant section of your riboviz_outputs.md page then delete this section from prep-riboviz-operation.md. Once deleted update A [read counts file](#read-counts-file) ... in prep-riboviz-operation.md to A read counts file .... (so the docs describe the read counts file in one place only, riboviz_outputs.md).

Thanks for the feedback and suggestions! I'll make those changes ASAP

I have made the changes suggested by @mikej888, including changing references of file requirements from the format --t-rna-file to the format t_rna_file, rewording sentences where necessary and removing a few final occurrences of the old file names from riboviz_outputs.md.
I have also updated riboviz_outputs.md to include the information from the ## read counts section of prep-riboviz-operation.md and added a link to riboviz-outputs.md to the README file.

@3mma-mack, thanks. I just committed a change to fix a broken img URL. All looks fine to me for a merge into develop. @FlicAnderson do you have any comments?


tablereport display details

a small detail so it is aligned when wrapping

It's hard to see what changes, can you provide screenshots?

sure, it's really a detail. it is just about alignment of the dropdown when there is a very narrow display
before:

after:

the change on the tab margin is just that on a high-resolution large screen at some zoom levels in jupyter notebooks only I could see a very thin gray line between the selected tab and its panel, but I can't seem to reproduce it on my laptop to provide a screenshot

Hey @jeromedockes, is this PR ready for review?

Hey @jeromedockes, is this PR ready for review?

yes, thank you!

Well, I would have appreciated reviewing it before merging.


[ODS-4435] Merge the net core changes back into the main branch

Note, this PR was brought in with a merge commit on purpose, as per discussion in team meetings.  Due to the complicated nature of this change it was requested to keep the underlying history of the original branch.


Quickstart SE changes to use a single Configuration

Also

removed final from parameters, as we do not use it in Helidon.
created a single sendResponse method to remove duplicate code
print the correct URL for the server being started (so when you click on it in standard output, you get a response)


locustfile-performance: use separate greenlet

Description of the Change
Wait for result in separate greenlets to continue sending transactions in locust worker greenlets
Benefits
No synchronous behavior of locust worker greenlets, which may result in decreased performance

More complete version available in https://github.com/hyperledger/iroha/pull/117


[AERIE-1916] refactor computeResults out of sim engine

Tickets addressed: AERIE-1916
Review: By commit
Merge strategy: Merge (no squash)

Description

The goal of this ticket is to refactor the computeResults() method out of SimulationEngine and into SimulationDriver, so that it can eventually be pulled inside the while(true) simulation loop for simulation results streaming.
This refactoring is mainly a lift and shift, meaning no significant changes are being made to the method, and instead private fields are being made public to prototype this change. Eventually (and this is the hope of opening a draft PR) we hope to expose the minimal information needed from these SimulationEngine fields, with public getters instead of public fields.
Verification

Manually testing to ensure simulation as a whole hasn't changed.
Documentation

None
Future work

Investigate how to chunk simulation results
Move computeResults() into the main sim loop

Rebased on upstream develop.
Looking for architecture/design feedback! Refactor doesn't feel particularly ergonomic, mainly that taskInfo seems to hold a lot of the same info as the sim engine tasks field, but now both are being accessed in SimulationDriver

Sorry, I haven't had a chance to look at this yet -- I saw the request for review. (I need to move out of my apartment this Friday.) I've wanted results computation pulled out of the engine for a long time, so I'm happy to see progress on this. 😃
One abstract concern I have is that, since results computation is still coupled to the engine, pulling it out of the engine class might end up spreading out the problem, while also breaking encapsulation of the engine itself. I kept the results code local to the engine because, until I had a better architectural idea for what ought to happen, having a localized mess is better than having a metastasized mess.
I'd be very interested to hear whether there are any semi-solid ideas floating around for what the goal state of the codebase ought to be. @mattdailis and I previously tossed around some ideas; my most recent PRs were centered on pushing more information into the event graph, which is a much more principled way of getting information out incrementally over a simulation.
Some things don't seem to work well that way, and so might need other solutions. Specifically, resources and activity lifecycle information don't "branch" in the same way as the general event graph, and hence downstream consumers shouldn't need to account for such impossibilities).

someone explain to me why github's default behavior for cmd+enter is "Close with comment" and not merely "comment"

OMG

Closing as the team has determined computeResults needing to be refactored out of SimulationEngine is more of a symptom of a larger problem than the solution. The idea is to move forward with "timeline segment streaming" where event like updates are relayed to the client, which will be prototyped in AERIE-1921. This change will very likely invalidate the need for AERIE-1916 and this accompanying PR.


NEP-141: unchecked addition and subtraction operations

The fungible token standard implementation provides a set of Rust macros. The macros perform unchecked
addition, subtraction, and multiplication operations. Unchecked mathematical operations will wrap in rust if
overflow_checks are not turned on in the cargo profile.
NEAR smart contracts release profile will have overflow_checks set to true. When set to true, any overflows will cause a panic, preventing malicious attacks on the contract. So this is rather informational but still requires action to fix it.

This option does not get added when using it at a library level, which is what the standards are. Overflow checks need to be enabled on the crate you are compiling. We add the overflow-checks in the example. This is potentially a good issue for documentation, to better explain the need for this. There is a basic comment about overflow checks here, but it can be improved.
I'm going to move this issue to the docs repo, but feel free to let me know if you believe I'm incorrect about how overflow checks are applied and I'm happy to move back. I did test and the option was not applied when using on the lib.


how to do az acr build in powershell?

How can I do az acr build with the az powershell cmdlet instead of the CLI? the page allows you to view everything except this in the powershell cmdlet. if it's not supported, please just say not supported instead of making me context swap between powershell and the cli.

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

ID: 6afe8c14-efa4-31a6-9fd9-e68f2d878226
Version Independent ID: c67857a5-ee1b-3ed2-f281-dd62c4c4c6f3
Content: Kubernetes on Azure tutorial - Create an Azure Container Registry and build images - Azure Kubernetes Service
Content Source: articles/aks/tutorial-kubernetes-prepare-acr.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@mikelburgess
Thanks for your feedback! We will investigate and update as appropriate.

@mikelburgess
Yes, you can use the az acr build command in Azure PowerShell to build and push a Docker image to an Azure Container Registry. Here is an example command:
az acr build --registry MyRegistry --image hello-world:v1 .

This command builds a Docker image from the Dockerfile in the current directory (.) and pushes it to the MyRegistry registry with the tag hello-world:v1. You can replace MyRegistry and hello-world:v1 with your own values.
I hope this helps! Let me know if you have any other questions.

I realize I can use the AZ CLI to run the command in powershell. My feedback was towards the document having instructions using AZ Powershell, but then not being able to complete it without also using the CLI as well. So it's not possible to use az powershell to do this?

@mikelburgess
I'm going to assign this to the document author so they can take a look at it accordingly
@MGoedtel
Could you Please review this and update as appropriate.

@mikelburgess - There is no equivalent command in PowerShell to build and push an image to the ACR, and this is why that step has you perform the action using Azure CLI.
I'll open a PR and add a comment to call this out today.
We are closing this issue for now, but feel free to comment here as necessary. #please-close


tests: add coverage report

Codecov Report

Merging #89 (8695ad6) into main (2e6a5e5) will increase coverage by 2.00%.
The diff coverage is 14.44%.

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   59.84%   61.84%   +2.00%
==========================================
  Files          18       20       +2
  Lines        2129     2089      -40
==========================================
+ Hits         1274     1292      +18
+ Misses        855      797      -58

Impacted Files
Coverage Δ

taos/cinterface.py
63.93% <0.00%> (+7.53%)
:arrow_up:

taos/cursor.py
30.37% <ø> (-22.01%)
:arrow_down:

taos/sqlalchemy.py
0.00% <0.00%> (-74.29%)
:arrow_down:

taosrest/restclient.py
19.23% <14.58%> (ø)

taosrest/errors.py
72.22% <40.00%> (ø)

taos/_version.py
100.00% <100.00%> (ø)

taos/field_v3.py
92.68% <100.00%> (+0.09%)
:arrow_up:

taos/connection.py
41.17% <0.00%> (-39.06%)
:arrow_down:

... and 8 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


fragmented ip handling

it seems there are still some basic problems with the mfw IP stack.
todays variant: fragmented packets.
the tests are against a 20190727 (today) build in templated mode.
the test commands are run in a (fedora-29) vm below the mirage-vm.
the log lines are from mfw-console-logs in dom0.
i am not pasting the hex dumps because afaict they dont matter and are easy to reproduce if anyone cares...
$ traceroute -U <IP_ADDRESS> 2000
2019-07-27 18:33:40 -00:00: WRN [client_net] Ignored unknown IPv4 message: Failed to parse UDP packet: UDP header claimed a payload longer than the supplied buffer: 1972 vs 1480.
2019-07-27 18:33:40 -00:00: WRN [client_net] Ignored unknown IPv4 message: Failed to parse UDP packet: UDP header claimed a payload longer than the supplied buffer: 17469 vs 500.
the second line is almost more scary, because that means it tries to parse the payload/data of the second fragment as a header.
when using icmp instead (traceroute with -I instead of -U or "ping -s 2000 <IP_ADDRESS>") the failure pattern is mostly the same, except it doesnt complain about the first fragment with either a 20190727 nor 20190226 (pre #31) build.
and proactively pinging @yomimono on this.
note this is the other direction compared to #31, it already falls on its face while the pakets are coming from the inside.

also pinging @hannesm because of https://github.com/mirage/mirage-tcpip/pull/375

hi @xaki23, thanks for your report. unfortunately I don't have a qubesos machine at my hands, so I can't reproduce or fix this issue. from reading the source code, here are my observations:
from my understanding, the flow for packets goes through:
Client_net.add_vif calling Netback.listen, parsing received ethernet frames, and then depending on the ethertype input_arp or input_ipv4 in the same module.
input_ipv4 then uses Nat_packet.of_ipv4_packet to parse the IPv4 payload, and could benefit from using a Fragments.t cache (https://github.com/mirage/mirage-tcpip/blob/master/src/ipv4/fragments.mli) before that (which offers a single function process, taking a cache, a timestamp, an IPv4 packet and its payload, and returning optionally an IPv4 packet and its payload). It looks to me that atm nothing takes a look at the offset and more fragments bits (which the Fragments module is for). the cache should be kept at a vif-local data structure (using some reasonable maximum capacity -- MirageOS' IPv4 host stack uses 256kB (in Static_ipv4.connect), and has a limit of 16 IPv4 fragments where the delta between first and last must not exceed 10 seconds).

hi @xaki23, thanks for your report. unfortunately I don't have a qubesos machine at my hands, so I can't reproduce or fix this issue. from reading the source code, here are my observations:

fortunately, that excuse is of limited validity when dealing with organized virtualization fanatics. :P
see mail/irc for how to access your dedicated personal qubes-mirage-firewall build-and-test env!

just fwiw, thanks to @xaki23 https://github.com/hannesm/mirage-nat/tree/fragment  and https://github.com/hannesm/qubes-mirage-firewall/tree/fragmentation allow fragmentation (in a rather poor / hackish) way -- I suspect for proper support there should be some API changes in mirage-nat (to avoid reparsing packets) ; and things like mtu being exposed from "class type interface"


Need help on understanding Filter Option in OData

Team,
I just wanted to know how the query filter works in OData. I have 10 rows in my table and I have given a filter condition. As per my observation, it is fetching the 10 rows at the service end and filter the data matching with the filter condition specified in the url and returning the records. Is my observation correct? In case if my observation is correct, what if we have 1 million rows in a table. Does it fetch all rows at the service end and apply filter condition. Please let me know if I am wrong.

Hi @maheshreeram,
This is a very good question.
I'm not sure if you are asking specifically about the behavior of a library (e.g. the behavior of the ASP.NET Web API for OData), or of the protocol. So I'll try to answer for both cases.
If you are using the ASP.NET Web API for OData, the default behavior when you use the [EnableQuery] attribute to automatically apply the query options to your storage is just the same as you described: it'll fetch all the data and apply the query option in memory, which I know is inefficient for you. But the library also provide the flexibility of enabling you to handle how the query options are applied yourself. You may check out the "Invoking Query Options Directly" section of this sample: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/supporting-odata-query-options to learn how to unwrap the ODataQueryOptions instances to get the actual query string and implement the business logic to apply the query to your storage before you getting any data from it.
If you're asking about the protocol, the protocol actually doesn't have any specification about if query options need to be applied prior to/after the retrieval of the data. It's up to you (the service implementer) to decide.
Hope you are satisfied with the answer.


Still cannot render images correctly

Like user @tsiegleauq said in his post it doesn't seem to like images (sometimes).
I believe it's something to do with the type of encoding used in said images because it works sometimes and I can't seem to find a reason why.
see his fiddle here https://jsfiddle.net/147LooLc/

few months ago I tried to figure out what the problem is...
There were two possibilities:

The problem is that the png-fileformat has multiple methods to compress data. And if you use the png plugin it can only read deflate or so.
The plugin can not read png-files properly if the file header is not having all parts or so.

The solution was to open the problematical pngs' in imageeditor and save them in some variations and test if one of those variations can be processes properly by the png-plugin.

Probably connected with #1455

It works as expected. If you use images in fromHTML you have to load them asynchronously. So you have to use the callback parameter. The callback function is called when fromHTML in jsPDF loaded all images and generated the document.
var doc = new jsPDF('p', 'pt', 'a4', true);
    doc.fromHTML($('#renderMe').get(0), 15, 15, {
      'width': 500
    }, function (dispose) {
    doc.save('thisMotion.pdf');
    });

https://jsfiddle.net/147LooLc/5/
Close this issue please

#1567 Should be closed
reasons:

Obviously duplicate of #788
issuer didnt react on answers
more like an open question than a real issue


Improve Travis CI build Performance

Caching Dependencies and Directories Travis CI can cache content that does not often change, to speed up the build process.
=====================
If there are any inappropriate modifications in this PR, please give me a reply and I will change them.

AFAICT Travis CI builds no longer work on this repo since somewhere in May, because Travis has moved from .org to .com.
The owner of this repo should link it to their account on the new https://app.travis-ci.com.


"SystemStackError: stack level too deep" when requiring json with latest built ruby-3_2-wasm-wasi

Repro:

build rake npm:ruby-3_2-wasm-wasi:build locally with prebuilt rubies
create html file like this referencing built package

<!DOCTYPE html>
<html>

<head>
  <title>rwasm test</title>
</head>

<body>
</body>
<script src="ruby-3_2-wasm-wasi/dist/browser.script.iife.js"></script>
<script data-eval="async" type="text/ruby">
  require 'json'
</script>

</html>

Error:
Unhandled Promise Rejection: Error: SystemStackError: stack level too deep
Removing require json or data-eval="async" fixes the problem.
Theory: Is it due to some kind of lack of thread safety in the original CRuby json lib?

Thank you for trying the new feature! https://github.com/ruby/ruby.wasm/pull/235 will resolve the issue. Could you try again after the the PR will be merged?

@kateinoigakukun It works now. Thanks!


Logging for retried downloads

From the Python 3.6 run,
==============================================================
Testing kodoja_build.py
==============================================================
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 2
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 3
DONE with downloading
DONE with renaming

From the Python 2.7 run,
==============================================================
Testing kodoja_build.py
==============================================================
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 2
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 3
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 4
Will retry downloading 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt' attempt 5
Failed to download 'ftp://ftp.ncbi.nih.gov/genomes/refseq/viral/assembly_summary.txt'

Curiously from the recent TravisCI failures, it does seem that Python 2.7 downloads are failing more often.

I'm going to merge this, as its useful while so many of the TravisCI tests are failing, but am not sure if we'd want to keep this in for the long term.


Discord Bot Token Reset Due to Potential Abuse

Describe the bug
My server was down for 25 hours. Now that it's back, Discord is resetting the bot token after I turn Matterbridge on, so matterbridge can't sync Mattermost & Discord.
To Reproduce
I can only "reproduce" on my server: I get a new Discord token, restart Matterbridge and after a while the Token is reset.
Expected behavior
I'm not sure if it's due to the down time nor if it really is a bug in Matterbridge. I'm wondering if many messages have queued somewhere due to the downtime and now when I restart the system it's too much for Discord to handle.
The expected behavior is that it continues to work as it has during the last year.
Screenshots/debug logs
Are there details I can provide to help figure it out?
Environment (please complete the following information):

OS: Ubuntu Linux server
Matterbridge version: version: 1.18.3 8b26e42a

Additional context
[general]
RemoteNickFormat="{NICK}: "

[mattermost.mymattermost]
Server="chat.xxx.org:443"

Team="ccb"

Login="bot"
Password="......."

PrefixMessagesWithNick=true

[telegram.mytelegram]
Token="..."

[discord.mydiscord]
Token="..."
Server="CCB" # picked from guilds the bot is connected to

[[gateway]]
name="general"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="town-square"

  [[gateway.inout]]
  account="telegram.mytelegram"
  channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="unity"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="unity"

  #[[gateway.inout]]
  #account="telegram.mytelegram"
  #channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="events"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="events"

  [[gateway.inout]]
  account="telegram.mytelegram"
  channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="shaders"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="shaders"

  #[[gateway.inout]]
  #account="telegram.mytelegram"
  #channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="collaborations"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="collaborations"

  #[[gateway.inout]]
  #account="telegram.mytelegram"
  #channel="-..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="inspiration"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="inspirations"

  #[[gateway.inout]]
  #account="telegram.mytelegram"
  #channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discordapp.com/api/webhooks/.../..."

[[gateway]]
name="jam"
enable=true

  [[gateway.inout]]
  account="mattermost.mymattermost"
  channel="jam"

  #[[gateway.inout]]
  #account="telegram.mytelegram"
  #channel="-100..."

  [[gateway.inout]]
  account="discord.mydiscord"
  channel="ID:..."
  [gateway.inout.options]
  WebhookURL="https://discord.com/api/webhooks/.../..."

Could you provide logs? It seems like you have a process manager that's restarting Matterbridge even though it is crashing due to some issue.

Thank you, I should have looked into the logs. You are right, it shows this over and over 1000 times:
-- Logs begin at Wed 2019-10-23 11:29:09 CEST, end at Fri 2020-10-16 09:14:33 CEST. --
Oct 15 18:21:01 m.xxx.org systemd[1]: Started Matterbridge to bridge chats.
Oct 15 18:21:04 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Running version 1.18.3 8b26e42a" prefix=main
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway unity" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway events" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway shaders" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway collaborations" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway inspiration" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway jam" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Parsing gateway general" prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Starting bridge: mattermost.mymattermost " prefix=router
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Connecting using login/password (sending and receiving)" prefix=mattermost
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=info msg="Connecting b0t (team: creativecodebln) on chat.xxx.org:443" prefix=mattermost
Oct 15 18:21:09 m.xxx.org matterbridge-1.18.3-linux-64bit[1546]: time="2020-10-15T18:21:04+02:00" level=fatal msg="Starting gateway failed: Bridge mattermost.mymattermost failed to start: "https://chat.xxx.org:443/api/v4/users/logout: model.client.connecting.app_error, Post \"https://chat.xxx.org:443/api/v4/users/logout\": dial tcp x.x.x.x:443: connect: connection refused"" prefix=main
Oct 15 18:21:04 m.xxx.org systemd[1]: matterbridge.service: Main process exited, code=exited, status=1/FAILURE
Oct 15 18:21:04 m.xxx.org systemd[1]: matterbridge.service: Failed with result 'exit-code'.
Oct 15 18:21:05 m.xxx.org systemd[1]: matterbridge.service: Service hold-off time over, scheduling restart.
Oct 15 18:21:05 m.xxx.org systemd[1]: matterbridge.service: Scheduled restart job, restart counter is at 1.

I'll try to figure out why that connection refused is happening. In the Mattemost System Console I see a Revoke Sessions for my bot user. Could that be useful?
Feel free to close the issue if it's obviously not an issue with Matterbridge.

Solved. First I changed a bunch of settings in Mattermost, with the goal of enabling the use of tokens, which do not expire. I suspect the log in in mattermost had expired. I commented out Login and Password, used Token instead.
It still did not start. I was then having this issue https://github.com/42wim/matterbridge/issues/1263 which I solved by changing the bot settings in discordapp.
I enabled two settings, one of them allows reading the list of users.


Allow a single word as audit mode "character"

Instead of using one character to hide passwords in audit mode you now can also use a single word:

Idea from #178

Thanks @mpgn 🙌

@NeffIsBack did all the work aha

Cc @NeffIsBack

Just one note, looks like the output is still incorrect for disabled accounts

Did you reinstall Netexec? It worked in my side when it got merged

This was a fresh install with pipx

👍🏼 I will recheck later

https://github.com/search?q=repo%3APennyw0rth%2FNetExec self.config.get('nxc'%2C 'audit_mode')&type=code
:)

https://github.com/search?q=repo%3APennyw0rth%2FNetExec self.config.get('nxc'%2C 'audit_mode')&type=code
:)

Rough
@pgormington-r7 thanks again for pointing out, should be fixed with #186


Fix implode/0 to emit replacement characters on invalid input numbers

This PR improves jq compatibility of the implode/0 filter. See https://github.com/jqlang/jq/pull/2646.

Nice, thank you!

I'll let fix CI and then release v0.4.0


Lightmapper is compatible with clustered light mode

Lightmapper can use clustered lights when baking now - it internally allocates clustered lights structure which is updated with lights during baking.

Clustered lighting has been improved to support flags on the light: affectLightmapped, affectRealtime.

Renamed light mask constant to match the light properties (those are all private)

If there is a way to automatically figure out number of lights per cluster and number of clusters when baking for lightmaps, to avoid hitting a limits with too dense/high number of lights while baking lightmaps?

Lights are getting baked one at a time as before, so the clustered structure is set to support up to 4 lights are. time (single texture read, minimum supported) ..
I considered baking more lights at a time (all that could fit their shadows into the atlas), but this has not been done (yet).


A workaround on UDP connection refused issue when Logstash IP is changed

We deploy container services into Amazon ECS for both logspout and logstash; but if logstash service is restarted, the IP could be changed, but logspout-logstash module doesn't resolve the DNS after TTL, and it will bring a lot of "UDP connection refused" error and never come back to work.
I add few codes to make sure the logspout container will kill itself when UDP connection refused error happens, and Amazon ECS will automatically restart it, and then the correct IP will be resolved, and service can work again.
Of course, it's a workaround, and we are looking for the team can provide a better solution to resolve DNS after TTL.
Thanks
ye

Just ran across this as well, hoping this gets updated and merged soon.


request(i18n): let user set personal language

Is your feature request related to a problem? Please describe.
If I'm in a server where Skyra's language is set to, say, German, I can't set my own language to override this - currently I would have to ask an admin to change it for everyone.
Describe the solution you'd like
I would like to be able to set a language exclusively for my account that would override any server-set languages.
Describe alternatives you've considered
None.
Additional context
This would be changed with a command (something like setLanguage) similar to setColour.

This won't be needed with Discord's changes in i18n for slash commands, which will now send the user's and the guild's language.


Error 500 when consulting CT

I downloaded latest version of the library and tried to run some URLs through the get_ctshares method, but I started receiving error 500 from it.
This is in the logs
Unexpected http response code 500 on url with id 1
Unexpected http response code 500 on url with id 2
Any idea what might it be?

response code 500 is internal server error. I guess CT servers are experiencing some temporary issue.

You are correct, there is a major outage in CT servers. Thank you


docs: version links (master)

Improves cross document linking per https://github.com/elastic/apm/issues/19

The apm-ci has failed twice. Is there something I need to fix?

@bmorelli25 unfortunately we have some issue with falling network requests. It has nothing to do with your PR, you can go ahead and merge this.


Defer db connection test until sqlite db file exists

Checking the database configuration fails because it happens before creating a custom storage dir.
#ROSSconf

Thanks for the fix!


 I intend to put the URL of both commit and build used as reference to generate the commit, and I also would like to remove the "reflect" word because it may be confusing. This should be fast. However, I need to wait #715 to be merged first.

ok I'm waiting for Travis before merging #715


Added styling and hover effects for modals of movie page

Added styling and hover effects for modals of movie page, added linear gradients which look beautiful than before.
Link of changes made: https://www.recordjoy.com/view/YdRxp7RwSZ15hkWX5LAv

@AdnanMuzavor   Everything is fine just let hover over edit icon and delete icon stay same as before

Okay @SaraswatGit


feat: Make port for hurl files configurable through hurl variables

Feature Request
Describe the Feature Request

The port for hurl files now is 9944 we want to make it configurable through hurl variables.
Describe Preferred Solution

Hurl variables do not exist natively but you can create them following this technique:
Hurl is a command-line tool and scripting language for HTTP. It's similar to cURL but includes the ability to execute sequences of HTTP requests and to examine the results. Hurl files are essentially text files that include HTTP requests in the Hurl syntax.
As of my last update in September 2021, Hurl does not natively support variables or dynamic values in the same way as some other HTTP scripting languages. However, there are some workarounds for this:

Use a pre-processing tool: You could use a script or another program to pre-process your Hurl files and replace placeholders with the desired values. This could be as simple as a bash script using sed or awk, or a more complex Python or JavaScript program.

Environment variables: Another common pattern in command-line tools is to use environment variables to pass in dynamic values. If you're using Hurl in a Unix-style shell (like bash or zsh), you could use environment variables in your Hurl files, and then use shell substitution to replace them with actual values when you run the Hurl command.

Here's an example of what that might look like:
export URL='https://myapi.com'
hurl "$(envsubst < my-request.hurl)"

In this case, my-request.hurl would include a placeholder like ${URL} where the URL should be. The envsubst command replaces ${URL} with the value of the URL environment variable.
Remember that Hurl is not a full-featured programming or scripting language and does not have built-in support for variables or dynamic content. For more complex scenarios, you might want to use a different tool or language that includes these features. If you're working with APIs, tools like Postman or languages like Python or JavaScript (with libraries like Requests or Axios) can provide much more flexibility.
As Hurl might have been updated to include this functionality after my last update in 2021, please check the latest documentation to ensure this information is up-to-date.

For sure that's a great take.
I think you can assign @MdTeach, @abdelhamidbakhta

According to the current documentation of Hurl, it appears that variable injection can be accomplished natively:
hurl --variable URL =http://<IP_ADDRESS>:9944 starknet_call.hurl

or,
export URL=http://<IP_ADDRESS>:9944
hurl --variable  starknet_call.hurl

or,
hurl --variables-file hurl-config.env starknet_call.hurl

So, we can have a config file for the default URL value which can be configurable. @phklive can I take this with the config file approach?

Assigned to you


contact.onConnected() not triggering

Hi all,
We are facing the issue, that sometimes contact.onConnected() is not triggered on voice contact.
We have through logs and identified that contact.onAccepted() callback is properly received but contact.onConnected() is not received. Sometimes it throws an error signalling_handshake_failure and sometimes no error is received.
We are using version 2.2.0 for the streams SDK.
Following are the logs
`[2022-08-05T15:09:50.992Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]: [ContactService.acceptContact()] Accepted contact via Streams
 [2022-08-05T15:09:48.709Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  [Softphone Manager] softphone manager initialization has begun
 [2022-08-05T15:09:48.719Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  Contact exist in the snapshot. Reinitiate the Contact and RTC session creation for contactIdf150db0a-ad5c-4f2f-b809-c5eb9643555e agent connectionId 88ddeeb5-bf98-4eba-8705-c07cb5515cc0
 [2022-08-05T15:09:48.720Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  Contact detected: contactId f150db0a-ad5c-4f2f-b809-c5eb9643555e agent connectionId 88ddeeb5-bf98-4eba-8705-c07cb5515cc0
 [2022-08-05T15:09:48.727Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  Softphone call detected: contactId f150db0a-ad5c-4f2f-b809-c5eb9643555e agent connectionId 88ddeeb5-bf98-4eba-8705-c07cb5515cc0
 [2022-08-05T15:09:48.754Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION null => GrabLocalMediaState
 [2022-08-05T15:09:49.086Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION GrabLocalMediaState => CreateOfferState
 [2022-08-05T15:09:49.095Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION CreateOfferState => SetLocalSessionDescriptionState
 [2022-08-05T15:09:49.097Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION LocalSD [object RTCSessionDescription]
 [2022-08-05T15:09:49.100Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION SetLocalSessionDescriptionState => ConnectSignalingAndIceCollectionState
 [2022-08-05T15:09:49.102Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING null => PendingConnectState
 [2022-08-05T15:09:49.103Z] [LOG] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION onicecandidate {"candidate":"candidate:364264959 1 udp 41819904 <IP_ADDRESS> 59270 typ relay raddr <IP_ADDRESS> rport 0 generation 0 ufrag +zIO network-id 2 network-cost 10","sdpMid":"0","sdpMLineIndex":0}
 [2022-08-05T15:09:49.104Z] [LOG] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION Pending signaling connection
 [2022-08-05T15:09:49.104Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING PendingConnectState => PendingInviteState
 [2022-08-05T15:09:49.104Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION ConnectSignalingAndIceCollectionState => InviteAnswerState
 [2022-08-05T15:09:49.105Z] [LOG] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING Sending SDP v=0
 [2022-08-05T15:09:49.106Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING PendingInviteState => PendingAnswerState
 Active agents Array(4)
 Object
 [2022-08-05T15:09:54.124Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING PendingAnswerState => FailedState
 [2022-08-05T15:09:54.124Z] [ERROR] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION Failed handshaking with signaling server Timeout
ERROR @ connect-streams-min.38499a86.js:1
 [2022-08-05T15:09:54.124Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION InviteAnswerState => FailedState
 [2022-08-05T15:09:54.124Z] [ERROR] [327418fb-df8c-4848-91d7-ab65eac98d89]:  Softphone error occurred :  signalling_handshake_failure Handshaking with Signalling Server wss://rtc.connect-telecom.eu-central-1.amazonaws.com/LilyRTC failed.
ERROR @ connect-streams-min.38499a86.js:1
 [2022-08-05T15:09:54.127Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING closing virtual connection
 [2022-08-05T15:09:54.178Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  sendSoftphoneReport success{"callStartTime":"2022-08-05T15:09:48.736Z","callEndTime":"2022-08-05T15:09:54.124Z","gumTimeMillis":332,"initializationTimeMillis":364,"iceCollectionTimeMillis":3,"signallingConnectTimeMillis":3,"handshakingTimeMillis":null,"preTalkingTimeMillis":null,"talkingTimeMillis":null,"cleanupTimeMillis":null,"iceCollectionFailure":false,"signallingConnectionFailure":false,"handshakingFailure":true,"gumOtherFailure":false,"gumTimeoutFailure":false,"createOfferFailure":false,"setLocalDescriptionFailure":false,"userBusyFailure":false,"invalidRemoteSDPFailure":null,"noRemoteIceCandidateFailure":null,"setRemoteDescriptionFailure":null,"softphoneStreamStatistics":[{"softphoneStreamType":"audio_input"},{"softphoneStreamType":"audio_output"}]}
 myWebSocket message from server  Object
 [2022-08-05T15:09:54.124Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING PendingAnswerState => FailedState
 [2022-08-05T15:09:54.124Z] [ERROR] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION Failed handshaking with signaling server Timeout
ERROR @ main.c6a37f9….js:1
 [2022-08-05T15:09:54.124Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SESSION InviteAnswerState => FailedState
 [2022-08-05T15:09:54.124Z] [ERROR] [327418fb-df8c-4848-91d7-ab65eac98d89]:  Softphone error occurred :  signalling_handshake_failure Handshaking with Signalling Server wss://rtc.connect-telecom.eu-central-1.amazonaws.com/LilyRTC failed.
ERROR @ main.c6a37f9….js:1
 [2022-08-05T15:09:54.127Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  f150db0a-ad5c-4f2f-b809-c5eb9643555e SIGNALING closing virtual connection
 [2022-08-05T15:09:54.178Z] [INFO] [327418fb-df8c-4848-91d7-ab65eac98d89]:  sendSoftphoneReport success{"callStartTime":"2022-08-05T15:09:48.736Z","callEndTime":"2022-08-05T15:09:54.124Z","gumTimeMillis":332,"initializationTimeMillis":364,"iceCollectionTimeMillis":3,"signallingConnectTimeMillis":3,"handshakingTimeMillis":null,"preTalkingTimeMillis":null,"talkingTimeMillis":null,"cleanupTimeMillis":null,"iceCollectionFailure":false,"signallingConnectionFailure":false,"handshakingFailure":true,"gumOtherFailure":false,"gumTimeoutFailure":false,"createOfferFailure":false,"setLocalDescriptionFailure":false,"userBusyFailure":false,"invalidRemoteSDPFailure":null,"noRemoteIceCandidateFailure":null,"setRemoteDescriptionFailure":null,"softphoneStreamStatistics":[{"softphoneStreamType":"audio_input"},{"softphoneStreamType":"audio_output"}]}`

The onConnected handler is not firing because your contacts are not connecting successfully -- your RTC connection with the softphone backend is not setting up successfully. This is not a Streams issue; you will need to reach out to AWS Support for troubleshooting with your network to identify the issue you're having connecting from your network to the RTC endpoints.


pytest fails due to hardcoded paths

hi,
The pytest fails because of the absolute path used for loading the configurations.
/pbtech_mounts/homes064/lam4003/bin/camp_short-read-quality-control/.tests/unit/fastqc_post/data

Hi -- thank you for the heads up -- cc @lauren-mak
We'll get this cleaned up in the next release -- in the meantime, you should be able to still test on your system this using the example commands/the data in the repo

This has been addressed in the latest update (version 0.7.0). Please pull it, go over the README.md to make sure the module has been set up properly, and see if it works. Thanks for using the CAMP short-read QC module!


0.16.0 fail to install on ruby 2.2.4 on windows x64

on windows 8.1 x64:
gem -v
2.6.2
ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]
gem update

Updating installed gems
Updating grape
Fetching: enumerable-lazy-0.0.1.gem (100%)
Successfully installed enumerable-lazy-0.0.1
Fetching: mustermann19-0.4.3.gem (100%)
Successfully installed mustermann19-0.4.3
Fetching: grape-0.16.0.gem (100%)
ERROR:  While executing gem ... (Errno::EINVAL)
    Invalid argument @ rb_sysopen - D:/program/dvlt/ruby/ruby22-x64/lib/ruby/gems/2.2.0/gems/grape-0.16.0/:wq

remark: mustermann19 exist for ruby 1.9 compatibility. but here we are on ruby 2.2.4
any idea ?

Gosh... The problem is my bad. It is including unnecessary files.
So I've yanked the releasing. Please waiting for me.

I've released 0.16.1. Please use it instead of 0.16.0.
Sorry for the inconvinience.

install fine but not tested. Thanks

Thanks.
Please let us know if you still have a problem.


Override introspection?

Hi, is it possible to override the introspection behavior?
In particular, I have a custom APIView base class which allows me to declare my views like this
class MyView(APIView):
    request_serializer = Serializer1
    response_serializer = Serializer2

I don't want to repeat the serializer information in the docstring; I want to override the introspection behavior to get the serializers directly from the view class variables.
Is this possible? I see something similar to this using this 'view_mocker' functionality (which looks like a very weird way to override behavior unless I don't understand what it is trying to solve), but the view mocker only supports getting a single serializer, not different ones for request/response.
I was expecting to find something like choosing the introspection class at settings level, but I don't see any such option. Any thoughts on this?

Likely this could be solved by using read_only and write_only fields on the serializer rather than using 2 different classes.
DRF is now responsible for schema generation as of 3.4.

Likely this could be solved by using read_only and write_only fields on the serializer rather than using 2 different classes.

But the request data is a completely different thing than the response data, why would I put these two different data structures in the same serializer?

DRF is now responsible for schema generation as of 3.4.

No clue what this means or how this helps, can you elaborate?

@dtheodor Sure. Django REST Framework has a new feature in 3.4 which auto-generates a documentation schema for the REST API; the responsibility for introspection and overrides is now handled by DRF, whereas this project is responsible for rendering.
See:
http://www.django-rest-framework.org/api-guide/schemas/
http://www.coreapi.org/


Update anomaly-sensitivity.mdx

When adding sensitivity on a model level, it throws this keyword error:  macro 'dbt_macro__test_volume_anomalies' takes no keyword argument 'anomaly_sensitivity'
It should be sensitivity instead of an anomaly_sensitivity.

Thanks for contributing this.


Multiple Bot responses

Allow multiple bots per network, to respond with each other

Would create unnecessary complications.


Can go-swagger support this json tag? Id int64 "json:id,string"?

Problem statement
Please remove the sections that don't apply
Swagger specification
Steps to reproduce
Environment
swagger version: x.x.x
go version: x.x.x
OS:

It should already support it yes

Ok, I will try again, thank you very much.

how to support this ',string' directive in spec yml?


feat: expose the inner fd of Kqueue

What does this PR do

impl AsFd for Kqueue
impl From<Kqueue> for OwnedFd

The author of #2183 wants to use the inner fd to identify a Kqueue instance, this PR implements it, so closes #2183
Should we do impl AsRawFd for it as well, I don't have any strong view over this, but if we have made decision on this, we should do it to all the I/O-safe types
Checklist:

[x] I have read CONTRIBUTING.md
[ ] I have written necessary tests and rustdoc comments
[x] A change log has been added if this PR modifies nix's API

I think this PR is probably ok.  But I still don't understand @eesekaj's use case.  It sounds like he wants to close the file descriptor without dropping the Kqueue, which is very unsafe.

I think this PR is probably ok. But I still don't understand @eesekaj's use case. It sounds like he wants to close the file descriptor without dropping the Kqueue, which is very unsafe.

Calling	close()	on a file  descriptor	will remove any	kevents	that reference the descriptor.
There is no way to drop Kqueue in kernel form userland. And I don't need the instance Kqueue which is created by nix crate, because we have our own abstraction above raw FD and FD is used to identify the instance. If I extract FD from Kqueue, the Kqueu should be consumed and dropped automatically. But in your previous implementation, it was made private and no way to even read the FD number.

I think this PR is probably ok. But I still don't understand @eesekaj's use case. It sounds like he wants to close the file descriptor without dropping the Kqueue, which is very unsafe.

Calling close() on a file descriptor will remove any kevents that reference the descriptor.
There is no way to drop Kqueue in kernel form userland.

Are you aware that dropping the Kqueue will automatically close its file descriptor?

And I don't need the instance Kqueue which is created by nix crate, because we have our own abstraction above raw FD and FD is used to identify the instance. If I extract FD from Kqueue, in this case the Kqueu should be consumed and dropped automatically. But in previous implementation, it was made private and no way to even read the FD number.

If you have your own abstraction anyway and don't use our Kqueue::kevent then yes I agree with what you said in the issue.  You should just use libc directly because our abstraction isn't providing any benefit to you.

Should we merge this?

I think your PR is reasonable.  The only troubling part is @eesekaj 's explanation for why he wanted it.  He never did fully explain it.  I think he was trying to close the kqueue, and didn't understand that closing it happens automatically on drop.

The only troubling part is @eesekaj 's explanation for why he wanted it. He never did fully explain it. I think he was trying to close the kqueue, and didn't understand that closing it happens automatically on drop.

Maybe that usage is very specific to their project, and they switched to the libc crate


Link in issue template leads you to a porn site

The link you have in your issue template leads me to a porn site.
https://github.com/nuxt-modules/apollo/blob/1f52586ab7ae3944b0cbfccc01c893ca3c9c8df9/.github/ISSUE_TEMPLATE.md?plain=1#L4

@mikehaertl Thank you for pointing this out.


MySQL timestamp type convert to user-define timezone

When sync data from mysql binlog, timestamp column alway be converted to UTC timezone, we need implements debezium CustomConverter class to convert to our timezone.

Did you try to use the server-time-zone option?

Did you try to use the server-time-zone option?

It has been set to “Asia/Shanghai” and still does not take effect，and the timestamp field I got is 8 hours less than in the database.

I also encountered with this issue. I add the timezone after the url and it works.
Hope this can help you.

Closing this issue because it was created before version 2.3.0 (2022-11-10). Please try the latest version of Flink CDC to see if the issue has been resolved. If the issue is still valid, kindly report it on Apache Jira under project Flink with component tag Flink CDC. Thank you!


Auth::check() fails when using non-default provider in Multiple Providers configurations. Only default provider returns Auth::check() true

Laravel Version: ^6.0
Adldap2-Laravel Version: ^6.0
PHP Version: ^7.1.3
LDAP Type: ActiveDirectory

Description:
I have a requirement to allow staff login from multiple LDAP servers. Hence I configured multiple connection providers in ldap.config. Since I don't want to sync staff information in my local database, I am using NoDatabaseUserProvider
'provider' => Adldap\Laravel\Auth\NoDatabaseUserProvider::class,
Now the problem is, when I try to login using a staff member using the default connection provider , the login works fine. When I change the default connection provider to something set in ldap.config, it authenticates the user but in middleware Auth::check() fails.
            $provider = Adldap::getProvider($connectionProviderName);

            $user = $provider->search()->users()->find($username);

            $distinguishedname = $user['distinguishedname'][0];

            if ( $provider->auth()->attempt($distinguishedname, $password) ) {
                $this->guard()->login($user, false);
                return redirect()->route('dashboard.index');
            } else {
                return redirect()->route('login');
            }

Steps To Reproduce:

if $connectionProviderName is the default provider, then staff is taken to dashboard.
if the $connectionProviderName is not default provider, then $provider->auth()->.... returns true, staff is taken to dashboard route, but in the middleware Auth::check() fails and hence staff is redirected to login page.

Anyone who experienced similar issue?

Hi @yogeshgupta2931,
Unfortunately multi-domain authentication is not supported right now. So you will need to use workarounds to get this going.
The implementation you have above will not work. You need to use Laravel's Auth::attempt() method, not the Adldap2 provider auth()->attempt() method which does not set up a Laravel session. This is described in the documentation:
https://adldap2.github.io/Adldap2-Laravel/#/auth/setup?id=nodatabaseuserprovider
There is a large distinction between the two Adldap2-Laravel authentication providers.
The DatabaseUserProvider only requires connectivity once (during authentication). Once a user authenticates, a local database record of the user is created and synchronized. On subsequent requests, the local database record of the synchronized user is retrieved - exactly how standard Laravel database authentication works. No further connectivity is required.
The NoDatabaseUserProvider however, requires connectivity to your LDAP server for every user request, because it must retrieve the authenticated users information from your server as it is not stored anywhere in your Laravel application.
This means, you must actually set a session variable after your user authenticates with the domain you have configured, and then dynamically retrieve this in your AppServiceProvider (or somewhere similar) and override the default configured connection inside your ldap_auth.php file.
There are many, many issues already on this (here's a couple: #725, #514, #665, #712), so I am closing this as to not overflow the issues tab.
Thanks!


More flexible tags for reports

Is your feature request related to a problem? Please describe.
The linux-kernel build is highly configurable. Every stakeholder interested in tracking static analysis reports has stakes in a slightly different kernel configuration. Hence, the report of interest due to a specific kernel build, i.e., tool run, is slightly different, although with large overlap of reports to the reports of other stakeholders.
Currently, we use different products for runs with different configs. This leads that a report that is common to two configs is recorded twice in the two products, and the assessment of the report is not shared between the two products.
We could use individual runs for each config within a product, which would make the sharing possible, but that would also mix together with runs of different versions, i.e., we already use runs for the results on the daily version.
Describe the solution you would like
To make tracking of static analysis reports a reasonable community effort, we would like to combine results from multiple configurations to one run and simply tag each report in which configuration this report was included.
Such a tagging, as available for github issues, would allow to implement many more flexible/other use cases as well.
Describe alternatives you have considered
We are happy to consider any other alternative.
Additional context
tbd.

@bulwahn CodeChecker from the previous 6.16.0 release supports storage of multiple report directory with one command:
CodeChecker store -n myrun ./report_dir1 ./report_dir2. For example you can use it if you run the analysis with different configurations (e.g.: cut / non-ctu) but you want to create only a single run.
On the gui if you click on a report there will be an Analysis info button which will show exactly from which analysis command does this report comes from. Isn't it enough for you?
By the way this issue is the same as #561.

I think storing from multiple configurations into one single run could be sufficient, but we would also need to be able to filter results based on the Analysis info then, tagging each report would be more flexible, of course.
This issue here is a duplicate to #561, here it is motivated by a specific use case.


Catch up with ddiatmb's fork

You've had a pending pull request for the reports API for years. ddiatmb's fork is the furthest ahead.
Is there some other up to date Ruby Toggl API wrapper everyone else knows about?

You're right. It's time to update this library.
When itaymendel made a PR in November of 2013 I was too busy dealing with a heavy workload and a car crash. It fell through the cracks. This project has been on my mind lately because it is the oldest item on my TODO list.  Looks like some others have made some progress.
I also want to reorganize the library into a gem and replace test.rb and atest.rb with rspec tests.
I'll try to make some time for this soon. Anyone have PRs to contribute?

Reorganizing the tests is a good idea. @ddiatmb's fork includes the @itaymendel's work and more, so if that master branch was pulled, that would be a good restarting point. I'm not sure if any API aspects are missing, but completing them would be the next step if it isn't. Let me know if there's anything I can help with.

The state of @ddiatmb fork is:

Reports API is included (at the point where the open PR is)
some project_groups functions are added (although it's hard to say if it's a proper implementation as these functions are undocumented in API docs)
it's gemified

Basically it's two or three forks merged together with some minor additions and fixes.

togglv8 gem (0.2.0) released!
I converted my code to a gem (togglv8 on rubygems) and added rspec tests. It has about 90% test coverage along happy paths and is well organized for the addition of more specs.
I spent some time refactoring and the code is much better organized. Please take a look for yourself. I'm open to suggestions or pull requests.
Next Steps
I made a TogglV8 module with an internal TogglV8::API class with the intention of adding TogglV8::Reports. I plan to include the Reports code written by others.
I see @itaymendel created a TogglCon module and included it in Toggl  and TogglReports. I might follow that convention if anyone can explain why it's a better direction. Any opinions on the matter?
These are the forks I'm aware of. Any others?

https://github.com/ddiatmb/togglv8 (most up-to-date?)
https://github.com/archonic/togglv8
https://github.com/ppawlikmb/togglv8
https://github.com/madcowley/togglv8

Please take a look if you have some time.
And thanks for your efforts on this!

@kanet77 I had to move the methods to a module so that i can reuse them. the decision to put it in a module, was because at the time it was the fastest way for me to use them, without refactoring other parts of the gem. The only important part of the code is reportsV2.rb file. I wanted to add it without changing too much of the code.
Perhaps now is a good time to do some refactoring :+1:
Anyway, I'm glad to see that this gets done, and I hope that you are feeling well!

Great! My fork only had a fix for namespacing on the test files. Eventually I'll be using something close to the full API. Currently I'm most concerned about the reports side of things. I'll give this a spin.

I can't believe it's been an entire year. I no longer use Toggl or write Ruby code. Sorry that this was on the back burner for so long.
TogglV8 now supports the Reports API. Any comments, PRs, or suggestions are welcome.
Cheers!


Run alluxio processes with tini in containers

This solves the issue related to https://github.com/docker-library/openjdk/issues/76
In a container based on java alpine, commands like jmap, jstack don't work, and the pid of alluxio processes like AlluxioWorker is 1.
Before:
bash-4.4$ jps
1 AlluxioMaster
904 Jps
bash-4.4$ jstack 1
1: Unable to get pid of LinuxThreads manager thread

After:
bash-4.4# jps
357 Jps
6 AlluxioWorker
# And jstack will work

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-PR-Builder/11431/
Test PASSed.

tested

alluxio-bot, merge this please.

alluxio-bot, merge this to branch-2.4 please

alluxio-bot, cherry-pick this to branch-2.4 please

alluxio-bot, cherry-pick this to branch-2.4 please


ThreeDSecure teardown function not closing the authentication modal.

General information

SDK version: 3.79.1
Environment: Both
Browser and OS: All

Issue description
The ThreeDSecure version 2 authentication modal, that comes up after invoking verifyCard function, does not close when teardown function is invoked.
Code for creating initializing verification:
const threeDSecureClient = await threeDSecure.create({
      client: braintreeClient,
      version: 2,
    });
// initialize verification. This will open the modal
await threeDSecureClient.verifyCard(options);

Teardown method call:
// same client created above
threeDSecureClient.teardown()

I am also calling teardown for braintree client but that also doesn't closes the modal.
The scenario here is that, we a building a single page application. When the user navigates to the payment screen and this modal shows up, the user can click on the browser's back button, we are calling the teardown methods which works without any error, but the modal stays on the screen while the page behind it changes due to back navigation. As this is an SPA, no page load on clicking the browser's back button.

Unfortunately, the modal is controlled by a 3rd party sdk (Cardinal's Songbird SDK), and we have no hook to close it programatically. https://cardinaldocs.atlassian.net/wiki/spaces/CC/pages/557065/Songbird.js
You can use the 2-inline-iframe option for version when creating the component. (see the Creating a v2 3D Secure component using 2-inline-iframe version example here: https://braintree.github.io/braintree-web/current/module-braintree-web_three-d-secure.html#.create). Though, that will require you to create your own modal experience and insert the provided iframe into it, but then you have full control over how it displays.


Training and validation datasets

Do you plan to publish generator code of training and validation datasets?
It seems that you have created 1 positive record for even records in CodeSerachNet; 2 negative and 1 positive for odds records in CodeSearchNet. Am I right?

Hi @marscod ,
Data processing is very simple. We keep all instances from CodeSearchNet as positive examples, and randomly replace NL or PL in each instance to generate negative examples. In the end, positive and negative samples are balanced, and negative samples consist of balanced number of instances with randomly replaced NL(pl, nlrandom) and PL(plrandom, nl).

Thanks for the prompt response.


Cmd+C and Cmd+V do not copy the entire line of code

Type: Bug
Used to work fine if I just want to copy the entire line and paste it below. Now it copies it but with some weird shift, not straight one below another. I think the position of cursor on the original line matters when you try to copy.
 The Start Extension Bisect command can help you check this.

wow it is a useful thing!!! Though it said in the end that no extension identified so might be VSCode

The issue remains in the latest VSCode version

Please provide details of a simple repro. Paste a screenshot if you think that will help explain.

You can see before and after Copy/Paste

It looks like it only copies a string starting from the cursor to the end of the line not the entire line as it was before

Please show this happening in a plaintext file with all extension disabled.
Please also check your editor.emptySelectionClipboard setting, and use the Keyboard Shortcuts editor to verify that Cmd+C hasn't been bound to anything non-standard.

Have the same issue even with all extensions disabled. Not using the editor.emptySelectionClipboard in my settings

Hi, i have the same issue, it is only seems when copying from compare's source tab. The others copy sources are proper.
I tried this when all extensions disabled.
It seems to copy the "newline" characters after the line content when copying from the compare source tab, normally in other places it copies the "newline" characters before the line content.

I think it's new "Paste As" option behavior from vscode 1.79.
You can disable it by "Editor > Paste As: Enabled".

Yes @musashi-miyamoto it was fixed when i disabled this setting. Thank you.


Add view of all offers

Short description
This PR adds the view to see all offers at once. This view also provides the option to search and filter the provided offers.
Proposed changes

Remove the current index view, since it's no longer wanted
Instead add the all offers view as a replacement
Show all offers
Add functionality to filter and search the offers
On click on one of the offers open a detail view for the offer

Side effects
This PR is still a work in progress. Please find the questions, that made me get stuck in the comments below
Resolved issues

Fixes: #39
Fixes: #40

@charludo and @svenseeberg please feel free to check out the failing tests, especially the last one

Just noticed: It would probably be a good idea to create two additional example offers, approve them, and add them to the test data fixture (since otherwise, the list of public offers is empty)

Thank you for your feedback. All raised issues should be resolved, if I didn't mess up the rebase again :see_no_evil:. The only issue that's left is this line that raises a Django error "Cannot resolve keyword 'public_version' into field". @charludo could you please have another look at it? :)

Thank you for your feedback. All raised issues should be resolved, if I didn't mess up the rebase again see_no_evil. The only issue that's left is this line that raises a Django error "Cannot resolve keyword 'public_version' into field". @charludo could you please have another look at it? :)

You're right, it appears filtering by model property is not possible, sadly. I opted for a list comprehension after we are done working on the queryset - @timoludwig, do you have a smart idea how to do this more nicely? (In the mean time though, I guess this works...)
Also added some new test data and modified the tests accordingly.
From my side, this is ready to merge, even if we come back to some details later.

You're right, it appears filtering by model property is not possible, sadly. I opted for a list comprehension after we are done working on the queryset - @timoludwig, do you have a smart idea how to do this more nicely?

The only way to do this is to "re-implement" the property via queryset methods. Since the possibilities of Django's Q() & F() expressions, aggregations and annotations are nearly endless, I'm pretty confident that for almost every python property, there is a way to calculate it on the sql layer. It's just a lot more complicated to write these complex queries than to express the same thing in simple python code.
In this particular case however, I don't think it's too complicated - since PR #70 added the change that the state field of offer versions is stored in the database instead of calculated dynamically. If I understood correctly, we want to filter for Offer objects that have at least one approved version? This could easily be expressed as:
filtered_offers = filtered_offers.filter(versions__state=offer_version_states.APPROVED).distinct()

(hopefully - I didn't test this, but to me it looks like it should work :innocent:)

filtered_offers = filtered_offers.filter(versions__state=offer_version_states.APPROVED).distinct()

(hopefully - I didn't test this, but to me it looks like it should work innocent)

Ahh, good idea, I didn't even think about using the state, but you are right of course, this implies the existence of a public version. Oh well, now it's merged, so let's put this on the "later" pile 😅


Markets don't show Creation Date

They show end date, but creation date is listed as: -

Fixed in 9accd86416fbcb1973016a56e1e9e100fef89329.


fix broken link in INSTALLING.md

Fixes a broken link in INSTALLING.md - on the install page the link currently ends up in a 404.

Thanks!


DTrace actor additions

Hi, everyone.  I'm a Pony newbie.  I tried using Pony's DTrace probes for understanding a behavior problem inside of Wallaroo and found that a couple of probe descriptions had omitted some useful information.  This PR contains changes to a couple of existing DTrace probe definitions, a change to the gc.d script, and add several new scripts.
Changes to existing DTrace probe definitions
The actor-alloc and actor-msg-send probes were missing information about the actor(s) involved with the probe.  I added actor information to the end of their respective argument lists.
Enhance the gc.d script
The gc.d script was leaking memory by not clearing the self->start_gc variable.  I also added a pragma to reduce the number of error messages that I saw, casued by the small default dynamic variable buffer size.
Add new scripts
Driven equally by sheer curiosity and by a real investigation need, I've created a few new scripts.

mbox-size.d Show the number of messages sent to an actor and consumed by an actor.  Reports are printed in one second time intervals. This has been useful for testing theories of about how a slow actor's mailbox size might grow over time.

message-types.d Enumerate the runtime's unique types of messages (usually called msg->id in the Pony runtime code) and how messages of each type was sent.  Reports are printed in one second time intervals.

nanosleep.d Print a histogram of the length of time (in microseconds) for calls to nanosleep() or equivalent.  Reports are printed in one second time intervals, with separate reports for each CPU.

Very cool!


Move icons to different pods

While compiling my project copying icons take too much time especially Dripicons.ttf which I don't use. I only use FontAwesomeSolid.ttf. Is it possible to move icons to different pods so we can opt out like:
pod 'SwiftIcons', '~> 2.3.2'
pod 'SwiftIcons/FontAwesomeSolid'

This is especially painful with XCode 10.2 in release build. It takes so long that it looks like an XCode bug.

On Xcode 10.2 this kind of breaks my Travis build because it's taking too long. Is there a workaround?

On Xcode 10.2 this kind of breaks my Travis build because it's taking too long. Is there a workaround?

Well, we just removed the pod and included the font directly (we used only FontAwesome icons).


[BUGFIX] fix ELU function will appear nan when calculating the gradient

Description
fix ELU function will appear nan when calculating the gradient
e.g:
elu = nn.ELU()
elu.initialize()
x = nd.ones((2, 3))
x.attach_grad()
x[0] = 100
x[1] = -1
with autograd.record():
    y = elu(x)

y.backward()
print(y)
print(x.grad)

output is
[[100.         100.         100.        ]
 [ -0.63212055  -0.63212055  -0.63212055]]
<NDArray 2x3 @cpu(0)>

[[       nan        nan        nan]
 [0.36787945 0.36787945 0.36787945]]
<NDArray 2x3 @cpu(0)>

After experiments, it was found that the where and the exp were used together and that this bug would occur
e.g:
x = nd.ones((2, 3))
x.attach_grad()
x[0] = 100
x[1] = 5

with autograd.record():
    y = nd.where(x > 0, x, nd.exp(x))
y.backward()
print(y)
print(x.grad)

output:
[[100. 100. 100.]
 [  5.   5.   5.]]
<NDArray 2x3 @cpu(0)>

[[nan nan nan]
 [ 1.  1.  1.]]
<NDArray 2x3 @cpu(0)>

When the exp calculation appears inf, even if where does not select the value, but the gradient will still be nan,so this PR does not completely fix the problem, but based on this, modified the ELU calculation method so that it does not appear nan

@fierceX You also need to change tests/python/unittest/test_gluon.py Line 1183 to:
return mx.nd.expm1(x) if x <= 0.0 else x

so that the test could pass, thanks!

Note: There should still be a bug in the where operator.

@fierceX We'll surely investigate that.

@fierceX Can you rebase and do a force push?

@fierceX Merged, thanks for your contribution!


Use AWS secret manager instead of SOPS

As a user of flux on the management cluster I'd like to use the AWS secret manager instead of SOPS for secrets
https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-configuration-provider-with-kubernetes-secrets-store-csi-driver/

this depends from this one https://github.com/giantswarm/roadmap/issues/1073
the dependency at the moment (given the size and the current focus of the needed teams) is not likely to be worked for the Q3 and Q4 2022

@gianfranco-l imo this is not dependent on #1073. It depends on this https://github.com/giantswarm/roadmap/issues/1084

Feedback from the customer about the reasoning SOPS vs AWS secret manager:

For our Enterprise Instalations i don't like the handling of keeping secrets within the git repository for this reasons:

It has potential to be exposed by accident
You need SOPS to be installed and configured correctly
you can't see who has accessed it (auditing)
secret rotation is hard to achieve

External Secrets Operator:
With the CSI Driver you can achieve the same by Syncing a Secret to a Kubernetes Secret.
https://secrets-store-csi-driver.sigs.k8s.io/topics/sync-as-kubernetes-secret.html

Unassigned myself and added the blocked label as we wait for #1084

@mproffitt is this something that we are now doing with ESO?

We have the option available to use ESO to pull secrets out of any external secret store, not just AWS SecretsManager.
IMO the requirements here are fulfilled and can be closed as complete.


Payment apps have unpredictable identifiers when listing the available payment methods

What I'm trying to achieve
I'm working on a third-party app that would connect Saleor to an external payment provider. My app is providing two payment methods, for example credit card and check.
The app itself, exposes the id in Manifest (according to docs: https://docs.saleor.io/docs/3.0/developer/extending/apps/manifest), my app is called for example saleor-awesome-payments.  Since the app is a third party app, it automatically subscribes itself to webhooks.
After installing this app in the store, the outcome of availablePaymentGateways query is
{
	"name": "Awesome card ",
	"id": "app:11:credit-card",
	"config": [
	],
	"currencies": [
		"USD"
	]
},
{
	"name": "Awesome check ",
	"id": "app:11:check",
	"config": [
	],
	"currencies": [
		"USD"
	]
}

Everything works fine, however during the Storefront implementation, the client-app is parsing results of above query and it should map the query result to the front-end behavior.
Fact that Saleor API is using internal db-identifier to create the id values
https://github.com/saleor/saleor/blob/250d18cd6225d0a8c3cc72005a24bcfad8ac14d6/saleor/plugins/webhook/utils.py#L42
makes the mapping harder to achieve. The id value would be different in every installation of the app, so the front-end would need to use some more advanced logic for the mapping.
What do you think about using the app identifier (so saleor-awesome-payments in my example) as part of the identifier, instead of the database id? It would make sense when app is a Third Party app. For the apps created from the level of the dashboard I believe it's fine to keep the db-based identifiers.
So in my example, the payment methods would be called:

app:saleor-awesome-payments:check
app:saleor-awesome-payments:credit-card

System information

Saleor version:

[x] dev (current main)
[ ] 3.0
[ ] 2.11
[ ] 2.10

It sounds like a good idea, I think we could add a unique slug field to the App model and rely on that as an app identifier.

Clickup: https://app.clickup.com/t/2549495/SALEOR-5891

Sounds great. Looks like easy thing to fix but we need to make sure that we don't break any existing integrations that uses this approach.

The PR that introducing the proposed changes: https://github.com/saleor/saleor/pull/10772. We use app.identifier to build predictable id. If app.identifier is missing, we use app.id.


WEBRTC-646 - Handle Gateway states

WEBRTC-646 - Handle Gateway states

When the client logs in, the telnyx_rtc.clientReady message is received and it indicates that we have successfully logged in, but it not determines if the client can receive or place calls.
In order to receive or make calls, the gateway must register the client after it logs in, and this process can take some time. If the user try to make a call as soon is logged in, but before the gateway registers it, the error GATEWAY_DOWN will be received.
Now on, after the clientReady is received, we start a process to request the gateway state and wait until its state is REGED (Registered).
If the state is different than REGED, we retry requesting the state after 3 seconds, and this process is repeated until we have retried 3 times. If we have retried 3 times and the state is different than REGED, we rise an error.
A few more changes:

A loading view will be visible until the registering process is completed or failed.
An alert dialog is displayed if an error is received from the SDK.

:older_man: :baby: Behaviors
Before changes

Gateway states were not handled.

After changes

Gateway states are handled.

NOTES: This change require backend changes. DO NOT MERGE until those changes are merged.
✋ Manual testing

Change the InternalConfig to target to the DEVELOPMENT_HOST instead of PROD_HOST.
Build the SDK
Build and run the APP.
Login with development credentials.

Hi @guillermobattistel, I am not able to build / run the demo project on this branch.
Steps:

Checkout branch WEBRTC-646-gateway
Select the TelnyxRTC framework target and build the framework (iPhone 12 physical device was selected).
Select the TelnycWebRTCDemo target and run on physical device.

Error:


Can't modify frozen String from when bosh create release

Building dea_next...
No artifact found for dea_next
Generating...
Pre-packaging...

set -e -x
cd /tmp/d20160708-18620-9ozhnm/d20160708-18620-1nfsvy3/dea_next
gem install bundler -v 1.11.2
Successfully installed bundler-1.11.2
1 gem installed
Installing ri documentation for bundler-1.11.2...
Installing RDoc documentation for bundler-1.11.2...
BUNDLE_WITHOUT=development:test
bundle 1.11.2 package --all --no-install --path ./vendor/cache
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this
application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching https://github.com/cloudfoundry/warden.git
Fetching https://github.com/intridea/grape.git
Fetching https://github.com/cloudfoundry/loggregator_emitter.git
Fetching https://github.com/nats-io/ruby-nats.git
There was a RuntimeError while loading nats.gemspec:
can't modify frozen String from
/tmp/d20160708-18620-9ozhnm/d20160708-18620-1nfsvy3/dea_next/vendor/cache/ruby/1.9.1/bundler/gems/ruby-nats-d0556a0715c0/nats.gemspec:10:in
`block in '
'dea_next' pre-packaging failed
root@agent-id-bosh-0:/home/vagrant/contribute/cf-release# bosh create release

@YuPengZTE seems like the problem is coming from one of the pre_packaging script (for dea_next job) found in cf-release, not the cli itself.

I am experiencing the exact same problem as @YuPengZTE

Moved to cf-release. Closing here.


Grammar and capitalization

Codecov Report

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

@@          Coverage Diff           @@
##           master   #2793   +/-   ##
======================================
  Coverage     100%    100%
======================================
  Files          67      67
  Lines        1391    1391
======================================
  Hits         1391    1391

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 a607e85...294c9f2. Read the comment docs.

👍


add clippy config and ignore derive_partial_eq_without_eq

Summary

add clippy config and ignore derive_partial_eq_without_eq

Release Note

Documentation

looks like this does not work

looks like this does not work

On your test PR, it looks like it did fix the PartialEq / Eq clippy error, there are just a few others as well - or are you seeing something else?

ok, this works :)