Deploying to azure returns blank screen

I followed the instructions on : https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps
The website shows a blank screen and the logs from Kudu produces this, what's wrong?

D:\home\site\wwwroot\node_modules\azure-event-hubs\dist\lib\rhea-promise\connection.js:141
async createSender(options) {
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\home\site\wwwroot\node_modules\azure-event-hubs\dist\lib\rhea-promise\index.js:16:20)
at Module._compile (module.js:570:32)
Application has thrown an uncaught exception and is terminated:

had the same problem. the default node version seems to be a problem. I updated WEBSITE_NODE_DEFAULT_VERSION from 6.9.1 to 8.9.4 in the application settings and restarted the app. After a little while (update in progress) the application worked as expected.
This is the list of supported node versions on app service for windows:
{"nodejs":[{"version":"0.10.40","npm":"1.4.28"},{"version":"0.10.5","npm":"1.2.18"},{"version":"0.12.6","npm":"2.11.2"},{"version":"0.6.20","npm":"1.1.37"},{"version":"0.8.28","npm":"1.2.30"},{"version":"10.0.0","npm":"5.6.0"},{"version":"10.6.0","npm":"6.1.0"},{"version":"4.8.4","npm":"2.15.11"},{"version":"6.12.3","npm":"3.10.10"},{"version":"6.5.0","npm":"3.10.3"},{"version":"6.9.1","npm":"3.10.8"},{"version":"6.9.5","npm":"3.10.10"},{"version":"7.10.1","npm":"4.2.0"},{"version":"8.1.4","npm":"5.0.3"},{"version":"8.10.0","npm":"5.6.0"},{"version":"8.11.1","npm":"5.6.0"},{"version":"8.4.0","npm":"5.3.0"},{"version":"8.5.0","npm":"5.3.0"},{"version":"8.9.4","npm":"5.6.0"}],"system":{"os_name":"Windows Server 2016","os_build_lab_ex":"14393.2312.amd64fre.rs1_release(bryant).180609-2043","cores":1}}

hi folks,
I've created the separate issue that describe the problem (due to other MS npm dependency):
https://github.com/Azure-Samples/web-apps-node-iot-hub-data-visualization/issues/19
Thanks!

I've significantly refactored the sample and instructions. Please let us know if you see any issues.


Project collections

To allow collections to be filtered by project

[x] Add a field to collections that contains the project_ids of subjects contained by the collection.
[ ] Update the field when a subject is added to or removed from the collection.

To allow subjects to have a project context in collections

[ ] Add a field to collections_subjects that contains the id of the project the subject was collected from.

To allow subjects to know what collections they belong to

[ ] Expose an API resource for collections_subjects

[ ] Allow filtering by subject_id
[ ] Allow sorting by created_at

@parrish just looking at the code

To allow subjects to know what collections they belong to

This should already be in the api via here and look like /collections?subject_id=1. So we just need to add a sort field in the collection serializer and supporting index. You happy to mark the last checkbox as done?

We could use that.  Must've missed the intent of the abstraction before.
Do you foresee any issues with performance filtering across the join like that?

Should be ok since it'll be hitting the join table. We've got a compound index on collection_subjects (collection_id, subject_id) but we'd probably need another on just the subject id to support this query. I'll have a look at the query explains.

@parrish in light of https://github.com/zooniverse/Panoptes-Front-End/pull/1939 we just need the final project tracking context of subjects in collections right? I assume the last point i solved..

Yep, updated!

The "Update the field when a subject is added to or removed from the collection." item is checked, but to me it seems to be not working.
... Considering its probably a Panoptes internal process, I leave it at that.

@MvGulik - can you provide some examples where ti's not tracking the project context if they param is set?

Related to Panoptes returned Json data ... "collections":"links"."projects":[]
This project-id list seems only be set(checked) when a new collection is created.
After that, the content of that projects-list never changes.
As in, no change when:
-- Adding a subject from a other project to a collection.
-- Deleting all subjects related to the current stored/used project-id from a collection.

Right, I get it. Yep that is the current behaviour. The plan was to allow each collected subject to retain it's project context, Add a field to collections_subjects that contains the id of the project the subject was collected from....but we haven't implemented that yet.
What should we implement @MvGulik ? Track each subject's project context where it was collected? If we do that then we can add each uniq project context to the collection (for collection level filtering) and then allow project level filtering within the collection (if this is useful).

Filtering collections based on project seem very useful ... to me at least, but that more fueled by my general dislike of the fact that all Zooniverse Panoptes collections are all tossed into one big heap.
(*which kinda translates to an encyclopedia ... without a proper, or any, index. :( *)
Unrelated: Personally I'm not sure, if supporting subjects from different projects in a single collection, is actually a good thing. (but that's probably opening a other can of code-worms.)

The plan was to allow each collected subject to retain it's project context, Add a field to collections_subjects that contains the id of the project the subject was collected from....but we haven't implemented that yet.

Aha. It took some time for that one to sink in.

Track each subject's project context where it was collected?

As far as I can see, that seems to be the only way, yes. (So yes)
The alternative, to use a lookup list linking subject-id's to related projects, ... is probably not in line with Panoptes overall design (of which I know little to nothing).
As "Idées noires" fan, the "subject's project context where it was collected" is a bit disconcerting to me (as you can pick any subject from the general Zooniverse Subjects heap). But other than it being a nuisance to some if someone would actually do that, I can't see any critical downsides to that.


Refs #11580 -- Added tests for TextField's __contains lookup on text with more than 4000 chars.

ticket-11580
I couldn't reproduce a crash on Oracle 12c+ and Django 2.0+. Unfortunately, I'm not sure where (Django/Oracle/cx_Oracle) and when it was fixed :disappointed:
@shaib What do you think?

buildbot, test on oracle.

:shrug: It looks that it's still an issue, I wonder why it passes locally :thinking:
Ahh, fine I have MAX_STRING_SIZE = EXTENDED set locally :facepalm:


modify the code applicable to Ouster64 data

Hello，
Thank you very much for the open source！
I tried to directly use the pre-trained model provided by lidar-bonnetal to segment the data collected by ouster64. The segmentation results were very strange. How can I modify the code to make it applicable to ouster64 data?

I’m afraid not. The pretrained model is specifically tailored for the Velodyne-64.

Thank you for your answer! I want to know if it is because the rangenet++ method converts a three-dimensional point cloud into a two-dimensional one based on a distance image, so different types of sensors cannot use the model trained by the author based on vlp-64.
And If I use the same sensor vlp-64 to collect data on campus, would like to know if this dataset can use the parameters of the pre-trained model?

Yes. This is one reason. It is welcome to implement the projection method (3D -> 2D) to adapt for Ouster-64 and it may work. Another concern is the domain gap between the two LiDAR, which may lead to decrease in accuracy.
Look so good. However, as I have not personally conducted the tests, I cannot provide you with a definitive answer with 100% confidence.

Yes. This is one reason. It is welcome to implement the projection method (3D -> 2D) to adapt for Ouster-64 and it may work. Another concern is the domain gap between the two LiDAR, which may lead to decrease in accuracy.
Look so good. However, as I have not personally conducted the tests, I cannot provide you with a definitive answer with 100% confidence.

I understand, and thank you very much for your reply!


Vignette: NA Values

How to fill missing values_from
.sum_na = TRUE/FALSE side-effects
Examples from conformr-indstat & #4

Add warning at aggregation stage

will be mentioned in use_panel_maps vignette

will be mentioned in use_panel_maps vignette

NA are not allowed in xmap transformation graphs, but what about in named_values/observation data? -->
warn that we treat them as 0, with code suggestion for silencing the warning?

this makes the most sense since named_value totals are calculated by dropping NAs (i.e. implicitly treating them as zeros)

