Filters using numbers as strings

Dear DefectDojo Team,
I hope this message finds you well. I wanted to bring to your attention a bug that I encountered while using the DefectDojo open source program. This bug pertains to the incorrect sorting of vulnerabilities listed under the product filters.
Bug Description:
When sorting the vulnerabilities in ascending or descending order, the program treats the number of vulnerabilities as text instead of an integer. As a result, the sorting functionality does not display the correct order of vulnerabilities.
Steps to Reproduce:
Version: v. 2.22.2
Log in to the DefectDojo program.
Go to the "Product" section.
Apply sorting in ascending or descending order based on the number of vulnerabilities.
Observe that the sorting does not display the correct order.
Expected Behavior:
The program should interpret the number of vulnerabilities as an integer and display the correct sorting order when applying ascending or descending sorting in the product filters.
Actual Behavior:
The program treats the number of vulnerabilities as text, leading to incorrect sorting of the vulnerabilities when applying ascending or descending sorting in the product filters.
I attach you a example:

Additional Information:
I have encountered this issue consistently on the latest version of DefectDojo.
This bug affects the usability of the program, as it hampers efficient vulnerability management.
Please let me know if you require any further information or if there is anything else I can do to assist in resolving this bug. DefectDojo is a valuable tool, and I appreciate the effort put into maintaining and improving it.
Thank you for your attention to this matter. I look forward to hearing from you and seeing this bug resolved in a future update.
Best regards,Samuel

Hey, I would like to take this issue. Do you have any other examples where you found an incorrect sorting? I'm willing to fix them as well.

https://github.com/DefectDojo/django-DefectDojo/issues/6629


F2k-metamodel

Some tests do not work in local, if ci fails, do not merge this pull request

The error is

The errors are related to moosetechnology/Esope


Inform the user when jobs fail

Motivation
Some jobs may fail unexpectedly.
If the users can be informed when the jobs fail, the users will be able to handle the issue in time.
This will save the users from checking their job status all the time.
Design

enable this feature in job protocal, in the field extras -> informAtFailure

extras:
  com.microsoft.pai.runtimeplugin:
    - plugin: ssh
      parameters:
        jobssh: true
  hivedScheduler:
    taskRoles:
      taskrole:
        skuNum: 1
        skuType: GENERIC-WORKER
  informAtFailure:
    enable: true

Questions:

set informAtFailure by user / job ?

Implementation

add a field in protocal: extra-> informAtFailure

webportal & rest-server schema validation: refer to #5277
protocal : refer to https://github.com/microsoft/openpai-protocol/pull/9/files
parse the field when needed

define & trigger the alert

add a container framework-watcher in alert-manager, which

watch framework through k8s API
send the alert when a framework fails & this feature is enabled

handle the alert

alert-handler: add an template inform-user-job-failure
src/alert-manager/deploy/alert-manager-configmap.yaml: add a new receiver and a new route

the notification is also useful when the job succeed. maybe the feature could be rephrased as: notifying the user when a job completes.

related to https://github.com/microsoft/pai/issues/2235 https://github.com/microsoft/pai/issues/3640

Work Items
Part 1: Job / User configuration

[ ] Job configuration

[ ] add a field in protocal: extra -> informAtFailure P0

[x] no need to update protocol since extra  is free object

(webportal & rest-server schema validation: refer to #5277)
(protocal : refer to https://github.com/microsoft/openpai-protocol/pull/9/files)

[ ] parse the field when submit job

[ ]  webportal job submission page design P2

[ ] User Configuration

[ ] add a field in user info extra -> getJobStatusChangeNotificationBy P1
[ ] webportal user profile page P2

[ ] Filter alerts by users P1

[ ] add a Rest API #5407
[ ] webportal change: use REST API instead of alert-manager API

Part 2: monitor & trigger corresponding alerts P0

[ ] add the following columns to the framework table in DB to save job config & alerts state : P0
[ ] add a container framework-status-notification-poller in alert-manager, which P0

watch DB framework table
send the alert when the config is enabled & the alert has not been sent
update framework table after successfully sending alerts to alert-manager

Part 3: alerts handling P0

[ ] src/alert-manager/deploy/alert-manager-configmap.yaml: add a new receiver and a new route
[ ] alert-handler: add an email template inform-user-job-status-change


Fix TypeScript definition file issues

The weird thing is that VS Code didn't complain first time I wrote the definition file. I think it should work now! :smile:

Ah ok, thanks for fixing it! :)


Unable to use SSLKEYLOGFILE option

As i wanted to look at the decrypted packets using wireshark, i tried using the below:
export SSLKEYLOGFILE=<quic_keylog_file>, which should work for boring ssl
https://github.com/google/boringssl/search?q=SSLKEYLOGFILE&type=code
But it didn't work and i didn't get the keylog file.
Should we change the cmake file to include boringssl tool/client.cc to make it work and obtain SSLKEYLOGFILE?

Which QUICHE embedder are you using?  QUICHE does not run on its own and does not have a cmake file.  I'm asking because I assume Chrome supports $SSLKEYLOGFILE with QUIC (though I might be mistaken), so in order to make this work for your case the change might need to happen outside of QUICHE.

Thanks you for the super-fast response!
Ah, I'm sorry about the mention of cmake. I was using https://github.com/bilibili/quiche
Bit of a background, i wanted to test the masque implementation (server-client and look at the decrypted packets), which is available on only chromium (not envoy according to the build file).
Are there build instruction on building/running the server client via terminal (headless), and also setting the SSLKEYLOG?

Found a way to do it https://github.com/bilibili/quiche/issues/8
Thanks!


Failed Publishing GitHub checks  - Invalid request. skipped is not a member of ...

This is from ci.jenkins.io system log
Failed Publishing GitHub checks: ChecksDetails{name='Jenkins', detailsURL='null', status=COMPLETED, conclusion=SKIPPED, startedAt=null, completedAt=null, output=null, actions=[]}
java.io.FileNotFoundException: https://api.github.com/repos/jenkinsci/jenkins/check-runs
	at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection.getInputStream(ObsoleteUrlFactory.java:488)
	at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection.getInputStream(ObsoleteUrlFactory.java:1201)
	at org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo.bodyStream(GitHubHttpUrlConnectionClient.java:197)
	at org.kohsuke.github.GitHubResponse$ResponseInfo.getBodyAsString(GitHubResponse.java:326)
	at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:91)
	at org.kohsuke.github.Requester.lambda$fetch$1(Requester.java:74)
	at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:461)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:412)
Caused: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/jenkinsci/jenkins/check-runs {"message":"Invalid request.\n\nskipped is not a member of [\"success\", \"failure\", \"neutral\", \"cancelled\", \"timed_out\", \"action_required\"].","documentation_url":"https://docs.github.com/rest/reference/checks#create-a-check-run"}
	at org.kohsuke.github.GitHubClient.interpretApiError(GitHubClient.java:492)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:420)
	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:363)
	at org.kohsuke.github.Requester.fetch(Requester.java:74)
	at org.kohsuke.github.GHCheckRunBuilder.create(GHCheckRunBuilder.java:137)
	at io.jenkins.plugins.checks.github.GitHubChecksPublisher.publish(GitHubChecksPublisher.java:62)
	at io.jenkins.plugins.checks.BuildStatusChecksPublisher.publish(BuildStatusChecksPublisher.java:35)
	at io.jenkins.plugins.checks.BuildStatusChecksPublisher.access$000(BuildStatusChecksPublisher.java:30)
	at io.jenkins.plugins.checks.BuildStatusChecksPublisher$JobCompletedListener.onCompleted(BuildStatusChecksPublisher.java:110)
	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:610)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$800(WorkflowRun.java:137)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1037)
	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1473)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:489)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:136)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

@XiongKezhi did you ever try out skipped?
https://github.com/jenkinsci/github-checks-plugin/blob/e9ab753256f1cfb182e9a41b14d1d9f2ccf11284/src/main/java/io/jenkins/plugins/checks/github/GitHubChecksDetails.java#L130
this was the only reference I found on google:
https://github.community/t/create-check-run-documented-conclusion-skipped-does-not-work/14900

Can't remember, when I was adding this property to github-api in July (https://github.com/hub4j/github-api/pull/885), I was wondering why I missed it (since this part is also implemented by me earlier in March), maybe I tested it for the first time but didn't before adding it...
So fixing it by using CANCELLED instead?

cancelled or neutral I think


JsonLayout includeAllProperties using original object instead of the object transformed by RegisterObjectTransformation

NLog version: 6.0.2
Platform: .NET Core 5
Current NLog config
<?xml version="1.0" encoding="utf-8"?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sl="http://www.nlog-project.org/schemas/NLog.Targets.Syslog.xsd" autoReload="true" internalLogLevel="Warn" internalLogToConsole="true" internalLogFile="./logs/internal-nlog.txt">
    <!-- enable asp.net core layout renderers -->
    <extensions>
        <add assembly="NLog.Web.AspNetCore" />
    </extensions>
    <!-- the targets to write to -->
    <targets>
        <!-- write logs to file  -->
        <target xsi:type="File" name="jsonfile" fileName="./logs/service-json.log" archiveFileName="./logs/archive/app-service-json-${shortdate}.zip" maxArchiveFiles="60" archiveEvery="Day" enableArchiveFileCompression="true">
            <layout xsi:type="JsonLayout" includeAllProperties="true" excludeProperties="EventId,EventId_Id,EventId_Name">
                <attribute name="DateTime" layout="${date:format=o}" />
                <attribute name="Level" layout="${level:upperCase=true}" />
                <attribute name="Application" layout="companyapp" />
                <attribute name="EventId" layout="${event-properties:item=EventId_Id}" />
                <attribute name="EventName" layout="${event-properties:item=EventId_Name}" />
                <attribute name="Category" layout="${logger}" />
                <attribute name="User" layout="${aspnet-user-identity}" />
                <attribute name="OriginIp" layout="${aspnet-request-ip}" />
                <attribute name="Message" layout="${message} ${exception:format=tostring}" />
            </layout>
        </target>
    </targets>
    <!-- rules to map from logger name to target -->
    <rules>
        <logger name="Quartz.*" maxlevel="Info" final="true" />
        <logger name="Microsoft.Hosting.Lifetime" minlevel="Info" writeTo="console" />
        <logger name="Microsoft.*" maxlevel="Info" final="true" />
        <logger name="*" minlevel="Trace" writeTo="jsonfile" />
    </rules>
