Publish 07/16/2020 3:32 PM

Docs Build status updates of commit 7e1cf40:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/windows/dnsserver/Remove-DnsServerResourceRecord.md
:white_check_mark:Succeeded

docset/winserver2012-ps/dnsserver/Remove-DnsServerResourceRecord.md
:white_check_mark:Succeeded

docset/winserver2012r2-ps/dnsserver/Remove-DnsServerResourceRecord.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


You can place things on a table and pick things up through a windoor

Description

To replicate just do a basic windoor setup as seen in the gifs. You cannot drop things through the windoor. You can however place things on tables and pick things up through them.
Screenshots

windoor literally not doing the one thing its good for

what gives

Unless it's been changed clicking on a table is an entirely separate interaction to a drop which probably isn't raycasting.

This is no longer the case


Define that only one object in collection should have it (choose)

Sorry for poor title, here is better explanation of my question:
I have collection called Languages. I'd like to allow to choose default language. Is there any possibility to define in schema, that only one language can have isDefault = true?

No this wouldn't be possible since you'd have to do database queries to check. SimpleSchema doesn't know anything about databases, so it couldn't be in this package. Maybe there would be some way to add it to collection2 package, but I think the only foolproof way would be if MongoDB allows you to define this, similar to a unique index.


lower wait time for service check

These wait times guarantee we sit around for 900ms on every startup, we can lower it and likely be fine.

It always wait the polling interval before doing anything, so we are stuck here for 900ms every time. You think checking every 100ms is too aggressive at startup? Doesn't seem like it to me.


[CIVP-10579] move to pip only?

This PR moves this image to a pip-only install. We may not do this, but let's see what happens.

@mheilman @stephen-hoover Take a look and tell me what you think. I need to update the docs still, but a 30% look at this would be good.
One wrinkle: You have to install numpy before you can install glmnet, so I have to run the pip install -r ... command twice. :(

(hammer) (hammer)

does this make sure numpy is linked to the appropriate linear algebra libraries?  it'd probably be good to check this, and maybe run a benchmark too.
in general, i'm skeptical that this will make our lives easier, but it also probably won't make things much worse.

I am skeptical as well. It tests scipy, but not numpy.
https://github.com/civisanalytics/datascience-python/blob/master/circle.yml#L12

If this really does cut the size of the image by 500 MB, then I'm in favor. Compiling our own Python is a bit of pain, but we only have to do it once.

Latest build is at 1.31 GB. Not bad. We have about ~850 MB of python packages, of which TensorFlow is the biggest at ~160 MB.

Linear algebra in numpy seems to work, @mheilman.

@stephen-hoover I think the latest version addresses all of your comments in various ways.

I am closing this for now. We can revisit later if needed.


Typo in Session consistency level description: needs authorial resolution

The Session consistency level description contains a typo. However, I'm not sure how to resolve it, as I don't know which direction the description is trying to go in.

Session consistency is the widely used consistency level for both single region as well as globally distributed applications.

I think this should read either

"Session consistency is a widely used consistency level..."
"Session consistency is the most widely used consistency level..."

The author of this documentation needs to decide which, however.

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

ID: 2b3fb7da-5483-160d-1781-d4abff9d798d
Version Independent ID: d5e51b7e-7f34-c7df-ce4f-ee4bf5c8059a
Content: Consistency levels in Azure Cosmos DB
Content Source: articles/cosmos-db/consistency-levels.md
Service: cosmos-db
GitHub Login: @markjbrown
Microsoft Alias: mjbrown

@chwarr Thank you for taking the time to make us aware of such a minor detail. It is greatly appreciated. This has been corrected and will be published in the next 24hrs.

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


kubectl get kfservices doesn't show values while reconciling (or unknown)

/kind bug
NAME             READY     URL                                                 DEFAULT TRAFFIC   CANARY TRAFFIC   AGE
flowers-sample   True      http://flowers-sample-predict.default.example.com   100                                8m
xgboost-iris     Unknown   http://xgboost-iris-predict.default.example.com                                        5s

Canary and Default are both blank. Ready is Unknown. These values are deterministic and should be displayed immediately.

Istio virtual service is not created until revision pods are ready, I am not sure if we should show the traffic split percent when routes are not in ready state yet.

How do you feel about simply returning False instead of unknown? We explicitly know it's not ready.


regional-sts branch ssl issue

I was digging a bit deeper into this issue and I wanted to share what I had found:
https://github.com/Kong/lua-resty-aws/blob/regional-sts/src/resty/aws/request/execute.lua#L25
verified I was getting the same error with ssl and lua-resty-aws and lua-resty-secrets:
AWS_REGION=eu-west-1 KONG_PASSWORD=password /usr/local/bin/kong migrations bootstrap -c /etc/kong/kong.conf  --vv
....
....
....
2022/05/26 14:33:35 [debug] lua_ssl_trusted_certificate = {"/etc/pki/tls/certs/ca-bundle.crt"}
....
....
....
2022/05/26 14:33:35 [verbose] generating trusted certs combined file in
2022/05/26 14:33:36 [warn] [Penlight 1.12.0] the contents of module 'pl.xml' has been deprecated, please use a more specialized library instead (deprecated after 1.11.0, scheduled for removal in 2.0.0)
2022/05/26 14:33:36 [error] 21988#0: *2 [lua] init.lua:285: update(): [Secrets aws-sm] failed to fetch secrets: failed to retrieve secret 'arn:aws:secretsmanager:eu-west-1:412431539555:secret:postgres_credentials_secret-fun20r-S0MVRL' (stage 'AWSCURRENT'): SecretsManager:getSecretValue() failed to connect to 'https://secretsmanager.eu-west-1.amazonaws.com:443': 20: unable to get local issuer certificate, context: ngx.timer
Error:
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:227: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: ["failed to retrieve secret 'arn:aws:secretsmanager:eu-west-1:412431539555:secret:postgres_credentials_secret-fun20r-S0MVRL' (stage 'AWSCURRENT'): SecretsManager:getSecretValue() failed to connect to 'https:\/\/secretsmanager.eu-west-1.amazonaws.com:443': 20: unable to get local issuer certificate"]
stack traceback:
        [C]: in function 'assert'
        /usr/local/share/lua/5.1/kong/cmd/migrations.lua:227: in function 'cmd_exec'
        /usr/local/share/lua/5.1/kong/cmd/init.lua:97: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:97>
        [C]: in function 'xpcall'
        /usr/local/share/lua/5.1/kong/cmd/init.lua:97: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:54>
        /usr/local/bin/kong:9: in function 'file_gen'
        init_worker_by_lua:50: in function <init_worker_by_lua:48>
        [C]: in function 'xpcall'
        init_worker_by_lua:57: in function <init_worker_by_lua:55>

I then confirmed that all the system certificates in on my test servers / containers could be used to call the https://secretsmanager.eu-west-1.amazonaws.com endpoint without causing an ssl error
curl --cacert /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem -i https://secretsmanager.eu-west-1.amazonaws.com
HTTP/1.1 404 Not Found
x-amzn-RequestId: b31461a4-9bb9-4ba1-8eb5-ad98ebb8fa46
Content-Length: 29
Date: Thu, 26 May 2022 09:03:49 GMT

<UnknownOperationException/>

I then fixed the control plane by hard coding the database password and username in the kong.conf, now it bootstrapped fine
and I could log in, this was interesting as by logging in I was using the more secret references stored in aws secrets manager for the oidc plugin
admin_gui_auth_conf      = {"verify_parameters":false,"auth_methods":["authorization_code","password"],"authenticated_groups_claim":["roles"],"client_id":["ext:{\"type\":\"aws-sm\",\"key\":\"client_id\",\"config\":{\"SecretId\":\"arn:aws:secretsmanager:***************\"}}"],"client_secret":["ext:{\"type\":\"aws-sm\",\"key\":\"client_secret\",\"config\":{\"SecretId\":\"arn:aws:secretsmanager:********************************\"}}"],"consumer_by":["username"],"admin_claim":"name","issuer":"https://login.microsoftonline.com/43fa6b04-e14c-4e06-be5b-758ec24308d5/v2.0/.well-known/openid-configuration","login_redirect_uri":["https://kong-steveb-wpb-aws-fun20r.kong-cx.com/"],"logout_methods":["GET","DELETE","POST"],"logout_query_arg":"logout","logout_redirect_uri":["https://kong-steveb-wpb-aws-fun20r.kong-cx.com/"],"redirect_uri":["https://kong-steveb-wpb-aws-fun20r.kong-cx.com/"],"scopes":["openid","profile","email","ext:{\"type\":\"aws-sm\",\"key\":\"scopes\",\"config\":{\"SecretId\":\"arn:aws:secretsmanager:*********************************************\"}}"],"ssl_verify":false,"http_proxy":"http://ip-10-99-0-236.eu-west-1.compute.internal:3128","https_proxy":"http://ip-10-99-0-236.eu-west-1.compute.internal:3128"}

this means that after the bootstrap there are no ssl issues when retrieving other control plane secrets.
I also then tested the data planes, these use the aws secrets manager for splunk tokens - the data planes all work without issue.
The only time this SSL issue occurs is during the bootstrap of Kong.
hopefully this helps somewhat in trying to get to the bottom of the issue.

for reference root cause discussed here: https://github.com/Kong/lua-resty-aws/pull/14#discussion_r857102984
closing this.


Add ollama

Please add ollama provider

I welcome PRs :)