c( i = "converting NA values to 0",
    i = "`v = tidyr::replace_na(**v arg**, 0)` to silence)

look_for_na function: https://github.com/grunwaldlab/metacoder/blob/edd7192858fffc397fb64b9dcac00ed19dbbaa12/R/heat_tree--internal.R#L102C1-L123C2


Personal Device:QR code is not being generated.

One of our users is trying to complete Level 2. But the QR code is not showing since few days.
I asked her to uninstall and reinstall the app and then it showed the QR code.
But very often Personal devices do not generate QR.

@cakesoft-swati Can we try to reproduce this and jot down the steps? Right now, I'm not able to replicate this.

https://user-images.githubusercontent.com/62699947/155126728-e2b7cd02-90c5-4572-88e2-bb6286452e99.mp4

In latest dev app v2.0.70(441) it is not even generating the QR.This is happening on android device.And in ios it is generating the QR but taking more time to show it.It is taking atleast 2/3 minutes.Sometimes it takes 10/15 seconds.

Now in ios dev app v2.0.75(446) It is not generation the QR.

Not able to replicate it. Though it took a while, however, it always got generated on iOS.

closing this issue for now.we anyway don’t want people to use level 2


Fix javadoc in examples to match the README

Also use "log in" instead of "login" where a verb is needed instead of a
noun.
This addresses issue #863.
/cc @mziccard

Thanks for doing this, just added a bunch of nits.


Should RuboCop check low-level files (GAPIC and associated)?

I believe that the RuboCop configuration files for all packages containing GAPIC code exclude that code from analysis. Recently, a question about style came up in a PR adding GAPIC code. Should this code be covered by RuboCop?
Updating these files to pass RuboCop analysis could require significant work. For example, if I remove the following lines from google-cloud-logging/.rubocop.yml:
    - "lib/google/logging/**/*"
    - "lib/google/cloud/logging/v2.rb"
    - "lib/google/cloud/logging/v2/**/*"

The result is 285 offenses detected:
Running RuboCop...
/Users/quartzmo/code/google/codez/gcloud-ruby/google-cloud-logging/.rubocop.yml: Style/RescueException has the wrong namespace - should be Lint
Inspecting 42 files
...................CCCCCCCCCCCC...CCCCCCC.

Offenses:

lib/google/cloud/logging/v2/config_service_v2_api.rb:35:81: C: Line is too long. [86/80]
        # Service for configuring sinks used to export log entries outside Stackdriver
                                                                                ^^^^^^
lib/google/cloud/logging/v2/config_service_v2_api.rb:62:81: C: Line is too long. [81/80]
          # The scopes needed to make gRPC calls to all of the methods defined in
                                                                                ^
lib/google/cloud/logging/v2/config_service_v2_api.rb:89:15: C: Use the new Ruby 1.9 hash syntax.
              :"project" => project
              ^^^^^^^^^^^^^
lib/google/cloud/logging/v2/config_service_v2_api.rb:89:15: C: Do not use strings for word-like symbol literals.

...

lib/google/logging/v2/logging_services_pb.rb:46:81: C: Line is too long. [130/80]
          rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

42 files inspected, 285 offenses detected
RuboCop failed!

I think the generate protobuf classes should remain exempt from rubocop linting, because the protobuf ruby compiler is an independent project of its own.
The GAPIC generated code could probably benefit from some simple linting, like the missing new line at end of file. But I'm not sure how feasible it is to fix all the other NITs. Especially GAPIC generated code has to deal with the super long protobuf classes. (cc @swcloud) I'm wonder if it's possible to have two sets of rubocop style definitions coexist. A stricter style for hand written code, and a simpler style for generated GAPIC code.

Closing this question, based on @hxiong388's answer.


Aggregation of multi-packages and CCD Header parsing

Part 1 of #20

Adds aggregator for multipackets
Parses transparency data and sends it to callback

Testing
Coverage of most parts but I don't really know if it is currently possible to reach all error paths so not those.
Tip finding parsing errors
(best this is included in the --help by @joakimmoller  who probably already moved cli.go):
./bin/cli -stdout my.rac | grep -E -e".*Error:[^<:]+" -o

or if you want the Buffer conents which can be rather large if you are unlucky
./bin/cli -stdout my.rac | grep -E -e".*Error:[^<]+" -o

A few typos and a question. That aside, I'm happy if @joakimmoller is happy.

@joakimmoller I'd say that instrument_test.go is exactly one of the cases were it's extra important to fully test :wink: Because the implementation is a lot of copy paste of similar things it's much to easy to miss something or insert a typo and it can be hell to find such errors. By making all those tests I would have to have made the same mistake twice, which is much less probable.

take a look at #53 to see what I meant.


Concurrent implementation of PoST init

Overview / Motivation
When doing post init we should support 2 modes - one slow but easy on the host which uses only one core and a fast but resource consuming which uses all cores.
The Task
Provide support for the fast mode (slow mode is already implemented). The fast mode should split the init work between several go routines.
Implementation Notes
As part of this work you should also compare the fast mode vs the slow mode and verify that the ratio is more or less the same as the ratio between the number of cores used.
Contribution Guidelines
Important: Issue assignment to developers will be by the order of their application and proficiency level according to the tasks complexity. We will not assign tasks to developers who have'nt introduced themselves on our Gitter dev channel

Introduce yourself on go-spacemesh dev chat channel - ask our team any question you may have about this task
Fork branch develop to your own repo and work in your repo
You must document all methods, enums and types with godoc comments
You must write go unit tests for all types and methods when submitting a component, and integration tests if you submit a feature
When ready for code review, submit a PR from your repo back to branch develop
Attach relevant issue to PR

Closed by https://github.com/spacemeshos/post/pull/13 & https://github.com/spacemeshos/post/pull/15.


Fix: workflow annotations warning

fix  #1116
self-hosted runners have to be updated to version 2.297.0 or greater.

@ptillet there I some annotation error  I see while running test cases
https://github.com/openai/triton/actions/runs/4047577182
I am not exactly sure what this is, most likely due to an unformatted yaml.
You have any idea.? should I format it yaml and try again

closing as this change seems to already be on master (sorry for dropping the ball on this PR!)


chore(main): release 1.2.2

:robot: I have created a release beep boop
1.2.2 (2024-01-06)
Miscellaneous Chores

Parse request for slash commands (#29) (09c117a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cedricziel/mattermost-php/releases/tag/v1.2.2 :sunflower:


Implement custom Background Processing task from Scratch

After a discussion on Slack, we have decided to implement background processing in-house instead of using an existing library. This decision was made to better tailor the solution to our needs and maintain greater control over the process.

Thanks for linking it here @gedu, so last week I managed to create PoC of running background task on iOS. This week I'm focusing of cleaning my implementation and making it more stable, so the things that are missing:

[ ] implement methods from AppDelegate so it’ll one-line change to just call a function from our module not as right now few lines,
[ ] add proper error handling and handle end of background task execution on native-side (when JS function finish executing)
[ ] add all necessary props to customize things.

All changes that I'm making are available on my branch: https://github.com/callstack-internal/Expensify-App/commits/szymonrybczak/feat/setup-background-task-from-scratch/

Update from my side - the implementation is almost ready. One thing that we miss is EventEmitter, and currently the only way to setup EventEmitter with New Architecture in type-safe way is to use following method. It's available from React Native 0.76, so after talking with @mountiny I'll rebase with React Native upgrade branch to be able to use new recommend way of doing on my branch it and avoid creating workarounds as the upgrade PR is almost ready.

Let me know when you make the PR and I could create a build for testing

@mountiny https://github.com/Expensify/App/pull/53834

iOS PR is ready to review and the iOS build is passing. I've started working on Android implementation now, hopefully I'll have some results to share next week 👍

Not overdue: waiting for response for iOS: https://github.com/Expensify/App/pull/53834#issuecomment-2557272652
On Android soon a separated PR will be created


TypeError: Cannot read properties of undefined (reading 'options')

解决方案：

the file: node_modules/react-native-actionsheet/lib/ActionSheetIOS.js ,  add the following code

  constructor(props) {
    super(props)
    this.show = this.show.bind(this)
  }

You can use it together patch-package npm package.


Jenkins CI: PX4 ROS msgs stage: deploy message definitions to the 'ros1' branch of 'px4_msgs'

Same as what was done in https://github.com/PX4/Firmware/pull/11313, but now for the ros1 branch.

Successful deploy: https://github.com/PX4/px4_msgs/commit/c1ba2d7028c63322afa7bb168a85616770a41039

Merging, as this is fully functional.


Update clamxav

Thank you for the contribution. It needed some fixes, so they were made in 2f141d3413a3743e00f545b1ac2a0b9dcc5733f1. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


PMT climb subsystem

Making this for testing on Tueday

Will make scheduling commands in a desperate PR, relies upon mech testing on our climbing speed

Will make scheduling commands in a desperate PR, relies upon mech testing on our climbing speed

Sounds like we're in a lot of trouble if our PRs are desperate...


release: v0.2.0

Description: 概要

Changes: 変更内容

Changes

feat: add collection helper methods (0200deac312ee65584346531089430edf275c980)
chore: refactoring (9a107fca46523809005da8f096e11b32672e8960)
chore: tweaks (08e6d7f2dbbe7f08351cc56f22dd847a3aef3b9d)
chore: make collections to be public (4698ea9d233536d1bc7afd104fa40addae85abf9)

Expected Impact: 影響範囲

Operating Requirements: 動作要件

Additional context: 補足

Codecov Report

Merging #2 (9a107fc) into main (242ad93) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   98.01%   98.01%
=======================================
  Files          13       13
  Lines         202      202
  Branches       38       38
=======================================
  Hits          198      198
  Partials        4        4

Impacted Files
Coverage Δ

src/exceptions/exception.ts
100.00% <ø> (ø)

src/exceptions/invalidUsage.ts
100.00% <ø> (ø)

src/exceptions/invalidValue.ts
100.00% <ø> (ø)

src/exceptions/validation.ts
100.00% <ø> (ø)

src/entity/collection.ts
94.73% <100.00%> (ø)

src/entity/index.ts
93.18% <100.00%> (ø)

src/valueObject/index.ts
100.00% <100.00%> (ø)

src/valueObject/stringId.ts
100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

This PR is no longer needed because the package looks up-to-date.


[pwm] Request to alter style

This isn't in our coding style, but after a quick discussions with the physical design guys, we probably want to avoid variable reset values as shown here.
The concern is that this may cause set / reset line type race issues (seen in different projects before).

PR: https://github.com/lowRISC/opentitan/pull/7283


"seconds" is not a timestamp-precision value in STIX 2.0

Convert to 'full' or omit (because 'full' is the default)

Is this still an issue @rpiazza ?

Good point - no precision has been removed from 2.0


Feature/352 support all of

Status

READY
Description
fix allOf type definition
e.g. https://github.com/anymaniax/orval/issues/352

@anymaniax
Thank you for the awesome library!
I used it for work and had the same problem, so I tried to fix it, but what about?
I'd be happy if you merge it.

Thanks for the pull request. I still need to test and check myself. What I am not a fan of is that with that we will have two different parser it should be possible with @apidevtools/swagger-parser no?

@anymaniax  Thank you for your reply!
It might be possible, if you want.
My motivation I simply wanted to match the content and type displayed in Redoc. But, Test data's is Swagger UI same.
(i.e.... allOf has different priority when the same key exists. This fix conforms to Swagger UI behavior)
I wasn't sure if @apidevtools/swagger-parser could do the same thing

Also by doing that it will cause a breaking change, I think because some of the models that were generated won't be anymore. Your issue is the same as #352? if it's the case I have maybe a solution for it

@anymaniax Yes! It is the same as https://github.com/anymaniax/orval/issues/352. But, There were other cases that I expected. All patterns are left in the test code of this PR.

I did some tests and with your implementation it will case some breaking changes. Also I saw some case where it doesn't seems to work correctly with multi files specifications. I thought about adding an utility type. It would be added for top level required.
Something like this
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] }