</nlog>

C# Configuration
public record StudentData(string Name, string Id);

NLog.LogManager.Setup().SetupSerialization(d => d.RegisterObjectTransformation<StudentData>(
    data => new StudentData(data.Name  + "-Modified", data.Id + "-changed" )
));

C# Code To generate the log
logger.LogInformation("Student data {@data}", new Startup.StudentData("jack", "10"));

What is the current result?

{ "DateTime": "2021-07-23T21:13:36.8439246+05:30", "Level": "INFO", "Application": "companyapp", "Category": "SyskeySoftlabs.AssetManager.ApiService.Controllers.ConfigController", "User": "Admin", "OriginIp": "<IP_ADDRESS>", "Message": "Student data {"Name":"jack-Modified", "Id":"10-changed"} ", "data": {"Name":"jack", "Id":"10"} }

What is the expected result?

{ "DateTime": "2021-07-23T21:13:36.8439246+05:30", "Level": "INFO", "Application": "companyapp", "Category": "SyskeySoftlabs.AssetManager.ApiService.Controllers.ConfigController", "User": "Admin", "OriginIp": "<IP_ADDRESS>", "Message": "Student data {"Name":"jack-Modified", "Id":"10-changed"} ", "data": {"Name":"jack-modified", "Id":"10-changed"} }

Are there any workarounds? no

Since I am transforming the object, I would expect the transformed one should be used in the generated logs. I am planning to use the RegisterObjectTransformation to strip out the sensitive data from objects before logging.
Is there any configuration I have to tweak to get the desired behavior?

JsonLayout has the option MaxRecursionLimit where the default value is 0 (zero).
0 (zero) means that it should not perform object-reflection and only call ToString(). Try changing to this instead:
<layout xsi:type="JsonLayout" maxRecursionLimit="10" includeAllProperties="true" excludeProperties="EventId,EventId_Id,EventId_Name">
  <attribute name="DateTime" layout="${date:format=o}" />
  <attribute name="Level" layout="${level:upperCase=true}" />
  <attribute name="Application" layout="companyapp" />
  <attribute name="EventId" layout="${event-properties:item=EventId_Id}" />
  <attribute name="EventName" layout="${event-properties:item=EventId_Name}" />
  <attribute name="Category" layout="${logger}" />
  <attribute name="User" layout="${aspnet-user-identity}" />
  <attribute name="OriginIp" layout="${aspnet-request-ip}" />
  <attribute name="Message" layout="${message} ${exception:format=tostring}" />
</layout>

@snakefoot Thanks for the swift response!
Unfortunately that does not seems to fix the problem. The issue still exist. (the original object is still written instead of transformed object)  .
Also found another strange issue, Seems the object transformation is only invoked once per type!
For the below two calls,
logger.Log(LogLevel.Info, "Student Data 1 {@data}", new StudentData("Jack", "10"));
logger.Log(LogLevel.Info, "Student Data 2 {@data}", new StudentData("Jack3", "11"));

The output is,
{ "DateTime": "2021-07-24T11:10:31.0080054+05:30", "Level": "INFO", "Message": "Student Data 1 {\"Name\":\"Jack-Modified\", \"Id\":\"10-changed\"} ", "data": {"Name":"Jack", "Id":"10"} }
{ "DateTime": "2021-07-24T11:10:31.0618770+05:30", "Level": "INFO", "Message": "Student Data 2 {\"Name\":\"Jack3\", \"Id\":\"11\"} ", "data": {"Name":"Jack3", "Id":"11"} }

The first output has transformed object in message but not as data
The second output does not transformed the object at all !
Created a sample https://github.com/prakashguru/NlogIssue for easier reference.

Think NLog is confused that you transform the object into the same type, instead try this:
// StudentDataModifed inherits from StudentData
public record StudentDataModifed(string Name, string Id)
    : StudentData(data.Name  + "-Modified", data.Id + "-changed");

NLog.LogManager.Setup().SetupSerialization(d => d.RegisterObjectTransformation<StudentData>(
    data => new StudentDataModifed(data.Name, data.Id)
));

Thanks for the hint! It worked for different type/ anonymous types.
Can we add that to the documentation of the RegisterObjectTransformation ? That will definitely help someone.

Have updated:
https://github.com/NLog/NLog/wiki/How-to-use-structured-logging#Customize-Object-Reflection

Note when making an override for an object-type, then the returned object-type must be of a different object-type. Because NLog caches the reflection of the return object-type, and afterwards NLog skips checking for transformation for already cached object-types.

Closing as resolved.


Importing a function called cast leads to confusing F722 and F821 errors

Using a function named cast (shadows a newish builtin) leads to somewhat confusing errors. For the test file:
from something import cast
# same with `def cast(s): pass`

abc = "123"
cast(f"tuv {abc} xyz")

We get the following unexpected results:
$ ruff tmp.py
Found 2 error(s).
tmp.py:5:6: F722 Syntax error in forward annotation: ` xyz`
tmp.py:5:6: F821 Undefined name `tuv`

I'm not quite sure what the best resolution is, maybe a warning on imports/defs that shadow cast?

Ah yeah, it's assuming that cast is typing.cast. There's a TODO to ensure that we only treat those functions as typing features if they're actually imported from typing. (It's hard to do this 100% reliably without actually executing code, but even a basic check would be helpful here.)
I could try to work on that soon. In the interim, maybe you could alias your function? Like from something import cast as scast.

