Why using an apikey for local use ?

If the usage is local, what is the purpose of using an api key ?
Is it mandatory for local use ?

The background map is using Mapbox. That said, in my opinion if you don't pass an API key it should just use a blank background instead of refusing to load at all.

OK, good point. So no upload of my local mbtiles.
And so, if I just need to see my mbtiles data, nothing else, I should not need to pass api key, right ?

Well it might not start without the access token, you might need to change the code to use an empty background style if the access token is not provided.

OK. nop access token.
Thx.


Merge was removed here and I need time to investigate how it works in new protocol.
If you have/had this bug, this is it.

That was kinda lame to forgot to fix merging 12 days ago.
Who knows what also I could forgot to test/fix.


removed explicit module imports

Changes
Removed explicit module imports from neuralcompression.__init__ as all of the modules have directories with __init__.py files.

Seeing failed tests - Python modules are weird.

@mmuckley This has the benefit of enabling refactorings in PyCharm (and likely other analysis tools).


Added new tests for experiment without Try

Added new test to ensure that experiment returns correctly even without any candidate. Also added tests to verify that the Clean, RunIf and Enabled delegates are not run and no publish is done if there are no candidates.

Looks good! One minor nit about a test method name. Also, I merged some changes in master that conflict with this. You'll either need to rebase this against master and force push to your branch OR just merge upstream master in your branch.

@Haacked Thanks for your suggestions. I've merged the latest changes and changed the method name as you suggested. :thumbsup:

Thanks!


Help Flash

Hello,
Can we use your plugin for Windows phone 8.1??
thanks,
Blacksad29

That should work...

Thank you for your answer !
I am under visual studio ... and I use the cordova module.
I wanted to test the plugin for aplication ' windows phone universal' and quadn I run the app on the phone is not working ca ...
while it works on android .

Dear Eddy, I think this requires some addition to this build, referring to this post http://akvelon.com/company/news/16-akvelon/news/187-cordova-win81-wp81 there is a platform addition as "windows" for windows universal apps.

Sounds like a nice thing to add, but I won't be able to do it soon. If anyone wants to attempt sending a PR that would be great. Otherwise you'll need to wait a bit longer.


docs: testSequencer example use destructured arguments

Summary

Minor documentation change. The example for the testSequencer incorrectly references shardCount and shardIndex through options when they have already been destructured and options is not defined. I noticed this when copying the example file to use in my local environment
Test plan

All automated tests should pass. This is just a syntax change in a documentation example.

Thanks!
Could you fix the same issue in Configuration.md from docs and website/versioned_docs/version-28.0 directories as well, please?

@mrazauskas Done! Thanks for pointing that out.

@SimenB Looks like this PR is ready to land.

@SimenB Looks like this PR is ready to land.


TestFoundation: emulate setenv using putenv on Win32

Windows does not have setenv, but it does have a putenv, which we
can use in its stead.

@swift-ci please test

LGTM


HSTS config

This PR adds HSTS (HSTS - a response header that tells browser that HQ is HTTPS only). This is not only a good security practice but also cuts rountrip cost of HTTP -> HTTPS redirect, as modern browsers will then automatically request HTTPS even when user enters an HTTP URL (see note on this PR about redirect time). But I have few questions before getting this merged in.

Do we serve any HTTP traffic at all?
Is 2 months expiry too high or too low?
Should we include all subdomains as well?

@dannyroberts I think you may be best to review this

@sravfeyn Have you tested this manually at all on staging? I wouldn't want to deploy this without testing that the underlying nginx conf change works the way we expect it to

@sravfeyn Currently the only thing we serve over HTTP is slow.commcarehq.org.  Any reason not to update slow.commcarehq.org to use HTTPS? I don't have a strong feeling about the 2 month expiry, but it seems pretty high. Is there a standard? Even a day expiry seems like it would make a huge difference here.  The configuration you have here will get applied to all subdomains, which I think is what we want because of the first point.

Re. Expiry standard: Usually people set it from a day to as long as an year. For that duration when can not serve any HTTP traffic under enabled domain/subdomain. What governs this number is usually the question - 'Are we going to serve any content on HTTP in near future? How long in future are we sure that we won't serve HTTP content'. Facebook sets it at 2 months, I have seen some sites putting it at an year.
Testing - I am planning to test it on staging subdomain. But I thought I have to get these changes merged in first, isn't it so?

You can log into the salt/ansible machine, and then check out your hsts
branch and deploy it to staging without having it merged first. Usually by
the time it's merged that means we're ready to deploy it to prod.
On Tue, Sep 1, 2015 at 9:55 AM Sravan Reddy<EMAIL_ADDRESS>wrote:

Re. Expiry standard: Usually people set it from a day to as long as an
year. For that duration when can not serve any HTTP traffic under enabled
domain/subdomain. What governs this number is usually the question - 'Are
we going to serve any content on HTTP in near future? How long in future
are we sure that we won't serve HTTP content'. Facebook sets it at 2
months, I have seen some sites putting it at an year.
Testing - I am planning to test it on staging subdomain. But I thought I
have to get these changes merged in first, isn't it so?
—
Reply to this email directly or view it on GitHub
https://github.com/dimagi/commcarehq-ansible/pull/196#issuecomment-136730100
.

Do we maintain commcarehq-ansible/config directory in git? How do I manually change it? I want to add uses_hsts: true config in staging.yml and then add the above header only when an env has uses_hsts set to true

you might want to read this: https://confluence.dimagi.com/display/internal/Ansible

Ha, thanks Cory. I now remember, I added a commit once to that repo

Doesn't feel great to put settings like this in a repo without PRing. Instead, if we split that config into secrets and configs, we can maintain configs in a hosted repo and PR a change before writing it

That's a good point. I'm not totally sure what an ideal version of this
would look like. One idea is to split those things into two files like you
said, and then use Ansible Vault
http://docs.ansible.com/ansible/playbooks_vault.html on the secrets file,
and then push this to a private github repository. (Of course it'd be
critical that we start over with a new repo and don't save any of the
current git history, since that all contains plaintext passwords.)
I'm not planning on driving any of these changes in the short term, but
it'd definitely be an improvement, and please feel free to spearhead.
On Wed, Sep 2, 2015 at 7:38 AM Sravan Reddy<EMAIL_ADDRESS>wrote:

Doesn't feel great to put settings like this in a repo without PRing.
Instead, if we split that config into secrets and configs, we can maintain
configs in a hosted repo and PR a change before writing it
—
Reply to this email directly or view it on GitHub
https://github.com/dimagi/commcarehq-ansible/pull/196#issuecomment-137041182
.


Rawg Rating's Bar

Was wondering if it's at all possible to implement Rawg's Rating bar, so that it would show up when a game is selected, allowing us to rate from there or see the ratings (including if the user already rated it)

updates the user score well enough


Automatically expire queues

I've been doing this automatically, and I shouldn't need to. I should just set up a cronjob-equivalent to do this.

C'mon, this shouldn't be hard. I'll try Hangfire for this.


how to use orwhere in basemkhirat/elasticsearch package

hi thanks for your great package.
i have a collection and wanna to do multiple searches...
so i wrote where clauses on it.. but it works like and where that i don't want that response..
i want do orwhere on my collection.
can you give me a solution how to write that?
thanks

hello @maralbe,
I'm sorry there is no way to run AND OR logic queries in current time. but now I am rebuilding some of my code to add compound AND OR logic queries keep in watching to be notified.
But you can use the raw() method to do that with native queries.
ES::raw()->search([
    "index" => "my_index",
    "type" => "my_type",
    "body" => [
        "query" => [
            "bool" => [
                "should" => [[
                    "bool" => [
                        "must" => [[
                            "match" => [
                                "preference_1" => "Apples"
                            ]
                        ], [
                            "match" => [
                                "preference_2" => "Bananas"
                            ]
                        ]]
                    ]
                ], [
                    "bool" => [
                        "must" => [[
                            "match" => [
                                "preference_1" => "Apples"
                            ]
                        ], [
                            "match" => [
                                "preference_2" => "Cherries"
                            ]
                        ]]
                    ]
                ], [
                    "match" => [
                        "preference_1" => "Grapefruit"
                    ]
                ]]
            ]
        ]
    ]
]);

This query will match (preference_1 = Apples AND preference_2 = Bananas) OR (preference_1 = Apples AND preference_2 = Cherries) OR preference_1 = Grapefruits.
is it helpful for you ?

yes thanks..
but when i use raw.. the response is an array.. not a collection, so then i can not use methods on it, or do a chain query in that...
so i think i should use raw in all of my search queries..