@anymaniax We solved by using @apidevtools/swagger-cli before orval. It is merge tool to one source file.
In case of have same property key, Intersection Types results type to never .  So before generate type, I think it is better merge.
Do you have an example this breaking changes?

@yokoyama-takuya for the breaking change some models aren't generated anymore or are generated differently. Also for the case that is not working with the implementation. It's when you have the ref pointing to another specification file in an allOf.

@anymaniax

some models aren't generated

I want that openapi spec.

Another big issue is that you also need to install as dependencies a lot of stuff that are not useful for the project.

Yeah, I think so too.

@yokoyama-takuya
You can check here and replace a ref in Pet.yaml or Person.yaml by a allOf with the same ref for example


Adds ability to provide a custom tag for __android_log_print

Since feature only affects Android I've made it this way:
https://github.com/bkaradzic/bx/commit/c96cd6e7fe7e954c0fdc20f284aa62bece78c560


List form provisioning

What is the recommended approach for list form provisioning? Site Scripts? PnP provisioning? SPFx?
I think only Site Scripts support it now but it seems like an overkill ;)
Any recommendations welcome =)

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

ID: 0f6aeedd-a76d-88b0-7ed5-93e20ac218bc
Version Independent ID: 64315895-1103-d5f6-0195-9b5b61211132
Content: Configure the list form
Content Source: docs/declarative-customization/list-form-configuration.md
Product: sharepoint
GitHub Login: @VesaJuvonen
Microsoft Alias: vesaj

There's no recommended approach... just multiple options for you to choose from.
Personally, I'd avoid using XML-based (aka: Feature schema) provisioning.

To add onto Andrew's comment, there actually isn't a supported way of doing this. Microsoft doesn't support it yet in Site Scripts, and to my knowledge, neither does PnP.

Ah... totally missed the word "form"... @bcameron1231 is correct. At this time, customizing the list form is not supported, nor is it even possible.
It's a long requested feature...


How many packet updates are sent per second?

I am having trouble with smoothing motion on a custom client I am building, how many updates per second are sent from the server to the clients?

25

Doop ^


[Bug] Error on elastistack_elasticsearch_security_user on TF apply after upgrading to v8 Elastic

Describe the bug
After upgrading from Elastic v7.17.3 > v8.1.1, when running an apply on a custom module which uses the Elasticstack provider, the resource elastistack_elasticsearch_security_user generates the following error message: Error : Unable to find a user in the cluster..
For context, the user existed when we were on V7.17.3, and it was lost as part of the upgrade. We had not seen this error before.
Remediation
In order to resolve the issue, we had to manually re-create the security user in the Elastic console, then when I subsequently ran a plan and apply, Terraform was able to see the user and the apply was successful.
I would expect Terraform to be able to see the drift in state and real-world, such that the user had been deleted as part of the V8.1.1 upgrade, and subsequently force a replacement. Instead of giving us the error message above.
Debug output
Error : Unable to find a user in the cluster.
…in resource "elastistack_elasticsearch_security_user" "user":
  1: resource  "elastistack_elasticsearch_security_user" "user" {
Unable to get user: 'user-XXX' from the cluster.

Versions:

Terraform Version 1.0.8
Provider version 0.3.3
Elasticsearch Version 8.1.1

If you require further information, please @ me in the comments. Thanks

Still seeing this behaviour. One of our environments had to be rebuilt, upon applying the terraform after rebuild (where the user had been lost), it errored with "Unable to find a user in the cluster." rather than detecting the user does not exist / has been deleted and therefore creating a new one


fix: updated docs link for "missing collections files in assets folde…

…r" warning
replaces broken link
might be easier to just copy code provided to your next PR

Thanks for the PR!


NH-60984 Add Otel Python SDK-based histogram for response_time

This adds a new SolarWinds MeterManager as a place to store any Otel Python meters initialized at instrumented service startup. In this iteration we add one Otel Python SDK Histogram to represent the trace.service.response_time derived/"inbound" metric in SWO.
Example graphs of how this looks are screenshot in this doc: https://swicloud.atlassian.net/wiki/spaces/NIT/pages/3792503086/PoC+Otel+Metrics+to+recreate+Inbound+Metrics#trace.service.response_time
Also adds a new SolarWinds OTLPMetricsSpanProcessor to record to the histogram at the end of every service entry span. Right now this processor duplicates some of what the InboundMetricsSpanProcessor does to set the metrics attribute sw.transaction.
Configurator is updated to initialized all of the above at instrumented service startup. Span processors are registered in order of add_span_processor calls so InboundMetricsSpanProcessor is first and OTLPMetricsSpanProcessor is second when on_end is called.
User needs to set SW_APM_EXPERIMENTAL_OTEL_COLLECTOR as per https://github.com/solarwindscloud/solarwinds-apm-python/pull/200 for the histogram to be created and recorded to. If not set, metrics instruments are not created nor is the span processor for otlp metrics recording published.
Next steps:

Refactor processors: https://swicloud.atlassian.net/browse/NH-65061

Thank you for first pass @cheempz ! I've addressed them and posted a question about the start/end delta conversion if you could please take another look.


65 feat contributors profile page

This PR will add a new contributor page layout along with some style components. Also add some custom rehype plugins. Provides a better looks for profile page

Closes #65
Changes proposed

Added new structured and styled contributor profile page
Added rehype plugin
Added mdx components

@sboy99 why protected deployment

I randomly opened it, I am turning it off right now

This pr does not include the projects section??

This pr does not include the projects section??

You can finish that too, then merge

Yes, Actually its separate from documentation page, you can start work on prev & next  as they are isolated and has nothing to do with contributor profile page

Yes, Actually its separate from documentation page, you can start work on prev & next as they are isolated and has nothing to do with contributor profile page

Yes realized that later

How to add links to these


New Tag

Hello !
Can we have a new tag for the December's changes ? We can't use the bundle since in the last tag MailjetDataCollector::reset() is not defined so we got the error :

Error: Class Mailjet\MailjetBundle\DataCollector\MailjetDataCollector contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::reset)

Stack :

Symfony 4.0.4
PHP 7.1

Thank you.
Eliaenor

ping @Zhivko-Mailjet

Zhivko is no longer part of the team aswell :) . cc @eboisgon  @kachar

It could be nice if the pending pull request which solve another SF 4 issue could be merged before creating the new tag.

@Nightbr you already merged pull requests and created new tags.
You cannot do it anymore?

I'm not in charge anymore.. sorry

Added tag https://github.com/mailjet/mailjetBundle/releases/tag/1.0.5


No user feedback when on wrong network

When user is on a network without our contracts the dapp silently fails. This happens on rinkeby when runnign local chain, or on main net.
I know we used to pop up a message for this, but must have gotten lost somewhere.
Chrome console shows:
Uncaught (in promise) Error: This contract object doesn't have address set yet, please set an address first.
    at Object._processExecuteArguments (index.js:739)
    at Object._executeMethod (index.js:760)
    at Users._callee3$ (users.js:17)
    at tryCatch (runtime.js:65)
    at Generator.invoke [as _invoke] (runtime.js:303)
    at Generator.prototype.(:3000/anonymous function) [as next] (http://localhost:3000/app.9db4ddaf.js:46159:21)
    at step (users.js:1)
    at users.js:1

@wanderingstan this came up a day or two ago and Nick reminded me that the modal only pops up in "production". We do need a fix so that an exception is not raised and the friendly Bootstrap-style alert is shown indicating that no contracts are found.

Fixed in #173


Fix 2 errors.

Fix errors that occur with Unity 2022

Build-History\Editor\BuildHistory\BuildEntry.cs(64,22): error CS0619: 'BuildReport.files' is obsolete: 'Use GetFiles() method instead (UnityUpgradable) -> GetFiles()'

Errors that occur during build.

Build-History\Editor\BuildHistory\BuildData.cs(19,19): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(19,19): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Build-History\Editor\BuildHistory\BuildHistoryEditor.cs(23,19): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Build-History\Editor\BuildHistory\BuildHook.cs(18,19): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Build-History\Editor\BuildHistory\BuildHook.cs(19,19): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Build-History\Editor\BuildHistory\BuildHook.cs(24,28): error CS0246: The type or namespace name 'IPostprocessBuildWithReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(95,20): error CS0246: The type or namespace name 'BuildTarget' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(102,20): error CS0246: The type or namespace name 'BuildResult' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(54,23): error CS0246: The type or namespace name 'BuildReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHook.cs(30,36): error CS0246: The type or namespace name 'BuildReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(33,12): error CS0246: The type or namespace name 'BuildTarget' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHook.cs(26,26): error CS0246: The type or namespace name 'BuildReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildData.cs(47,29): error CS0246: The type or namespace name 'BuildReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHistoryEditor.cs(28,37): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildEntry.cs(51,12): error CS0246: The type or namespace name 'BuildResult' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildPlatform.cs(73,49): error CS0246: The type or namespace name 'BuildTarget' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\LineChart.cs(77,20): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\LineChart.cs(81,20): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHistoryEditor.cs(499,32): error CS0246: The type or namespace name 'BuildReport' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHistoryEditor.cs(77,6): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found (are you missing a using directive or an assembly reference?)
Build-History\Editor\BuildHistory\BuildHistoryEditor.cs(77,6): error CS0246: The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)
Error building Player because scripts had compiler errors