Okay then I will
Dec 20, 2024 13:22:15 Rick Lamers @.***>:

Closed #40[https://github.com/ricklamers/shell-ai/issues/40] as completed.
—
Reply to this email directly, view it on GitHub[https://github.com/ricklamers/shell-ai/issues/40#event-15732080015], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AEBESU4KG3XBORZJPYIXDND2GQDXPAVCNFSM6AAAAABT3I3572VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVG4ZTEMBYGAYDCNI].
You are receiving this because you authored the thread.
[Tracking image][https://github.com/notifications/beacon/AEBESUZ63MOUL6CHT423LFD2GQDXPA5CNFSM6AAAAABT3I3572WGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAHKNUPWHQ.gif]


Odd characters in test

[Enter feedback here]
There seems to be a number of instances (I counted 9) of extraneous characters (XE) in the body of this article.  Just one example:

Inventory valuation XE "Inventory Valuation" is the determination of the cost that is assigned to an inventory item, as expressed by the following equation.

Are these supposed to mean something?

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

ID: c4feeab6-025c-e633-16fa-cde01e4f75c4
Version Independent ID: 2ceac390-b05b-e31e-cdc5-3baeb9b1033c
Content: Design Details - Inventory Valuation - Business Central
Content Source: business-central/design-details-inventory-valuation.md
Service: dynamics365-business-central
GitHub Login: @SorenGP
Microsoft Alias: edupont

Hello,
Thanks for bringing this to our attention. The short answer is no, those characters had no meaning. They were mistakenly added by a script we ran a while ago, but we've removed them now. On a side note, we did a sweep in the repo and found the extra characters in another article as well, so thanks again for mentioning them.

Now live.


Python Error once every 1-2 hours

Hello, the bot is running well for one or two hours then it crashes and shows lots of Python errors.
I assume that the bot is set to "rest" every one or two hours, but how can I tweak the code to unable it?

Did you mean this errors?
Regards!

Yeah that one :/
What is it?

I don't know? Just appeared to me too :confused:

its common error wudnt worry too much and if it cuts out after two hours i believe its a safety to stop u getting banned because of the amount ur hitting etc isnt normal human behavior 😜

@iiCe89 nah..

maybe a new anti ban system... they kick you every second hour out

It's for your own safety.
{   "type": "RandomPause",   "config": {     "min_duration": "00:00:10",     "max_duration": "00:10:00",     "min_interval": "00:10:00",     "max_interval": "02:00:00"   } }


It is possible to have a paging of 50,100 and 200 in the controls.

Hi,
I want to know if it is possible to have more registers loading in the controls. I found a comment in the code saying, that you found problems with the implementation.

Could you please let me know the status of this issue.
Kind regards,
Juan

Depends on your org. You should try it out.


ERROR: unexpected error - Unable to load libhdfs

Bug Report
Issue name
DVC tool to push data to HDFS
Command
dvc push -v

Description
I have a problem in pushing data to HDFS, previously I installed HDFS with DVC on WSL Ubuntu, and I got an error like this:
2024-10-18 19:08:32,210 ERROR: unexpected error - Unable to load libhdfs dlopen(libhdfs.so) failed: libhdfs.so: cannot open shared object file: No such file or directory dlopen(./libhdfs.so) failed: ./libhdfs.so: cannot open shared object file: No such file or directory dlopen(/usr/local/hadoop/lib/native/libhdfs.so) failed: /usr/local/hadoop/lib/native/libhdfs.so: cannot open shared object file: No such file or directory dlopen(/usr/local/hadoop/lib/native/libhdfs.so) failed: /usr/local/hadoop/lib/native/libhdfs.so: cannot open shared object file: No such file or directory

Expected
Data should be pushed to HDFS.
Output of dvc doctor
$ dvc doctor

DVC version: 3.55.2 (pip)
-------------------------
Platform: Python 3.10.12 on Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
Subprojects:
        dvc_data = 3.16.6
        dvc_objects = 5.1.0
        dvc_render = 1.0.2
        dvc_task = 0.40.2
        scmrepo = 3.3.8
Supports:
        hdfs (fsspec = 2024.9.0, pyarrow = 17.0.0),
        http (aiohttp = 3.10.10, aiohttp-retry = 2.8.3),
        https (aiohttp = 3.10.10, aiohttp-retry = 2.8.3)
Config:
        Global: /home/oslab/.config/dvc
        System: /etc/xdg/dvc
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/sde
Caches: local
Remotes: hdfs
Workspace directory: ext4 on /dev/sde
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/19a167349a3a91d6f12dd887c9c8f42

Tbh, seem like some dependencies issue on the system. Could you read around on how to install libhdfs and make sure that it's being picked up please


Add support referencing publications

Allow referencing publications from deliverables to allow reusable publications.

@raducoravu It's kinda a hack to add colour formatting to error messages and not get duplicated error messages. This could be improved in another PR that handles how to get the fatal error formatted with the red ERROR colour so that it's passed inside BuildException. One solution would be to handle the fatal case differently in verbose and normal logging levels.


Add CertificateRequests dashboard

This PR

Adds CertificateRequests dashboard

Checklist

[x] Update changelog in CHANGELOG.md in an end-user friendly language.


Generate current effective value when customizing a workbench color

It would be nice for the auto-complete to generate the current effective color instead of #ff0000. Most of the times my intent is to tweak the existing color, and this would also help in cases when we expect a transparent color to be supplied, the auto-completed one could have transparency set.
e.g.
https://user-images.githubusercontent.com/5047891/194807285-56e94f6b-7b80-48d9-b955-d3ed1e73156b.mp4

duplicate of https://github.com/microsoft/vscode/issues/25633


Fixed clickhouse storage compilation. Closes #32.

Added utility header due-to calling std::exchange

Many thanks!


Prototype transparency

Use Case
As a developer supporting users visualizing dense scenes, I would like a performant way to display objects that are transparent.
Acceptance Criteria
Development plan for implementing transparency.
Details
There are still open UX questions about when and how transparency should be controlled, i.e. does the user set it in the data and/or in real time? what are the controls like?
But first we need to figure out if transparency is feasible and how to maintain good performance in real time.
This scope does not include picking transparent objects, just rendering them for now.

We had a quick meeting to discuss what to do here.  To mark this ticket as done:

in the viewer test app, add a third checkbox to each agent type.  The checkbox will turn transparency on or off for all agents of that type.  Opacity can be just a hardcoded value like 0.3. (Bonus: add single global opacity slider in the tweakpane.  Double bonus: per-agent-type opacity inputs?)
transparent agents will not be clickable in any way.
transparent agents will not be able to be outlined (this may yet be possible but first prototype doesn't require it)
transparent agents will be properly occluded by opaque agents in front of them

Implementation details: this will require a new "forward" render pass that reuses the depth buffer from the current render passes.  Agents will have to be grouped and added to the new render pass and excluded from the others.  Possibly a new fragment shader will have to be written for the new render pass, to do the alpha-based coloring with alpha blending.  This will be an extra geometry pass so expect performance to drop.
Once this basic render pass is hooked up to everything, we will be able to build on it and investigate what other enhancements are possible.
In a separate ticket we should address single-agent settings.  I think that is a bigger general concern beyond transparency.

remaining TODOs of current first implementation:

assign correct colors
add opacity slider to tweakpane ui
consider changing opacity and/or color with depth, similarly to how the compositeshader does it.


Create an "admin" view for bot auditing

Right now we have to dig into the logs to see what happened for a certain issue.  We should log the actions the bot takes and WHY it takes them in some easy-to-view interface.

Things it should tell you about:

Why it reported a non-matching template
Why it matched a particular label
Why it moved around the stale cycle

This can probably be implemented by adding a "reason" string field to the existing Github Action system and then logging all actions and reasons.

This is being addressed in #51

Demo:
https://ossbot.computer/audit.html?org=google&repo=ExoPlayer

Some suggestions from Marc
1) The target col could link back to the issue
2) If a row has an id something like

    id="invalid_template_5530"
    id="close_5530"
    id="label_5530"

a link with a hash would directly jump to that row:

   https://ossbot.computer/audit.html?org=google&repo=ExoPlayer#invalid_template_5530

That would be useful for us project members, when an issue has been marked as invalid.
If desired we could even add that link to the bot comment, so reporters can navigate to a more detailed reasons of rejection themselves.

We now have better reasons and links directly to rows:

@marchbaecinger here's an example of a permalink to an audit log entry:
https://ossbot.computer/audit.html?org=google&repo=ExoPlayer&key=-L_STGWF1EE3IMxuR0gM
The reasons will be better from here forward, I can't retroactively improve the old ones

Oh, woow! Amazing! Many thanks!  :)
From our side no need to backfill the reasons.