(You'll run into this same problem for things like NewType, etc.)

No need to work on it any time soon, there are more important things! Aliasing is very workable

This would be a blocker for using ruff with ibis.
We have many calls to our cast method in the codebase.

Ok cool, that's really helpful to hear, will fix this soon!

This is going out in https://github.com/charliermarsh/ruff/releases/tag/v0.0.94 (building now). I tested it on ibis.

Charlie, you are too amazing.


post-voa channel power, rx low power warning and alarm thresholds, and module general status

New attribute TAI_NETWORK_INTERFACE_ATTR_ALARM_NOTIFICATION is in location of TAI_NETWORK_INTERFACE_ATTR_CURRENT_POST_VOA_PROVISIONED_CHANNEL_POWER.  Which order should we pick to resolve conflict?

@samisaab TAI_NETWORK_INTERFACE_ATTR_ALARM_NOTIFICATION is already merged. Please change the value of TAI_NETWORK_INTERFACE_ATTR_CURRENT_POST_VOA_PROVISIONED_CHANNEL_POWER and resolve the conflict.

Will that break IPI's TAI interface later?

As long as they use the right(latest) header files of TAI, it shouldn't be a problem.

OK thanks.

@samisaab Thanks!


Remove workflow as Netlify PR deployment was set up

Codecov Report
Base: 72.15% // Head: 72.15% // No change to project coverage :thumbsup:

Coverage data is based on head (7482f3c) compared to base (70e2917).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #36   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


copySelection transform should copy the full first node when fully selected

ATM, if the first node is a text node and is a fully selected, copySelection only takes its content.
This leads to behavior, that copies of one-line selections loose their type, as experienced in #699

This can still be improved.
However, this is working as expected, when the whole node is selected, i.e. including NEWLINE.


Add -h/--help args to the GUI

$ liana-gui -h

Usage: liana-gui [OPTIONS]

Options:
    --conf <PATH>       Path of configuration file (gui.toml)
    --datadir <PATH>    Path of liana datadir
    -v, --version       Display liana-gui version
    -h, --help          Print help
    --bitcoin           Use bitcoin network
    --testnet           Use testnet network
    --signet            Use signet network
    --regtest           Use regtest network

Closes #1073

I wonder if there might be a simple way to automate this, but perhaps it wouldn't be worth doing as the options don't change often.

I wonder if there might be a simple way to automate this, but perhaps it wouldn't be worth doing as the options don't change often.

'clap' crate is a good solution , but it's adding one more dependency, i think it not worth it


Set up mock API for payment requests. In doing so, set up structure f…

…or service object to support it, which provides the mock objects. Implement basic happy path tests.
Description
Sets up an API that just returns some mocked up models for payment requests. Sets up service object to fetch a list of payment requests in the future.
Setup
Add any steps or code to run in this section to help others prepare to run your code:
make server_test

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #dp3-engineering
[ ] Secure migrations have been tested using scripts/run-prod-migrations

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change.
Jira subtask for this change.

Closed and deleted, paired with @kimallen to get the functioning version of this together. PR should drop reasonably soon.


add link to new rust book in free-proramming-books-zh

What does this PR do?
Add Chinese rust book
For resources
Description
Add The Little Book of Rust Macros For Chinese
Why is this valuable (or not)?
It's an awesome book about rust macro
How do we know it's really free?
It was publish on GitHub Io with MIT license
For book lists, is it a book? For course lists, is it a course? etc.
It is a book with chapters and many resources
Checklist:

[x ] Read our contributing guidelines.
[x ] Search for duplicates.
[x ] Include author(s) and platform where appropriate.
[x ] Put lists in alphabetical order, correct spacing.
[x ] Add needed indications (PDF, access notes, under construction).
[x ] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


⚠ ClamAV has degraded performance

In c00097c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 98 ms

Resolved: ClamAV performance has improved in 0c66efe after 5 minutes.


NDRS-578: Use smaller subset of chainspec in era supervisor.

https://casperlabs.atlassian.net/browse/NDRS-578

bors merge


Sharpen filter adds transparancy lines

When i use the sharpen filter on the canvas it adds on top and bottom a transparancy line.
Saving as png the lines are clearly visible.
Is this normal?
thanks.

i had the same issue and was able to solve it by changing a small thing in the Renderer.prototype.renderKernel - function
i switched out the Math.max and Math.min respectively on these 2 lines:
start = Math.max(start, this.c.dimensions.width * 4 * ((adjustSize - 1) / 2));
end = Math.min(end, n - (this.c.dimensions.width * 4 * ((adjustSize - 1) / 2)));
to:
start = Math.min(start, this.c.dimensions.width * 4 * ((adjustSize - 1) / 2));
end = Math.max(end, n - (this.c.dimensions.width * 4 * ((adjustSize - 1) / 2)));

I'm having the same issue. Depending on the level of sharpness, it renders a transparent line at just the bottom of the image or the top and bottom.
I tried the fix from Esc4pism  - it worked to remove the transparent line at the top of the image but there's still a transparent line at the bottom.
I tried editing the level of sharpness but that did not change the issue.
Still looking for a solution.

Same here

I can't use the sharpen function, can anyone help me?
Each time I use 'this.sharpen(5)', I get an error 'this.sharpen is not a function'.
Thanks in advance.


Fix #302: View background shows through during animation

As reported in #302, the host viewcontroller background shows through
in the bottom of the view during showNavBar animation in TableView,
WebView and CollectionView examples in the Demo app. This commit
addresses the issue by taking the delta into account when calculating
the frame size changes in updateSizing.
I have tested this fix with the changes to demo app as implemented in @Alexookah 's fork at https://github.com/Alexookah/AMScrollingNavbar and the background color viewing through is not reproducing with this fix.

After a bit of additional debugging I noticed that while my initial fix indeed makes the reported problem disappear, it still is not quite correct - occasionally the view gets resized too small in height when the scrolling direction is up.
I'm going to work on this a bit over the next weekend and see if I can get it sorted out.

I'm closing this PR, there's more to the issue with non-translucent navigationbar here than meets the eye. Also the follower toolbar seems to be behaving differently depending when running with different translucency setting for the NavBar, occasionally drawing under the navbar (e.g. when the search bar appears inside navbar).
Surprisingly it seems that while the view origin is animated, the height changes immediately in the updateSizing call, causing the short period of background color showing through at the bottom of the screen.

Hey @sitomani
I've had my fair share of head scratching on this issue. I really appreciate the help on this.


Update CHANGELOG to prepare for 1.0.0b7 release

Also drops Python 3.6 support and adds 3.10 as defined by azure sdk standards and OpenTelemetry api/sdk.
https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy
https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-sdk/setup.cfg#L35

API change check
API changes are not detected in this pull request.


WebSocket transport example

Hello !
I come to this project because of this line in the README:
Vue-Transmit also has a modular upload transport. The default transport implementation uses XMLHttpRequest to upload client-side files using multi-part form data, but this could be swapped for a custom implementation for something like Firebase or WebSockets

I need to use both HTTP and WebSocket protocol to upload some files.
Unfortunately I wasn't able to find how to override the default transport implementation in the docs.
I suppose its some options to put here but can't find which ones.
I go until find this:
https://github.com/alexsasharegan/vue-transmit/pull/27
But if you have an existing example of WebSocket transport example it will save me a lot of time.
Thanks you.

The first thing to keep in mind here is that this is only available in the v9 alpha release or the master branch. It's not finalized yet, and I now work in React for my day job, so I've yet to get time to flesh this out into it's simplest form.
So the way you can inject a custom adapter is through the prop uploadAdapter (view source from release tag v9.0.0-alpha.11).
You'll write a class that implements the 2 methods of the uploader interface found here. If you don't know TypeScript, here's the idea:
You're class constructor receives a context object (arguments[0]) and the options object passed to vue-transmit's prop adapterOptions (arguments[1] view option source). The options are whatever special things you need, but the context object has what you need to communicate with the vue-transmit component. You can take a look at the context object class here.
The two methods you need to support are uploadFiles and cancelUpload. It's ideal that you implement progress events through the context object, but that's up to you if you need it or not. The key is to take the array of VTransmitFile (which have the native file object inside), kick off your upload, and return a promise that resolves with a success or failure object looking like this:
const successPayload = {
  ok: true,
  data: {
    // anything you want
  },
};

const failurePayload = {
  ok: false,
  err: {
    type: 0, // or 1 for timeout
    message: "", // must be a string
    data: {
      // anything you want
    },
  },
};

Here's some pseudo code of a websocket adapter class:
const UploadErrors = {
  Any: 0,
  Timeout: 1,
};

class WSUploadAdapter {
  constructor(context, options) {
    this.context = context;
    // ...use your options if needed
    // This might be how you implement cancellation
    this.uploadsInProgress = new Map();
  }

  uploadFiles(files) {
    // maybe add a cancel method by their id
    files.map(file => {
      this.uploadsInProgress.set(file.id, () => {
        this.cancel(file);
      });
    });

    return this.doWebSocketUpload(files)
      .then(result => {
        // remove them on success
        files.map(file => {
          this.uploadsInProgress.delete(file.id);
        });

        return {
          ok: true,
          data: result,
        };
      })
      .catch(err => {
        // remove them on failure
        files.map(file => {
          this.uploadsInProgress.delete(file.id);
        });

        return {
          ok: false,
          err: {
            // If you know it's a timeout, pass the 1
            // Timeouts are the only special error case
            type: UploadErrors.Any,
            // wherever you get this, just make it a string
            message: err.message,
            // anything you want here, I believe it's emitted in the error event
            data: err,
          },
        };
      });
  }

  cancelUpload(file) {
    let cancel = this.uploadsInProgress.get(file.id);
    if (cancel) {
      cancel();
    }
  }

  doWebSocketUpload(files) {
    // ...
  }

  cancel(file) {}
}

Thank you for you fast answer. I wiil begin by code my WS transport layer and come back here if I decide to implement it with your librairie. Even PR it if I found the code clean and if do not use third party librairie for the WS file transfer.


feat(api): add source and qa-skip as parameters for plan and outputs endpoints

In order to allow users to run Move2Kube with the API in a non-interactive mode, I added the remote-source query parameter in the plan endpoint and the skip-qa query parameter in the outputs endpoints.
remote-source is expected a git URL that will be used by the cmd.
skip-qa will set the the flag qa-skip to true when executing the transformation cmd.
This will allow CI pipeline to test the usage of M2K without any interaction or pre-configured file.
Needs https://github.com/konveyor/move2kube/pull/1109 to be merged as it fixes a missing default value for SSHKeys; when skipping the QA, it causes an error.

@gabriel-farache Thanks for making the PR! A couple of questions:

Is there a way to sanitize the remote source URL and make sure that it is a real git URL?
Is there a way to limit the size of the cloned repo to respect the max-upload-size flag https://github.com/konveyor/move2kube-api/blob/2e2bd550826fb1bc60a2224abcb154fb60b2c05d/cmd/main/move2kubeapi.go#L60
?

It might require some changes in https://github.com/konveyor/move2kube to use something like https://confluence.atlassian.com/bbkb/how-to-check-your-repository-s-size-and-identify-large-files-1178867192.html $ git count-objects -vH to limit the size

@HarikrishnanBalagopal For the 1st point, yes it's doable
For the 2nd point it would be more complicated
To do it we would have to clone the repo then compute its size; so the storage will be taken for that amount of time.
If I am not wrong, the CLI is cloning the repo in /tmp then it deletes it.
So what is the requirements behind max-upload-size?

@seshapad Sorry, I forgot the -s in my commit command, it's done

No worries. Thank you for addressing it.

@gabriel-farache Have implemented the size limit in CLI https://github.com/konveyor/move2kube/pull/1111


Feature-SLIM-1017 add firmware manufacturers device types

SLIM-1017

All is well.

retest this please

All is well.

All is well.


Add bash scripts for MVP validation tests

Description
This PR implements a set of scripts used for the MVP validation tests.
Related Issues
Resolves  #478
Check List

[ ] Functionality includes testing.
[ ] API changes companion pull request created, if applicable.
[ ] Public documentation issue/PR created, if applicable.

The last commit adds a script to automate the testing process. The script prompts for the GitHub Token, the workflow run ID and the package name for its download. The package is only downloaded if needed, reusing it if it's already there.
Execution reusing the package

[vagrant@node-1 scripts]$ sudo bash 00_run.sh
Enter GitHub Token:
Enter Artifact ID:<PHONE_NUMBER>0
Enter Artifact Name: wazuh-indexer-5.0.0-0.x86_64.rpm
Enter Node 2 (optional):
Enter IP of Node 2 (optional):
2024-10-31 10:44:10 - Starting the script execution
2024-10-31 10:44:10 - Executing: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
Package wazuh-indexer-5.0.0-0.x86_64.rpm found locally. Reusing existing package.
Installing wazuh-indexer package...
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
 sudo systemctl start wazuh-indexer.service
Couldn't write '64' to 'kernel/random/read_wakeup_threshold', ignoring: No such file or directory
Package installed successfully.
2024-10-31 10:44:17 - Successfully executed: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
2024-10-31 10:44:17 - Executing: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
Creating a backup of the original config file...
Updating configuration...
Configuration updated successfully. Backup created at ./opensearch.yml.bak
Creating certificates directory and extracting certificates...
Moving and setting permissions for certificates...
Certificates configured successfully.
2024-10-31 10:44:17 - Successfully executed: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
2024-10-31 10:44:17 - Executing: sudo bash 03_manage_indexer_service.sh -a start
Starting wazuh-indexer service...
Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service → /usr/lib/systemd/system/wazuh-indexer.service.
wazuh-indexer service is running.
2024-10-31 10:44:25 - Successfully executed: sudo bash 03_manage_indexer_service.sh -a start
2024-10-31 10:44:25 - Executing: sudo bash 04_initialize_cluster.sh
Initializing wazuh-indexer cluster...
**************************************************************************
** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755           **
**************************************************************************
Security Admin v7
Will connect to <IP_ADDRESS>:9200 ... done
Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
OpenSearch Version: 2.16.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: wazuh-cluster
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index already exists, so we do not need to create one.
Populate config from /etc/wazuh-indexer/opensearch-security/
Will update '/config' with /etc/wazuh-indexer/opensearch-security/config.yml
   SUCC: Configuration for 'config' created or updated
Will update '/roles' with /etc/wazuh-indexer/opensearch-security/roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /etc/wazuh-indexer/opensearch-security/roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /etc/wazuh-indexer/opensearch-security/internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
Will update '/actiongroups' with /etc/wazuh-indexer/opensearch-security/action_groups.yml
   SUCC: Configuration for 'actiongroups' created or updated
Will update '/tenants' with /etc/wazuh-indexer/opensearch-security/tenants.yml
   SUCC: Configuration for 'tenants' created or updated
Will update '/nodesdn' with /etc/wazuh-indexer/opensearch-security/nodes_dn.yml
   SUCC: Configuration for 'nodesdn' created or updated
Will update '/whitelist' with /etc/wazuh-indexer/opensearch-security/whitelist.yml
   SUCC: Configuration for 'whitelist' created or updated
Will update '/audit' with /etc/wazuh-indexer/opensearch-security/audit.yml
   SUCC: Configuration for 'audit' created or updated
Will update '/allowlist' with /etc/wazuh-indexer/opensearch-security/allowlist.yml
   SUCC: Configuration for 'allowlist' created or updated
SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","actiongroups","config","internalusers"],"updated_config_size":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","actiongroups","config","internalusers"]) due to: null
Done with success
Checking cluster status...
Indexer Status:
  Node Name: node-1
  Cluster Name: wazuh-cluster
  Version Number: 7.10.2