Thanks for the fixes!


hugolib: Make URLs in pagination relative.

A fix for #1252 (works for me). It may be good to add a unit test for this change as well (I haven't enough experience with hugo to write it by myself...)

Have there been any updates on this? Using CanonifyUrls isn't the most ideal workaround for this.

Can you give some concrete samples that fails for you?


Make xlsx file Read-only

Hi,
Nice plugin.
Please can I make a file read-only, then require password to edit it?
Also any plans to make this plugin null-safe?

PR is welcome

@tochiedev Pull Request for null-safety will be available by Mid of Nov


Not working for underline

HI, i'm trying to convert underline text to markdown to delta, not able to figure out what to do?
input ->  text
output -> text

HI
I have same problem, converting underline text to markdown to delta is not working

It would require some work since it's not supported in flutter markdown.
see: https://tarekkma.github.io/markdown_quill_playground/
If I'm free I will try to get it done


Request for Detailed README for COF Brick BO Code

Hi! Your recent paper on COF design through Bayesian optimization is a significant contribution to the field and highly relevant to my current research. I recently accessed your COF Brick BO Search code on GitHub and noticed that the repository lacks a detailed README. Could you please add a README file with instructions on how to set up and run the code? Thank you!

Hello. Uploaded ::))


Shipment View: Second iteration on Receiving Shipment UI

This PR is the second iteration of the receiving shipment UI, following on from https://github.com/boxwise/boxtribute/pull/705.
The following has been fixed:

Change the title of the page to Receiving Shipments
Align product headers with actual cells
Fix font size and style of product name and count
Show UI correctly for completed shipments
Add new fields into shipment details

 2.0 ShipmentView: integrate recent BE changes (box and shipment state changes)

Functional review
The things mentioned above work except:

product header and columns are not aligned

Overlay overflows on screen (Nevermind)

Shipment card of completed shipment looks good! :+1: @vahidbazzaz


Stack overflow with openblas 0.3.26 against LAPACK 3.11 test suite

In conda-forge, we've been blocked for a long time from enabling newer LAPACK versions by default by failing tests in the LAPACK 3.10.1 test suite when run against MKL.
In the context of figuring out these errors, the Intel people asked me if it's possible to test against 3.11.0 as well, which I did in https://github.com/conda-forge/blas-feedstock/pull/114. Through this, I noticed that there are failures with openblas builds on windows (while linux/osx run fine):
98% tests passed, 2 tests failed out of 82

Total Test time (real) =  97.47 sec

The following tests FAILED:
	 25 - LAPACK-xeigtstd_dec_in (Failed)
	 54 - LAPACK-xeigtstz_zec_in (Failed)

more detailed logs
25/82 Test #25: LAPACK-xeigtstd_dec_in ...........***Failed    0.47 sec
Running: D:/bld/blas-split_1711250773222/work/build/bin/xeigtstd.exe
ARGS= OUTPUT_FILE;D:/bld/blas-split_1711250773222/work/build/TESTING/dec.out;ERROR_FILE;D:/bld/blas-split_1711250773222/work/build/TESTING/dec.out.err;INPUT_FILE;D:/bld/blas-split_1711250773222/work/TESTING/dec.in
Test OUTPUT:

Test ERROR:

CMake Error at D:/bld/blas-split_1711250773222/work/TESTING/runtest.cmake:36 (message):
  Test D:/bld/blas-split_1711250773222/work/build/bin/xeigtstd.exe returned
  Stack overflow

[...]

54/82 Test #54: LAPACK-xeigtstz_zec_in ...........***Failed    0.09 sec
Running: D:/bld/blas-split_1711250773222/work/build/bin/xeigtstz.exe
ARGS= OUTPUT_FILE;D:/bld/blas-split_1711250773222/work/build/TESTING/zec.out;ERROR_FILE;D:/bld/blas-split_1711250773222/work/build/TESTING/zec.out.err;INPUT_FILE;D:/bld/blas-split_1711250773222/work/TESTING/zec.in
Test OUTPUT:

Test ERROR:

CMake Error at D:/bld/blas-split_1711250773222/work/TESTING/runtest.cmake:36 (message):
  Test D:/bld/blas-split_1711250773222/work/build/bin/xeigtstz.exe returned
  Stack overflow

Which compiler ? And can you work around it by supplying a larger /STACK: size to the linker ? https://github.com/Reference-LAPACK/lapack/issues/987 is somewhat related (though the stack requirements supposedly were fixed in the LAPACK testsuite 3 years ago, and the CLAPACK that issue was raised against is ancient). Possibly some new test with huge static arrays may have crept in again after LAPACK 3.10, but you should be seeing the exact same problem with Reference-LAPACK

cf. https://github.com/Reference-LAPACK/lapack/pull/553

more to the point, this should have been addressed by https://github.com/OpenMathLib/OpenBLAS/pull/4088 from 0.3.24 (copying https://github.com/Reference-LAPACK/lapack/pull/854)

Of course the original Reference-LAPACK PR only made it into their 3.12.0 release, so if you are actually mixing a NO_LAPACK=1 OpenBLAS with your own build of an unpatched 3.11.0 Reference-LAPACK , you will still get this and other since-resolved LAPACK errors. (But then you should probably be looking at the issue tracker for Reference-LAPACK anyway, instead of putting that here.)

But then you should probably be looking at the issue tracker for Reference-LAPACK anyway, instead of putting that here.

In my defense, all builds in https://github.com/conda-forge/blas-feedstock/pull/114 are running the same unpatched LAPACK test suite, and only openblas + windows showed this failure (MKL failed even earlier for unrelated reasons).
After backporting https://github.com/Reference-LAPACK/lapack/pull/854, things work now, thanks a lot! 🙏
I'll make a point to double-check the lapack repo for related issues in the future.


Cannot install with pip

Hi,
It seems that pip install sklearn-hierarchical-classification doesn't work. tested on python 2 and 3, and I use a mac (although this shouldn't be relevant).
output :
Collecting sklearn-hierarchical-classification
  Could not find a version that satisfies the requirement sklearn-hierarchical-classification (from versions: )
No matching distribution found for sklearn-hierarchical-classification

Cheers

Hi,
I met the same problem. Did you get any luck to solve this?
Best,
Yuede

Hey, I just installed from source.

Good for you! But could you explain the details? I'm a little bit confused.

git clone https://github.com/globality-corp/sklearn-hierarchical-classification.git
cd sklearn-hierarchical-classification
pip install .

It woks! Thanks so much!

Installing from pip is not working for me either.

It should be working now.

https://pypi.org/project/sklearn-hierarchical-classification/1.0.0/


Twinklys as Join

Hi,
I have two physical twinkly devices as a virtual "join device" in the app. Is this kind of join device supported?
If yes, what is the IP that needs to be given?
Sorry that I post this question here, but the Forum is disabled.
Best regards,
Christoph

Not sure actually.  I have linked lights for my Xmas decorations but checking my archived node red flow I turned them both on/off at same time.
Maybe there is a better way to do this but I'd have to get them back down from the loft to test.
If you turn both on at same time are they still linked properly?

Thanks a lot for the very quick reply. Yes, I tried this and it works to switch them both on and off at the same time and the last animation is still synchronized.
I still think it would be great to have support for virtual devices such that it is more intuitive, but definitely not so urgent anymore. For me it works like this.