Css improvments

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--edge-delivery-geberit-demo--Netcentric.hlx.live/
After: https://css-improvments--edge-delivery-geberit-demo--netcentric.hlx.page/drafts/copy-of-index

Probably we could use more variables, but I guess for the demo it is fine.


New feature: get functions for disk's SMART attributes and health state

Implementation of new get functions in Disk class for:

getting SMART attributes of a disk
health state of the disk

Information source is smartctl command in smartmontools package.

This feature is implemented and fully unit tested in v1.2.0 release.


INFINITY-2977: Add initial Elastic TLS instructions.

Still pending updating other documentation files to point at this one. Also maybe we don't want to recommend adding service accounts to the superusers group for this, and instead add them to a group with the minimum set of permissions necessary.

@benclarkwood I'm closing this one since you said you're reuse the same form used by the Kafka security section.


Wrong information on a comment of PostRepository: method sanitizeSearchQuery()

The DocBlock of sanitizeSearchQuery() says it is removing non-alphanumeric characters, while it seems to be only replacing duplicated spaces with a single space.
    /**
     * Removes all non-alphanumeric characters except whitespaces.
     */
    private function sanitizeSearchQuery(string $query): string
    {
        return trim(preg_replace('/[[:space:]]+/', ' ', $query));
    }

Someone forgot to implement the functionality? Or maybe forgot to remove the comment after the code it is about was removed.

@o-alquimista, You're right. See this commit: https://github.com/symfony/demo/commit/0e1c9d31ccb0b1eaa9c094f6716b6f5a5bff4297. I suggest to delete the sanitizeSearchQuery method and move it's code to the extractSearchTerms method. Could you please create a PR?

@voronkovich It is done: https://github.com/symfony/demo/pull/1025, but the CI check failed. Why?

Fixed by #1025. Thanks!


Rename identifier to data or params

Hi @danielrhodes,
I think it would be clearer to rename identifier  to params or perhaps data in the create method (create(channel, identifier:, autoSubscribe:, bufferActions:). I see that the underlying API send identifier to the backend, but since name is a standalone parameter, I think it would make sense to abstract it a little bit more.

I can tackle this if you want, I suppose I should create a new method and add a deprecation warning on the other? Let me know!


Add systemd-timesync user

This user is needed for systemd-timesyncd service to start without
errors.
Signed-off-by: Fredrik Lönnegren<EMAIL_ADDRESS>

What is the error exactly and where are you seeing it ?

What is the error exactly and where are you seeing it ?

We enable systemd-timesyncd by default in our /system/oem cloud config setup. Then on our install tests we actually check some services are active. Now systemd-timesyncd runs as the systemd-timesync user and fails if not present in the system.

I just checked on Tumbleweed (latest as of this morning). It has a respective user. So we need to find out where it's coming from. I'm not sure a useradd is the correct solution here 🤔
Btw, systemd-timesyncd is coming from udev but udev doesn't seem to add this user 😕

I am trying to figure out how is this added in our Micro images, it is actually there in them 🤷🏽♂

Merged in #2197


Hotfix waypoint bugs

This hotfix corrects several key issues with Manual Waypoints:
issue #53

commit: ebeb2b2

issue #62

commit: 28a0b53
commit: 21bbac7

issue #112

commit: db4fcf4

1.) If way points are reached and then global frame is selected, the all the reached way points change back to cyan, like the way points were not reached.
fixed in commit: 9e67c50


Complete media player integration

Reticketed from https://github.com/tiliado/nuvola-app-yandex-music/issues/10#issuecomment-346792189:

[ ] Look at Media Player Integration and consider adding relevant missing functionality, e.g. track rating, progress bar and volume management integration.

Closing in favor of #14


pylint plugin crashes with an AttributeError

[CRITICAL] Traceback (most recent call last):
  File "/home/simon/.local/share/virtualenvs/repomate-ELEt9lT_/bin/repomate", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/home/simon/Documents/github/cdate/repomate/bin/repomate", line 6, in <module>
    main.main()
  File "/home/simon/Documents/github/cdate/repomate/repomate/main.py", line 39, in main
    cli.dispatch_command(parsed_args, api)
  File "/home/simon/Documents/github/cdate/repomate/repomate/cli.py", line 164, in dispatch_command
    command.clone_repos(args.master_repo_names, args.students, api)
  File "/home/simon/Documents/github/cdate/repomate/repomate/command.py", line 266, in clone_repos
    _execute_post_clone_hooks(repo_names)
  File "/home/simon/Documents/github/cdate/repomate/repomate/command.py", line 278, in _execute_post_clone_hooks
    LOGGER.info(_format_hook_results_output(results))
  File "/home/simon/Documents/github/cdate/repomate/repomate/command.py", line 398, in _format_hook_results_output
    for res in results
  File "/home/simon/Documents/github/cdate/repomate/repomate/command.py", line 398, in <listcomp>
    for res in results
  File "/home/simon/Documents/github/cdate/repomate/repomate/command.py", line 384, in _format_hook_result
    out += hook_result.hook + ": " + hook_result.status.name + style.RESET + os.linesep
AttributeError: 'str' object has no attribute 'name'

The _pylint function should return a HookResult

The first return in act_on_cloned_repos has a string in the status field of the HookResult, instead of a Status object.


401 - Unauthorized after successfull login

Hello :)
I have setup my Camunda project with Keycloak. It is working fine, but if I want to secure my Rest-Api I am getting an error. When I am trying to access the "/engine-rest/**" path, I am getting the following error:
[2020-09-07T14:33:11.011Z] [org.springframework.security.oauth2.provider.authentication.BearerTokenExtractor] [http-nio-8080-exec-8] [61] [DEBUG] Token not found in request parameters.  Not an OAuth2 request.
[2020-09-07T14:33:11.011Z] [org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter] [http-nio-8080-exec-8] [145] [DEBUG] No token in request, will continue chain.
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 7 of 12 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 8 of 12 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 9 of 12 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.authentication.AnonymousAuthenticationFilter] [http-nio-8080-exec-8] [100] [DEBUG] Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@51722761: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@2cd90: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: A0D442959B5FC57BDDD6D37CDE20E28B; Granted Authorities: ROLE_ANONYMOUS'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 10 of 12 in additional filter chain; firing Filter: 'SessionManagementFilter'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 11 of 12 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.FilterChainProxy$VirtualFilterChain] [http-nio-8080-exec-8] [328] [DEBUG] /engine-rest/engine at position 12 of 12 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
[2020-09-07T14:33:11.011Z] [org.springframework.security.access.intercept.AbstractSecurityInterceptor] [http-nio-8080-exec-8] [219] [DEBUG] Secure object: FilterInvocation: URL: /engine-rest/engine; Attributes: [#oauth2.throwOnError(authenticated)]
[2020-09-07T14:33:11.011Z] [org.springframework.security.access.intercept.AbstractSecurityInterceptor] [http-nio-8080-exec-8] [348] [DEBUG] Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@51722761: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@2cd90: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: A0D442959B5FC57BDDD6D37CDE20E28B; Granted Authorities: ROLE_ANONYMOUS
[2020-09-07T14:33:11.011Z] [org.springframework.security.access.vote.AffirmativeBased] [http-nio-8080-exec-8] [66] [DEBUG] Voter: org.springframework.security.web.access.expression.WebExpressionVoter@27571df3, returned: -1
[2020-09-07T14:33:11.011Z] [org.springframework.security.web.access.ExceptionTranslationFilter] [http-nio-8080-exec-8] [180] [DEBUG] **Access is denied (user is anonymous);** redirecting to authentication entry point
org.springframework.security.access.AccessDeniedException: Access is denied
	at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84)
	at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:123)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:180)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:117)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92)
	at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter(OAuth2ClientContextFilter.java:64)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:834)