Hi @maralbe,
if you want to use array queries and get a collection object, only update you package to version 0.9.5 and follow docs.
ES::type("my_type")->body([
   "query" => [
            "bool" => [
                "should" => [[
                    "bool" => [
                        "must" => [[
                            "match" => [
                                "preference_1" => "Apples"
                            ]
                        ], [
                            "match" => [
                                "preference_2" => "Bananas"
                            ]
                        ]]
                    ]
                ], [
                    "bool" => [
                        "must" => [[
                            "match" => [
                                "preference_1" => "Apples"
                            ]
                        ], [
                            "match" => [
                                "preference_2" => "Cherries"
                            ]
                        ]]
                    ]
                ], [
                    "match" => [
                        "preference_1" => "Grapefruit"
                    ]
                ]]
            ]
        ]
])->get();

Still no progress with this issue? It's very unhandy to generate raw query with complicated structure on the fly.

Thanks for your great library
I want query data and How i can check multi column not empty ?
can you give me a solution how to write that?
thanks

maralbe

found the solution or not ?? can you please tell me ??


Added features to do Sanic more plugable

This PR try to add some features that already exists in other frameworks (like aiohttp) and that are useful for the plugin development.
The features do not affect to the performance (I was tested) and the could be very useful try to grow the framework.
request.py
add: new property: 'app'. This property contains an instance of Sanic application.
add: new property: 'handler'. This property will be setted before a request is sent to the view or middleware and contains the handler of view. This is useful to know all information of view, for example: if any plugin decorates the function, only in runtime the middleware or view will know this information. The most common case is when we want to decorate a view o use a cache system. The middleware must know who view are marked as a cached.
sanic.py
add: new method to append a middleware. The idea is to set middleware easily, thinking in possible plugins. Using this way, a plugin could use this method to add their custom middleware. For example: An authentication system or cache.
modified: reordered the the call of "self.router.get(...)", to add the "handler" property to the request before any middleware is called.
server.py
add: app instance in constructors

If with featured could be added, I have some plugins that I can contribute: a cache system. a swagger plugin, a hardening plugin and some more that I would need to adapt.

@seemethere what do you think about that? If I review the patch to try to pass all test, I'll consider to add these features? Thx


Check if any results and hide if none

This resolves the issue mentioned in #10

@RachelRVasquez Any thoughts on PR?

Looks good to me. Will hold on merging until we get Github io sorted out.

Merged.


Equals sign in preformatted code in a table triggering Dataview fail

What happened?
Adding this:
| key | Command           |
| --- | -------------- |
| `=` | Blah |

Results in this error:
Dataview (inline field ''): Error:
-- PARSING FAILED --------------------------------------------------

Got the end of the input

Expected one of the following:

'(', 'null', boolean, date, duration, file link, list ('[1, 2, 3]'), negated field, number, object ('{ a: 1, b: 2 }'), string, variable

I'm not using Dataview in this note and I don't think it is possible to escape the equals without the backslash showing.
DQL
No response
JS
No response
Dataview Version
0.4.26
Obsidian Version
0.14.14
OS
MacOS

In the beta version this no longer happens.
You have two options:

jump to beta version
in dataview settings change the "inline query prefix"

This has been fixed in the beta - I'm going to close just because the beta will be swapping to stable this weekend.

I'm still seeing this in 0.5.51.  Has this beta been released?

You can switch out the default setting meanwhile

You can switch out the default setting meanwhile

Sorry, which one setting is that?

Dataview settings > inline query prefix


App: setUserTasks: can't give more than one argument

The task shows fine:
app.setUserTasks([{
  title: 'Hello world',
  description: 'This is shown in a tooltip',
  arguments: '--hello-world',
  program: process.execPath,
  iconPath: process.execPath,
  iconIndex: 0
}]);

Doesn't show:
app.setUserTasks([{
  title: 'Hello world',
  description: 'This is shown in a tooltip',
  arguments: '--hello-world --another',
  program: process.execPath,
  iconPath: process.execPath,
  iconIndex: 0
}]);

Windows 8.1. Electron 0.36.7.

I'm not able to reproduce, can you try calling app.setAppUserModelId to set an application user model ID before calling app.setUserTasks?

Closing until more information is provided.


[Feature Request] Implement new layout selector UI and hook up new hp layouts to launch from it

What feature or change would you like to see made?
See epic #3643
Why should we prioritize this feature?
For epic #3643

We just release the OHIF 3.8, you can find more details here https://ohif.org/release-notes/3p8/
If you still encounter this issue in 3.8, please re-open this.


feature request

I have this very nice software on a esp32. but I was wondering of  the bluetooth proxy could be added to the firmware,
so it can act with all my other esphome devices as one big bluetooth network.
Would this ever possible?

I am already over 95% of the program storage space.  So I don't think this is possible to tack on the BT libraries at this time.

I tried to make space for the bluetooth libraries and blew out the PSP.  With all the other functions of ESPSomfy RTS, the bluetooth modules just don't fit.  Sorry.

I was about to make this FR, thanks for having given it a shot, even if unsuccessful!


class_generator: Enable frop to pdb on error - 1970

[Auto generated]
Number: [#1970]

openshift-python-wrapper[pull_request][4db0-11ef-981e-7cf7119ddebf][PR 1970]: Closing issue for PR: class_generator: Enable frop to pdb on error.
PR was closed.


[Enhancement] Open links on new tab, and multi-key, (and possibly background browser music?)

Keyboard shortcuts for new tab, and perhaps also multi-key shortcuts (You may be able to do it by storing them in an array or similar, so I could type 1-2-3 and it would activate)
Also, you managed to get sound with the extension... this is the first one that I've seen that can do that.
So, if you can find a way to do let users upload their own background audio/music that could be sick.

Heyy there!
A new issue opened in a very long time, glad to see people are using it and want it to improve haha (which I'm working on rn)!
Here are some questions:

Keyboard shortcuts for new tab,

Keyboard shortcuts to open a new Tab? Why? Is CTRL + T not good enough or something? Or do you want a custom keyboard shortcut to open a new tab?
Whatever it may be, this extension is solely focused on creating shortcuts for websites at least for now, I haven't and don't have any plans to have it interfere with the browser shortcuts too simply because they are just annoying to work with. However, if you can describe more I can think of another solution, maybe add this feature in another extension I build or I could suggest you a different extension that already does this nicely.

and perhaps also multi-key shortcuts (You may be able to do it by storing them in an array or similar, so I could type 1-2-3 and it would activate)

Multi-Key shortcuts, hmm that is interesting and I think it's already on my list but hasn't been on the top priority. I may add it eventually but you would have to wait for it, currently, a whole new version with loads of new updates is coming up so stay tuned for that ;)

Also, you managed to get sound with the extension... this is the first one that I've seen that can do that.
So, if you can find a way to let users upload their own background audio/music that could be sick.

Haha yeah I wanted to make using it feel like a proper tool and added sounds for fun. Letting users upload their own bg audio/music seems like too much and not really a worth-it feature according to me. I could have different sets of sounds and all but the problem is, not many people would use it as it's just a fun thing and not related to the functionality, and it would also increase the size of the extension unnecessarily. Even if I let users upload their little sounds that would require loads of other things too. But you know what, I may add just one option to let user upload a custom click sound somewhere inside for people like you to play with, but please don't expect it to be soon, sorry 😓


pubsub: Add dead letter policy (DLQ) samples

Add pubsub_dead_letter_create_subscription
Add pubsub_dead_letter_update_subscription
Add pubsub_dead_letter_delivery_attempt
Add pubsub_detach_subscription
Add pubsub_publish_with_error_handler
Add pubsub_subscriber_sync_pull_with_lease
Remove region tag (but not shared sample) pubsub_subscriber_sync_pull_custom_attributes

refs: #594
closes: #628
closes: #669

Ci error in 1 out of 2 concurrent jobs:
  1) Error:
subscriptions#test_0007_supports pubsub_subscriber_sync_pull_with_lease:
Google::Cloud::InvalidArgumentError: 3:You have passed a subscription that does not belong to the given ack ID (resource=projects/cloud-samples-ruby-test-3/subscriptions/ruby-pubsub-samples-test-subscription-53059eb3).. debug_error_string:{"created":"@1603317249.876421367","description":"Error received from peer ipv4:<IP_ADDRESS>:443","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"You have passed a subscription that does not belong to the given ack ID (resource=projects/cloud-samples-ruby-test-3/subscriptions/ruby-pubsub-samples-test-subscription-53059eb3).","grpc_status":3}
    /usr/local/bundle/gems/google-cloud-pubsub-v1-0.1.2/lib/google/cloud/pubsub/v1/subscriber/client.rb:882:in `rescue in acknowledge'
    /usr/local/bundle/gems/google-cloud-pubsub-v1-0.1.2/lib/google/cloud/pubsub/v1/subscriber/client.rb:848:in `acknowledge'
    /usr/local/bundle/gems/google-cloud-pubsub-2.1.0/lib/google/cloud/pubsub/service.rb:229:in `acknowledge'
    /usr/local/bundle/gems/google-cloud-pubsub-2.1.0/lib/google/cloud/pubsub/subscription.rb:969:in `acknowledge'
    /usr/local/bundle/gems/google-cloud-pubsub-2.1.0/lib/google/cloud/pubsub/received_message.rb:184:in `acknowledge!'
    /tmpfs/src/github/ruby-docs-samples/pubsub/subscriptions.rb:330:in `block in subscriber_sync_pull_with_lease'
    /tmpfs/src/github/ruby-docs-samples/pubsub/subscriptions.rb:326:in `loop'
    /tmpfs/src/github/ruby-docs-samples/pubsub/subscriptions.rb:326:in `subscriber_sync_pull_with_lease'
    /tmpfs/src/github/ruby-docs-samples/pubsub/acceptance/subscriptions_test.rb:154:in `block (4 levels) in <top (required)>'


Only allow .render targets to run reactExtension

Background
Using reactExtension for non-react extensions causes an infinite loop
Solution
Only allow .render targets to run reactExtension
Checklist

[ ] I have :tophat:'d these changes
[ ] I have updated relevant documentation

/snapit


Basic authorization for app

Deployment for staging environments are typically required to not be exposed to everyone. Simples solution is to apply Basic Auth and access by username/password.
It would be easy to do: if /home/git/:app/ folder contains file HTPASSWD with one line username:password, following section will be added to nginx.conf location section.
auth_basic "Restricted";
auth_basic_user_file $APP/HTPASSWD;

I will be happy to add that on top of https://github.com/progrium/dokku/pull/104

There is a plugin by @matto1990 that does just this. :smile:
https://github.com/matto1990/dokku-secure-apps


Feature_importance and auto-generated answer in assessment tool

In our case, protected variable is not used in model training. From the LOCO analysis we have the results and auto-generated answer in the assessment tool.
Q1. 'baseline model' refer to our original fairness results or a newly trained model (we provide model in Model Wrapper) that uses all features provided even the protected variable?
Q2. it is confusing to have the auto-generated answer for our case, as we dont include that in the beginning.

Q1. 'baseline model' refers to the original model producing y_test or y_prob.
Q2. auto-generated answers can be deleted easily if you do not like them. furthermore, it would be great if you could highlight to the developer team (BOC) on what improvement you would like to see for auto-generated answers.

Follow-up question on the LOCO analysis, as the protected variable is not included in the original model training so what does LOCO produce here as we already leave the protected variable out? Could you clarify this?

it's to remove protected variable from x_train and x_test, call the given model fitting function to rebuilt the model and finally score it on x_test.

yes, understood. In our case, original model and the LOCO rebuilt model are both trained with protected variable being dropped. In theory, fairness metrics shall be the same (as features are the same). But the results are different now. Reasons could be we are using different model package versions due to in-combability of versions or versions of inputs.
In order to properly use LOCO, protected variable shall be included in the original model and then LOCO will drop the protected variable and compare the fairness metrics.

yes, agreed. for the difference, you may check if random seed is required assuming data inputs are the same. as the toolkit just provides a function wrapper for fitting the model, i would close this issue for now.


We need to investigate baking lights

We have some light baking happening, in Tools/Bakery. But it is always giving error messages, and I have the feeling it may be very old stuff (Unity 2018?) that was pulled into our repo, in stead of referenced as a package or something.
And I think it may be doing more harm than good.
Every once in a while I see our scenes in a much higher quality, and then quickly they deteriorate to the "normal" again. I have this feeling that this may have to do with the bakery sometimes being inactive, and then we get the high quality, and then it becomes active again and we get the low quality back.
Someone should follow a tutorial on baking lights.
Assigning @suziosaurus because you're the person I have the highest hopes for...

I started following a great Unity tutorial for creatives (that covers materials, animation, lights, etc) when I was freer a few weeks ago. I may come back to this later.


Cannot find module<EMAIL_ADDRESS>

Can't update @nrwl/expo to latest
Steps:

npx nx migrate @nrwl/expo
npx nx migrate --run-migrations

I see it's fixed in commit https://github.com/nrwl/nx-labs/commit/30e602dcc15754b3650f87a0892bf31c1646904b,
but it doesn't have in latest @nrwl/expo package

it should be fixed for version 14.3.0.
the migration would be:
{
  "migrations": [
    {
      "version": "14.1.2-beta.0",
      "cli": "nx",
      "description": "Add target eject for expo projects in project.json",
      "factory": "./src/migrations/update-14-1-2/add-eject-target-14-1-2",
      "package": "@nrwl/expo",
      "name": "add-eject-target-14-1-2"
    }
  ]
}


After got the model, hwo can I generate a certain view of image by the model?

Hi kwea123, I just wonder is it possible to define a certain view (Lets say spatial location (x,y,z) and viewing direction (θ,φ) ) and generate a image for this view by the nerf_pl model?
Could you please help me with this? thanks!

Of coarse, you can set the testing pose whatever you want. I'll explain for llff dataset, but it's the same for blender.

Define (overwrite) the testing pose in datasets/llff.py:
https://github.com/kwea123/nerf_pl/blob/82ce454a5b1acf05a82492d42e9bdae97accf761/datasets/llff.py#L259-L270
You need the camera's spatial location (x,y,z) and its rotation in a 3x3 matrix.
For viewing angle, by default it's the camera's rotation already, but if you want to change it like the specular effect shown in nerf, you can pass a keyword argument view_dir to render_rays function
https://github.com/kwea123/nerf_pl/blob/82ce454a5b1acf05a82492d42e9bdae97accf761/models/rendering.py#L171
and it will take that angle as the render angle, independent of the camera pose.

Hi, Thanks for your replies... Sorry I'm busy last week,(because of my hw...)
So basically I know what's going on for this part. by modifying the code you've provided, I can now change the camera position.
Another question is that, How can I know the exactly front side of the model? (seems a little bit hard for me since I feel like all the pictures are taken from the arbitrary position so It's hard to define the front side ..)
maybe Should I check the poses_bound.py and decide on a picture to be the center picture? By using its camera position data?

The front side is the negative z axis if your data is forward-facing, for 360 data there is no "front side."

maybe Should I check the poses_bound.py and decide on a picture to be the center picture? By using its camera position data?
I don't understand this question. If you want to select the most centered picture, it's the picture whose pose (translation) is closest to zero.

for example, I got a model and now I want the camera move horizontally, (like what I show in the picture). Can you tell my how I modify the code? And what else data I need to know.. thanks!

For example you can set the pose to the same of the training poses: self.poses_test = self.poses.copy() then you can move its translation, e.g. self.poses_test[0, 0, 3] += 0.1. If that's not the correct axis, just try another: self.poses_test[0, 1, 3] += 0.1 or self.poses_test[0, 2, 3] += 0.1. This should be very straightforward if you read the paper and the code carefully.

For example you can set the pose to the same of the training poses: self.poses_test = self.poses.copy() then you can move its translation, e.g. self.poses_test[0, 0, 3] += 0.1. If that's not the correct axis, just try another: self.poses_test[0, 1, 3] += 0.1 or self.poses_test[0, 2, 3] += 0.1. This should be very straightforward if you read the paper and the code carefully.

thanks! I'll try it


Legend gradient property inspector

Fix so that the initial values for gradient is picked up. Label changes Jonathan suggested.

weirdly, this happens for me now:

i'd say don't spend too much time on this. if it's breaking other more important things, and you can't tell why, just comment out the gradient border stuff for now

yeah I think that is a separate issue? this PR just deals with the initial values and renaming labels.

i can take a look at it in this PR though if you want me to


Add @model_validator for V2 "root" validators

From discussion in #5235 we decided we're going to have an @field_validator for V2 validators instead of integrating it into the existing @validator. This allows us to minimize function introspection, minimize complex overloads on the decorators and is also a better name. That will happen in #5235, but we also need an @model_validator that will be the equivalent to @root_validator.

I think one of the main questions is what we want to keep / change in the API. One thing that could be interesting is to have after validators operate on the model instance instead of the values dict, just how we do for serializers.

Completed in https://github.com/pydantic/pydantic/pull/5379


helm repo add forbidden

Output of helm version:
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.7", GitCommit:"dd5e1a2978fd0b97d9b78e1564398aeea7e7fe92", GitTreeState:"clean", BuildDate:"2018-04-19T00:05:56Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.4-gke.2", GitCommit:"eb2e43842aaa21d6f0bb65d6adf5a84bbdc62eaf", GitTreeState:"clean", BuildDate:"2018-06-15T21:48:39Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
GKE
When adding a repository found on Google Cloud Storage I am getting a 403 error. I'm guessing because it needs to authenticate. How do you authenticate adding a repository such as Google Cloud Storage that does not use a username and password?

The helm-gcs plugin handles authentication and authorization to GCS.
Hope that helps!

Is this actively maintained or a solution that will persist?

It's maintained by a community member, and it's open source. If it isn't actively maintained/abandoned, someone else is more than welcome to fork it and maintain the project. That's open source for ya :)


Mobile UI

Screenshots (Google Chrome on Samsung Galaxy Note 4):

awesome, thanks!

deployed, looks awesome on my phone


build: build static binaries with latest pkgs

On nixpkgs bug where windows platform is set incorrectly for static
packages: 281596
This can be worked around by using pkgStatic.pkgsCross rather than
the other way around, or simply by replacing the package.
As it happens, the tls build for windows doesn't need openssl, so
we can remove it entirely and skip this issue altogether.
On darwin, libiconv is failing to build, but also seems to not be
required anymore, and so also removing it!

bors merge

hmm weird build error.. let's try again
bors merge


Smarter resource listing

What

After testing support for Scheduled/Cron job kinds we realized that if a cluster isn't running the latest version of Kubernetes AND doesn't has alpha resources enabled that these would cause a failure and deploys would not work
To fix this (and to provide an overall improvement) we will now only get a list of resources that match the type of resource you are deploying
This should help reduce query load on all clusters as well as we will no longer get resources we don't need during a deployment

Testing

Must use docker toolbox (not native Docker for Mac)
Run ./test-functional

Functional tests are passing:
test_functional_1  |
test_functional_1  | ><EMAIL_ADDRESS>test-functional /
test_functional_1  | > mocha test/functional --recursive
test_functional_1  |
test_functional_1  |
test_functional_1  |
test_functional_1  |   Functional
test_functional_1  |     when deploying to example cluster
test_functional_1  |       and example cluster does not exist yet
        ✓ should deploy without error (4168ms)
test_functional_1  |       and when running same deploy again (no differences)
        ✓ should deploy nothing and send webhooks (3971ms)
test_functional_1  |     when deploying to example cluster
test_functional_1  |       and exceeding AVAILABLE_TIMEOUT
        ✓ should trigger a TimeoutError (2076ms)
test_functional_1  |     when deploying multiple deployments cluster
test_functional_1  |       and multi-deployments cluster does not exist yet
        ✓ should deploy without error (7173ms)
test_functional_1  |       and multi-deployments cluster has already been deployed
        ✓ should deploy nothing and send webhooks (3987ms)
test_functional_1  |     when deploying mix deployment and service cluster
test_functional_1  |       and mix-deployment-service cluster does not exist yet
        ✓ should deploy without error (7112ms)
test_functional_1  |       and mix-deployment-service cluster has already been deployed
        ✓ should deploy nothing and send webhooks (3903ms)
test_functional_1  |     when no unique namespaces and deploying to cluster
      ✓ should deploy without error (702ms)
test_functional_1  |     when deploying a single job to a cluster
      ✓ should deploy without error (4029ms)
test_functional_1  |
test_functional_1  |
test_functional_1  |   9 passing (37s)
test_functional_1  |
kitdeployer_test_functional_1 exited with code 0

@c1freitas I fixed the remaining sync calls. 😄
Verified all functional tests are still passing after the changes.
test_functional_1  |
test_functional_1  | ><EMAIL_ADDRESS>test-functional /
test_functional_1  | > mocha test/functional --recursive
test_functional_1  |
test_functional_1  |
test_functional_1  |
test_functional_1  |   Functional
test_functional_1  |     when deploying to example cluster
test_functional_1  |       and example cluster does not exist yet
        ✓ should deploy without error (4102ms)
test_functional_1  |       and when running same deploy again (no differences)
        ✓ should deploy nothing and send webhooks (3909ms)
test_functional_1  |     when deploying to example cluster
test_functional_1  |       and exceeding AVAILABLE_TIMEOUT
        ✓ should trigger a TimeoutError (2025ms)
test_functional_1  |     when deploying multiple deployments cluster
test_functional_1  |       and multi-deployments cluster does not exist yet
        ✓ should deploy without error (7219ms)
test_functional_1  |       and multi-deployments cluster has already been deployed
        ✓ should deploy nothing and send webhooks (3947ms)
test_functional_1  |     when deploying mix deployment and service cluster
test_functional_1  |       and mix-deployment-service cluster does not exist yet
        ✓ should deploy without error (7178ms)
test_functional_1  |       and mix-deployment-service cluster has already been deployed
        ✓ should deploy nothing and send webhooks (3951ms)
test_functional_1  |     when no unique namespaces and deploying to cluster
      ✓ should deploy without error (684ms)
test_functional_1  |     when deploying a single job to a cluster
      ✓ should deploy without error (4134ms)
test_functional_1  |
test_functional_1  |
test_functional_1  |   9 passing (37s)
test_functional_1  |
kitdeployer_test_functional_1 exited with code 0


csproj File Automatically Reformatted

I have just added an MSBuild-based .NET Core project to a brand-new solution in VS 2017 RC. When I right-click the project and select Edit, the solution file is automatically reformatted to match Visual Studio's (old) standards for MSBuild project formatting. Namely:

Blank lines between tags are removed.
The newline at the end of the file is removed.
The UTF-8 BOM is removed.

This causes pointless commit churn when I move between IDEs. In addition, I am not very pleased about the removal of the blank lines between tags. Could this behavior be changed? Thanks!

Thanks - all this is known, except the BOM. I'll make sure we check the BOM when we fix this: https://github.com/dotnet/roslyn-project-system/issues/512.
Keep these bugs coming!

@davkean I'm afraid this behavior is still occurring, albeit in slightly different circumstances than before. As far as I can tell, Visual Studio no longer reformats my csproj files when I edit them by hand. However, Visual Studio (2017 RC 3, build 26127.0) still reformats my csproj files (in the same way as described above) when it makes changes to it by itself.
For example, when I add an empty folder to a project, Visual Studio adds a <Folder> item to my project, as well as an <ItemGroup> to contain it. However, when I then add a source file into that folder (obviating the need for the explicit Folder item), Visual Studio removes the tag as it should -- but it also removes all newlines (between tags as well as the one at the end of the file), as well as all comments, if any are present. (I neglected to mention the comment issue in my initial post above, but it does occur.)
Could this issue please be reopened until this is fixed as well? Thanks!

@wjk I cannot repro this with the new project system, can you open a new bug with the exact repro?
We've still got some weird issues while editing with the editor, such as https://github.com/dotnet/roslyn-project-system/issues/1348 and https://github.com/dotnet/roslyn-project-system/issues/1347 and wondering if your issue is related.
Can you repro it without the editor?

As far as I can tell, the issue only occurs when Visual Studio edits the csproj file. If I edit the csproj XML using Notepad, Visual Studio will leave it the formatting as I specified it. Is this what you were talking about? In addition, the symptom mentioned above regarding the csproj being reformatted when I open it in the editor still occurs as well. I can workaround these issues using the Command Prompt and Notepad, but it is fairly inconvenient.
It might take me a little while to provide a repro. I have not yet determined if this issue affects all Core csproj files, or is caused by a quirk specific to my project. Thanks!

@davkean, I can reproduce. Opened an issue on msbuild: https://github.com/Microsoft/msbuild/issues/1627.


Github action to push short-lived images

Codecov Report

Merging #7 (20b7d44) into main (964af0d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   29.48%   29.48%
=======================================
  Files          13       13
  Lines         943      943
=======================================
  Hits          278      278
  Misses        643      643
  Partials       22       22

Flag
Coverage Δ

unittests
29.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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 964af0d...20b7d44. Read the comment docs.


Bug in the situation of multiple ps servers, NotFoundError

I have 2 ps servers and 3 worker servers (Ubuntu14.04, Python 3.5.3 and Tensorflow 1.0.1 with virtualenv). I am trying the demo based on https://www.tensorflow.org/deploy/distributed.
I got NotFoundError errors when I use 2 ps servers. (It can run well when I use 1 ps server. And It can run well with 2 ps server, when I use "save_checkpoint_secs=None" in MonitoredTrainingSession().)

THE CODE:
..........
# Build model...
x_data = np.random.rand(100).astype(np.float32)
y_data = x_data0.1 + 0.3
Weights = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
biases = tf.Variable(tf.zeros([1]))
y = Weightsx_data + biases
loss = tf.reduce_mean(tf.square(y-y_data))
global_step = tf.contrib.framework.get_or_create_global_step()
train_op = tf.train.AdagradOptimizer(0.01).minimize(
loss, global_step=global_step)
# The StopAtStepHook handles stopping after running given steps.
hooks=[tf.train.StopAtStepHook(last_step=50000)]
# The MonitoredTrainingSession takes care of session initialization,
# restoring from a checkpoint, saving to a checkpoint, and closing when done
# or an error occurs.
with tf.train.MonitoredTrainingSession(master=server.target,
                                       is_chief=(FLAGS.task_index == 0),
                                       checkpoint_dir="./train_logs",
                                       hooks=hooks) as mon_sess:
  while not mon_sess.should_stop():

..........

THE ERROR:
Error in worker server 0 (master):
........
I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:221] Started server                                                                                with target: grpc://localhost:22222
I tensorflow/core/distributed_runtime/master_session.cc:1012] Start master sessi                                                                                on f8c75e38e6e9419a with config:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 1022, in _do_call
return fn(*args)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 1004, in _run_fn
status, run_metadata)
File "/usr/local/lib/python3.5/contextlib.py", line 66, in exit
next(self.gen)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/error                                                                                s_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: ./train_logs/model.ckpt-0                                                                                _temp_0205a1571bdb4f9db000d0caf3139d5a/part-00000-of-00002.index
[[Node: save/MergeV2Checkpoints = MergeV2Checkpoints[delete_old_dirs=tr                                                                                ue, _device="/job:ps/replica:0/task:1/cpu:0"](save/MergeV2Checkpoints/checkpoint                                                                                _prefixes, _recv_save/Const_0_S63)]]
[[Node: save/Identity_S65 = _Recvclient_terminated=false, recv_device=                                                                                "/job:worker/replica:0/task:0/cpu:0", send_device="/job:ps/replica:0/task:1/cpu:                                                                                0", send_device_incarnation=7747326126893392586, tensor_name="edge_33_save/Ident                                                                                ity", tensor_type=DT_STRING, _device="/job:worker/replica:0/task:0/cpu:0"]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "0.1.py", line 103, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/platform/app.py
", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "0.1.py", line 68, in main
_, step, loss_v, weight, biase = mon_sess.run([train_op, global_step, loss,                                                                                Weights, biases])
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 462, in run
run_metadata=run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 786, in run
run_metadata=run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 744, in run
return self.sess.run(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 899, in run
run_metadata=run_metadata))
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/basic                                                                                session_run_hooks.py", line 355, in after_run
self.save(global_step, run_context.session)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/basic                                                                                session_run_hooks.py", line 371, in _save
self._get_saver().save(session, self._save_path, global_step=step)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 1363, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 767, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 965, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 1015, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.                                                                                py", line 1035, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: ./train_logs/model.ckpt-0                                                                                _temp_0205a1571bdb4f9db000d0caf3139d5a/part-00000-of-00002.index
[[Node: save/MergeV2Checkpoints = MergeV2Checkpoints[delete_old_dirs=tr                                                                                ue, _device="/job:ps/replica:0/task:1/cpu:0"](save/MergeV2Checkpoints/checkpoint                                                                                _prefixes, _recv_save/Const_0_S63)]]
[[Node: save/Identity_S65 = _Recvclient_terminated=false, recv_device=                                                                                "/job:worker/replica:0/task:0/cpu:0", send_device="/job:ps/replica:0/task:1/cpu:                                                                                0", send_device_incarnation=7747326126893392586, tensor_name="edge_33_save/Ident                                                                                ity", tensor_type=DT_STRING, _device="/job:worker/replica:0/task:0/cpu:0"]]
Caused by op 'save/MergeV2Checkpoints', defined at:
File "0.1.py", line 103, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/platform/app.py                                                                                ", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "0.1.py", line 62, in main
hooks=hooks) as mon_sess:
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 315, in MonitoredTrainingSession
return MonitoredSession(session_creator=session_creator, hooks=all_hooks)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 601, in init
session_creator, hooks, should_recover=True)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 434, in init
self._sess = _RecoverableSession(self._coordinated_creator)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 767, in init
_WrappedSession.init(self, self._create_session())
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 772, in _create_session
return self._sess_creator.create_session()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 494, in create_session
self.tf_sess = self._session_creator.create_session()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito
red_session.py", line 366, in create_session
self._scaffold.finalize()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 180, in finalize
lambda: training_saver.Saver(sharded=True, allow_empty=True,
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 232, in get_or_default
op = default_constructor()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/monito                                                                                red_session.py", line 181, in
write_version=saver_pb2.SaverDef.V2))
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 1040, in init
self.build()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 1070, in build
restore_sequentially=self._restore_sequentially)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 669, in build
save_tensor = self._AddShardedSaveOps(filename_tensor, per_device)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 356, in _AddShardedSaveOps
return self._AddShardedSaveOpsForV2(filename_tensor, per_device)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/training/saver.                                                                                py", line 338, in _AddShardedSaveOpsForV2
sharded_prefixes, checkpoint_prefix, delete_old_dirs=True)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/ops/gen_io_ops.                                                                                py", line 185, in merge_v2_checkpoints
delete_old_dirs=delete_old_dirs, name=name)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/op_de                                                                                f_library.py", line 763, in apply_op
op_def=op_def)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/ops.p                                                                                y", line 2327, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/ops.p                                                                                y", line 1226, in init
self._traceback = _extract_stack()
NotFoundError (see above for traceback): ./train_logs/model.ckpt-0_temp_0205a157                                                                                1bdb4f9db000d0caf3139d5a/part-00000-of-00002.index
[[Node: save/MergeV2Checkpoints = MergeV2Checkpoints[delete_old_dirs=tr                                                                                ue, _device="/job:ps/replica:0/task:1/cpu:0"](save/MergeV2Checkpoints/checkpoint                                                                                _prefixes, _recv_save/Const_0_S63)]]
[[Node: save/Identity_S65 = _Recvclient_terminated=false, recv_device=                                                                                "/job:worker/replica:0/task:0/cpu:0", send_device="/job:ps/replica:0/task:1/cpu:                                                                                0", send_device_incarnation=7747326126893392586, tensor_name="edge_33_save/Ident                                                                                ity", tensor_type=DT_STRING, _device="/job:worker/replica:0/task:0/cpu:0"]]
Error in ps server 1:
........
I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:221] Started server                                                                                with target: grpc://localhost:22222
W tensorflow/core/framework/op_kernel.cc:993] Not found: ./train_logs/model.ckpt                                                                                -0_temp_0205a1571bdb4f9db000d0caf3139d5a/part-00000-of-00002.index

OK, I use nfs fix this problem. As below, node0 is my worker server 0 (master).
with tf.train.MonitoredTrainingSession(master=server.target,
is_chief=(FLAGS.task_index == 0),
checkpoint_dir="/home/node0_nfs_share",
hooks=hooks) as mon_sess:
But I also think this is a little bug should be fixed.

This is not really a bug. You are expected to have a file that exists.


Are you planning to implement LiveQuery in dotnet sdk?

we are developing a real-time game using unity3d . please let us know that if you are going to implement the LiveQuery feature in your sdk, so we start using it to develop our game.

Eventually, yes. We do have plans to support LiveQuery on all of our targets that we currently support for .NET.
The situation is a bit more complicated than other platforms, as we have such a diversity in versions of .NET and APIs supported by our .NET platforms compared to everywhere else, and as such we do not currently have an ETA.
I'll keep this issue open until we have a formal release for it, or when we might have an ETA.
To others reading this issue: To help us gauge interest and priority amongst other issues, if you're interested in this, please comment on this issue.

Definitely interested in this for Unity iOS/Android.

:+1: :+1:

💯

+1

+1 for Unity

I am developing a mobile game using Unity3D.
Is it possible to use LiveQuery with REST API (HTTP.Request)?

@hl4hck Absolutely! The protocol specification for LiveQuery can be found here: https://github.com/ParsePlatform/parse-server/wiki/Parse-LiveQuery-Protocol-Specification.
You can also, of course, take a look at the open source JS and iOS clients and use those as a basis for any other clients you might make.

@richardjrossiii Thank you!

+1

+1

+1, although the API seems pretty simple. I'll try to implement in Unity using BestHTTP until it's stable in the Parse SDK.

+1

yes please!

+1

Has anyone successfully gotten LiveQuery to work from .NET?

+1

@chris3000 Did you have any luck getting this working with Unity?
Looking into trying it myself but if there is anything interesting you have to share could save some tears haha

No, I haven't tried yet. We're using a polling strategy for now.

+1 Unity.

I would be so down to work on this! Im just not sure where to start.

+1 for unity

+1 Would love to see this for xamarin forms apps

+1

+1

+1 any updates ?

Just to let everyone know there is currently no built-in live query implementation available for the .net sdk. Only some clients have implementations for live query interfacing, this not being one of them.
That being said it's not unlikely that we will bring this support into the this sdk at a future date. It would be super to have this in! However this sdk needs to be brought up to spec first as there are quite a few outstanding issues that need to be dealt with before we can get to live queries.

i wish more contributors comes to improve Parse & Parse SDK , Really nice and great server , just it need someone who have good experience to improve it

@ra7bi we're open to contributions! Most of the sdks are more actively maintained, this one just needs some tlc and it should be just fine 👍

happy to know that , im hosting Parse server for my mobile app and i really like it , i think if Real-Time feature comes to Parse server for all SDK ,  it would be the best .
Thanks for all Parse contributions so exciting for any Parse updates

I need examples of how to use live query in a Xamarin Forms app....

As above. Not implemented

OK, thanks for confirming... I will select another backend for my needs that supports Xamarin Forms.

@stephenhauck, you can still use parse-server without live query, we have 3 reference implementations in JS, Android and Swift porting to Xamarin/dotNet should be trivial.

@flovilmart interesting comment, as if it was trivial I would assume it wouldn't be an outstanding ticket for 2 years ;)
I think the honest answer is the .NET parse SDK is a bit neglected.

@ndastur it’s neglected because unlike the other SDK’s no one has demonstrated an interest into contributing with it. Open source is not just about a handful contributors shipping features you need. We ported to Android in a few days, when our company needed it.
I’m not a dotNet developer, and my main focus is on server, JS, Swift, objective-c, and i believe we still move forward at a great pace. Like any open source project, we’ll be thrilled to review your pull request and fast track a release. Also, in Java and iOS, live Query is not part of the SDK but distributed as a separate package, Which also give you the freedom to build your own implementation without the burden of open sourcing it.

@ndastur most of the PR's were awaiting additional changes, from @richardjrossiii. I'm not sure why, I'm not a .Net developer but you seem to be well versed into this technology. Can you review those for me please? If there's any smell / issue, feel free to ping me.

I appreciate this is an open source effort but Back4app sent me here, they are charging for a Parse back end and I kind of expected that they were supporting the project / product.
I am looking to pay for Back4app as a service .. that does not put the onus on me to make the drivers that support THEIR product.... I will simply find a vendor that wants my money and supports my platform.

@stephenhauck I understand your frustration, and the open source community is not the place to project it. You are right, if a vendor doesn't fulfill exactly your needs, you can probably leave them. That's not my problem. Just so you know, parse-community is completely independently managed from the vendors, we follow our own roadmap and goals.

that does not put the onus on me to make the drivers that support THEIR product
You are 100% right, but don't blame the community for it.

Perhaps the style of parse-server, being an open source project, packaged by vendors as a paying service is not suiting your needs and development requirement.
@baywet is it something you could give us a hand on?

@flovilmart Not projecting frustration .. simply stating the facts.
You guys are doing awesome work ... I appreciate your efforts even if I / my applications do not benefit from them at this time ...

I might, I'm trying to get an understanding of what needs to be implemented and the amount of work we're talking about.
We're basically looking at implementing support for that, but in dotnet right? http://docs.parseplatform.org/parse-server/guide/#client-setup
And all the events and such are pushed by the server using a web socket?

Yep, we're looking at that spec (https://github.com/parse-community/parse-server/wiki/Parse-LiveQuery-Protocol-Specification)
Reference implementations in JS, Swift and Android/Java
Thanks man :)

I didn't say I'll do it yet but at least any senior .net Dev will have all the information here.
And then how to test the code? Is there like an open server/service somewhere? Or just follow that and start sending data ? http://docs.parseplatform.org/parse-server/guide/

We don't have a conformance spec testing, but firing up the server and going for e2e tests should be good enough for now.
Just thank you for taking the time to respond, and layout a plan in here!

I'm planning on going over PRs as soon as I can make enough time. It is about time that we bring this into the fold with the other sdks, especially since there is still a community interest in it.
@baywet if you are interested in working on this let me know, although I'm not quite familiar with .NET development I work on the server and some other sdks. Let me know if I can provide some insight as to how this is laid out and how it operates.

@montymxb my biggest problem right now is time, and I don't want to over commit. As far as I can see there's somewhere between 5 to 10 hours of effort on this one, and I have to ramp up on parse. I don't pretend to be a Rockstar developer but I

@baywet, no stress, @montymxb, i met @baywet at a Microsoft MVP event last week, in Montreal.
Perhaps we know a junior dev who’d like to grind his teeths on this one

@baywet that's perfectly fine. If you ever find you have a little bit of time and happen to be strolling by parse land, feel free to drop in and give us some notes in regards to .NET stuff. We're always open ears! But definitely don't stretch yourself too thin if you have existing priorities that are demanding your attention. It may be that you won't have the time to drop by, but that's better than burning yourself out 😛 .
I don't know too many .NET devs unfortunately :/. There was one guy, but he works full time at microsoft now and I think he's been pretty busy lately.

I have been working on this for the past while, without noticing that people started posting to this issue again. I fit the description that @flovilmart mentioned in his previous post, and I also happen to be on a break from school right now, so I'll take on the job officially if you guys want. I'm actually close to finishing a basic implementation, so I'll post when there's something new.

@TheFanatr that's great. Don't hesitate to mention me on the PR once you submit it. I'll help reviewing the code :)

any updates about .net support ?

@drinvojka If you mean .NET Standard, the master branch of this repository already supports it; you just have to build it from source after cloning or downloading and reference the output assembly, or you can go to the AppVeyor build and download the NuGet package from the artifacts section and reference that instead. If you would like, I can provide a direct link to it, but I would recommend just building from source because it's less annoying than setting up a local NuGet package source/repository just so that you can reference one package. As for stability, the project should work as before, but it is still considered pre-alpha 2.0.0, so tread carefully.

It also occurred to me that if you are referring to LiveQuery specifically, I was working on it at some point, but did not have enough time to finish it. I may at some point, but it should be noted that pretty much anyone can do it because the .NET/CLI API is almost analogous to the Java/JVM API, so it shouldn't require too much work.

Is this being worked on at all? any plans to release it into this library?  I'm thinking about implementing live query support myself if it doesn't yet exist as open source.  I'll probably base it off of the Android/Java implementation.

@JonMcPherson feel free to get started, I believe the architecture of the SDK is settled now and @montymxb could get you started!

@flovilmart Just to update, I have ported the ParseLiveQuery-Android project to .NET Standard 2.0 using the websocket-sharp library complete with unit tests.
I am currently working on integrating this with a Unity 2018.2 project, and will update here once I get that working.
https://github.com/JonMcPherson/parse-live-query-dotnet

That’s awesome! Wonderful!

Hi All, is LiveQuery now available on the .NET SDK by anychance ?

I think this topic is not complicated to implement. I'm using Back4app as Parse cloud provider.
In Back4app enabling LiveQuery is extremely easy.
Then using websocket-sharp library, in less than 1 hour, you can connect to LiveQuery and receive real time notifications. It is very simple. I already was able to do it and I will share an example soon.
@JonMcPherson I checked your code: https://github.com/JonMcPherson/parse-live-query-dotnet. Seems to be very promising, however I think the implementation is little bit over complicated for most scenarios. Still is a good to check it to understand the connection against Parse Server service.

@joechihe This needs to be done; if you believe you can, please make a pull request adding this feature. Otherwise, I will eventually get to it, but it will take a while.

@joechihe This needs to be done; if you believe you can, please make a pull request adding this feature. Otherwise, I will eventually get to it, but it will take a while.

@TheFanatr Oh, I didn't mean to wait until your can implement. Actually I wanted to share that everyone can implement this, and not to wait for you guys to add the feature. You're doing great job! And Parse Server is still a great solution for a backend system

We'll of course still try our best to add it. 😃

@joechihe Yea I mean porting the Java implementation was easy enough, and it works great for me.  That's also the reason the implementation seems a bit verbose and over-complicated. Had I implemented a client myself, I probably would have trimmed it down a bit.

@joechihe Yea I mean porting the Java implementation was easy enough, and it works great for me. That's also the reason the implementation seems a bit verbose and over-complicated. Had I implemented a client myself, I probably would have trimmed it down a bit.

Cool, I will try to create a simplified implementation with the most common scenarios. Still I don't know if it is easier create it as separated library, or create it as functional feature inside Parse SDK library. I have limited time, so I need to go for easiest option for me.
@TheFanatr If I can include it as part of this library, under what namespace or folder is better to add it?

I have LiveQuiry working in unity 2020.1 on the new 2.0.0 code base.
I just grabbed Jon's code and fixed all the breaking changes.
I plan to move forward with cleaning things up and moving things more to events rather then callbacks.
If this is interesting to anyone I am happy to share, just not quite sure the best way to do so.

I have LiveQuiry working in unity 2020.1 on the new 2.0.0 code base.
I just grabbed Jon's code and fixed all the breaking changes.
I plan to move forward with cleaning things up and moving things more to events rather then callbacks.
If this is interesting to anyone I am happy to share, just not quite sure the best way to do so.

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

It is working now, I am just writing up some quality of life improvements for unity (automatically calling on main thread)
I am also doing some automatic local caching and whatnot to make it kinda run like firebase, probably not to everyone's tastes.
If no-one is in a huge rush I'll take a week to test and comment everything then share

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

It is working now, I am just writing up some quality of life improvements for unity (automatically calling on main thread)
I am also doing some automatic local caching and whatnot to make it kinda run like firebase, probably not to everyone's tastes.
If no-one is in a huge rush I'll take a week to test and comment everything then share

Not a problem, take your time to test and possibly comment that would be truly appreciated. Also, would you be able to provide a test on how to make it work?

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.
Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery
I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))
If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

Awesome thanks, will test it out when I can and let you know how it goes!

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.
Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery
I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))
If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.
Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery
I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))
If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

Hello, i can't open the scene with unity ( i'm using mac , don't know if it imply something ) . By the way , could you explain , how to import it on an existing project ?
Thanks you ,

Did someone made JanusMirith job work ? If yes , could you explain how you did import the project , where to put the files ?

I tried to build JonMcPherson's code on  https://github.com/JonMcPherson/parse-live-query-dotnet with visual studio 2019,
but failed because cannot find Parse.Common.Internal and Parse.Core.Internal, anyone have any idea what's going wrong?

I try to use parse livequery dotnet on my winform project so my winform can get real time data from mongo database, but I just cannot solve the issues on  https://github.com/JonMcPherson/parse-live-query-dotnet which failed to build, anybody can help me out will be very appreciated, my email is<EMAIL_ADDRESS>

+1 Unity - C#

+1 c# with Unity - Thanks guys

I did an Initial Port of Live Queries from JonMcPherson in .NET that works on .net 9 and MAUI.
I tested in in Windows and Android but don't think other platforms will be an issue..
https://github.com/YBTopaz8/parse-live-query-dotnet
I even did a video on how to use, if that can help!
https://youtu.be/V-cUjq7Js84

Thanks @YBTopaz8, great work.  Will be testing this soon.  I have a need for iOS devices (for Maui), but seeing this, I think it should work with that as well.

Hi @patkozlowski appreciate reply!
I can AND will test on MacOS likely by end of weekend but I can't test on an iPhone sadly since I don't have a dev account there.
I can always explain my whole workflow when updating/upgrading the SDK/live queries any time needed.
Despite being confident that it works well (after bunch of testing online, security verifications for mutex/atomicity in the new implementation of .NET 9), anyone is free to reach out in any way.
As expected, I did a sort of "soft rework" of the original parse SDK too, just by switching previous ways (UnWrapp(),OnSuccess etc) to the new-streamlined tasks way (always hated them lol!).
Been doing this port for months on end and am happy to share now finally (especially since I got it running for clients for a while and no complaints!)
I forgot to add my contact in previous reply if someone wants to reach out - sorry! it's<EMAIL_ADDRESS>Glad to help @patkozlowski  @mtrezza  !
(tagging some of others for them to see as well since they were waiting for such a long time lol! @hamednasery  @zhaosizheng  )

Hi everyone,
I’ve submitted a PR that addresses this issue by upgrading the SDK to .NET 9 and introducing Live Queries support for .NET platforms, including .NET MAUI.
I look forward to your feedback and collaboration!

🎉 This change has been released in version 4.0.0

This feature is still not implemented; reopening.

All things going well, .NET should be beginning 2025 with Parse LQ support with RX.Net built-in.
We just needed to do a major update


Fix #2445 Remove mention of ptree

Actually, one mention still remains, which I cannot remove unless
DigiCert changes their G4 Trusted Root CA certificate...

This is good I suppose


[DOCS]: I'm confused at why I need to upload a document?

Description
I have had a look at the docs, and maybe I'm understanding the purpose of this.
I have Ollama running fine and using the localhost version.
Why do I need an internet connection to 'upload' files? Why is document interaction not done locally?
Thank you.

You do not need an internet connection to upload a document. This issue does not describe what you are attempting to do, but you can upload, embed and chat with AnythingLLM without an internet connection. Without more details I cannot help debug what exactly you are running into.

@timothycarambat - I had the same question. I'm running a single-user instance is there a way to scan a list of folders for new content? Use case: I use Obsidian for notes. For the most part it's just markdown files. I would love to have anything-llm to scan a list of local directories.
I think to do this on my own, I would use a file sync tool to copy content into the upload folder... but then I started wondering about file versioning and how multiple versions of a file would get added into the vector database.
Do you have a suggestion on how to best handle this use case with the existing product?

@george-holt We have a beta feature for document sync and have an open issues specifically for Obsidan  as well (which we will sync too).
When it comes to syncing we upsert new embeddings when a document changes and don't multi-version it so data is not duplicated!
We are actually going to make the local watcher more robust so you can watch entire directories and sub-files and such - which is why it is in beta. The currently implementation is not very performant so we are going to migrate this to chokdir so we can listen to fs events native in the system without a large overhead.

I know it's a while later, but I'd like to come back to this. I've seen similar issues regarding:

"Document Processor Unavailable"
"We can't upload your files right now because the document processor is offline. Please try again later."

I assumed 'offline' meant no internet, but perhaps I was wrong. Is there something the processor needs?
I can confirm AnythingLLM can connect to the internet, as while I am running Ollama, before that I allowed it to start downloading one of the models.
I have just installed the latest 1.6.4 on a Apple silicone MBP.

As you can see I'm unable to 'upload' files.
Thank you.

I can confirm this solved the issue:
https://giter.vip/mintplex-labs/anything-llm/issues/866

Terminal run: /Users/username/Applications/AnythingLLM.app

However, when I then launch that by clicking the app in ~/Applications, it gives me a warning:


Unable to filter by siteId in gatsby

Description
I've added a second site to a fresh Craft <IP_ADDRESS> install for fr-CA localization. (siteId = 2) But so far I've been unable to query that from the gatsby side. I've tried manually deleting the .cache folder, running gatsby clean, and restarting both the PHP/Nginx servers as well as gatsby develop.
Here's the query working within Craft's GraphiQL:

{
  entries(section: "blogPosts", siteId: "2") {
    title
    ... on blogPosts_blogPosts_Entry {
      richTextDefault
    }
  }
}

and the query I tried in Gatsby's GraphiQL

:
query MyQuery {
  allCraftBlogPostsBlogPostsEntry(filter: {siteId: {eq: 2}}) {
    nodes {
      title
      richTextDefault
    }
  }
}

Steps to reproduce

Create a second site with a different locale
Set up your sections and fields to support the new locale
Create and enable an entry to be published under this locale
restart everything just to make sure.
try to query the new entry data from the gatsby side using a siteId filter

Additional info

Craft version: <IP_ADDRESS>
PHP version: PHP 7.3.24 (cli) (built: Nov  5 2020 22:49:15) ( NTS )
Database driver & version: mysql 5.7
Plugins & versions:
-- Gatsby: only gatsby-source-craft
-- Craft:
"born05/craft-assetusage": "<IP_ADDRESS>",
"craftcms/aws-s3": "1.2.11",
"craftcms/cms": "^<IP_ADDRESS>",
"craftcms/gatsby-helper": "1.0.0-beta.1",
"craftcms/redactor": "2.8.3",
"doublesecretagency/craft-inventory": "2.1.1",
"fruitstudios/linkit": "<IP_ADDRESS>",
"nystudio107/craft-retour": "3.1.42",
"nystudio107/craft-seomatic": "3.3.22",
"spicyweb/craft-fieldlabels": "<IP_ADDRESS>",
"spicyweb/craft-neo": "2.8.13",
"vlucas/phpdotenv": "^3.4.0",
"yiisoft/yii2-redis": "~2.0.0"

The default site content does appear to be accessible:

Thanks for reporting! When sourcing data, Gatsby does not provide ay site ID, so Gatsby data nodes end up with just the default site data in them.

@dan-hoerr this is fixed as of 89db4153c8af134d2d6294c3e943af3f44b162ea and is documented here.

@andris-sevcenko this is great; everything is working as expected on my end now. Thanks so much!


Tests stops but does not produces output files while stopped via CTRL C through Listener

On sending "CTRL+C" keys via listener interface using pyautogui hotkeys, the test exection stops but does not produces the output files. However it works manually.

What are pyautogui hotkeys?

I'm sending CTRL+C using Pyautogui

I have no experience with that tool and thus don't know how it actually sends CTRL-C.
When you manually press CTRL-C, Python maps it to a KeyboardInterrupt exception and Robot handles that separately. Raising that from a listener would be a good way to stop execution from a listener, but I'm not sure does it work. Have you tested that? If it doesn't work, are you interested to study how it could be made to work?

Any updates?

We actually already have #2940 about same/similar issue. Closing this as its duplicate.


Cases for linear assignment algorithm

I was trying to choose an algorithm for linear assignment problem (or bipartite maximum weight matching). I  found the csa algorithm as suggested in this library and compared it with the normal KM algorithm (n^3 version, the version with slack optimization).
Normally it's better, but when it comes to the cases when lefthand side and righthand side are quite different in size.
For example, I generate the input data as following:
100 left hand side nodes, 1000 right hand side nodes and the sparse rate from 1.0, 0.5, 0.1 to 0.01. (The arcs are randomly chosen with a cost randomly chosen from 0 ~ 10^6. The rest of the cost matrix are filled with 0.)
The csa runs approximately 20 times slower than KM.
Have you encountered this problem?

Yes.
Have you tried min cost flow? I do not know how it would perform. But at least, you do not need to fill in with 0s.


Allow environment variable to set route prefix

currently default route for everything is / - this should be configurable, however something like /api/ would be ideal as default that's how Ocular frontend is configured.

Under normal circumstances this shouldn't be required as you would usually run this behind a reverse-proxy. But I can see this making sense in some cases :)

You can now do this via GENESIS_BASE_URL :)


Error pops up again

Since mcpe and block launcher updated this version of Alpha hack does not work. I was wondering if you can go and fix it. Since i am on my pc right now i cant know what it is by heart. Can you see if you can fix it. Thx
It says this when you try to run it
org.mozilla.javascript.EcmaError: TypeError: Cannot find function split in object 0. (AlphaHack v2.js#965)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError2(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.notFunctionError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script.getPasses(AlphaHack v2.js:965)
at script(AlphaHack v2.js:967)
at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.initJustLoadedScript(ScriptManager.java:271)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:196)
at java.lang.Thread.run(Thread.java:818)
-Brexmania123

I will be fixing this in the future, as of now i can't fix this but i can remove the feature that is causing this.


Hi!, Ads not playing with your plugin.

can you tell me what is missing..
Link:  http://xaphanentertainment.com/Clappr-ads/
and also,can your plugin intergrate with clappr player.
https://github.com/clappr/clappr
http://xaphanentertainment.com/update360/mathew.php
waiting your response.
what are the changes,i need to done,if i used  clappr player

I have checked the code and it looks good, the ad scheduler plugin has also trigger play ADs as well. But when videojs request AD video sources it encountered media source not supported error, the web developer tools also show that all AD video has responses with size = 0KB at the same time.
My advice is to try to evaluate ads plugin with local AD video source (it means the VMAP/VAST file may need to be modified to fit the testing environment, and try to load AD video content under the same host) and see if the problem occurs again.

Hi!,
How do i get work with your plugin with this player.
Link: https://github.com/clappr/clappr
any idea?

The videojs-ad-scheduler required many video events to trigger suitable action, it also uses many of player control functions that HTML5 player does not have but for video.js. If you wish to porting ad scheduler to another player framework, it should manually to mapping those function & events to get this plugin work.
For the beginning, videojs-contrib-ads is a good start to evaluate AD integration support, and ones if another player framework supports contentPlay/contentPlayEnded event and duration function, it is possible to work together with ad scheduler.


Fix docs about "LLVM Marshal Methods"

It appears this section might have been AI generated, as it appeared to contain "hallucinated" MSBuild property names. It also didn't make sense that the example set things to false. I updated the section as appropriate.
We also have made the feature non-default in:

https://github.com/dotnet/android/pull/9336

I also linked to GitHub commits, as we have more detailed text inside, generally, than pull requests.

Internal previews

📄 File
🔗 Preview link

docs/whats-new/dotnet-9.md
docs/whats-new/dotnet-9

@jonathanpeppers It wasn't AI generated (AI generated content requires a legal disclaimer) - it was PM generated (see https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview5/dotnetmaui.md#llvm-marshalled-methods).


HARVESTER: enhancement image

Summary
Fixes #

Local uploads of images also need to support automatic matching of harvesterhci.io/os-type and harvesterhci.io/image-type
Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

@n313893254  PTAL


Added Thickness support for BorderThickness and CornerRadius

BorderThickness and CornerRadius are now defined by a Thickness. To get a better performance for uniform borders a fallback to old fast rendering is in place.

Fast rendering needs some improvment dont know how yet. The inner corners dont match if you have a CornerRadius > 0. In my faster rendering path i just take the same radius and it looks smooth.
if (background != null)
{
     context.FillRectangle(background, rect.Deflate(borders), cornerRadius);
}

if (borderBrush != null && borderThickness > 0)
{
     context.DrawRectangle(new Pen(borderBrush, borderThickness), rect.Deflate(borderThickness), cornerRadius);
}

FillRectangle and DrawRectangle seem to produce diffirent rounded corners.

Microsoft checks for UseLayoutRounding and calculates everything in terms of ui scaling (DPI). Should i do the same and how do i do that? Everything about scaling is private.

@Gillibald the layout rounding should have already been applied by the layout pass, so the control should be snapped to pixels. This is done here.
Is it that you want to also snap the border thickness to pixels? To get the layout scaling for a control you can copy this method: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Layout/Layoutable.cs#L698 - it may be something we need to expose publicly, but for the moment just copy it into your codebase and see if it solves your problem, we can look into exposing it once we know it's needed.

Looks like with the current complex render path all pixels are already snapped to boundaries. I no longer use a Pen in my DrawGeometry call. Don't know why a brush is different but for now it is enough. Only have tested Direct2D maybe other Frameworks behave differently.

Thanks for your feedback will have a look at it soon. Looks like my background geometry needs some tweeks. I probably need to use a percentage of the outer corner radius for the inner. Should be manageable.

Render tests are still missing. Probably need some help there.

Looks like everything is fine with ContentPresenter. Couldn't find anything unusual. So in my opinion we are ready to merge.

@danwalmsley did you give it a test? Are we ok to merge?

Thanks @Gillibald ! @danwalmsley has given the 👍 on this in gitter so merged!


Changelog not maintained

Just a simple issue, maybe the start of a discussion on where changelogs are maintained.
Currently only NPM officially lists the latest version:

GitHub releases is out of date:

Also the CHANGELOG.md file is outdated:

Is there any place we should go to see a definitive changelog between versions, other than looking through the commit history for changes and version increases?
This came apparent today dealing with the new default styles (#1054) that broke one of our implementations.
Many thanks

cc @aksonov @joenoon @philipshurpik @lynndylanhurley @cridenour

how about something like this?
https://github.com/skywinder/github-changelog-generator

@lynndylanhurley brilliant! will try to use it

@charpeni I'm going to try this tool with latest PRs, but unit tests fail for all of them (i've tried reverted some but they fails for reverted PRs as well).


Improve local development and testability

To make it easier to build and test the action locally we should:

Introduce a dev container similar to the oracle action
Make the region lookup overridable since it won't work locally
Add support for npm run dev to make sure that changes are properly recompiled automatically
Evaluate if switching to typescript and pulumi would be helpful, see this spike for the oracle setup action for an example

As a first step I have added a local devcontainer in #3


Adam 0.19.1 Update

Update code to support new avro formats

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/261/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/262/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/263/
Test PASSed.


Unable to open a realm at path after set NSFileProtectionNone

Hi there, I've followed the documentation here for solve our current issue with background refresh, exactly with the same default realm and after the migration block.
// Set up
let realm = try! Realm()
// Get our Realm file's parent directory
let folderPath = realm.configuration.fileURL!.URLByDeletingLastPathComponent!.path!
// Disable file protection for this directory
try! NSFileManager.defaultManager().setAttributes([NSFileProtectionKey: NSFileProtectionNone],
                                                  ofItemAtPath: folderPath)

But still, we different errors like if the file was not create yet:

fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=2 "Unable to open a realm at path '/var/mobile/Containers/Data/Application/E5A106ED-CCCC-47B5-B829-FC0F015D205B/Documents/default.realm.lock': open() failed: Operation not permitted." UserInfo={Error Code=2, NSFilePath=/var/mobile/Containers/Data/Application/E5A106ED-CCCC-47B5-B829-FC0F015D205B/Documents/default.realm.lock, Underlying=open("/var/mobile/Containers/Data/Application/E5A106ED-CCCC-47B5-B829-FC0F015D205B/Documents/default.realm.lock") failed: Operation not permitted, NSLocalizedDescription=Unable to open a realm at path '/var/mobile/Containers/Data/Application/E5A106ED-CCCC-47B5-B829-FC0F015D205B/Documents/default.realm.lock': open() failed: Operation not permitted.}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-7<IP_ADDRESS>/src/swift/stdlib/public/core/ErrorType.swift, line 54

Can anyone help how to proper set up with the default realm for background fetching.
XCode 7.2
Realm 1.0.1
Thanks in advance

@yreaction could you please share a sample project that reproduces this behavior? The code you posted should work.

@yreaction just following up on my last request for a reproducible sample project. thanks.

We expiring the same issue. Unfortunately I can't reproduce this every time, but we get many of these crashes in Crashlytics.
Setup is the same as above, setting the directory of realm to NSFileProtectionNone and when we do a background refresh the app crashes with the same error message.

Following up this issue again. If you're having trouble with using Realm while the app is backgrounded, please make sure you've placed the Realm file in a directory and changed the NSFileProtection properties of the directory itself.
Additionally, looking at that sample code, it may look like you're trying to change the protection rights of the Documents folder itself. It may be more appropriate to change the location of the default Realm to its own subfolder that can receive the permission rights.
It should just work. So without any sample code, we can't diagnose the problem.
Since @yreaction hasn't responded since the initial post, I'm going to close this issue. But please feel free to re-open it if more help is required.