fix: allow async overrideResponse to be passed to msw handler (issue #1389)

Status
READY
Description
Fix #1389.
In MSW, a mock handler can access the response resolver info. For example, it can access the request body to change the response based on the request. Access to that request body is only possible through an async function call to json().
http.post("/some/path", async ({ request }) => {
  const requestJson = await request.json();
  // Do something with the request, such as producing a response based on it.
  return ...
});

In Orval, PR #1375 made it possible for the override in a MSW mock handler to be a function, and Orval passes the response resolver info to that function. However, Orval requires a synchronous method that returns a response object. It does not allow async functions.
Before this PR, it was not possible to migrate the above mock handler to Orval. The following code would not type check:
getSomePathMockHandler(async ({ request }) => {  // This does not type-check. Orval does not allow a Promise<SomeResponse> return type.
  const requestJson = await request.json();
  // Do something with the request, such as producing a response based on it.
  return ...
});

This PR changes the code generation such that both Promise<ResponseType> | ResponseType is allowed as a return type for the override. This mirrors what MSW does.
Related PRs
#1375

Hi, @severinh
I would like to understand the background a little more, so please tell me specifically when the problem occurs when it is not a Promise. Is it just that type checking doesn't work?

Hi, @severinh I would like to understand the background a little more, so please tell me specifically when the problem occurs when it is not a Promise. Is it just that type checking doesn't work?

It's not just the type-checking that does not pass. Let's assume we ignore the type checking error. The whole mock handler does not work correctly when passing an async method that returns a Promise. The problem is: When passing an async method, the overrideResponse function returns a Promise of a response, not a response object. Orval then directly passes that response object into JSON.stringify.
Orval only supports passing a non-async method right now. The following currently works in Orval:
// Suppose the user passes the following overrideResponse function:
const overrideResponse = (info) => {
  // Cannot get the request body from info, because that would require the method to be async
  return {"field": "value"}
}
// Orval then does the following call
JSON.stringify(overrideResponse())
which outputs "{'field': 'value'}"

However, suppose the user passes an async function:
const overrideResponse = async (info) => {
  // Do something async with info, such as reading the request body.
  return {"field": "value"}
}
// Orval (before this PR) then does the following call
JSON.stringify(overrideResponse())
// This outputs "{}", which is wrong, because we're stringifying the Promise itself, not the awaited object.

Hope that helps.

@severinh
Thank you for your kindness. I understand that much, but what is the specific background of why I want to use Promise?
In the current state, we are only dealing with simple objects or functions that return objects, but adding more `Promises' here will also increase complexity. I would also like to understand the benefits I can receive from this, so please let me know.

@severinh
Thank you for your kindness. I understand that much, but what is the specific background of why I want to use Promise? In the current state, we are only dealing with simple objects or functions that return objects, but adding more `Promises' here will also increase complexity. I would also like to understand the benefits I can receive from this, so please let me know.

Happy to clarify.
There are two concrete use cases:

Returning a response based on the request:

Here's what you can do in MSW:
http.post("/greeting", async ({ request }) => {
  const { firstName, lastName } = await request.json();
  return { greeting: `Hello ${firstName} ${lastName}` }
});

The request body is only available via request.json, which returns a Promise. And hence can only be called in an async method.

Making assertions in a mock handler on the request in a test:

Here's what you can do in MSW (though this use case is generally discouraged by MSW):
http.post("/greeting", async ({ request }) => {
  const { firstName, lastName } = await request.json();
  expect(firstName).toEqual("Test");
  expect(lastName).toEqual("Name");
});

Neither of these is possible if you want to use an Orval mock handler. That means you have to fall back to hard-coding the URLs and don't get any type safety - which is the whole point of using Orval.
This is related to issue #1206 that I filed some time ago.
Personally, I would have have advised against merging #1375, because it only allows partial flexibility. With the current method signature of Orval's mock handlers (introduced in #1375), you can only override the response body, but you cannot override the entire HttpResponse (for example to simulate a HTTP 500 error, or add some more response headers).
My preferred solution would have been for Orval mock handlers to look like this:
export const getGreetingMockHandler = (override?: GreetingResponse | Parameters<typeof http.post>[1]) => {
  return http.post('/greeting', async (info) => {
    return typeof override === 'function'
      ? await override(info) // This override can return anything it wants, such as a HTTP 500 error.
      : new HttpResponse(JSON.stringify(override !== undefined ? override : getGreetingResponseMock()), {
          status: 200,
          headers: {
            'Content-Type': 'application/json',
          },
        });
  });
};

// One could then use this Orval mock handler like this:
server.use(getGreetingMockHandler(async (resolverInfo) => {
  return new HttpResponse(/* anything can go here */);
});

This would be both simpler and more flexible than what #1375 introduced. But the problem is that since #1375 was already released in 0.29, this would be a backwards-incompatible change. Would that be a possibility? If yes, I'm happy to prepare a PR to make the mock handlers look like the above, solving #1206 too.

@severinh
First of all, regarding 1, you want to perform calculations in request and calculate the value of the return type object, right? And, on the side that uses mocks, you can do the same thing by creating and using an object that is not a Promise from the beginning, right?

@severinh
First of all, regarding 1, you want to perform calculations in request and calculate the value of the return type object, right? And, on the side that uses mocks, you can do the same thing by creating and using an object that is not a Promise from the beginning, right?

Thanks for the patience. I'm afraid I don't fully understand the question. What do you mean by "on the side that uses mocks"? Could you explain how you would do 1) with an Orval-provided MSW handler like getGreetingMockHandler?

OK. In short, it's not clear whether you want to use Promise to optimize it individually for your complex project, or if it will benefit you as a whole.
This change itself is minor, so I would like to merge it if there is any benefit.
However, when using the original handler, if a response object or calculation is required, wouldn't it be sufficient to input the function?
For example, in the case of getGreetingMockHandler, wouldn't it be sufficient to just pass the function without doing any asynchronous processing?
const fullname = (firstName: string, lastName: string) => {
  return { fullname: `${firstName} ${lastName}`
}

getGreetingMockHandler(fullname)

Ah, now I understand the confusion.

In short, it's not clear whether you want to use Promise to optimize it individually for your complex project, or if it will benefit you as a whole.

To clarify, this PR:

has nothing to do with optimization.
is not about using async because something is slow or complex.
is not about building a mock response. You're right that to build a mock response, we can just use getGreetingResponse({greeting: "Hello world"}). That works perfectly.

This PR about accessing the HTTP request that the application made to the MSW request handler, which is currently not possible with an Orval-created request handler.
Probably my toy example 1) is too simple, so it's not clear why this would be useful.
Right now, with Orval request handlers you can only use a static mock response object. No matter what request the application sends, the request handler will return the same response object.
In the real server-side implementation of an API, the response will be produced based on the request. Now, it does not make sense to reimplement the real server implementation in a request handler. However, in specific cases, it can help to make the request handler just small bit more realistic, by changing the response based on what request the application made. But that requires access to the request that the application sent, and producing a HTTP response object based on that. But Orval currently does not allow that kind of access.
Here's one example in the MSW documentation, which is not possible when using an Orval-generated MSW handler (notice the await request).
Maybe what I could suggest: I'm fine with leaving this PR open for now, since it only addresses half of my problem. It only partially resolves #1206. If it's okay for you, I can try to write a new PR to solve #1206. I believe the benefit of that more complex fix will be more clear than with this PR. About to go on vacation though, so will not respond for a week. :)

@severinh
Hmm, I understand the scene you want to use. You want to reproduce the case where the http response changes dynamically depending on the http request, so you want to execute that logic, right?
Also, for example, if you want to test whether the request body of an http request is correct, request.json() can only be handled by Promise.
well understood. I agree with this so I'll merge it. Thank you for teaching me so carefully.
Let's discuss #1206 in an issue.


Move Duktape 1.x module loading framework to extras

[x] Remove module loading support from core sources
[x] Add Duktape 1.x compatible module loader as an extra
[x] Dist/makefile changes
[x] Add DUK_CMDLINE_MODULE_SUPPORT and integrate the extra into 'duk' (allows running existing testcases)
[ ] Documentation fixes
[ ] 2.0 migration notes
[x] Releases entry

Footprint saved is around 1,7kB. If you add back module loading functionality via the extra, footprint increases by about 400 bytes.

Ok, should be a bit closer to finished now. I'll have to re-read this tomorrow (it's getting pretty late).
DukLuv test build fails which is interesting: DukLuv replaces the built-in framework but I think it's expecting Duktape.modLoaded to exist and be an empty object. I'll fix that in the DukLuv 2.x pull.

Documentation, migration notes are missing, so I'll add them tomorrow.

Name for the extra could be improved, for example module-duktape-v1. This is intended to replicate 1.x behavior and probably won't get much development beyond that, so it'd be good to identify the version in the name.

Good thing I already moved to a custom module loader for minisphere, so I sidestepped this migration issue. :)


🐛 [FLUTTER_MESSANGING]  notifications do not work when the app is termined

when I send notifications by firebase and the app is finished no notification arrives

@jicasa03
There's no details provided to make this issue actionable. Please use the new issue template and fill out requested details.
Closing for now.


[UI] Better align restart/restage actions with what the CLI allows

Application restart/restage actions are gated on the application state
It's been spotted that the CLI allows restage at times when the UI doesn't
We need to investigate at what stages the CLI allows each action and align the UI to it

It may mean we need to re-evaluate our application state

@richard-cox, just for you information:
This ticket fixed an issue not applying env vars if not deployed from start: https://github.com/epinio/epinio/issues/2220
This other one will try to include restart within  restage in the CLI to spare the user from running the 2 commands: https://github.com/epinio/epinio/issues/2230 . I think it would be wise to implement it in the UI as well. Please let me know if you'd prefer a separate ticket for this or would like to consider it within this one.

Following up work. Restage does now include automatically restarting in cli after the merge of https://github.com/epinio/epinio/pull/2319


Revert version pinning for Mariner SIG image

The issue requiring that the Mariner image to be pinned to 2022.02.19 has been resolved in PR https://github.com/Azure/AgentBaker/pull/1636. Subsequent builds of the Mariner image out of the master branch are back to being healthy.
This commit reverts the change from PR https://github.com/Azure/AgentBaker/pull/1617, setting Mariner to use the same date tag as the other Linux images once again for upcoming releases.

lgtm pending a branch update (latest commit to Agentbaker also has changes to sig_config.go. Thanks


How to change "Add to Apple Wallet" font size

In iOS "Add to Apple Wallet" font size is big compared to my project's design system. So please guide us to change "Add to Apple Wallet" font size.

@CherukuriSiva
Font size of "Add to Apple Wallet" button is based on the dimensions of button itself. That means we cant change font size directly. So your problem can be solved by playing with a different button's height and width to match the perfect proportions e.g:
style={Platform.OS === 'ios' ? { height: 60, width: 140 } : undefined }
After that font size will be changed automatically (same for paddings).
Also known issue regarding the border radius for iOS 16.1 +
https://developer.apple.com/forums/thread/720929


Access-Control-Allow-Private-Network header

Would it be possible to add Access-Control-Allow-Private-Network: true header for preflight checks?

I looked at the code after posting this, my bad. The answer is no.

This plugin wraps @koa/cors which doesn't support Access-Control-Allow-Private-Network yet.. But I have asked..
However, it is still very much possible to support this header using custom middleware - would that work for you?

Yes thank you :)
I had come to that conclusion myself. I'd never looked at it before but it seems fairly straightforward.