Verifying the Wazuh indexer nodes...
Nodes:
ip            heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles                                        cluster_manager name
<IP_ADDRESS>           48          94  43    0.27    0.13     0.05 dimr      cluster_manager,data,ingest,remote_cluster_client *               node-1
Initialization completed successfully.
2024-10-31 10:44:30 - Successfully executed: sudo bash 04_initialize_cluster.sh
2024-10-31 10:44:30 - Executing: bash 05_validate_installed_plugins.sh -n node-1
Checking installed plugins on Wazuh indexer nodes...
Checking node node-1...
  wazuh-indexer-command-manager is installed on node-1.
  wazuh-indexer-setup is installed on node-1.
All required plugins are installed on all nodes.
2024-10-31 10:44:30 - Successfully executed: bash 05_validate_installed_plugins.sh -n node-1
2024-10-31 10:44:30 - Executing: bash 06_validate_setup.sh
Fetching templates from Wazuh indexer cluster...
Validating templates...
  Template index-template-agent is created correctly.
  Template index-template-alerts is created correctly.
  Template index-template-fim is created correctly.
  Template index-template-packages is created correctly.
  Template index-template-processes is created correctly.
  Template index-template-system is created correctly.
  Template index-template-vulnerabilities is created correctly.
All templates are correctly created.

Fetching indices from Wazuh indexer cluster...
Fetching protected indices from Wazuh indexer cluster...
Validating index patterns...
  Index pattern wazuh-alerts-5.x-* is valid.
  Index pattern wazuh-states-vulnerabilities* is valid.
  Index pattern .commands* is valid.
  Index pattern wazuh-states-inventory-system* is valid.
  Index pattern wazuh-states-inventory-packages* is valid.
  Index pattern .agents* is valid.
  Index pattern wazuh-states-fim* is valid.
  Index pattern wazuh-states-inventory-processes* is valid.
Index-patterns validated successfully.
2024-10-31 10:44:31 - Successfully executed: bash 06_validate_setup.sh
2024-10-31 10:44:31 - Executing: bash 07_validate_command_manager.sh
{"_index":".commands","_id":"j10t4pIBVw9ERPuTR_vn","result":"CREATED"}Command created successfully.
Validating .commands index is created...
Index created correctly.
Validate the command is created
Validation successful: The command was created and found in the search results.
2024-10-31 10:44:32 - Successfully executed: bash 07_validate_command_manager.sh
2024-10-31 10:44:32 - Running 08_uninstall_indexer.sh
2024-10-31 10:44:32 - Executing: sudo bash 08_uninstall_indexer.sh
Uninstalling Wazuh Indexer...
Validating Wazuh Indexer removal...
Wazuh Indexer packages removed.
Wazuh Indexer service removed.
Wazuh Indexer uninstallation and validation completed successfully.
2024-10-31 10:44:33 - Successfully executed: sudo bash 08_uninstall_indexer.sh
2024-10-31 10:44:33 - All tasks completed successfully.
[vagrant@node-1 scripts]$

Execution downloading the package

vagrant@node-2:~/scripts$ sudo bash 00_run.sh
Enter GitHub Token:
Enter Artifact ID:<PHONE_NUMBER>0
Enter Artifact Name: wazuh-indexer_5.0.0-0_amd64.deb
Enter Node 2 (optional):
Enter IP of Node 2 (optional):
2024-10-31 10:46:28 - Starting the script execution
2024-10-31 10:46:28 - Executing: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer_5.0.0-0_amd64.deb
Fetching artifacts list...
Checking wazuh-indexer_5.0.0-0_amd64.deb package is generated for workflow run<PHONE_NUMBER>0
Wazuh indexer artifact detected. Artifact ID:<PHONE_NUMBER>
Downloading wazuh-indexer package from GitHub artifactory...
(It could take a couple of minutes)
Package downloaded successfully
Decompressing wazuh-indexer package...
Archive:  ./package.zip
  inflating: wazuh-indexer_5.0.0-0_amd64.deb
Package decompressed
Installing wazuh-indexer package...
Selecting previously unselected package wazuh-indexer.
(Reading database ... 76250 files and directories currently installed.)
Preparing to unpack wazuh-indexer_5.0.0-0_amd64.deb ...
Running Wazuh Indexer Pre-Installation Script
Unpacking wazuh-indexer (5.0.0-0) ...
Setting up wazuh-indexer (5.0.0-0) ...
Running Wazuh Indexer Post-Installation Script
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
 sudo systemctl start wazuh-indexer.service
Package installed successfully.
2024-10-31 10:54:55 - Successfully executed: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer_5.0.0-0_amd64.deb
2024-10-31 10:54:55 - Executing: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
Creating a backup of the original config file...
Updating configuration...
Configuration updated successfully. Backup created at ./opensearch.yml.bak
Creating certificates directory and extracting certificates...
Moving and setting permissions for certificates...
Certificates configured successfully.
2024-10-31 10:54:55 - Successfully executed: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
2024-10-31 10:54:55 - Executing: sudo bash 03_manage_indexer_service.sh -a start
Starting wazuh-indexer service...
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
Created symlink /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service -> /lib/systemd/system/wazuh-indexer.service.
wazuh-indexer service is running.
2024-10-31 10:55:06 - Successfully executed: sudo bash 03_manage_indexer_service.sh -a start
2024-10-31 10:55:06 - Executing: sudo bash 04_initialize_cluster.sh
Initializing wazuh-indexer cluster...
**************************************************************************
** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755           **
**************************************************************************
Security Admin v7
Will connect to <IP_ADDRESS>:9200 ... done
Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
OpenSearch Version: 2.16.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: wazuh-cluster
Clusterstate: YELLOW
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index does not exists, attempt to create it ... done (0-all replicas)
Populate config from /etc/wazuh-indexer/opensearch-security/
Will update '/config' with /etc/wazuh-indexer/opensearch-security/config.yml
   SUCC: Configuration for 'config' created or updated
Will update '/roles' with /etc/wazuh-indexer/opensearch-security/roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /etc/wazuh-indexer/opensearch-security/roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /etc/wazuh-indexer/opensearch-security/internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
Will update '/actiongroups' with /etc/wazuh-indexer/opensearch-security/action_groups.yml
   SUCC: Configuration for 'actiongroups' created or updated
Will update '/tenants' with /etc/wazuh-indexer/opensearch-security/tenants.yml
   SUCC: Configuration for 'tenants' created or updated
Will update '/nodesdn' with /etc/wazuh-indexer/opensearch-security/nodes_dn.yml
   SUCC: Configuration for 'nodesdn' created or updated
Will update '/whitelist' with /etc/wazuh-indexer/opensearch-security/whitelist.yml
   SUCC: Configuration for 'whitelist' created or updated
Will update '/audit' with /etc/wazuh-indexer/opensearch-security/audit.yml
   SUCC: Configuration for 'audit' created or updated
Will update '/allowlist' with /etc/wazuh-indexer/opensearch-security/allowlist.yml
   SUCC: Configuration for 'allowlist' created or updated
SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","actiongroups","config","internalusers"],"updated_config_size":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","actiongroups","config","internalusers"]) due to: null
Done with success
Checking cluster status...
parse error: Invalid numeric literal at line 1, column 11
parse error: Invalid numeric literal at line 1, column 11
parse error: Invalid numeric literal at line 1, column 11
Indexer Status:
  Node Name:
  Cluster Name:
  Version Number:
Verifying the Wazuh indexer nodes...
Nodes:
OpenSearch Security not initialized.
Initialization completed successfully.
2024-10-31 10:55:15 - Successfully executed: sudo bash 04_initialize_cluster.sh
2024-10-31 10:55:15 - Executing: bash 05_validate_installed_plugins.sh -n node-1
Checking installed plugins on Wazuh indexer nodes...
Checking node node-1...
Error: Failed to connect to Wazuh indexer.
2024-10-31 10:55:15 - Error executing: bash 05_validate_installed_plugins.sh -n node-1