It seems that the granted role is only anonymous and that is why the user cannot access the rest-api. But I have no idea to change this, could you please help me?
My Application.yml looks exactly like the showcase and I configured my keycloak server exactly as described in the showcase.
Thanks in advance :)

Hi @MarvinKern,
in order to access the secured REST API you'll need a valid token from the Keycloak Server and send the Bearer Token as Authorization header with your Request.
Header-Name: AUTHORIZATION
Header-Value: Bearer
Hope this helps.

Hi @VonDerBeck ,
Thanks for the explanation, I will try it :+1:

@VonDerBeck I did not get how I can access the bearer token in my springboot application. Where is it stored?
I have a springboot application that calls the keycloak server. I wrote a camunda tasklist plugin that makes a rest-call to the springboot application. How can my tasklist plugin get this bearer token to put it in the header. Do you have ideas on this?
Thanks a lot :)

Hi @MarvinKern,
what exactly do you mean by "tasklist plugin"? In case you mean a plugin for the Camunda Cockpit or Camunda Tasklist application: why do you use the "external" REST Api of Camunda on not the internal one of the  Cockpit/Tasklist?
The REST Api under .../engine-rest/** is for external usage, e.g. in case you're going to write your own tasklist in whatever technology you like. In that case you will have to authorize against keycloak and get a token. The URL for that will be something like <host:port>/auth/realms/camunda/protocol/openid-connect/token, more info on that is to be found in the Keycloak documentation.

Hi @VonDerBeck ,
With tasklist plugin I mean a plugin for the Camunda Tasklist application.
Ah okay, I did not know there is a difference between the external and internal Rest API.
I am not sure how to make my plugin call the internal Rest API. Can you give me some more hints on this? Some Links would help me too.
Anyway thank you very much for the good explanation. Its getting clearer and clearer for me :)

Hi @MarvinKern,
just go through Camunda's own Cockpit examples, e.g. https://github.com/camunda/camunda-bpm-examples#cockpit-examples. This will be the best way to learn.

I'm going to close this now as this is not a problem of the KeycloakIdentityProvider. For further help on developing cockpit plugins I recommend going to the Camunda forum.

@VonDerBeck , Thank you for your help :+1:
When I am done with the solution I will post it here :)

Hi @VonDerBeck ,
I tried to follow one Cockpit Plugin example on https://github.com/camunda/camunda-bpm-examples/tree/master/cockpit/cockpit-fullstack-count-processes. The AbstractCockpitPlugin class has a getMappingFiles() method that allows to map the database variables to the java variables to have access in the plugin to the database.
However the AbstractTasklistPlugin does not provide such method. Now I am really not sure how to realize the tasklist plugin with the internal API. The tasklist plugin examples on https://github.com/camunda/camunda-bpm-examples/tree/master/tasklist does not really offer that much information that I need...
Do you have some other hints and links for me?
Thank you very much :+1:


Module in Ionic show only one letter

Describe the bug
I am trying to use this package in Ionic React but it only show the first letter of the paragraph

To Reproduce
This is the repo to see the issue https://github.com/LFTroya/expenses

I have the same  issue with an ionic-react app. I am able to reproduce it only on web though.

Any news on this? I am facing this on my project directly on Web and also on Jest env...

I am not familiar with Ionic framework but it seems it does not fully support certain DOM methods, like getBoundingClientRect which returns 0 for all elements, making it impossible to calculate whether the truncated sub-text fits into its container. Same for the line-height package that react-truncate-markup uses to calculate line heights. It returns 0 too.

@patrik-piskay I also experienced this, where it only shows one letter followed by the ellipsis. The scenario is that the container is displayed conditionally, so by default, it is hidden (display: none). When clicked on a button, it becomes visible. However, when the container becomes visible, the element to which I attached the react-truncate-markup is displaying something like 'C...' which is not correct.


Print test ids for failed tests

Helps #125.
#126 added a command line flag to specify which tests to run. This PR prints out the ids of failed tests, and even the command line flag to use to re-run these tests.
example output:
Passed 1 out of 5 tests.
To re-run tests that failed, supply the following flag:
--test_ids=make_credential_pin_auth_missing_parameter,make_credential_full_store,get_assertion_option_uv_true,get_assertion_pin_auth

This PR should be stack on top of #126 , so excuse the extra commits / files changed.


camelizing of required fields

When using convert_casing=True, then field names in the OpenAPI required list must also be camelized to match the actual field names in the OpenAPI properties.

Thanks, I've merged this manually in 444ccbc46e6844dfb04d1f01d40641f7cde5056c


Pipeline: E2E tests and unit tests are failing

Describe the bug
The end to end tests are failing, due to two issues:

e2e uses electron as its backend server, which conflicts with the desktop IPC
tests refer to thumbnails that were removed in PR #555

Expected behaviour
Add awareness of electron back end, allow for diagram both thumbnails and diagram descriptions
Environment

Version: latest 2.0.0
Platform: both Web App + Desktop App
OS: Pipeline
Browser: all. chrome, firefox, safari

To Reproduce
See pipeline failures
Any additional context, screenshots, etc

Now re-instating tests one by one, but all tests are passing


add loman to readme

Codecov Report

Merging #178 (04a4d4c) into main (77a42c3) will decrease coverage by 0.04%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
- Coverage   76.72%   76.69%   -0.04%
==========================================
  Files         110      110
  Lines        5513     5513
  Branches      715      715
==========================================
- Hits         4230     4228       -2
- Misses       1128     1130       +2
  Partials      155      155

see 1 file with indirect coverage changes


Issue in Instance Method

CODE:
//My Custom Model
export default class Document extends Model {

    static get tableName() {
        return 'Document';
    }

    $beforeValidate(jsonSchema, json, opt) {
        Document.query()
            .where('id', json.id)
            .select('id').execute().then(res => {
                if (res && res.length > 0) {
                    console.log('will throw error');
                    throw new OperationNotAllowed()
                }
            })
    }
}

//Code within
server.route({
        method: 'POST',
        path: '/admin/document/',
        config: {
            auth: {
                access: {
                    scope: ['admin']
                }
            },
            tags: ['api'],
            validate: {
                payload: {
                    id: Joi.string().required(),
                    data: Joi.string(),
                },
                failAction
            },
            description: 'Create New Document'
        },
        handler: (request, handler) => {
            let res = new ResponseBuilder();
            try {
                request.payload.createdBy = 'Test'
                Document
                    .query()
                    .insert(request.payload)
                    .execute().then(result => {
                        console.log('idk', result);
                        res = res.setData(result).setMessage(`Document Saved Successfully`);
                    }).catch(e => {
                        console.log('caught1', e);
                        res = res.setError(e);
                    })
                return handler.response(res).code(res.statusCode);
            }
            catch (e) {
                console.log('error last', e)
                res = res.setError(e)
                return handler.response(res).code(res.statusCode)
            }
        }
    })

OUTPUT:
Unhandled rejection OperationNotAllowed: Operation not allowed
    at Document.query.where.select.execute.then.res (/Users/bhavikpatel/Desktop/shipperbee-server/src/apps/admin/src/controllers/Document.js:18:27)
    at tryCatcher (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromise0 (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/promise.js:619:10)
    at Promise._settlePromises (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/promise.js:699:18)
    at _drainQueueStep (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues (/Users/bhavikpatel/Desktop/shipperbee-server/src/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

caught1 { error: duplicate key value violates unique constraint "Document_pkey"
    at Connection.parseE (/Users/bhavikpatel/Desktop/shipperbee-server/src/core/node_modules/pg/lib/connection.js:604:11)
    at Connection.parseMessage (/Users/bhavikpatel/Desktop/shipperbee-server/src/core/node_modules/pg/lib/connection.js:401:19)
    at Socket.<anonymous> (/Users/bhavikpatel/Desktop/shipperbee-server/src/core/node_modules/pg/lib/connection.js:121:22)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:594:20)
  name: 'error',
  length: 198,
  severity: 'ERROR',
  code: '23505',
  detail: 'Key (id)=(string1101) already exists.',
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: 'public',
  table: 'Document',
  column: undefined,
  dataType: undefined,
  constraint: 'Document_pkey',
  file: 'nbtinsert.c',
  line: '534',
  routine: '_bt_check_unique' }

QUESTION:

if I'm throwing an error in beforeValidate then why it's going to insert?
Before adding a new record, I want to check that, there won't be same record available.

$beforeValidate is not async, so you cannot start queries there. The way you run the query, nothing awaits the query anyway, so it's completely borked. There's just so many things wrong with the code you posted that I really don't know what is causing what. I think you should familiarise yourself with async programming: promises, async/await etc. Maybe ask this question in stack overflow?

$beforeValidate is not async, so you cannot start queries there. The way you run the query, nothing awaits the query anyway, so it's completely borked. There's just so many things wrong with the code you posted that I really don't know what is causing what. I think you should familiarise yourself with async programming: promises, async/await etc. Maybe ask this question in stack overflow?

Before adding a new record, I want to check that, there won't be the same record available.


Failed to generate certificate by acme after changing the DNS

Describe the bug

Failed to generate certificate by acme after changing the DNS
Steps to reproduce

Install walrus on an existing Kubernetes cluster by using acme to generate trusted certificate.
Change the value of SERVER_TLS_AUTO_CERT_DOMAINS and reapply.
Check the logs of walrus pod.

Result

Cannot use the new DNS to generate certificate.  It has to manually delete the old token's secret.

2023-08-21T09:42:21.843Z	W	api.https	http: TLS handshake error from <IP_ADDRESS>:60010: acme/autocert: no token cert for "xxx"

Expected behavior

No need to manually delete the secret.
Environment

Walrus version: v0.3.0

Additional context
Add any other context about the problem here.

Environment

Walrus version: main<PHONE_NUMBER>a0f63bb024a12309027f88b8f4bad9

Test Result: pass


[FEATURE] more CI capacity

We don't have enough CI capacity.
We don't have:

tests for POWER
different compilers (especially MSVC)

We are missing many configurations.
We can only afford ASAN on one target.
We talked about the following ideas.

Add travis CI as well. I believe it ought to have at least one free VM. There is also some plan for 69$ a month. I don't mind paying 69$ a month, but we need to figure out how to use it first.
Alternatively we can see if we can increase our Circle CI capacity but that might be trickier.
@jfalcou talked about maybe having an access to some farm somewhere.

MSVC requires appveyor. I have a basic script somewhere we can reuse. But I guess some work is required on MSVC to compile some c++20 stuff. This I can check locally if neede don my  AVX512 WIndow machine.
Power need an updated Docker. I need an updated doker anyway to have CircleCI display he result of CTest in a better way so this can be done soon.

MSVC requires appveyor. I have a basic script somewhere we can reuse. But I guess some work is required on MSVC to compile some c++20 stuff. This I can check locally if neede don my  AVX512 WIndow machine.
Power need an updated Docker. I need an updated doker anyway to have CircleCI display he result of CTest in a better way so this can be done soon.

@jfalcou - travis ci advertises having windows machines available.
If MSVC is trickier - that can be a different feature.

@jfalcou - travis ci advertises having windows machines available.
If MSVC is trickier - that can be a different feature.

@jfalcou - we seem to be ~OK for now. Wanna close this?


Updated: super-productivity 2.13.2

Newer version of super-productivity (2.13.6) is now available in master.


Experimental tree visualization with merges

Not beautiful, but it works:

python examples/show_tree_merges.py

Fixes #91
Fixes #10

Codecov Report
Patch coverage: 75.67% and project coverage change: -1.12 :warning:

Comparison is base (7adc33f) 88.09% compared to head (191f653) 86.98%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
- Coverage   88.09%   86.98%   -1.12%
==========================================
  Files          11       11
  Lines         529      553      +24
  Branches       69       82      +13
==========================================
+ Hits          466      481      +15
- Misses         56       63       +7
- Partials        7        9       +2

Impacted Files
Coverage Δ

src/napari_arboretum/tree.py
86.48% <75.00%> (-11.52%)
:arrow_down:

src/napari_arboretum/graph.py
98.63% <100.00%> (ø)

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

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


Batch of 20 events

This includes:

2014 events (6 total)
Several issues currently open
Early unionization history at Amazon, Microsoft, and IBM

@nataliyaned , just out of curiosity, did you end up running the python update.py script at all? (You shouldn't need to anymore)

@organizejs No, didn't run any part of it!

Gotcha, so you added the events throughout the csv?
In the future, it might be best to only add events at the end of the csv file so that they are easier to review. Right now when i click on the file changes, its not easy to tell which was changed. If you add it to the end (even if the dates are out of order), it will be easy to see which rows got edited. (like in this PR: https://github.com/organizejs/collective-actions-in-tech/pull/172/files)
Does that make sense?

I added the events to the end of the csv, out of order. They show up as the
last 20 events here if you load the diff:
https://github.com/organizejs/collective-actions-in-tech/pull/173/files
I'm not sure why it's saying the entire file has changed. The only edits I
made were to the last 20 rows :\
On Sat, Sep 28, 2019 at 6:47 PM JS<EMAIL_ADDRESS>wrote:

Gotcha, so you added the events throughout the csv?
In the future, it might be best to only add events at the end of the
csv file so that they are easier to review. Right now when i click on the file
changes, its not easy to tell which was changed. If you add it to the end
(even if the dates are out of order), it will be easy to see which rows got
edited. (like in this PR:
https://github.com/organizejs/collective-actions-in-tech/pull/172/files)
Does that make sense?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/organizejs/collective-actions-in-tech/pull/173?email_source=notifications&email_token=AJQJNGWZY4PUR346QDKR653QMACJLA5CNFSM4I3MYEKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73FZ5A#issuecomment-536239348,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJQJNGSP2NU7CI5U5GMKTHLQMACJLANCNFSM4I3MYEKA
.

please disregard my previous comment!

I added the events to the end of the csv, out of order. They show up as the last 20 events here if you load the diff: https://github.com/organizejs/collective-actions-in-tech/pull/173/files I'm not sure why it's saying the entire file has changed. The only edits I made were to the last 20 rows :
…
On Sat, Sep 28, 2019 at 6:47 PM JS @.***> wrote: Gotcha, so you added the events throughout the csv? In the future, it might be best to only add events at the end of the csv file so that they are easier to review. Right now when i click on the file changes, its not easy to tell which was changed. If you add it to the end (even if the dates are out of order), it will be easy to see which rows got edited. (like in this PR: https://github.com/organizejs/collective-actions-in-tech/pull/172/files) Does that make sense? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#173?email_source=notifications&email_token=AJQJNGWZY4PUR346QDKR653QMACJLA5CNFSM4I3MYEKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73FZ5A#issuecomment-536239348>, or mute the thread https://github.com/notifications/unsubscribe-auth/AJQJNGSP2NU7CI5U5GMKTHLQMACJLANCNFSM4I3MYEKA .

i just realized that you didnt (so i deleted the comment lol) sorry about that

addresses: #170 #167 #166 #115 #88

Yeah, it's a fascinating history!
They built up all this momentum and then the dot com crisis came along and that was lost. There is  literature that suggests labor movements have the most success when economic conditions are good, job markets are tight, etc. It makes sense if you're advocating for greater pay/benefits. Would be interesting to see whether it applies to collective action on the grounds of ethics, discrimination, and other non-pay issues. Here's hoping we don't find out.
I made the requested edits. And will upload a new csv shortly.
Re: the mandatory "workers" tag, I've encountered a few articles that simply don't include this information. It's possible to apply a label based on the types of workers you might expect at a company, e.g. white_collar_workers at IBM, but it does require you to make an assumption about the target population.
What would you think about including a tag for "workers_not_specified"?

Yeah its super interesting and so glad you're finding all these articles! And thats interesting, that labor movement has the most success when the economic conditions are good. I think it makes a lot of intuitive sense.
WRT to the work_category tag, i think a "workers_not_sepcified" tag is perfect! yeah i feel like i may have made assumptions about worker types in previous actions just for the sake of having a worker category, so having this tag would be super useful!


[FEATURE]: Catch the error if a secret already exist when registering with AWSSecretsManager

Contact Details [Optional]
<EMAIL_ADDRESS>Describe the feature you'd like
We currently don't have a check to ensure that a Secret doesn't already exist when registering the secret with AWSSecretsManager, but we really should check this here.
We should raise a SecretExistsError (from zenml.exceptions), however, if we do encounter this exception.
Is your feature request related to a problem?
Just in case someone tries to register a secret with one already existing with that same name.
How do you solve your current problem with the current status-quo of ZenML?
N/A
Any other comments?
No response

Working on it :smile:


set proctitle by overwriting argv

agree with https://github.com/commaai/openpilot/pull/32667#issuecomment-2159110183

Merged #32667. I think it was the right tradeoff.


advanced globs for regex matching?

Is it possible to match clusters to a site by multiple globs?
For example, here is a list of clusters:

Team 1 ABC Cluster 1
Team 1 ABC Cluster 2
Team 2 ABC Cluster 1
Team 1 XYZ Cluster 1
Team 2 XYZ Cluster 1
Team 2  XYZ Cluster 2

To the following sites:

ABC Site
XYZ Site

So, trying to use the following in settings.ini:
cluster_site_relation = *ABC* = ABC Site , *XYZ* = XYZ Site

Thanks

Hi,
you could try this one:
cluster_site_relation = .*ABC.* = ABC Site , .*XYZ.* = XYZ Site

... that was it... thank you so much!


Actually fix CORS

CORS currently does not work in production, users are able to query the API from anywhere

Closing - seems to be fixed


Support batching from preprocessor

Right now we have a ONE SINGLE POST request from preprocessor to backend.
This causes problems with Juliet tests

As a reference for what we are getting now:
500 Server Error for HTTP POST "/internal/initializeTests"
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144


feat(exec): add exponential backoff retry policy

Purpose
Updates the executor to improve reliability

Fixes an issue where all events are retried continuously due to an issue where events were not popped from the queue if there was no active bundle id found.
Improves the retry policy by implementing exponential backoff this prevents some events from being infinitely retried which hurts the performance of the executor
Adds a promise timeout utility and uses the utility in IPFS calls to fetch ChugSplash config files. This handles a bug where the executor can hang if it cannot retrieve a config file from IPFS.

Looks good!
Since we know the exact time that a bundle can be re-claimed (executionLockTime + timeClaimed), we might want to do retries at this exact time instead of doing exponential backoff in the future. We can make X attempts before discarding the bundle. We can discuss this in the future though; this PR looks good


Integrate ObjectSerializer in EventGrid

We eventually need it, applied to the data (I don't believe that this is useful for Custom Schema)

No on cards right now
Will reopen if necessary


[added] table adds the horizontal scrolling functionality

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
为table组件添加了横向滚动功功能，并且滚动的时候表头跟随表体x轴进行滚动
Does this PR introduce a breaking change?
[ ] Yes
[ ] No

Other information

Coverage decreased (-0.04%) to 43.877% when pulling c812fc52e042e0c36d4caea2345142357ad290ca on little-snow-fox:master into a7204e00e1cb3461ac17444ec929cdff1d824a8d on NG-ZORRO:master.

Coverage decreased (-2.005%) to 41.908% when pulling 139f1e86277359bf3c0c72e9d8ee4e268af3c54d on little-snow-fox:master into a7204e00e1cb3461ac17444ec929cdff1d824a8d on NG-ZORRO:master.


Dedup TodosNeedTickets

Current dependencies on/for this PR:

main

PR #74   👈

This stack of pull requests is managed by Graphite.


Replace Stream#_transform()s with single method with chunk: any

When a stream.Transform is fed from a stream that has {objectMode: true}, the Stream#_transform(chunk, encoding, callback) method will not be called with chunks that are strings or Buffers.
Simply adding a _transform() variant with chunk: any does not satisfy the TypeScript compiler for some reason.
I'd prefer type parameterizing the whole stream.Transform class with the type of the chunks it will deal with, but this change is smaller, and, I imagine, less contentious.

@jvilk @loyd could you review this PR?

@chbrown What about _write, write, writev, unshift, and end?

@loyd I guess I only wanted to venture as much as I needed for my library to compile — but yes, those suffer the same problem. Would you approve a PR changing them all?

@chbrown Well. I think, until TS supports default generic type or has strong type inference (like rust or haskell), parameterizing leads to overhead (it will always need to specify the type explicit) and I am inclined to any solution.

@loyd I agree. I've made the rest of the changes. It turns out a few of the chunk: T argument types were already any, e.g., Readable#push. Let me know if I missed any.

@vvakame LGTM

@loyd thanks!
@chbrown thanks mate! :+1:

Thanks for reviewing, @loyd! I was on vacation, but am back now. :smile: I hope we can eventually have better support for typing things as string | Buffer without inconveniencing code writers.


Create python-package.yml

I merged, but there are some failed tests. Could you have a look what they are about? @Valentyn1997

I will fix them in the next pull request


Items phasing through floor when thrown.

I have a few texture packs on with special textures and it seems they go into the block I throw them onto, Also any items with models that are big seem to get spun like crazy in the air, some sides of 3d hand held items are also just invisible. Please fix these :)

Could you provide the name of the texture pack you are using? Most vanilla/modded blocks and items seem to work as intended. If any of your items are going invisible it might be a mod conflict instead of a texture pack issue, but it isn't easy to say

Faithless, It seems to be the torch that is broken, I fixed the clipping through walls with another pack. Just the torches get flung when thrown.
I am trying to fix it by changing the pack rather than the mod rn, but It might not work.

Nvm phasing through floor has broke again, @Noaaan

As this is not an issue that's really fixable from the Interactic's side without introducing a significant amount of special handling that will never catch all edge-cases, I will go ahead an close this for now. Feel free to provide us with a link to the resource pack(s) you were having problems with, we might look into it in the future
Cheers


[gui2] Implement LazySyncEffectSet

Added a LazySyncEffectSet class, which allows creating a set of vue reactive effects, but delaying their reevaluation until it is explicitly requested. It is meant to be useful for @vitvakatu's reactive indexing implementation.

You’re a magician! Everything works exactly as it should. I cherry-picked your commits to https://github.com/enso-org/enso/pull/8052, so I guess we can close this one.


Can we use total gene single cell data to generate the simulated spatial data

Thanks for the work, In the tutorial for cell-type deconvolution, the top marker gene was selected firstly. I have tried to use the total genes to generate the simulated data. But the result was weird, and it was very slow.  So I want to whether we can use the total genes of single cell to simulate?

Hi Xiangping, you can use the total genes, BUT I do not recommend it. Here is the problem: the deconvolution result is heavily affected by the choice of cell-type marker genes (in my experiment, the effect of choosing marker genes is much larger than that of choosing different deconvolution methods). Therefore, for the simulation part, I would suggest for the estimation of spot-level cell-type proportion, you may only use marker genes to do so. For the next step, generating the simulated data, you can still generate all genes since it will not related to markers anymore; now you have the spot-level cell type proportion and you just need to simulate whatever cells and mix them in each spot.
Please email me if my explanation is not clear and we can schedule a further discussion.
Best,
Dongyuan


Refactor CSV parser to make use of common DAO code.

Pulled out JPA-specific code into a DAO that lives with the model classes. This ensures that the code that uses named queries is defined in the same project that actually defines them, for maintainability.
I've also tweaked the persistence.xml parameters to provide hints to enable batch inserts in postgresql. This results in approximately 2x speedup in simple tests, and should result in much more efficient use of the database in larger workloads.

Closing for now as not a priority.


Support for  Golang & native integration to AKS?

If you run your application in AKS, how can you sync K8s ConfigMaps with Azure AppConfiguration?
Are there plans to support for Golang at some point?

@asilverman Can you clarify how you want to integrate with ConfigMap? Like deployment time or run time? We do support integrating with AKS ConfigMap in deployment time with Helm. Link.
For Golang, unfortunately we don't have a plan for it in the short term.

@asilverman The AKS integration solution is available now, just for your information if you are still interested.
The quickstart tutorial: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-azure-kubernetes-service


ci: add golangci-lint to test

the configuration is very minimal, it would need some configuration.
But it will start reporting issues that should be addressed

I would suggest merging #56, then to merge this even if the test fails
then to try to fix them

Install golangci-lint locally theb
simply launch this to report the issue
golangci-lint run

I think about adding new rules and add golangci-lint to the GHA (I thought I did, but apparently I never pushed the changes 🤦)
To validate there is no error added.
What are your thoughts?
I started working on this project since last time we talked.
https://github.com/ccoVeille/golangci-lint-config-examples

Hi @ccoVeille I might need some help understanding this. Would this be a new actions workflow for the project that mandates linting rules etc? I would be happy to use this if so :smile:

I opened the following PR, I hope it will be clearer

#84


BarFunnel chart won't render for ChartJS versions > 2.2.0

ChartJS 2.2.2 is the last version to work with the BarFunnel chart.

I just double checked. It works with ChartJS version 2.3.0 but the current release (2.4.0) does not.

@jorgecgll can you take a look at this?

I got it working here: http://jsbin.com/meqaloq/edit?html,js,output
The issue is that the internal getBarWidth and calculateBarX methods changed. Rather than individually calculate the ruler internally, they are now passed it. This change was made for performance reasons. I added comments where the changes were made.


Variables not found

Hi, thanks for your work on the package, I have a question, if I set variables in the 'layouts.template' they're showing variable not found when I render the file index, is this normal?
<?php
$image_path = "xxxx";
?>

Thanks for your time

What's your template files structure?
Edge core is same as Blade so same problem will also occurred in Blade, did you call this variable in other layout file?

Hi Asika thank for the response, this is what Im trying to do, thanks for the help
File: views/layouts/template.blade.php
<?php $var = "xxxx"; ?>

@yield('meta')

@yield('content')

FIle: views/index.blade.php
@extends('layouts.template')
@section('meta')
Something
@endsection
@section('content')

variable: {{$var}}

@endsection

The child template will run prior than parent layout, you must declare your variable in child template.
And the variables won't share cross @extends if I remember correctly, variables only share cross @include

@extends parent won't compile to same file, it will reuse by every child which extends it.
@include can works fine.

If you changed same file, it will override the origin cache. But if you change file name, the old file won't be deleted. You must clear cache files regularly.
Seems origin issue has been resolved, close issue.


Create Popout menu when clicking on spans with certain class

When you insert a link and click on it in the editor you get a handy little pop-up

Is there a way to create a popup like this, with custom buttons, for custom inserted text?
For example, I can insert metadata
My favourite day of the week is Wednesday  becuase I have PE at school.
It would be great if when the user clicks within the metaData tag (e.g. the word Wednesday) a popup appears which has some custom buttons on.
Is this possible?

It is possible, but the method would be complicated.
You can refer to the file below and implement it in your "click" event.
https://github.com/JiHong88/SunEditor/blob/master/src/plugins/dialog/link.js#L78


New version: Betterbird.Betterbird version 115.17.0

Created by 🥟 Dumplings in workflow run #9119.

Log
Updated: 115.16.1 → 115.17.0
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run

[Policy] Needs-Manual-Merge


We should move the unit-tests for the Local/Remote service test helpers to be under "testing"

They should match the same package name as the class they test.
It looks like we already do that for DNS.

This issue should remain open until fixed in compute as well.

This was fixed in #891 and #900


Show error on bad config, but keep going

This is more of a stop-gap fix, but this allows us to be more resilient if the config has a few issues in it.
Should also fix #774

I'm not sure if this is the culprit or not but I can't update the config any longer with commands like this:
> let config = { $config | update history_config.page_size 15 }
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record
$config is not a record


Gui remembering items

I am trying to make gui that will remember the items player puts inside. When he closes it and opens again, the items will be still inside,
this is my code

I create new instance of ProcessMenuLib and save it to hashmap, so when i need to open it again, i will get it from that and call .open()
bot when i put items inside the gui, close it, and open it again, the items are all gone, even when putting them into advanced slot or unprotected slot
I was expecting that the items will stay inside the gui when i use the same instance of it
using 4.1.9 version
tehre is no console output
Checklist
Ensure you've done everything in this list before submitting the issue. (Just put the 'X' char between brackets.)

[X] I explained the expected behavior.
[X] I explained current behavior.
[X] I shared console outputs or I said there is no output.
[ ] I did not assume that people already knew what I was doing.

Check out here.
It is your responsibility to store your items. However, you can manipulate advanced slots as you want.
Also, I don't recommend it if you do not have a good reason to do this. Probably you have to handle server shutdown circumstances, implement a database, and re-load from the database to a cache... oh god.
Let me know if your issue is fixed or not.


FLOOD FILL ALGO IN CPP

Related Issue
Adds solution to flood fill problem on leetcode in CPP
Closes: #13
Describe the changes you've made

Add a solution for flood fill algorithim in leetcode folder

Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Language used

[ ] C
[x] CPP
[ ] Python
[ ] Java

Will you guys merge the PR?

@2SkeePeR2 could you please add problem link at top of the file with in comments

Will you guys merge the PR?

Yeah! We will merge it if you made required changes

@deephunt3r can you add the hacktoberfest-accepted tag?

@deephunt3r can you add the hacktoberfest-accepted tag?

Sorry! I'll add it


query: use ES scroll feature

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html
http://elasticsearch-py.readthedocs.org/en/master/api.html?highlight=scroll#elasticsearch.Elasticsearch.scroll

Related to inveniosoftware/invenio-records-rest#29
Any ideas for the API implementation?

@lnielsen in OAI-PMH we have resumptionToken hence the implementation is straightforward. I'm not sure about how to do it nicely in invenio-search/invenio-records-rest.


gf180mcu: add gf180mcuD variant for 5LM_1TM_11K

Fixes #342

Also "ENABLED_VARIANTS" in gf180mcu/Makefile.in should be "A B C D".  I'll update that as well in just a moment.

Pulled, merged, and mirrored!


PkByXsl.java:38-40: The {@link PkByXsl} class should...

The puzzle 148-e3c58907 from #148 has to be resolved:
https://github.com/objectionary/lints/blob/a9d9b43d81542e0fbb50cb3594b55f2a6446604c/src/main/java/org/eolang/lints/PkByXsl.java#L38-L40
The puzzle was created by @yegor256 on 18-Dec-24.
Estimate: 30 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 148-e3c58907 has disappeared from the source code, that's why I closed this issue.


Task - Filter nomenclature - createdBy, updatedBy

Cannot filter by CreatedBy and UpdatedBy fields. I a result, all records are returned.

I can't replicate this. Could you take a look at  "Record housekeeping" section in browse nomenclature to be sure is not the same user?

Fixed


redirect to the latest version of the api doc

It would be nice if when browsing an old version of the api doc, a message is displayed to use the latest version.
Something like: "This version of the documentation is outdated! Click here for the latest released version"

Not sure about this. The API docs have to match the version of the library to be useful, and the reader may not be using the latest version of the library. An alternative solution might be to mention the version in a prominent place on each API docs page.

The problem is that Goggle refers to various version of the api when
searching with it.
You never know which version you browse, except with the URL.
Being able to clearly see current version & go to «latest stable» &
«master» should be doable without manually changing url.
On 1 December 2015 at 13:04, Andreas Hocevar<EMAIL_ADDRESS>wrote:

Not sure about this. The API docs have to match the version of the library
to be useful, and the reader may not be using the latest version of the
library. An alternative solution might be to mention the version in a
prominent place on each API docs page.
—
Reply to this email directly or view it on GitHub
https://github.com/openlayers/ol3/issues/4507#issuecomment-160947664.

--
Antoine Abt
Camptocamp France SAS
http://www.camptocamp.com

Yes, a link to the latest release API makes sense, and also clearly displaying the release the reader is currently viewing.

Fixed with #5330.

Fixed with openlayers/openlayers.github.io#70


To Do: May 3

Add security discussion

Vulnerabilities with different methods
How upgradability helps recover from security incidents
Can you update a contract without broadcasting the fact that there is a problem (front-running resistant)

Add evaluation framework

Frequency
Decentralizatin
Foreknowledge of changes
Wholesale changes
Efficiency: gas for those uninformed about upgrades
Efficiency: gas for those informed about upgrades

Sample code

Simple contract implemented each way

Some Ideas:

Time delay between changes
Period between a change proposal and have it on chain
GEV

Check OpenZepplin upgrade patterns and find out the structure, events, and function names it used

In addresses that the "Upgraded" event fired before, we can find the new version's code using the implementation address and check the amount of change on the code using some code diff algorithms.
In addresses that the "AdminChanged" event fired before, we can check if it changed from EOA to Multi-sig or another EOA or a governance structure.
Don't forget to check for Pauseability and TimeLock and other stuff


[Feature Request] arc i show

Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to look what's written in an ARC's investigation file but I have to open it manually in MS Excel instead of just getting a nice overview of it via the ArcCommander.
Describe the solution you'd like
There're functions for showing studies and assays. The same could be implemented for investigations.
Describe alternatives you've considered
Staying with manually opening investigation files in Excel.

Closed due to #85


fix(#1416): Composed modal update

Closes IBM/carbon-components-react#1416
This change makes it so clicking outside of a composed modal closes the modal.

@asudoh ah yeah that’s right. I’ll update to more closely mimic the Modal component tomorrow.

Thanks for fixing this! 💪


Want to be able to use headers that does not have a background.

Hey and thanks for a great lib!
I have a feature request. I want to be able to use headers that do not have a background. Like a header with just text for example. Atm the item in the list in always shown and the header is put on top to "hide" the list item below. But if I don't want a background on the header then the list item beneath will show at the same time as the header.
Would it be possible for you to make a change so the items in the list turn invisible when its header is attached?

Cheers!
Magnus

What about the other items scrolling behind it? That would look weird as well.
I think an easier solution would be to add an optional interface that ViewHolders could implement that will have a method called when the ViewHolder is used as a sticky header. In that case you could add/"turn on" a background when that specific item is stickied.

Well my scenario exactly is like this.
I want the sticky header to be a text centered in the middle with a background with rounded corners. The issue I see now is that since it is with rounded corners and has a padding from top you will see the real item in the list scroll out/in when the sticky header becomes visible.
See attached image, here the "Header at 2" in the real list comes in from top and you can see that it slides in underneath the sticky header. That is why the item in the real list needs to be invisible until the sticky header turns invisible. Hope you understand what I mean :P

Yes that makes sense.
I'll put some thought into this. Thanks for the suggestion!


Different Alarm messages?

Alarm messages come in different types, depending on the value of the aSp field, which can be any of "Issue", "Acknowledge", "Suspend", "Resume", "Request".
Each type require different fields.
Would it be cleaner to simply have different message types, like Alarm, AlarmSuspend, AlarmRequest, etc?

Yes, perhaps. The aSp (AlarmSpecialisation) field is inherited from the object model of RSMP 1.0 and existed in the old XML schema.


loosen scalar measurement datum axioms

Per issue # https://github.com/obi-ontology/obi/issues/1276, these axioms are archaic, they were outdated with introduction of axiom: 'has value specification' some 'scalar value specification' in OBI.
Removing 'has measurement unit label' min 1 Thing
Removing 'has measurement value' min 1 rdfs:Literal
This pull request requires community feedback as to whether it will create any downstream problems.

Revised in separate pull requests to obi-edit.owl and iao-edit.owl (https://github.com/information-artifact-ontology/IAO/pull/241)

@ddooley Could you please create an issue tracker associated with the pull request? So, IAO developers can know the change you made and the reason why you made it. You can say if no objection in 1 or 2 weeks, you will merge the request. But it would be better to assign an IAO developer to review it before merge the request. Thanks!


Can't use this repo with go.mod

main.go:9:2: module github.com/portto/solana-go-sdk@latest found (v1.8.1), but does not contain package github.com/portto/solana-go-sdk/rpc
The reason is that the code under the v1.8.1 tag doesn't contain rpc package.
Can you please create a new tag?

@yihau It doesn't work. v1.8.1 DOES NOT contain the "rpc" subpackage at all. Try to check out the v1.8.1 tag.
So examples from the readme don't work either.

I think you are running latest examples in v1.8.1 sdk.
the one of difference between latest version and v1.8.1 is that I move
github.com/portto/solana-go-sdk/client/rpc => github.com/portto/solana-go-sdk/rpc
so you can't find the module.
sorry for the inconvenience, I tag new version ASAP.

hi there. I've released v2.0.0. Thank you for your patience.

Am I doing something wrong ?

@fipso sorry. that's my fault. I don't noticed the upgrading version rules in go mod. Although it don't follow semantic versioning, I'v released v1.9.0 as the solution.


Proposal: in-query retract and assert

A common pattern I've encountered is:
let link_title = ip.get_entid(&kw!(:link/title)).unwrap();

let results = ip.q_once(r#"
    [:find ?e ?t2
     :where [?e :link/title ?t1]
            [?e :link/title ?t2]
            [(unpermute ?t1 ?t2)]]
"#, None).into_rel_result()?;

if !results.is_empty() {
    let mut builder = TermBuilder::new();
    for row in results.into_iter() {
        let mut r = row.into_iter();
        let e = r.next().and_then(|e| e.into_known_entid()).expect("entity");
        let obsolete = r.next().expect("value");
        builder.retract(e, link_title, obsolete)?;
    }
    ip.transact_builder(builder)?;
}

That is: query to build up retractions and/or assertions, then transact those.
Datomic follows this model easily: it's loosely typed, data is local and in memory, etc. etc.
It's slightly less comfortable in Rust because of the rigid type system: we can't easily make builder ergonomic, and the caller needs to do some ritual (into_rel_result, consuming the results, etc.) to make this happen.
It's likely to be even more uncomfortable, and perhaps a little slow, from other languages.
We might instead choose to borrow from SPARQL UPDATE and extend our syntax to do this inline:
PREFIX foaf:  <http://xmlns.com/foaf/0.1/>

WITH <http://example/addresses>
DELETE { ?person foaf:givenName 'Bill' }
INSERT { ?person foaf:givenName 'William' }
WHERE
  { ?person foaf:givenName 'Bill'
  }

which for Mentat might look exactly like a :find query with different operands:
[:retract (?person :person/name "Bill")
 :assert (?person :person/name "William")
 :where [?person :person/name "Bill"]]

This could be evaluated in one of two ways:

As a special kind of projection that does the ritual consume/build/transact work for you. This is expensive — values will be pulled into memory, collected, then serialized for SQL and transacted — but it's relatively little work.
By translation into SQL. In part this will encode some of the work the transactor already does. More development work, but more production-grade.

I have nothing against this kind of specialized syntax in principle, but I feel that any such specialization is premature right now.  We don't have any production customers; until we do, let's not try to anticipate too much.

My particular use case follows the Sync 1.5 logins schema that @rnewman sketched at https://gist.github.com/rnewman/4a1442f88d471956b62b9c88a6adfa58.  To update a login identified by UUID, I need to update two related entities, but there's no unique identity relationship to leverage.  That means manually writing the equivalent of
[:transact
 [:db/add ?c :credential/password ?password]
 [:db/add ?f :form/usernameField ?username-field]
 :in
 ?uuid ?password ?username-field
 :where
 [?login :sync.login/uuid ?uuid]
 [?login :sync.login/credential ?c]
 [?login :sync.login/form ?f]]

A couple more thoughts here:

Prefer a generic :transact to :assert and :retract. Using new keywords fits the short-hand for find specs, but it doesn't scale well to :db/retract{Attribute,Entity}. We might want to allow boolean true/false for :db/add/:db/retract, because otherwise it's difficult to make the operation depend on a query result. (This might be worth doing for regular entities too, since creating booleans is easier than keywords.)

I pumped the breaks on #650, and this can actually replace :db/retractEntity, if we're willing to give up recursion; retracting an entity is essentially
[:transact
 [:db/retract ?e ?a ?v]
 :in
 ?e
 :where
 [?e ?a ?v]]

We might want to say "narrow" the relation using a findspec, say
[:transact
 [:db/retract ?e ?a ?v]
 :using
 ?e ?a ?v
 :in
 ?e
 :where
 [?e ?a ?v]]

It's not clear to me how the find spec bindings that specify scalar, tuple, collection, or relation fit into this world. If we allow collections or relations, it's not clear to me that the resulting :transact will be a non-overlapping set of transaction entities. Right now, transact pushes the burden of not overlapping entities onto the consumer. That might not be the right thing here.

#685 changed a lot of the semantics around overlapping entities, so we're better positioned to handle overlapping and doing the right thing in the face of repeated [e a] pairs now.  That might help implementation here.


Amb operator

Pull Request Test Coverage Report for Build 378

23 of 27 (85.19%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 84.596%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

observablecreate.go
22
26
84.62%

Totals

Change from base Build 375:
0.04%

Covered Lines:
1966

Relevant Lines:
2324

💛  - Coveralls


KFAC factors are twice as large as BackPACK's and ASDL's

Check the following test cases. They're for KFACLinearOperator with fisher_type='mc' and fisher_type='type-2', but the same issue also exists for fisher_type='empirical' when compared with ASDL's Empirical KFAC.
`https://github.com/f-dangel/curvlinops/compare/main...wiseodd:curvlinops:compare-kfacs-backpack
Run them using:
pytest -s test/test_kfac.py -k "test_kflr_vs_backpack"
pytest -s test/test_kfac.py -k "test_kfac_mc_vs_backpack"

Bug found: https://github.com/aleximmer/Laplace/pull/146#discussion_r1518084975