I just wrote another quick middleware example to help explain how they're used..
Let me know if you come up with a useful plugin to solve this issue for future users

I'm still waiting for a response from Koa regarding adding support for this header - re-opening the ticket and will add support myself if I'm waiting much longer..
@atompkins What is your particular use case for this header? In what scenario does this header fix your issue?

I develop a Greasemonkey script. The same issue would occur for an API though.
This is only a problem in development and only in Chrome, I haven't tried other Chromium based browsers.
I wrote a very primitive middleware for my project
https://github.com/atompkins/fallenswordhelper/blob/6a2495564804aaf51707dd240d934906a4f60141/scripts/mw-private-network.js
It has to go in the stack before cors.

Your middleware looks fine to me - gets the job done.. Support for this header has just landed in koa/cors, could you take a quick look at the patch and confirm whether or not the added behaviour solves your issue?

looks like it should work

is it possible to update the @kao/cors dependency to a newer version?

working on it, watch this space..

Released in local-web-server v5.3.0. Let me know if there's anything else..


Demos and tests do not work

As a consequence of https://github.com/ros-controls/ros2_control/pull/1694 the parameters are not known to the spawners without explicitely giving --params-file option.
This make the tests fail, something in the shutdown of gz hangs and there are still joint_states published in later tests.
https://github.com/ros-controls/ros2_control_ci/issues/126
https://github.com/ros-controls/ros2_control_ci/issues/127
maybe I have time to fix this in the next days.

Partially fixed with https://github.com/ros-controls/ros2_control/pull/1712 -> Rolling build should succeed now with the 4.16.1 patch release


Add knative serving installation to the setup command

Add knative serving installation to the setup command

Codecov Report

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

@@          Coverage Diff           @@
##           master    #399   +/-   ##
======================================
  Coverage    82.6%   82.6%
======================================
  Files          29      29
  Lines         776     776
  Branches       54      54
======================================
  Hits          641     641
  Misses         95      95
  Partials       40      40

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 5fd25e6...e3cdd7d. Read the comment docs.


Add references to Windows containers

Signed-off-by: Rob Dolin<EMAIL_ADDRESS>

Signed-off-by: Rob Dolin<EMAIL_ADDRESS>

@opencontainers/runtime-spec-maintainers Per conversation on OCI Dev ConCall, please LGTM and merge.  Thanks.  :)

On Wed, Sep 07, 2016 at 02:19:30PM -0700, Rob Dolin (MSFT) wrote:

Signed-off-by: Rob Dolin<EMAIL_ADDRESS>
Ah, looks like the Signed-off-by in d4076604a is missing a trailing
‘>’.  Can you amend and force-push?

Doh.  Thanks @wking.  I see my typo at the top of: https://github.com/opencontainers/runtime-spec/commit/d4076604a0d1050628b5b283337d1c7e37c756cc
With the tool chain I'm using, I can't easily amend and force-push.  :(
If two maintainer LGTMs cannot merge this change, please LMK and I'll re-create the PR and re-submit.

@RobDolinMS yeah, I think the DCO check is a firm blocker (AIUI, IANAL); if your current toolchain can't amend/force, could you clone your branch elsewhere and amend/force there?  Otherwise I think you're stuck with a resubmit. :disappointed:

On Thu, Sep 08, 2016 at 01:50:48PM -0700, Tianon Gravi wrote:

@RobDolinMS yeah, I think the DCO check is a firm blocker (AIUI,
IANAL); if your current toolchain can't amend/force, could you clone
your branch elsewhere and amend/force there?  Otherwise I think
you're stuck with a resubmit. :disappointed:

I believe this has been dealt with in the past by having the merging
maintainer insert Rob's Signed-off-by in the commit message when
merging (in cases where he has provided that Signed-off-by via a
GitHub comment).  But I haven't dug up a specific instance, so I may
be miss-remembering.

Working on a replacement for this with more meat, and meeting with Windows Containers experts later today

Closing per above comments.

On Wed, Sep 14, 2016 at 04:16:45PM -0700, Rob Dolin (MSFT) wrote:

Closing per above comments.

With the Windows changes coming in in a stream of tiny PRs (which I
like for focused review ;), somebody is still going to have to land
the README protocol reference you have here 1.  I suggest re-opening
this PR to land just that line, and have whoever lands the first meat
in a config-windows.md take care of the rest of what you have here
now.


alerts actions via UCC leads to Python imports errors and more errors after workaround

Currently testing migrating to the UCC for alert actions purposes, I am stuck with Python import errors even with the default testing Addon:
04-08-2021 09:14:42.370 INFO  sendmodalert - Invoking modular alert action=test_alert for search="" sid="1617873282.12" in app="Splunk_TA_UCCExample" owner="admin" type="inline"
04-08-2021 09:14:42.413 INFO  PreviewExecutor - Preview Enforcing initialization done
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 9, in <module>
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -      from splunktaucclib.alert_actions_base import ModularAlertBase
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 5, in <module>
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -      from logging_helper import get_logger
04-08-2021 09:14:42.550 ERROR sendmodalert - action=test_alert STDERR -  ModuleNotFoundError: No module named 'logging_helper'
04-08-2021 09:14:42.571 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=179 ms with exit code=1
04-08-2021 09:14:42.571 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-08-2021 09:14:42.571 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

Steps to reproduce:

in the directory splunk/addonfactory-ucc-generator/tests/data, run ucc-gen to generate the Splunk_TA_UCCExample app
Install the app in a fresh clean Splunk (I am using Docker)
I modified the alert in the globalConfig.json to inclue only one parameter (param.name)
Test the alert inline or by creation an alert

I can dirty fix the import error by editing the file:
Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py
With:
import sys
sys.path.append('/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib')
from logging_helper import get_logger

After running the alert, I see more errors which are not related to Python import:
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 44, in <module>
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -      exitcode = AlertActionWorkertest_alert("Splunk_TA_UCCExample", "test_alert").run(sys.argv)
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 219, in run
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -      self.prepare_meta_for_cam()
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 205, in prepare_meta_for_cam
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -      for num, result in enumerate(csv.DictReader(rf)):
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/lib/python3.7/csv.py", line 111, in __next__
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -      self.fieldnames
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/lib/python3.7/csv.py", line 98, in fieldnames
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -      self._fieldnames = next(self.reader)
04-08-2021 09:21:42.556 ERROR sendmodalert - action=test_alert STDERR -  _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
04-08-2021 09:21:42.582 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=397 ms with exit code=1
04-08-2021 09:21:42.583 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-08-2021 09:21:42.583 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

Thanks

what ucc lib build is in your requirements?

@rfaircloth-splunk
Hope this answers to your question:
 ucc-gen
Some functions will not be available outside of a splunk hosted process
2021-04-08 12:08:17,659 [UCC] INFO: Cleaning out directory /Users/guilhem/DocsOffsync/git/splunk/addonfactory-ucc-generator/tests/data/output
2021-04-08 12:08:17,828 [UCC] INFO: Cleaned out directory /Users/guilhem/DocsOffsync/git/splunk/addonfactory-ucc-generator/tests/data/output
2021-04-08 12:08:17,834 [UCC] INFO: Addon Version : 4.3.0Rea42e81b
2021-04-08 12:08:17,834 [UCC] INFO: Package ID is Splunk_TA_UCCExample
2021-04-08 12:08:17,834 [UCC] INFO: Copy UCC template directory
2021-04-08 12:08:17,878 [UCC] INFO: Copy globalConfig to output
2021-04-08 12:08:17,878 [UCC] INFO: Install Addon Requirements into /Users/guilhem/DocsOffsync/git/splunk/addonfactory-ucc-generator/tests/data/output/Splunk_TA_UCCExample/lib from package
Requirement already satisfied: pip in /Users/guilhem/.pyenv/versions/3.7.4/lib/python3.7/site-packages (21.0.1)
Collecting splunktaucclib==4.0.4
  Using cached splunktaucclib-4.0.4-py2.py3-none-any.whl (86 kB)
Processing /Users/guilhem/Library/Caches/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0/future-0.18.2-py3-none-any.whl
Collecting splunktalib<2.0,>=1.1
  Using cached splunktalib-1.1.7-py2.py3-none-any.whl (48 kB)
Collecting solnlib<4,>=3
  Using cached solnlib-3.0.5-py2.py3-none-any.whl (66 kB)
Processing /Users/guilhem/Library/Caches/pip/wheels/2b/ec/c9/af7b60cacdf01ded6ed2919d6456ba9592481523526f8d44be/splunk_sdk-1.6.15-py3-none-any.whl
Collecting httplib2<0.19,>=0.18
  Using cached httplib2-0.18.1-py3-none-any.whl (95 kB)
Collecting sortedcontainers<3.0,>=2.2
  Using cached sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Collecting requests<3.0,>=2.24
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting schematics<3.0,>=2.1
  Using cached schematics-2.1.0-py2.py3-none-any.whl (49 kB)
Collecting six
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Collecting chardet<5,>=3.0.2
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Installing collected packages: future, httplib2, sortedcontainers, splunktalib, certifi, idna, urllib3, chardet, requests, schematics, splunk-sdk, six, solnlib, splunktaucclib
Successfully installed certifi-2020.12.5 chardet-4.0.0 future-0.18.2 httplib2-0.18.1 idna-2.10 requests-2.25.1 schematics-2.1.0 six-1.15.0 solnlib-3.0.5 sortedcontainers-2.3.0 splunk-sdk-1.6.15 splunktalib-1.1.7 splunktaucclib-4.0.4 urllib3-1.26.4
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: pip in /Users/guilhem/Library/Python/2.7/lib/python/site-packages (20.3.4)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting future
  Using cached future-0.18.0-cp27-none-any.whl (501 kB)
Installing collected packages: future
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
splunk-appinspect 2.0.1 requires enum34==1.1.6; python_version < "3.4", but you'll have enum34 1.1.10 which is incompatible.
splunk-appinspect 2.0.1 requires future==0.17.1, but you'll have future 0.18.0 which is incompatible.
splunk-appinspect 2.0.1 requires ipaddress==1.0.22, but you'll have ipaddress 1.0.23 which is incompatible.
splunk-appinspect 2.0.1 requires six==1.12.0, but you'll have six 1.15.0 which is incompatible.
Successfully installed future-0.18.0
Requirement already satisfied: pip in /Users/guilhem/.pyenv/versions/3.7.4/lib/python3.7/site-packages (21.0.1)
Processing /Users/guilhem/Library/Caches/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0/future-0.18.2-py3-none-any.whl
Installing collected packages: future
Successfully installed future-0.18.2
2021-04-08 12:08:25,109 [UCC] INFO: Replace tokens in views
INFO:UCC:Replace tokens in views
2021-04-08 12:08:25,219 [UCC] INFO: Copy package directory
INFO:UCC:Copy package directory
2021-04-08 12:08:25,225 [UCC] INFO: Copy LICENSES directory
INFO:UCC:Copy LICENSES directory

cat package/lib/requirements.txt
splunktaucclib==4.0.4

@rfaircloth-splunk
Some updates on this, I think I've isolated the problem and it seems not to be related with the UCC directly.
For some reasons, this seems to be happened under specific conditions in my lab when the app is "installed" via a volume in Docker, aka:
    volumes:
      - ./trackme:/opt/splunk/etc/apps/trackme

I'll run into more tests and will update.

@rfaircloth-splunk
I have been carefully reviewing and testing, my previous statement was wrong and I can confirm that there seem to be an issue with the alert actions side of it from an Addon generated with UCC. (forget about the symlink thing, I've been testing with proper install so no questions about that)
My test is the following: (one simple param in the alert action)
addonfactory-ucc-generator/tests/data/globalConfig.json
    },
    "alerts": [
        {
            "name": "test_alert",
            "label": "Test Alert",
            "description": "Description for test Alert Action",
            "activeResponse": {
                "task": [
                    "Create",
                    "Update"
                ],
                "supportsAdhoc": true,
                "subject": [
                    "endpoint"
                ],
                "category": [
                    "Information Conveyance",
                    "Information Portrayal"
                ],
                "technology": [
                    {
                        "version": [
                            "1.0.0"
                        ],
                        "product": "Test Incident Update",
                        "vendor": "Splunk"
                    }
                ],
                "drilldownUri": "search?q=search%20index%3D\"_internal\"&earliest=0&latest=",
                "sourcetype": "test:incident"
            },
            "entity": [
                {
                    "type": "text",
                    "label": "Name",
                    "field": "name",
                    "defaultValue": "xyz",
                    "required": true,
                    "help": "Please enter your name"
                }
            ]
        }
    ],
    "meta": {
        "apiVersion": "3.2.0",
        "name": "Splunk_TA_UCCExample",
        "restRoot": "splunk_ta_uccexample",
        "version": "4.3.0Rea42e81b",
        "displayName": "Splunk UCC test Add-on",
        "schemaVersion": "0.0.1"
    }
}