vagrant@node-2:~/scripts$ curl -k -u admin:admin https://node-1:9200
curl: (7) Failed to connect to node-1 port 9200 after 0 ms: Connection refused
vagrant@node-2:~/scripts$ curl -k -u admin:admin https://<IP_ADDRESS>:9200
curl: (7) Failed to connect to <IP_ADDRESS> port 9200 after 0 ms: Connection refused
vagrant@node-2:~/scripts$ curl -k -u admin:admin https://<IP_ADDRESS>:9200
{
  "name" : "node-1",
  "cluster_name" : "wazuh-cluster",
  "cluster_uuid" : "_IgH4HX3RhyByxUC278XJg",
  "version" : {
    "number" : "7.10.2",
    "build_type" : "deb",
    "build_hash" : "3ab51a880debe26119c818e2b4e4db74ae9783fe",
    "build_date" : "2024-10-25T18:35:17.158735352Z",
    "build_snapshot" : false,
    "lucene_version" : "9.11.1",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}
vagrant@node-2:~/scripts$ sudo head /etc/wazuh-indexer/opensearch.yml
network.host: "<IP_ADDRESS>"
node.name: "node-1"
cluster.initial_master_nodes:
- node-1
#- "node-2"
#- "node-3"
cluster.name: "wazuh-cluster"
discovery.seed_hosts:
  - "<IP_ADDRESS>"
#  - "node-1-ip"

In the last update I've improved the all-at-once script to work on any node, and cleaned the output of the scripts. The scripts README is also updated adding a guide to run the validations on single node and multi node clusters scenarios.
Execution on node-1 VM
bash 00_run.sh
Enter GitHub Token:
Enter Action Run ID:<PHONE_NUMBER>0
Enter Artifact Name: wazuh-indexer-5.0.0-0.x86_64.rpm
Enter current node name (default: 'node-1'):
Enter IP of current node (default: '<IP_ADDRESS>'):
Enter secondary Node name (optional):
Enter IP of secondary Node (optional):
2024-11-01 14:52:38 - Starting the script execution
2024-11-01 14:52:38 - Executing: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
2024-11-01 14:52:45 - Successfully executed: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
2024-11-01 14:52:45 - Executing: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
2024-11-01 14:52:45 - Successfully executed: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS>
2024-11-01 14:52:45 - Executing: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 14:52:52 - Successfully executed: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 14:52:52 - Executing: sudo bash 04_initialize_cluster.sh
2024-11-01 14:52:57 - Successfully executed: sudo bash 04_initialize_cluster.sh
2024-11-01 14:52:57 - Executing: bash 05_validate_installed_plugins.sh -n node-1
2024-11-01 14:52:57 - Successfully executed: bash 05_validate_installed_plugins.sh -n node-1
2024-11-01 14:52:57 - Executing: bash 06_validate_setup.sh
2024-11-01 14:52:57 - Successfully executed: bash 06_validate_setup.sh
2024-11-01 14:52:57 - Executing: bash 07_validate_command_manager.sh
2024-11-01 14:52:59 - Successfully executed: bash 07_validate_command_manager.sh
2024-11-01 14:52:59 - Running 08_uninstall_indexer.sh
2024-11-01 14:52:59 - Executing: sudo bash 08_uninstall_indexer.sh
2024-11-01 14:53:01 - Successfully executed: sudo bash 08_uninstall_indexer.sh
2024-11-01 14:53:01 - All tasks completed successfully.

Execution on node-2 VM
bash 00_run.sh
Enter GitHub Token:
Enter Action Run ID:<PHONE_NUMBER>0
Enter Artifact Name:  wazuh-indexer_5.0.0-0_amd64.deb
Enter current node name (default: 'node-1'): node-2
Enter IP of current node (default: '<IP_ADDRESS>'):
Enter secondary Node name (optional):
Enter IP of secondary Node (optional):
2024-11-01 14:51:05 - Starting the script execution
2024-11-01 14:51:05 - Executing: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer_5.0.0-0_amd64.deb
2024-11-01 14:51:10 - Successfully executed: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer_5.0.0-0_amd64.deb
2024-11-01 14:51:10 - Executing: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-2 -nip <IP_ADDRESS>
2024-11-01 14:51:10 - Successfully executed: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-2 -nip <IP_ADDRESS>
2024-11-01 14:51:10 - Executing: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 14:51:19 - Successfully executed: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 14:51:19 - Executing: sudo bash 04_initialize_cluster.sh
2024-11-01 14:51:24 - Successfully executed: sudo bash 04_initialize_cluster.sh
2024-11-01 14:51:24 - Executing: bash 05_validate_installed_plugins.sh -n node-2
2024-11-01 14:51:24 - Successfully executed: bash 05_validate_installed_plugins.sh -n node-2
2024-11-01 14:51:24 - Executing: bash 06_validate_setup.sh
2024-11-01 14:51:24 - Successfully executed: bash 06_validate_setup.sh
2024-11-01 14:51:24 - Executing: bash 07_validate_command_manager.sh
2024-11-01 14:51:26 - Successfully executed: bash 07_validate_command_manager.sh
2024-11-01 14:51:26 - Running 08_uninstall_indexer.sh
2024-11-01 14:51:26 - Executing: sudo bash 08_uninstall_indexer.sh
2024-11-01 14:51:29 - Successfully executed: sudo bash 08_uninstall_indexer.sh
2024-11-01 14:51:29 - All tasks completed successfully.

Multi node cluster execution

Prepare node-2 environmentGITHUB_TOKEN=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 bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer_5.0.0-0_amd64.deb
Package wazuh-indexer_5.0.0-0_amd64.deb found locally. Reusing existing package.
Installing wazuh-indexer package...
Package installed successfully.

sudo bash 02_apply_certificates.sh -p ../wazuh-certificates.tar -n node-2 -nip <IP_ADDRESS> -s node-1 -sip <IP_ADDRESS>
Creating a backup of the original config file...
Updating configuration...
Configuration updated successfully. Backup created at ./opensearch.yml.bak
Certificates directory already exists. Removing it...
Creating certificates directory and extracting certificates...
Moving and setting permissions for certificates...
Certificates configured successfully.

sudo bash 03_manage_indexer_service.sh -a start
Starting wazuh-indexer service...
wazuh-indexer service is running.

Run all-at-once on node-1bash 00_run.sh
Enter GitHub Token:
Enter Action Run ID:<PHONE_NUMBER>0
Enter Artifact Name:  wazuh-indexer-5.0.0-0.x86_64.rpm
Enter current node name (default: 'node-1'):
Enter IP of current node (default: '<IP_ADDRESS>'):
Enter secondary Node name (optional): node-2
Enter IP of secondary Node (optional): <IP_ADDRESS>
2024-11-01 16:09:31 - Starting the script execution
2024-11-01 16:09:31 - Executing: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
2024-11-01 16:09:38 - Successfully executed: bash 01_download_and_install_package.sh -id<PHONE_NUMBER>0 -n wazuh-indexer-5.0.0-0.x86_64.rpm
2024-11-01 16:09:38 - Executing: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS> -s node-2 -sip <IP_ADDRESS>
2024-11-01 16:09:38 - Successfully executed: sudo bash 02_apply_certificates.sh -p /home/vagrant/wazuh-certificates.tar -n node-1 -nip <IP_ADDRESS> -s node-2 -sip <IP_ADDRESS>
2024-11-01 16:09:38 - Executing: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 16:09:45 - Successfully executed: sudo bash 03_manage_indexer_service.sh -a start
2024-11-01 16:09:45 - Executing: sudo bash 04_initialize_cluster.sh
2024-11-01 16:09:49 - Successfully executed: sudo bash 04_initialize_cluster.sh
2024-11-01 16:09:51 - Executing: bash 05_validate_installed_plugins.sh -n node-1 -n node-2
2024-11-01 16:09:52 - Successfully executed: bash 05_validate_installed_plugins.sh -n node-1 -n node-2
2024-11-01 16:09:52 - Executing: bash 06_validate_setup.sh
2024-11-01 16:09:52 - Successfully executed: bash 06_validate_setup.sh
2024-11-01 16:09:52 - Executing: bash 07_validate_command_manager.sh
2024-11-01 16:09:57 - Successfully executed: bash 07_validate_command_manager.sh
2024-11-01 16:09:57 - Running 08_uninstall_indexer.sh
2024-11-01 16:09:57 - Executing: sudo bash 08_uninstall_indexer.sh
2024-11-01 16:09:59 - Successfully executed: sudo bash 08_uninstall_indexer.sh
2024-11-01 16:09:59 - All tasks completed successfully.


[mgmt] appplatform release

https://github.com/Azure/sdk-release-request/issues/4882

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/arm-appplatform

breaking caused by https://github.com/Azure/azure-rest-api-specs/pull/26770


window.indexedDB causes errors in web worker

i use a web worker to communicate with my servers and update the indexedDB in a background thread.
i simply removed the window from the window.indexedDB in the checkAvailablity method (line 66 in the indexedDB adapter, https://github.com/thrownblown/LokiJS/commit/8223f484648cc9871da0e9e849fd5742a1b89d9b) and my web worker stopped throwing errors.
Is there any need to absolutely have the reference to window explicitly named, since idexedDB is in the global scope without "window." preceding it?

I suppose we could get rid of the window qualifier, I can do that later or feel free to submit p.r.


Having problems with whispers... Am I doing this right?

  AudioFrameSink whisperTo(User user) {
    user.registerAsVoiceTarget(id: 1);
    return client.audio.sendAudio(voiceTarget: 1, codec: AudioCodec.opus);
  }

Yes, it should work this way.
Could you elaborate, what kind of problems appear? Are you testing against an other dumble instance or against something other (e.g. the official mumble client)?
What I could think of is that the mumble server processes the registerAsVoiceTarget call to late, so when you start sending audio, the voice target is not registered yet... Could you, for debugging, add a delay (let's say of about 5 secs, just to be sure) before makeing the sendAudio call?

Thanks for your reply.
Your suggestion sounds plausible. I'll test it with a delay.
On another note, what do you think about making commands like registerAsVoiceTarget into Futures?

I think I fixed it with this commit:
https://github.com/EPNW/dumble/pull/2/commits/bcf50f6c6c07d6258d155b4779dd8ac6912e5cfa
Here is the relevant fix:
Proto.VoiceTarget serializeVoiceTarget(VoiceTarget voiceTarget) {
  Proto.VoiceTarget target = new Proto.VoiceTarget()..id = voiceTarget.id;

Your code wasn't preserving the voiceTarget.id.


Add LogScale

Logscale now has a native OTLP (http) support

Looks like the formatting of the table got busted and logz.io is missing. Can you address that?

Sorry guess that's what I get for using the web editor instead of vscode I fixed it


Backport 0.17.0

Trying to get all the backporting done for 0.17.0 has been too much work to do and get the release itself to be solid, with the time I have. And changes could be made while 0.17.0 is being tested, causing backporting to need to be refactored. That would cause at lot of duplicated work.
I'd like to hold on backporting until 0.17.5. There will be no 0.17.0-stable branch, but after 0.17.5 there will be a 0.17.x-stable instead. But it could just be skipped on having a stable branch, and work toward 0.18.0 being the next "long term support" release.
A ridiculous number of tests fail with backported mode enabled, most of which stem from the same few problems. Either way, I will cover #610 before backporting. For those using the current conventions, APIs, etc -- 0.17.* will be a great release, but this is most of all a pivot point allowing us to assess and achieve 1.0 for the most part. Unless it's seen to be a lot better to backport 0.17.0 before 0.17.5, there will be no 0.17.0 gem cut... but the release is basically done.

https://github.com/celluloid/celluloid/wiki/DEPRECATION-WARNING

Nevermind. I just did it all.


Wallet balances not selectable/copyable

I'm not sure how difficult this would be to do in Java (I mostly work in C#), but it would be great if it were possible to select and copy at least the total balance for a wallet (shown in the top left corner), and ideally the balance for each address.
It's a little tedious having to manually type out the entire balance of my wallet whenever I'd like to either send it all somewhere or plug it into excel/elsewhere for some math.

MBHD has an empty wallet tool. Closing.


docs: missing tables on replicator

Motivation
Hi, thank you for making the replicator. I noticed some missing tables on the docs, hence this small PR.
Change Summary
Just some markdown. Some column names have Lorem Ipsum in them because I don't know precisely what they mean, but it should be pretty easy to fill.
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[ ] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[ ] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview
Detailed summary

Added a new table fnames to store Farcaster IDs and associated names.
Added a new table storage with various columns to store data related to storage.
Updated the README.md file to include the new tables and their column descriptions.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

assigning to @sds to review and merge


⚠ ClamAV has degraded performance

In 8909308, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 72 ms

Resolved: ClamAV performance has improved in 8472f65.


Idea: Matching Gittip

It'd be cool if I could specify that I want to match all gittips. As in, say I have a 'budget' set in gittip to $3,584. This last gittip, I could have matched everyone's donation $1 for $1. I think this could let big charities / non-profits get involved without having to choose who to gittip or what to support, but rather, let the community continue to decide that. That would also incentivize people to give, you would know that your $1 is doubled by some charity or patron. A budgeting algorithm could distribute the matches evenly across all gittips so that if the budget is not enough to cover a 1:1 match, it reduces evenly. Then we could solicit large sum commitments from big organizations without them having to administer to account weekly.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Closing in light of our decision to shut down Gratipay.
Thank you all for a great run, and I'm sorry it didn't work out! 😞  💃


Unable to fold block comments

VSCode Version: 1.29.1
OS Version: Windows 10 1703

Steps to Reproduce:

Open a file with code in it.
Comment a section using block comments
The commented section cannot be folded. The plus [+] icon no longer shows in the gutter region.

Does this issue occur when all extensions are disabled?: Yes
I believe this is a recent bug (or feature) because I have always been able to fold block commented code.

@realjay007 For what language? Can you add a small sample code?


Fix gitbook cover

The current gitbook cover does not meet the Gitbook cover requirements. @EmmaKoster will fix this one day.

See this help page: gitbook format for cover http://help.gitbook.com/format/cover.html

The current status of this issue is:

the file 'cover.jpg' has been changed and has the proper dimensions, so this normai sized version is OK
the file 'cover_small.jpg' has not been changed, the dimensions are OK, but the image is not equal to the normal sized version
the file 'Book-cover.jpg' is not needed anymore and can be removed

For now the cover images are OK, therefore this issue is closed for now. Feel free to re-open this issue to discus the cover images.


Introduce Instascale Custom Resource

Currently working on InstaScale installation via CR, starting with generating/applying ConfigMap

We have a basic instascale custom resource available alongside complete deployment


Impossible to add Advertising

Love the work and the last version of Angle is finally with a great framerate, but unfortunately it is impossible to add custom controls on the XAML as advertising.

Please advice.

Hi pekayatt! Thank you for your kind words about our version of ANGLE.
Could you provide us with some more details about your problems? For example:

What problems do you encounter when trying to add the advertising XAML controls?
Which ad frameworks are you trying to use?

Hi austinkinross,
I have tried to use AdRotator, pubCenter, AdDuplex and AdMob. I could not find any 3rd party XAML control that I could use in the C++ project.
When adding the library (i.e. adRotator) by nugget or dropping the DLL on the both projects I cannot access the xaml control from a xaml on the shared project, or in the platform project.
Hope we find a workaround!

I can successfully add the AdDuplex framework to the SwapChainPanel template. I haven't tried the other frameworks.
I followed these instructions: https://adduplex.zendesk.com/hc/en-us/articles/200744262-Universal-SDK-for-XAML-apps-Windows-8-1-Windows-Phone-8-1-installation-and-usage
My XAML code in OpenGLESPage.xaml looks like this:
<Page
    x:Class="AppForOpenGLES23.OpenGLESPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppForOpenGLES23"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ad="using:AdDuplex.Universal.Controls.WinPhone.XAML"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="68"/> <!-- TODO: Use correct height for the ad -->
        </Grid.RowDefinitions>

        <SwapChainPanel x:Name="swapChainPanel" Grid.Row="0">
            <TextBlock Text="OpenGL ES and XAML" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" />
        </SwapChainPanel>

        <ad:AdControl x:Name="adDuplexAd" AppId="YOUR_AppId_HERE" IsTest="True" Grid.Row="1"/>
    </Grid>

</Page>

And this is the result:

Does this work for you?

Indeed I could use AdDuplex as you did there.
But I could only manage to make it work. Guys from AdRotator (https://github.com/Adrotator/AdrotatorV2/issues/52) said that the main problem is with all the other libraries.
So the only option is to wait for pubCenter or any other adProvider that in fact pay for clicks to publish their "new version" of the lib?
Thanks,

pubCenter works fine too.
I roughly followed this tutorial: http://msdn.microsoft.com/en-us/library/advertising-mobile-windows-phone-ads-walkthroughs-81-xaml-markup(v=msads.20).aspx
To add the reference, I right clicked on the Windows Phone project, went "Add->References...", then clicked on "Add New Reference...", then went to Extensions, then selected "Microsoft Advertising SDK for Windows Phone 8.1 (XAML).
My XAML looks like this:
<Page
    x:Class="AppForOpenGLES26.OpenGLESPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppForOpenGLES26"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:UI="using:Microsoft.Advertising.Mobile.UI"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <SwapChainPanel x:Name="swapChainPanel" Grid.Row="0">
            <TextBlock Text="OpenGL ES and XAML" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30" />
        </SwapChainPanel>

        <UI:AdControl
          AutoRefreshIntervalInSeconds="60"
          ApplicationId="test_client"
          AdUnitId="Image320_50"
          HorizontalAlignment="Center"
          Height="50"
          IsAutoRefreshEnabled="True"
          Width="320"
          Grid.Row="1"/>

    </Grid>
</Page>

I was mistaken to believe that it would now work if there was any error showing. Here I got the message that the AdControl was not found, but it works perfectly!
Gonna try out with AdMob as well, but these two are great already!
Thank you very much!

Glad to help. Please reopen this issue if you experience more ANGLE-related advert problems.

Austin, sorry to bother again, but could not manage to make the adds recognize the taps from users.
Have tried this solution (https://social.msdn.microsoft.com/Forums/en-US/053fe091-8ffb-4d6f-a5ca-f39cff4af618/ads-not-responding-to-tap-or-click?forum=aiasdk), but this do not seem entirely compatible with the new project. My only answer in MSDN is that PubCenter do not support C++, but being so which Revenue Ad can we use?
Thanks for the help always!


Custom ordering alias for ordering featured posts first

At the moment, there's no way to order posts within channels or collections or get-helper lists, so that featured posts are first. This is a super common request. Instead, it requires use of the get helper, which breaks pagination, and in many use-cases still doesn't do quite the right thing.
Ideally, we want to make this possible at the API level, by changing the order query parameter.
This is already possible with the order parameter, it's just undocumented.
Url encoded form: https://demo.ghost.io/ghost/api/v2/content/posts/?key=22444f78447824223cefc48062&fields=title,featured,published_at&order=featured desc,published_at desc
Routes/get helper, etc form: order: “featured desc, published_at desc”

closed by https://github.com/TryGhost/docs/commit/e4aa27ff077577d9a897eb2a0bb320e39c1fc016


Increase upper bound of httparse dependency spec

Filed in case you don't want #33.

Can this be merged? I'm getting errors like the following:
cargo run
    Updating crates.io index
error: failed to select a version for `httparse`.
    ... required by package `hyperx v1.0.0`
    ... which is depended on by `hubcaps v0.6.0`
    ... which is depended on by `foo v0.1.0 (...)`
versions that meet the requirements `>=1.0, <1.4` are: 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.2, 1.1.1, 1.1.0, 1.0.0

all possible versions conflict with previously selected packages.

  previously selected package `httparse v1.4.0`
    ... which is depended on by `hyper v0.14.9`
    ... which is depended on by `rocket_http v0.5.0-rc.1`
    ... which is depended on by `rocket v0.5.0-rc.1`
    ... which is depended on by `foo v0.1.0 (...)`

failed to select a version for `httparse` which could resolve this conflict


data type did not support multiple types.

something like this:
"type": [
"null",
"string"
],
It will throw error.  Error: Cannot build primitive type "null,string"

OpenAPI doesn't support multiple types (and swagger tooling of course too, since it requires non trivial type system) https://github.com/OAI/OpenAPI-Specification/issues/458. In your case you can utilize "required" property of the object.


Complete the community profile recomendations

Is your feature request related to a problem? Please describe.
See Insights>Community.
There are some missing recommendations which are simple to implement.
Describe the solution you'd like
Implement the community profile recommendations.
Describe alternatives you've considered
This is a toy project which will not be seen by anyone. Ignoring this is a viable solution.

Completed with commits: 1b8fdbb and 4dc6307


mesh face and edge coordinate variables

Hello Ugridders
I would like to investigate the value of the
mesh face and edge coordinate variables

It appears to me that this is an over-specification, particularly should #33 be adopted.
An edge is defined by it's nodes, so given an edge definition and its defining nodes, I know where the edge is all the way along, so to speak.
What is the key use case for providing a 'coordinate' who's job is to tell me where an edge centre is?
What should an application do if the edge centre appears not to be on the edge, given the nodes which define it?
thank you
mark

You are right, those coordinate variables are all over-specified. Which is why they are optional.
But they are there both to provide greater CF compliance and more convenient access for common use cases like plotting, etc.
Without them, you would have to find them by computing them through a couple levels of indirection:
figure out which nodes define them
get the coordinates of those nodes
compute the center of the [edge, face, cell] from those coordinates.
Not sure why #33 makes a difference here ?
Though it's a reminder that we should probably specify that everything should be given in the same coordinate system.


Edit script for accomodating SqlManagementMode changes

Description
This PR updates the script for:

Accommodate SqlManagementMode change for Get-AzSqlVM cmdlet
Powershell 7 compatible script

Checklist

[ ] This pull request was tested on both of:

[X] PowerShell 5.1 (Windows)
[ ] PowerShell 6.x
[X] PowerShell 7.x (Latest PowerShell)

[X] Scripts do not contain static passwords or other secret tokens.
[X] All Azure resource identifiers which must be universally unique are guaranteed to be so.

Testing information

Powershell 7.3.4:
PS C:> [pscustomobject]$PSVersionTable | Select-Object OS, BuildVersion, PSVersion
OS                           BuildVersion PSVersion
Microsoft Windows 10.0.22621              7.3.4
PS C:> (Get-InstalledModule -Name Az).Version
10.0.0
Powershell 5.1:
PS C:> [pscustomobject]$PSVersionTable | Select-Object OS, BuildVersion, PSVersion
OS BuildVersion   PSVersion
10.0.22621.963 5.1.22621.963
PS C:> (Get-InstalledModule -Name Az).Version
Major  Minor  Build  Revision
6      4      0      -1

@mikefrobbins - Could you please check and merge this PR when you get a chance?

@veppala:

Please resolve the merge conflict referenced in the build error.
Supply the URL to the Azure PowerShell article where the code is referenced. This repo is only for code snippets used in the official Microsoft Azure PowerShell documentation.
This appears to be a PowerShell module and it's recommended to publish modules in the PowerShell Gallery for ease of installation by customers.

@veppala:

Please resolve the merge conflict referenced in the build error.
Supply the URL to the Azure PowerShell article where the code is referenced. This repo is only for code snippets used in the official Microsoft Azure PowerShell documentation.
This appears to be a PowerShell module and it's recommended to publish modules in the PowerShell Gallery for ease of installation by customers.

Hi @mikefrobbins, would it be ok if we reference it from SQL VM documentation (it would be from this page: https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/sql-agent-extension-troubleshoot-known-issues?view=azuresql? We have done this before as you can see in https://github.com/Azure/azure-docs-powershell-samples/tree/master/sql-virtual-machine with register-sql-vms, for example. So I am hoping we can follow the same pattern.


Questions on guide one "masking and padding with Keras"

In https://render.githubusercontent.com/view/ipynb?commit=39b8a76442ef99da623169aaece32898aeea077a&enc_url=68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f6b657261732d7465616d2f6b657261732d696f2f333962386137363434326566393964613632333136396161656365333238393861656561303737612f74662f6d61736b696e675f616e645f70616464696e672e6970796e62&nwo=keras-team%2Fkeras-io&path=tf%2Fmasking_and_padding.ipynb&repository_id=261861733&repository_type=Repository#Writing-layers-that-need-mask-information.

Should the line inputs_sum = tf.reduce_sum(inputs * broadcast_float_mask, axis=1, keepdims=True) be inputs_sum = tf.reduce_sum(inputs_exp, axis=1, keepdims=True)?

What does the second argument mean in y = model(np.random.randint(0, 10, size=(32, 100)), np.random.random((32, 100, 1)))?

Hi,
The link which you have mentioned above seems to be broken.
Could you please provide the code which you are referring to.
For details on model, please refer the document here https://keras.io/api/models/model/


Question aboout indexes...

Hello
We want to migrate from mongoose for a while and we're considering papr as an alternative.
One of the feature we use is the auto-indexing, what's the strategy you use at plex to manage those / what's the idiomatic way of doing it with papr ?
Thx

At Plex we use one-time migrations whenever we need to add/change/remove an index for a collection.
If we were to add such a feature inside Papr related to indexes, how would you see it working from an API point of view?

I like the way mongoose is dealing with indexes.
animalSchema.index({ name: 1, type: -1 }); // schema level

I find it very convenient to read indexes with the model.

Can we reopen this? In my opinion this is really helpful (for those who don't want to do manual migrations for that).

This feels like it would fit nicely with papr, it would feel great being able to specify indexes together with the schemas. Reopen?

@avaly would you be able to share if Plex use a library to handle these one-time migrations? For example something like migrate-mongo?

We are using an in-house migration runner at Plex. It's nothing complex, but it does handle background migrations in parallel & foreground migrations serially.


Fix flashing RISC-V chips after setting breakpoints

My guess is that my chip (ESP32C2 and likes) are RV32C, but the flash algo encodes a 4-byte EBREAK anyway. This is I believe completely valid, however stepping through half of that EBREAK is not. We could do multiple things: read back the instruction at DPC and decide how much we need to advance it, use a different flash algo header if the chip is RV32C, or what this PR does: remove the shortcut altogether.
I'm hoping the performance implication aren't unbearably bad with this PR

The step shortcut is there, to facilitate stepping during debug, when the user has a software breakpoint in their code. If you remove this, the debugger won't ever be able to pass the software breakpoint (either a 'continue' or 'step' function will stay stuck on this breakpoint).

Fair enough. I've implemented read-instruction-and-see-if-compressed instead, and added a flag that avoids stepping if the PC was manually set.


merge from arlac77/template-github,arlac77/template-kronos-module

.github/workflows/ci.yml

chore(github): merge from template .github/workflows/ci.yml

Codecov Report

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

@@           Coverage Diff           @@
##           master     #769   +/-   ##
=======================================
  Coverage   28.94%   28.94%
=======================================
  Files           1        1
  Lines          76       76
  Branches        1        1
=======================================
  Hits           22       22
  Misses         54       54

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 252712e...3d7a5bb. Read the comment docs.


tag-#77:  From validation

Summary
Use the React-hook-form and Zod for the form validation
Description
1.Install Dependencies:
First, make sure you have react-hook-form and zod installed. You can install them using npm or yarn:
2.Create Form Schema with Zod:
Define your form schema using Zod. This includes specifying the validation rules and error messages for each field.
3.Use New Dependencies:
use the React-hook-form & zod for the input and validation
Images
Before

After

Template should be strictly Closes <issue_number>
Example: Closes #1

Prerequisites

[x] Have you followed all the CONTRIBUTING GUIDELINES?

@MrBlackGhostt we know the error, kindly check the discord

Observations.

Categories selection is broken, selection is shown only after the button is cilcked
If you give everything right at the first go it doesn't let you create post, and doesn't even compliant
The dynamic error handling for the images and categories isn't worknig
Typo in "C'ome on! Your name cannot be less than 3 characters."
There are conflicts with the main branch, kindly rebase.

Request review once all of these is handled, if you feel this is too much of a task, seek help from others in the community discord,
Thank you.

If we are not working on this anymore, kindly close this


Fix compiler crash with subscripted list annotations

Fixes #4214
This isn't a problem in Cython 3 (so only goes into 0.29.x,
although should merge into 3 cleanly I think... hopefully)

Closed in favour of '4216


get_parameter_at crashes BN on MIPS binaries

To replicate, enter this on Python console:
current_function.get_parameter_at(bv.arch, here, None, 0)
As far as I can tell, it crashes no matter where "here" is.
Happens on all MIPS binaries I've tried so far but if you need samples let me know.

This bug doesn't seem to exist any longer. Tested on 1.0.893. With: current_function.get_parameter_at(here, None, 0)


Strange bug(about LST generating?) during JMockit -> Mockito refactoring

What version of OpenRewrite are you using?

I am using

OpenRewrite v8.34.0
Maven/Gradle plugin v 5.39.1
org.openrewrite.java.testing.jmockit.JMockitToMockito Mockito_ v2.17.0

How are you running OpenRewrite?

I am using the Maven plugin. Since I don't want a invasive solution, I use it under pure command line console:
mvn -U org.openrewrite.maven:rewrite-maven-plugin:dryRun \
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-testing-frameworks:RELEASE \
-Drewrite.activeRecipes=org.openrewrite.java.testing.jmockit.JMockitToMockito \
-Drewrite.exportDatatables=true

What is the smallest, simplest way to reproduce the problem?

This obeys our project-specific code format standard.

        new Expectations()
        {
            {
                log.isTraceEnabled();
                this.result = true;
            }
        };

I admit that this legacy code snippet looks strange but anyway it is not "incorrect".

        SomeClass.this.pjp.proceed();

What is the problem?
for these two code snippets, I got the same error message like this
java.lang.ClassCastException: class org.openrewrite.java.tree.J$FieldAccess cannot be cast to class org.openrewrite.java.tree.J$Identifier (org.openrewrite.java.tree.J$FieldAccess and org.openrewrite.java.tree.J$Identifier are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @26fcd7b7)

How did you fix this problem?

With only a small set of changes everything goes fine.

I formatted this code snippet like this

        new Expectations() {{
                log.isTraceEnabled();
                this.result = true;
         }};

I rewrote the code like this:

        (this).pjp.proceed();

What is your assumption?

I guess there are some minor problems when generating the LST(Lossless Semantic Trees). It seems that OpenWrite can not parse code snippets like that correctly.
What is the full stack trace of any errors you encountered?

[ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:5.39.1:dryRun (default-cli) on project some_project: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:5.39.1:dryRun failed: Error while visiting SomeClassTest.java: java.lang.ClassCastException: class org.openrewrite.java.tree.J$FieldAccess cannot be cast to class org.openrewrite.java.tree.J$Identifier (org.openrewrite.java.tree.J$FieldAccess and org.openrewrite.java.tree.J$Identifier are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @26fcd7b7)

hi! From the above I don't quite know enough to help you troubleshoot, as it's unclear from the description and truncated stacktrace if this problem occurs during parsing, or only when executing this particular recipe. Do other recipes like OrderImports work for you?
You might also want to look at the debugging steps we have here, and in particular the recipe to find parse failures if applicable here.
https://docs.openrewrite.org/reference/faq#my-recipe-runs-but-is-not-making-any-changes.-whats-happening
If it's a problem only with the specific recipe then we can move this to rewrite-testing-frameworks.

Hello. Thank you for your reply.
I take your suggestions and I will check this problem in detail. I guess I will come back to you with further information in the next couple of days

Hello
I come back again with good news, and I guess you can close this ticket.
Now I am quite sure that the problem lies only in the rewrite-testing-frameworks and I located it precisely. Hopefully I will finish the bug-fix in the next couple of days and then I will then create a pull-request.

Much appreciated! I look forward to the full details & fix.


Custom Field and Allow Import To Custom Field

Issue type
[Y] Feature request
[ ] Bug report
[ ] Documentation

Environment

Python version:  3.4
NetBox version:  2.2.6

Description
Currently i have added multiple custom fields to the circuits, and was wondering how can i import csv containing data for the newly added custom fields?
Also is it possible to modify the default fields to suit my requirements?

+1

+1

Closing this issue as it does not meet the standards listed above. See #1844 for other discussion regarding the import of custom fields.

Hello,
Newbie here, GitHub and NetBox wise so please be patient, I am just getting to know the community and the product. :-)
As proposed, I have seen #1844 but it's about migrating custom fields between different instances of NetBox - where as my perdicament is centered around importing a lot of information from a CSV file.
So far I've tested it on our NetBox (version v2.4.3) by using the standard import column headers:
device_role,manufacturer,model_name,status,site
This works fine.
Then, I have added several custom fields for Devices and extended the column headers accordingly:
device_role,manufacturer,model_name,status,site,management_ip,environment_tag,business_impact,pci_device,tech_owner
However, the test import fails as soon as it reaches the 1st custom field name:
Unexpected column header "management_ip" found.
Do I need to provide more details in the column headers? Like, database table holding the custom fields so it doesn't query the default one?
Please find below the issue details, to the best of my knowledge:

Detailed description of the proposed functionality
Possibility to add through UI all the pre-created custom fields to column header (for Devices import)
Use case for the feature; who would use it and what value it would add to NetBox:
Easier import od devices from 3rd party CMDB
A rough description of changes necessary to the database schema (if applicable)
None required, I think?
Any third-party libraries or other resources which would be involved
Also, none?

Regards,
Igor


Gettings error on console like Cookie “__client_uat” has been rejected for invalid domain.

Preliminary Checks

[X] I have reviewed the documentation: https://clerk.com/docs

[X] I have searched for existing issues: https://github.com/clerk/javascript/issues

[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)

[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.

Reproduction
currently private
Publishable key
pk_test_cHJvLWNyYXlmaXNoLTY3LmNsZXJrLmFjY291bnRzLmRldiQ
Description
I am getting these warnings and error on console in my<EMAIL_ADDRESS>and I followed every proper steps listed on documentation

Environment
System:
    OS: Linux 6.10 EndeavourOS
    CPU: (4) x64 AMD Ryzen 3 3250U with Radeon Graphics
    Memory: 2.63 GB / 5.73 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
    bun: 1.1.28 - ~/.nvm/versions/node/v20.17.0/bin/bun
  npmPackages:
    @clerk/nextjs: ^5.7.3 => 5.7.3
    @radix-ui/react-accordion: ^1.2.0 => 1.2.1
    @radix-ui/react-avatar: ^1.1.1 => 1.1.1
    @radix-ui/react-dialog: ^1.1.2 => 1.1.2
    @radix-ui/react-dropdown-menu: ^2.1.2 => 2.1.2
    @radix-ui/react-icons: ^1.3.0 => 1.3.0
    @radix-ui/react-label: ^2.1.0 => 2.1.0
    @radix-ui/react-navigation-menu: ^1.2.0 => 1.2.1
    @radix-ui/react-slot: ^1.1.0 => 1.1.0
    @radix-ui/react-switch: ^1.1.0 => 1.1.1
    @radix-ui/react-tabs: ^1.1.1 => 1.1.1
    @radix-ui/react-tooltip: ^1.1.3 => 1.1.3
    @tailwindcss/typography: ^0.5.13 => 0.5.15
    @types/node: ^20 => 20.16.11
    @types/react: ^18 => 18.3.11
    @types/react-dom: ^18 => 18.3.1
    @types/uuid: ^10.0.0 => 10.0.0
    class-variance-authority: ^0.7.0 => 0.7.0
    clsx: ^2.1.1 => 2.1.1
    embla-carousel-react: ^8.1.7 => 8.3.0
    framer-motion: ^11.3.21 => 11.11.9
    lucide-react: ^0.417.0 => 0.417.0
    next: 14.2.7 => 14.2.7
    next-themes: ^0.3.0 => 0.3.0
    postcss: ^8 => 8.4.47
    react: ^18.3.1 => 18.3.1
    react-code-blocks: ^0.1.6 => 0.1.6
    react-dom: ^18.3.1 => 18.3.1
    react-icons: ^5.2.1 => 5.3.0
    react-markdown: ^9.0.1 => 9.0.1
    react-textarea-autosize: ^8.5.4 => 8.5.4
    recharts: ^2.12.7 => 2.13.0
    rehype-pretty-code: ^0.13.2 => 0.13.2
    rehype-stringify: ^10.0.0 => 10.0.1
    remark-gfm: ^4.0.0 => 4.0.0
    remark-parse: ^11.0.0 => 11.0.0
    remark-rehype: ^11.1.0 => 11.1.1
    tailwind-merge: ^2.4.0 => 2.5.4
    tailwindcss: ^3.4.1 => 3.4.14
    tailwindcss-animate: ^1.0.7 => 1.0.7
    typescript: ^5 => 5.6.3
    unified: ^11.0.5 => 11.0.5
    use-local-storage-state: ^19.4.1 => 19.4.1
    uuid: ^10.0.0 => 10.0.0
    vaul: ^0.9.1 => 0.9.9

I'm facing the same issue on Firefox 131.0.3 (64-bit).
https://github.com/clerk/clerk-react-demo can be used to reproduce the issue

You got the solution?


More Ward replies

LGTM other than the typo and the inline suggestion.

:+1:
@sdtaylor take a look when you get the chance and merge when you're happy.


Tell to disable dotenv durgin setup

Devup does not work properly when dotenv-rails is required before it.

It could be great to check it during runtime also


Docs incomplete

Sadly, the docs are somewhat incomplete.
Can you provide a fully working, complete example.py (like https://github.com/ColtonProvias/flask-jsonapi/blob/master/example.py, or the classical ToDo example) for Flask?
I'm happy to help write some, but I'm stuck at how it is meant to work - I could fiddle something together but I'd prefer to know your intention on how it is to be used.
Thanks!

Yeah, being new to Python, I'm lost as well without a complete example.  I might be able to figure it out if I could get past the first error which comes from following the very short doc:
    api = FlaskJSONAPI(app, db)
TypeError: 'NoneType' object is not callable

Hey there. Any complete examples? I am getting the same error as @juanitogan using the following requirements:
enum34==1.1.2
Flask==0.10.1
Flask-SQLAlchemy==2.1
inflection==0.3.1
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
psycopg2==2.6.1
SQLAlchemy==1.0.12
SQLAlchemy-JSONAPI==4.0.4
Werkzeug==0.11.4

Thanks!

Looks like blinker needs to be added to the package dependencies.
>>> import sqlalchemy_jsonapi.flaskext
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/python2.7/site-packages/sqlalchemy_jsonapi/flaskext.py", line 13, in <module>
    from blinker import signal
ImportError: No module named blinker

pip install blinker gets past the initial error.

Something like this worked for me:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_jsonapi import FlaskJSONAPI

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///my_existing_db.db'
db = SQLAlchemy(app)

class Person(db.Model):
    __tablename__ = 'person'
    id = db.Column(db.Integer, primary_key=True)
    age = db.Column(db.Integer, nullable=False)

api = FlaskJSONAPI(app, db)

if __name__ == "__main__":
    app.run()

I'll get an example into the docs soon!  Got a little preoccupied with a project that this library is being used in.

@ColtonProvias - Happy to help as well with any documentation, testing, what have you. This is a fantastic idea overall, especially for Ember developers. If only I could get it correctly configured...

Ember developer here as well, Datamance.  We're using it on https://mynewleaf.co for most of our APIs.    Pull requests and such are always appreciated!

@jesselang Blinker has been added.  I'll update on PyPI soon.
@berlincount There is an example at sqlalchemy_jsonapi/tests/app.py.  I'm still going to flesh out the docs some.


cube-builder build fixes

Additional changes on top of pull request #280 to fixup the cube-builder's build. I will put the resulting image to the test in actually completing some builds but I wanted to get this out and merged as soon as possible as others have indicated that would be wanted to try things out.

staged for testing

I was able to get my basic boot tests to work, still some issues, but they are unrelated to these changes.


[Feature request] Make a style! macro to write style directly in Rust files

Hello,
A nice feature provided by some other CSS tools for Rust (styled and stylers) have a style! macro to allow writing CSS directly in .rs files.
Instead of using `style_sheet!("path/to/file.scss"), this would allow us to write directly:
style! {
  .first {
    color: red;

    strong {
      color: blue;
    }
  }
}

Of course, this does not mean the style_sheet! macro should be remove, both can be complementary.

I like this idea. This change itself should be relatively easy to implement with the current state of turf. To keep everything consistent, it should definitely respect turf's settings, and with #8 planned, it's important to discuss how the proposed style! macro should behave in conjunction with file creation.
What seems particularly interesting to me is what the files should be called that are output when a user decides to set the separate_css_files_path.

I can be the rust file name but with .css instead of .rs?
If you call the macro in my_component.rs, the file can be named my_component.css, but it implies you don't have filenames conflicts.
To avoid these conflicts, the output can re-use the complete path so you if you have style! in src/path/to/my_component.rs, the generated file can be in <output_dir>/path/to/my_component.css. It can also be in the form of a replacement for /, for example <output_dir>/path_to_my_component.css.

This is only possible on the nightly toolchain of Rust (see https://doc.rust-lang.org/proc_macro/struct.Span.html#method.source_file). Using this part of the Span api makes it necessary to hide this feature from users of stable Rust, which I don't want.
An idea that came to my mind is using a hash (maybe of the resulting css style sheet?) as a file name. This makes every file name unique. However the names are quite ugly and can be harder to use.
To make it easier to handle the resulting files, two new variables similar to the current  STYLE_SHEET can be generated which have the name of the files stored in them.

Wouldn't it work with the file! macro? (See the doc)
A hash would be working but if some user want to use an external tool to build some CSS together after turf compiled files (and group some files by components/purpose), it would become difficult, I'm not sure this is suitable (also, I just saw noticed you completed #8, thank you, I will give it a try!)

Macros are resolved in the file they are used in. This wouldn't work because if turf needs to read the macros output, file! has to be used inside turf and would therefore return the file name of turf's source file

Oh, right, I understand
Unfortunately I have no other idea so I guess this won't be possible to have a "proper" filename

@myFavShrimp it seems you also added this feature since 0.7.0, I tried it and it works as expected so I guess this issue can be closed?

This feature is implemented and available when building from the repository but it is not released yet. You are right, this issue can be closed


[MA-1480]add http check sample monitor

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

Just for staging tests.  Closing up.


Make the comment content return String type or special Array of ContentPart type

Actually, the content returned looks like :
content 1: Hello World
content 2. You convinced me {{1}} \nThanks!
Ref {{1}}: user { id: 1, name: 'KeitelDOG', image: 'image-url' };
The new content could still return String, but could also return an Array of Object type ContentPart[] like:
type ContentPart = {
  type: 'text' | 'mention',
  data: string | User
};

Where User type is already defined in the package as:
type User = {
  id: number | string,
  name: string,
  image?: string,
};

The ContentPart is already used inside the package too, but it's converted to string before going out, then we might just sending it out too if a property says to do so.
The new content would output as:
content 1: [{ type: 'text', data: 'Hello World' }]
content 2:
[
  { type: 'text', data: 'You convinced me ' },
  { type: 'mention', data:  { id: 1, name: 'KeitelDOG', image: 'image-url' }},
  { type: 'text', data: ' \nThanks!' },
]

I worked on this issue. And I developed 3 comment components that you can use alone or combine to display a full comment view with Show More or Less text, all this supporting the Comment content with Mentions.