The alert action itself does not do anything besides the helper.log:

# encoding = utf-8

def process_event(helper, *args, **kwargs):
    """
    # IMPORTANT
    # Do not remove the anchor macro:start and macro:end lines.
    # These lines are used to generate sample code. If they are
    # removed, the sample code will not be updated when configurations
    # are updated.

    [sample_code_macro:start]

    # The following example gets the alert action parameters and prints them to the log
    name = helper.get_param("name")
    helper.log_info("name={}".format(name))

    # The following example adds two sample events ("hello", "world")
    # and writes them to Splunk
    # NOTE: Call helper.writeevents() only once after all events
    # have been added
    helper.addevent("hello", sourcetype="test:incident")
    helper.addevent("world", sourcetype="test:incident")
    helper.writeevents(index="summary", host="localhost", source="localhost")

    # The following example gets the events that trigger the alert
    events = helper.get_events()
    for event in events:
        helper.log_info("event={}".format(event))

    # helper.settings is a dict that includes environment configuration
    # Example usage: helper.settings["server_uri"]
    helper.log_info("server_uri={}".format(helper.settings["server_uri"]))
    [sample_code_macro:end]
    """

    helper.log_info("Alert action test_alert started.")

    # TODO: Implement your alert action logic here
    return 0

SPL test search: (in the app name space of Splunk_TA_UCCExample)
| makeresults | eval name="foo"
| sendalert test_alert param.name="$result.name$"

Splunk core 8.1.3: (python.version = python2 or python3 or default)
--> action fails

```
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 9, in
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -      from splunktaucclib.alert_actions_base import ModularAlertBase
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 5, in
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -      from logging_helper import get_logger
04-10-2021 08:16:04.958 ERROR sendmodalert - action=test_alert STDERR -  ModuleNotFoundError: No module named 'logging_helper'
04-10-2021 08:16:04.976 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=197 ms with exit code=1
04-10-2021 08:16:04.976 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-10-2021 08:16:04.976 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

**Splunk core 8.0.8: (python.version = python2 or python3 or default)**

--> action fails

04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 9, in
04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -      from splunktaucclib.alert_actions_base import ModularAlertBase
04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 5, in
04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -      from logging_helper import get_logger
04-10-2021 08:17:36.795 ERROR sendmodalert - action=test_alert STDERR -  ModuleNotFoundError: No module named 'logging_helper'
04-10-2021 08:17:36.809 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=220 ms with exit code=1
04-10-2021 08:17:36.809 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-10-2021 08:17:36.809 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

**Splunk core 7.3.9:**

--> action successes

**Splunk core <IP_ADDRESS>:**

--> action successes

At the light of this extensive test, I can confirm there is an issue with UCC starting Splunk 8.x related to the alert actions.

The menus load successfully (crendentials, options, etc) load fine on all versions, but alert actions are failing on Python3 based Splunk core versions.

Any thoughts?

Hi!
Would anyone had any idea on this issue?
I've got several apps I would love to swtich to UCC based libs, but these issues with alert actions are blocking me unfortunately.
Thanks

@rfaircloth-splunk
The following fix is required, currently Addons created with ucc-gen simply cannot work on Splunk 8.x for the alert actions, which is in my opinion important enough to get fixed.
In the alert_actions_base.py that is generated by ucc-gen:
example:
Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py
from logging_helper import get_logger

needs to be fixed to:
from splunktaucclib.logging_helper import get_logger

Which fixes the Python import issue:
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 9, in <module>
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -      from splunktaucclib.alert_actions_base import ModularAlertBase
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 5, in <module>
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -      from logging_helper import get_logger
04-16-2021 22:36:43.184 ERROR sendmodalert - action=test_alert STDERR -  ModuleNotFoundError: No module named 'logging_helper'
04-16-2021 22:36:43.197 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=206 ms with exit code=1
04-16-2021 22:36:43.197 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-16-2021 22:36:43.197 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

Once the Python import is fixed, the next issue is:
04-16-2021 22:39:12.084 ERROR sendmodalert - action=test_alert STDERR -  Traceback (most recent call last):
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/bin/test_alert.py", line 44, in <module>
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -      exitcode = AlertActionWorkertest_alert("Splunk_TA_UCCExample", "test_alert").run(sys.argv)
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 217, in run
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -      self.prepare_meta_for_cam()
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/etc/apps/Splunk_TA_UCCExample/lib/splunktaucclib/alert_actions_base.py", line 203, in prepare_meta_for_cam
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -      for num, result in enumerate(csv.DictReader(rf)):
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/lib/python3.7/csv.py", line 111, in __next__
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -      self.fieldnames
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -    File "/opt/splunk/lib/python3.7/csv.py", line 98, in fieldnames
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -      self._fieldnames = next(self.reader)
04-16-2021 22:39:12.085 ERROR sendmodalert - action=test_alert STDERR -  _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)
04-16-2021 22:39:12.110 INFO  sendmodalert - action=test_alert - Alert action script completed in duration=556 ms with exit code=1
04-16-2021 22:39:12.110 WARN  sendmodalert - action=test_alert - Alert action script returned error code=1
04-16-2021 22:39:12.110 ERROR sendmodalert - Error in 'sendalert' command: Alert script returned error code 1.

Which to get fixed requires the following block:
    def prepare_meta_for_cam(self):
        with gzip.open(self.results_file, 'rb') as rf:
            for num, result in enumerate(csv.DictReader(rf)):
                result.setdefault('rid', str(num))
                self.update(result)
                self.invoke()
                break

to: (rb to rt)
    def prepare_meta_for_cam(self):
        with gzip.open(self.results_file, 'rb') as rf:
            for num, result in enumerate(csv.DictReader(rf)):
                result.setdefault('rid', str(num))
                self.update(result)
                self.invoke()
                break

Then finally everything works as expected.
I was thinking in submitting a PR, thus I don't fully get how the alert_actions_base.py is generated.
Can we get that fixed?

@guilhemmarchand there are already PRs going in different repository to fix this issue:

https://github.com/splunk/addonfactory-ucc-library/pull/35 - fixes package import
https://github.com/splunk/addonfactory-ucc-library/pull/36 - fixes file reading method

@guilhemmarchand new version of ucc library was released (https://github.com/splunk/addonfactory-ucc-library/releases/tag/v4.1.1), can you please try it?

@arys-splunk
I am glad to confirm that UCC libs 4.1.1 fixed the issues I was observing on alert actions starting with Splunk 8.x, and wil be closing this issue.
Sorry I now realise the issue was on the lib repo, so I shall have opeend an issue there.
Thanks!
Guilhem


After "insert overwrite" the data, the old data is not delete！

Question
After the hive repository overwrites the inserted data, the data that should be overwritten is not deleted.What's going on here?
Code sample
explain:
temp_topic table: There are two fields, 260 rows of data
temp_topic2 table: lik temp_topic table
The SQL is executed in the following order:
`
create table temp_topic2  like temp_topic stored as textfile;
insert overwrite table temp_topic2 select * from temp_topic;
select count(*) from temp_topic2;  ==>  result:260   √
insert overwrite table temp_topic2 select "test data" ,4;
select count(*) from temp_topic2;  ==> result:1   √
hdfs dfs -ls /XXX/test.db/temp_topic2
/XXX/test.db/temp_topic2/base_0000001   [This folder should be deleted. But he didn't]
/XXX/test.db/temp_topic2/base_0000002
hdfs dfs -rm /XXX/test.db/temp_topic2/base_0000002
select count(*) as a  from temp_topic2; [Prevent SQL from caching results] ==> result: 260 ×
There comes the problem : The data in base_000001 as the temp_topic table was not deleted.
Maybe there's a parameter here that causes. But I don't know! Please tell me
`
Version

Platform:HDP3.1.0
Hive version: [3.1.0]

@lookingGordo Hive is an Append only database, you should perform a manual compaction, to solve your issue. Read this Hive Docs for more info


Refactor Annotation_hasFlags

The logic at https://github.com/mozilla/pdf.js/blob/master/src/core/annotation.js#L244 may not work all the time:
      if (this.flags) {
        return (this.flags & flag) > 0;
      }
      return false;

Let's make check of this.flags !== undefined explicit or make the this.flags property set all the time (the latter is better). Also if flags using MSB the result will be negative, so it will be better to use !== 0 or !!.

Interesting. Which static analysis tool was used to find this?

[...] or make the this.flags property set all the time

That should already be happening, given that when a new Annotation is created the setFlags method is always called, see https://github.com/mozilla/pdf.js/blob/master/src/core/annotation.js#L175.
Looking at the setFlags method, see https://github.com/mozilla/pdf.js/blob/master/src/core/annotation.js#L226, we're already checking that it's an integer (and assigning it a default value otherwise). Perhaps we should also ensure that it's positive?
So I suppose that the question is if the if (this.flags) { ... } checks in various parts of the code is really necessary!?

That should already be happening, given that when a new Annotation is created the setFlags method is always called

Oh, I see -- missed that. Yeah, it will be nice to have it integer and not perform non-zero check.

So I suppose that the question is if the if (this.flags) { ... } checks in various parts of the code is really necessary!?

No, they don't. We need to be sure about type of an object field most of the time.

Fixed by #7352.


Update create-empty-lake-database.md

Removed duplicated text

@mswantek68 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks good; thanks @mswantek68.


Remove need for users to special-case second and later clients

Is this a Bug or Feature request?
Enhancement that's part of #4896
Steps to reproduce (preferably a link to a GitHub repo with a repro project)
See https://github.com/dougbu/CodeGeneration repo and its ClientConsole project. Lines of particular interest are https://github.com/dougbu/CodeGeneration/blob/fbc0e82aa186f4d8de2ba7ece21f87d550be1817/ClientConsole/ClientConsole.csproj#L23-L26
Description of the problem
NSwag code generation creates Exception classes by default. Unfortunately, these classes are not nested and do not have unique names. So, when multiple generated clients are included in a project, compilation errors ensue.
This is not mandatory for the Preview3 milestone because multiple generated clients per project is a grow-up scenario and users can provide the necessary %(NSwagCSharpCodeGeneratorOptions) metadata to avoid problems.
Most likely fix is to update the GetProjectReferenceMetadata task to add FirstForGenerator metadata to the relevant items.
Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All
See the features/client.code.generation branch branch. That work is intended for the 2.2 Preview 3 milestone.

Another oops, I'm working on this now but not #6582 (that one will come just after #8242).

ce8f053af7e9


[range-v3] set license

Describe the pull request
sets license in port range-v3

I saw this port also have below licenses:
libc++ License
Stepanov and McJones, "Elements of Programming" license
SGI C++ Standard Template Library license

Yes, you are right.
I looked at the licenses of the referenced packages (all listed here):

range-v3 itself: BSL-1.0
Alex Stepanov's Elements of Programming: MIT
libc++: NCSA OR MIT
SGI STL: MIT

In this case, the correct license entry would probably be: BSL-1.0 AND MIT AND (NCSA OR MIT)
Should I change it to this string?

I think the license could be BSL-1.0 AND MIT AND NCSA.

I think BSL-1.0 AND MIT AND NCSA would indicate that the port has components licensed under NCSA in any case.
However, the libc++ license states:
The libc++ library is dual licensed under both the University of Illinois
"BSD-Like" license and the MIT license.  As a user of this code you may choose
to use it under either license.  As a contributor, you agree to allow your code
to be used under both.

Because of the sentence As a user of this code you may choose to use it under either license, the user can choose not to use NCSA license at all, but instead use MIT.
Because of this, I don't think the OR should be left out.

I agree with your decision.

Great. I updated the license field


Test coverage

Initial test coverage is provided here https://github.com/aeternity/superhero-wallet/pull/44


Tooltip multiple values legend

Currently if I move mouse over chart, I see data from only one type,
or in some cases dont see data of that what im pointed.
Is it possible to see all data in vertical line where mouse is pointed as on NVD3
ex:
https://nvd3.org/livecode/index.html#codemirrorNav

That's happening when all the data points are aligned. If you use group_by with a func and the same duration for all the series, it's going to happen.

Add some example.
It's enough hard to configure, without assistance of menus.

Enable crosshairs should to what you want.
My HA code

Add some example.

Please?
series:
  - entity: x.y
    group_by:
      func: avg
      duration: 1h
  - entity: x.z
    group_by:
      func: avg
      duration: 1h3

Add some example.

Please?
series:
  - entity: x.y
    group_by:
      func: avg
      duration: 1h
  - entity: x.z
    group_by:
      func: avg
      duration: 1h3

how to implement in this case

type: 'custom:apexcharts-card'
graph_span: 32d
header:
  title: Daily consumption /31 days/
  show: true
  show_states: true
  colorize_states: true
apex_config:
  legend:
    show: false
span:
  end: day
now:
  show: true
all_series_config:
  stroke_width: 1
  show:
    legend_value: false
series:
  - entity: sensor.total_ele
    name: LG
    type: column
    transform: return x / 1;
    unit: kWh
    group_by:
      func: diff
      duration: 1440min
  - entity: sensor.openweathermap_temperature
    name: Temp
    type: line
    transform: return x / 1;
    unit: C
    stroke_width: 5
    group_by:
      func: median
      duration: 1440min

Did you mean something like this.

Code

Did you mean something like this.

No /see examples in link in first post/
I want to see values of all vertical crossed values in graph.

Ok, got the graph to work the way you wanted by replacing the series type column with the area  type.

Any explenation, how need to be done?

My code. Modified a littel, to make the area type chart look more like a bar chart.

Yes this works.
Again question.
How to put in right side values scale with semi-IQ ability to dinamic resizing
example:
if values are in range from X to Y
but values in time range are in range X+20 to X+40
as result scale to be from X+20-10% to X+40+10%
p.s.
If needed can put this as separate issue.

Something like this?

type: 'custom:apexcharts-card'

apex_config:

 xaxis:
   labels:
     show: true
     rotate: -45
     rotateAlways: true
   type: datetime
 yaxis:
   - title:
       text: Energiakulu
     axisTicks:
       show: true
       color: yellow
     min: 0
     max: 3
     axisBorder:
       show: false
       color: '#008FFB'
     decimalsInFloat: 1
     opposite: false
     labels:
       show: true
       style:
         colors: Yellow
     tooltip:
       enabled: true
   - title:
       text: Tempertuur
     axisTicks:
       show: true
       color: '#008FFB'
     axisBorder:
       show: true
       color: '#008FFB'
     decimalsInFloat: 0
     opposite: true
     labels:
       show: true
       style:
         colors: '#008FFB'
     tooltip:
       enabled: true

Yes that's the idea
Suggestion: Use Wiki to add this example also other,
but add # comments to each section to explain what do.

After latest update it not load graph correctly

refuse to load temperature data with exist

Any update?
If graphs is for more then 11 days it not load.


Updating native dependencies

node-serialport is the only native dependency with a major version update that has breaking changes. Luckily the changes are quite small, but will require smoke testing all supported devices on at least one version of each OS.
Since both node-serialport and node-hid now has prebuilt binaries for Electron, I'm also seeing if we can do away with rebuilding native dependencies ourselves.

@krystophv Can you review the changes I've made to use the prebuilt binaries for the native dependencies? I'm not 100% sure if I did it correctly. Uploads are successful.
@pazaan Will you please review the other small changes I had to make to get node-serialport from v4 to v6?

@krystophv Ah, I was wondering how that worked.