FilterBackend doesn't appear to be working

I am trying to make my app list products only if the owner owns them or if it's staff/super user. Am I missing something here? The serializer does not seem to filter. When trying to use has_read_permission, I can only return True or False since I don't have access to self. Is there some way for me to do a comparison on self ?
serializers.py
from rest_framework import serializers
from products.models import Product
from django.conf import settings
from dry_rest_permissions.generics import DRYPermissionsField

class ProductSerializer(serializers.ModelSerializer):
    owner = settings.AUTH_USER_MODEL
    permissions = DRYPermissionsField()

    class Meta:
        model = Product
        fields = ('id', 'owner', 'permissions', 'sku', 'asin', 'name', 'floor', 'ceiling', 'price', 'change_dollars', 'change_percent', 'rev_30d', 'date_updated')

views.py
class ProductFilterBackend(DRYPermissionFiltersBase):
    """
    Filter that request user view his own objects
    """
    def filter_list_queryset(self, request, queryset, view):
        """
        :param request: HTTP Request
        :param queryset: View QuerySet
        :param view: View Instance
        :return: QuerySet filter by the user request as the owner
        """
        return queryset.filter(Q(owner=request.user))

class ProductViewSet(viewsets.ModelViewSet):
    serializer_class = serializers.ProductSerializer
    permission_classes = (permissions.DjangoModelPermissions,)
    filter_backends = (ProductFilterBackend,)
    queryset = Product.objects.all()

    def perform_create(self, serializer):
        serializer.save(owner=self.request.user)

models.py
class BaseProduct(models.Model):
    owner = models.ForeignKey(settings.AUTH_USER_MODEL)

    @staticmethod
    @authenticated_users
    @allow_staff_or_superuser
    def has_read_permission(request):
        return False

    @authenticated_users
    @allow_staff_or_superuser
    def has_object_read_permission(self, request):
        return request.user == self.owner

    @staticmethod
    @authenticated_users
    def has_write_permission(request):
        return False

    @authenticated_users
    def has_object_write_permission(self, request):
        return request.user == self.owner

    slug = models.UUIDField(default=uuid.uuid4, blank=True, editable=False)

    sku = models.CharField("SKU", max_length=255)
    asin = models.CharField("ASIN", max_length=255)
    name = models.TextField("Product Name", max_length=255)
    floor = models.DecimalField("Floor", max_digits=12, decimal_places=2)
    ceiling = models.DecimalField("Ceiling", max_digits=12, decimal_places=2)
    price = models.DecimalField("Price", max_digits=12, decimal_places=2)
    change_dollars = models.DecimalField("Dollar Change", max_digits=12, decimal_places=2)
    change_percent = models.DecimalField("Percent Change", max_digits=12, decimal_places=1)
    rev_30d = models.DecimalField("REV 30D", max_digits=12, decimal_places=2)

    date_updated = models.DateTimeField(blank=True, null=True)
    date_created = models.DateTimeField(auto_now_add=True, blank=True)

    class Meta:
        abstract = True

@python_2_unicode_compatible
class Product(BaseProduct):
    def __str__(self):
        return format(self.name)

Hi Rijvi,
I am a little confused about the question. Is the filter you added not working when you request a list? Because at first glance it looks like you set that up correctly. Or are you saying that the list filter works correctly, but are only having trouble when retrieving a single product because you can't figure out how to access self?
If the problem is the latter...then the issue is that you need to use has_object_read_permission and not just has_read_permission. the signature would be def has_object_read_permission(self, request):
The difference is that has_object_read_permission is an object level permission (meaning it is a permission check on the row level) and has_read_permission is a global permission (meaning a table level permission) that is checked before the object is even retrieved from the database.

Hey, it appears my problem has been resolved.. I was using an incorrect URLs. I will delete this question. Thanks!


[Discussion] Trouble Downloading Spleeter

I am completely new to GitHub, as well as using stuff like Spleeter.  I currently use a Mac with the most recent version (10.15.4) and I've been having trouble downloading Spleeter.  Because I'm a noob when it comes to any sort of coding, I don't really know what I'm doing, and it is hard for me to find a good video on how to properly install and use Spleeter.
During the installation process, I run into a repeating issue.  Command prompt says "Solving Environment," then soon after, "failed with initial frozen solve, Retrying with flexible solve."
Is this a problem with the OS I'm working on? I also didn't install FFmpeg.  Is this needed to run Spleeter?
Any help would be much appreciated, especially since it seems not many use Spleeter on Mac OS.
Thanks!

Though this doesn’t help with any of the coding issues I, or others, may have run into, I did find a website that uses Spleeter and it’s really simple. I recently used it and it seems to work great. ezstems.com
This isn’t any promotion, the website is free to use, just like downloadable Spleeter is, but since I found it too difficult to do it on my computer, using this is good enough for me.

This may be the same issue as #431. Potential solution offered here: https://github.com/deezer/spleeter/issues/431#issuecomment-653918952.


Remove redundant while loop on sub app search

It looks like while loop around sub app search became redundant.
As far as I can see it won't change code if it is removed.

So, I have to admit that patches like this point to the lack of testsuite in the project. Because well, it took me some 5 mins to remember that the idea was to support black-box functioning of mounted sub-apps, i.e. a user shouldn't be concerned if a webapp it mounts is itself consists of subapps, and thus subapp resolution should be done recursively. This is what the outer while loop handles.


refactor(deploy): remove travis deploy settings in favor of netlify

Summary

Travis deploy is no longer needed for gh-pages deployment

Change List (commits, features, bugs, etc)

remove deploy settings from .travis.yml

Related Issues

#305

:tada: This PR is included in version 1.63.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-beta.9 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.63.0 :tada:
The release is available on npm package (@release-1.x dist-tag)
Your semantic-release bot :package::rocket:


Contact page Details

Make a comented list breaking down into small steps how to make the functions needed for contact details and adress.
Make use of the imege below as a guide:

[ ] Write code in .html

[ ] Style by using .css

[ ] Use Maps Embed API
` <iframe
width="600"
height="450"
style="border: 0"
loading="lazy"
allowfullscreen
referrerpolicy="no-referrer-when-downgrade"
src="https://www.google.com/maps/embed/v1/place?key=(YOUR_GOOGLE_API_KEY)
&q=58.969975, 5.733107"

`

[ ] What do we get info from ?  Database, json or API ?

[ ] Use fetch to get info like Email-adress or Google Map.

[ ] Use javascript to display on WEB page. Separate each part in individual functions.

[ ] Where do we get info from ?  Database, json or API ?

We will  have to create it ourselvs i belive. I can ask DevOp team if they will make some database functions for storage purpopes. Othrwise wi will have to make the info ourselfs.
examample:

[ ] Use fetch to get info like Contact detail or address ?

[ ] Use javascript to display on WEB page. Separate each part in individual functions.


Performance optimization for result extract generation

any ideas?

try to load one result at a time (no multiple ajax requests) ?!?


Update starter.dev showcase README to ensure all existing/deployed showcases are listed

We have added a few showcases that are currently missing from the README.

PR #717


Request bottom for Ionizer option of Wall AC

LGThinQ] [AC Living Room] Setting up device!
[3/12/2023, 7:33:22 PM] [LGThinQ] Restoring existing accessory: 0ef5c385-9b43-1977-a145-4cbce96de8c6: AC Living Room (AC RAC_056905)-->
Which device do you want to add? Please describe:
The AC I’m using is DC12RT and it already supports the basic functions. I want to see if it´s possible to enable a bottom to activate and deactivate the Ionizer function
Describe the solution you'd like:
A bottom would solve the problem
Device Data:
[3/12/2023, 7:33:22 PM] [LGThinQ] Device data:  {"modelAppType":"NUTS","brandType":"common","deviceId":"6126c74e-4814-1121-8149-4cbce9761949","deviceType":401,"modelName":"RAC_056905_WW","subModelNm":null,"sensorType":null,"alias":"AC Kitchen","deviceCode":"AI01","networkType":"02","tftYn":"N","guideTypeYn":"Y","guideType":"RAC_TYPE1","pccModelYn":"N","autoOrderYn":"N","drServiceYn":"N","ssid":"IOT","timezoneCode":"Europe/Lisbon","timezoneCodeAlias":"Europe/Lisbon","sdsGuide":"{"deviceCode":"AI01"}","newRegYn":"N","remoteControlType":"","fareTarget":null,"area":"274087","sleep":null,"deviceState":"E","rmsClientId":null,"regDtUtc":"20230310120254000","regIndex":0,"blackboxYn":"Y","groupableYn":"Y","controllableYn":"Y","combinedProductYn":"N","masterYn":"Y","snapshot":{"airState.windStrength":2,"airState.wMode.lowHeating":0,"airState.diagCode":0,"airState.lightingState.displayControl":0,"airState.wDir.hStep":5,"mid":198430342,"airState.energy.onCurrent":0,"airState.wMode.airClean":1,"airState.quality.sensorMon":0,"airState.tempState.target":21,"airState.miscFuncState.autoDryRemainTime":0,"airState.operation":1,"airState.wMode.jet":0,"airState.wDir.vStep":6,"timestamp":1678648698661,"airState.powerSave.basic":0,"fwUpgradeInfo":{"upgSched":{"upgUtc":"0","cmd":"none"}},"static":{"deviceType":"401","countryCode":"PT"},"airState.tempState.current":22.5,"airState.miscFuncState.extraOp":0,"airState.reservation.sleepTime":0,"airState.miscFuncState.autoDry":0,"airState.reservation.targetTimeToStart":0,"meta":{"allDeviceInfoUpdate":false,"messageId":"49c5h0AVT4GYVg-Z-x2DiA"},"online":true,"airState.opMode":4,"airState.reservation.targetTimeToStop":0,"airState.filterMngStates.maxTime":0,"airState.filterMngStates.useTime":0},"manufacture":{"inventoryOrg":"EAT","macAddress":"4C:BC:E9:76:19:49","manufactureModel":"S3-M12JA1ZA","manufacturedAt":"2022-03-11T07:33:32+00:00","registeredAt":"2022-03-11T08:05:22.935258+00:00","salesModel":"S3-M12JA1ZA","serialNo":"203TKTF72473"},"online":true,"platformType":"thinq2","homeDeviceOrder":1,"roomDeviceOrder":-1,"ownershipYn":"Y","modelJsonVer":"12.39","modelJsonUri":"https://objectcontent.lgthinq.com/ab13b52e-f89a-4780-ad6c-e8620d8e5e31?hdnts=exp=1741521800~hmac=549db98398ffd1af5ae5bbd2c82423bcad501741e5156ccbe20686cb0eac5997","appModuleVer":"17.78","appModuleUri":"https://objectcontent.lgthinq.com/6f9e5106-2098-4fff-8382-44224a29519d?hdnts=exp=1701394617~hmac=5b9c7381ced9740f199fbe379f86226fcb0dd261953164fbfed15b0d1bf63b7e","appRestartYn":"Y","appModuleSize":"12867303","langPackProductTypeVer":"78.1","langPackProductTypeUri":"https://objectcontent.lgthinq.com/ccef14be-6562-47e7-873d-500eb65d8d98?hdnts=exp=1737856334~hmac=6aa51eb6d8c12eda6528eb421c8966987f4f0bca3751db52730436b08d64bd27","langPackModelVer":null,"langPackModelUri":null,"roomId":"","fwInfoList":[{"checksum":"00000409","order":1,"partNumber":"SAA38690409"}],"modemInfo":{"appVersion":"clip_hna_v1.9.168","modelName":"RAC_056905_WW","modemType":"RTK_RTL8711am","oneshot":"y","ruleEngine":"y","size":1572864},"existsEntryPopup":"N","fwVer":null,"modemVer":"clip_hna_v1.9.110","subDeviceCount":0,"firebaseLogKey":"P:SD","cardType":"Large","cardControl":"Control","detailDeviceCode":null,"upgradableYn":"N","autoFwDownloadYn":"N"}

please try turn on/off that feature and grab some debug logging like this mqtt message received:, let see which variable changed

Got this:
[LGThinQ] [AC Living Room] Received snapshot:  {"airState.wMode.airClean":1,"meta":{"allDeviceInfoUpdate":false,"messageId":"O-9-QkTbQSmR4-DVNPQYfw"},"mid":260137407,"online":true,"static":{"countryCode":"PT","deviceType":"401"},"timestamp":1678710405520}
[3/13/2023, 12:26:45 PM] [LGThinQ] mqtt message received: {"data":{"state":{"reported":{"airState.wMode.airClean":1,"meta":{"allDeviceInfoUpdate":false,"messageId":"O-9-QkTbQSmR4-DVNPQYfw"},"mid":260137407,"online":true,"static":{"countryCode":"PT","deviceType":"401"},"timestamp":1678710405520}}},"deviceId":"0ef5c385-9b43-1977-a145-4cbce96de8c6","type":"monitoring"}


Add support for NULLs ordering in ECSQL

https://github.com/iTwin/itwinjs-backlog/issues/270

Worth mentioning in NextVersion.md so users are aware of this enhancement?


Question about testing weight sharing of two resnets in test_gluon_estimator.py

https://github.com/apache/incubator-mxnet/blob/master/tests/python/unittest/test_gluon_estimator.py#L423
Actually val_net.output does not share the same parameters with net.output in this case.
And I don't understand what the test case is aimed for. Why only share the output parameters to test weight sharing of two resnets? @liuzh91

Why only share the output parameters to test weight sharing of two resnets?

What I want to do is I need estimator support net for training and val_net for validation on dev dataset. These two networks could be

Exactly same. i.e., With the same architecture and network weights as in the first test case
Partially same. i.e. With the same architecture and share only a subset of network parameters as in the second resnet case
just identical in the architecture but with totally different weights.
In some extreme case, their architecture may also be different. Then you may need to modify evaluate_batch

My first test case already cover the first case, so I use a partially weight shared resnet to test the second case. The third the fourth cases are trivial. So I didn't write new test case for that. But what do you mean by val_net.output does not share the same weight with net.output?

So is Line 420-423 meant to share the same parameters between net.output and val_net.output (other parts are different)? If so, actually Line 420-423 fails to share parameters:
net = gluon.model_zoo.vision.resnet18_v1(pretrained=False, ctx=ctx)
net.output = gluon.nn.Dense(10)
val_net = gluon.model_zoo.vision.resnet18_v1(pretrained=False, ctx=ctx)
val_net.output = gluon.nn.Dense(10, params=net.collect_params())
>>> print(val_net.output.weight)
Parameter resnetv10_weight (shape=(10, 0), dtype=float32)
>>> print(net.output.weight)
Parameter dense0_weight (shape=(10, 0), dtype=float32)
>>> print(net.output.weight.data==val_net.output.weight.data)
False

I think as of the time of testing, you have not initialized network weights. Would you mind testing net.output.weight.data==val_net.output.weight.data after both net and val_net are both initialized?

@liuzh91 these appear to be two separate parameters, as their prefixes differ: resnetv10_weight vs dense0_weight

@liuzh91 these appear to be two separate parameters, as their prefixes differ: resnetv10_weight vs dense0_weight

It should be val_net.output = gluon.nn.Dense(10, params=net.output.collect_params()).


Incorrect dump of block scalar with leading newlines and spaces

The following code dumps invalid YAML:
console.log(yaml.safeDump({ str: '\n    a\nb' }))

Invalid output due to indentation:
str: |-

      a
  b

Leading spaces are handled in general by an indentation indicator (below), but leading newlines seem to thwart this (above):
console.log(yaml.safeDump({ str: '    a\nb' }))

Valid output:
str: |2-
      a
  b

The results above are from version 3.11.0.

Good catch. Thanks for putting in a fix too; it looks clean.


update for unreal engine 5

👀
I'd like to use Muse 2 in Unreal Engine 5.2, so I'm awaiting with bated breath.

Same here for the neurosity headset. Unreal Engine has just recently mentioned 5.3 and the vs side will mandate vs2022 and up. So it would be nice to have a tutorial/update...5.2.1 is already having conflicts with some of the functionality.

working on it but not an expert in unreal engine at all. If you solved it would be great if you share the fix


Fix storing virtual custom attributes with "."

Fix storing report with custom attributes which contains "."
Links [Optional]
https://github.com/ManageIQ/manageiq/pull/11112
Steps for Testing/QA [Optional]

Create new Report
Add custom attribute which contains "."
Save and confirm

@miq-bot add_label ui, reporting

@miq-bot add_label bug


Why are interfaces e.g. TableProps, part of the top-level external API, not exported?

Trying to define a component with an external API e.g.:
import * as React from 'react';
import { useTable } from 'react-aria';
import { useTableState } from 'react-stately';

export type ContentTableProps = TableProps & {

}

export const ContentTable: React.FC<ContentTableProps> = props => {
  return <div>

  </div>;
};

The necessary TableProps here is used in the parameters of the useTable signature, so it should be exported so I can define a new type based on it. Or just so I can create a type-safe object of it. Is there a reason it's not exported?
TableProps here is just an example, from what I can see there are lots of exported APIs which are defined against non-exported interfaces.
FWIW Microsoft makes a TypeScript analysis tool called API Extractor; it's Number 2 Headline Feature is designed to help detect and correct this situation: https://api-extractor.com/

Missing exports: Suppose the awesome-widgets package exports an API function AwesomeButton.draw() that requires a parameter of type DrawStyle, but you forgot to export this enum. Things seem fine at first, but when a developer tries to call that function, they discover that there’s no way to specify the DrawStyle. How to avoid these oversights?

Same issue trying to redefine the props myself so I can make progress -- children is a required prop in TableStateProps (from CollectionBase), but it's defined against complicated types which are not library-exported:
export type CollectionElement<T> = SectionElement<T> | ItemElement<T>;
export type CollectionChildren<T> = CollectionElement<T> | CollectionElement<T>[] | ((item: T) => CollectionElement<T>);
export interface CollectionBase<T> {
  /** The contents of the collection. */
  children: CollectionChildren<T>,

Thanks for reporting this, this looks like something we missed on our end, I don't see a reason why TableProps shouldn't be exported from useTable. That tool seems promising, thanks for letting us know about it!

Great, thanks @LFDanLu ! I would send you a PR if it was just this type missing, but I think yeah probably dozens (hundreds?) of exports missed in this way. So I figured a systemic solution from someone who knows the code base is the better path :) Appreciate your quick response!

We can of course export more things when needed, but in general we are very careful about it so we aren't locked into a giant API surface area we cannot change. In this case, those are options for the useTable hook. If you're building a table component, you probably don't want to expose them as your public API because they contain internal things. The @react-types/table package contains a type for the public API: https://github.com/adobe/react-spectrum/blob/f4a887e60deac526d6eac250f15f898146421660/packages/%40react-types/table/src/index.d.ts#L17-L22.

@devongovett Thanks for looking at this!
I’m not sure that approach accomplishes the stated goal, though. If your API breaks/changes in the future, not exporting the typedefs doesn’t make anything safer. In fact it makes changes more difficult because the consumer doesn’t benefit from the type safety.
Please don’t focus on my comments about API “re” export. That’s not the primary issue here. The problem is that right now I cannot create a type-safe object for any parameters used in these exported functions. The types can only be inferred in-line.
Any type that is part of an exported function or class definition is already public, and so it needs to be exported. Not exporting them only makes it painful and/or type-unsafe to use them. At the risk of repeating myself, this is a serious and common enough mistake that Microsoft wrote a tool which has a primary function of catching it.
And I just want to be clear that I’m super super excited to use this project and have been for some time now :) but this is a blocking issue for me to do so.
(PS at the bottom so as not to be a distraction — with regard to re-exporting types, I agree that I’d rather not take such a direct dependency. But type definitions are complex enough that it’s not easy to tease out what I’d need to redefine myself. Especially because they’re not exported so I can’t use intellisense to guide me 😅)

Btw please let me know if a screen recording or a zoom call would help. Sometimes it can be hard to fully describe nuanced issues like this on text

This should definitely not be a blocker for anyone.
a) Type inference is often good enough. You don't need to annotate every variable, e.g. when calling useTable and passing an options object, TypeScript already knows what the type will be so there is no need to name it. This is how we use most of the hooks ourselves.
b) If you really do need a named type for some reason and it isn't exported, you can do things like use typeof. Example
The example for API extractor that you gave is a case where exporting the type is actually required, because it's an enum which has runtime semantics, rather than a type that is stripped at build time. So you actually couldn't construct an enum value without it being exported. With types, this is less of an issue, because type inference covers most cases.

I’m not sure that approach accomplishes the stated goal, though. If your API breaks/changes in the future, not exporting the typedefs doesn’t make anything safer. In fact it makes changes more difficult because the consumer doesn’t benefit from the type safety.

TypeScript is a structural type system, not a nominal one, so two types may be equivalent but have different names, or be composed of different parts nominally. For example, we often refactor types to break them apart and reuse different pieces via extends or other mechanisms. If we exported every individual type, this would no longer be possible because refactoring would become a breaking change.
We are open to exporting more types where needed, and I agree things are inconsistent today, but we need to be intentional and systematic about it.

I am definitely not requesting or suggesting that you export every single internal type :) Just those which are named in other library-level exports.
I want to sit down and look at this again so I can either revisit my assumptions or give you much clearer feedback about what the stumbling blocks were. Unfortunately I’m out sick right now, so it might be a week or two. Thanks again for jumping in.
-Craig (mobile)

From: Devon Govett @.>
Sent: Friday, June 17, 2022 4:58:01 PM
To: adobe/react-spectrum @.>
Cc: Craig Kovatch @.>; Author @.>
Subject: Re: [adobe/react-spectrum] Why are interfaces e.g. TableProps, part of the top-level external API, not exported? (Issue #3087)
This should definitely not be a blocker for anyone.
a) Type inference is often good enough. You don't need to annotate every variable, e.g. when calling useTable and passing an options object, TypeScript already knows what the type will be so there is no need to name it. This is how we use most of the hooks ourselves.
b) If you really do need a named type for some reason and it isn't exported, you can do things like use typeof. Examplehttps://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBDAnmApnA3gVwM4oCoCGARgDYoC+cAZlBCHAOQACUKBAxjALQFTAEB6GMTIMA3ACgJSVHEKkUABVphsAHjwA+OAF44i3gRAoYKKOpkoIVODnwiUGzZoDaABgC6koA
The example for API extractor that you gave is a case where exporting the type is actually required, because it's an enum which has runtime semantics, rather than a type that is stripped at build time. So you actually couldn't construct an enum value without it being exported. With types, this is less of an issue, because type inference covers most cases.
I’m not sure that approach accomplishes the stated goal, though. If your API breaks/changes in the future, not exporting the typedefs doesn’t make anything safer. In fact it makes changes more difficult because the consumer doesn’t benefit from the type safety.
TypeScript is a structural type system, not a nominal one, so two types may be equivalent but have different names, or be composed of different parts nominally. For example, we often refactor types to break them apart and reuse different pieces via extends or other mechanisms. If we exported every individual type, this would no longer be possible because refactoring would become a breaking change.
We are open to exporting more types where needed, and I agree things are inconsistent today, but we need to be intentional and systematic about it.
—
Reply to this email directly, view it on GitHubhttps://github.com/adobe/react-spectrum/issues/3087#issuecomment-1159309760, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACTWJEIRCWXB6IK7ZAFDZD3VPUGITANCNFSM5UUPVNUA.
You are receiving this because you authored the thread.Message ID: @.***>


Make agents table styling consistent with the other tables

Description
closes #2998
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Code is clear and sufficiently documented
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[x] ~End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )~

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches master, iso5 in 2ee5d014c2e20c28d31fbb7aa00b90f72f30f5ad

Processing #3065.


Prepare for NULLABLE_ARGUMENT_TO_NON_NULL_TYPE

#121318
This PR modifies the code in order not to trigger the incoming diagnostic.
Pre-launch Checklist

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[X] I read the Tree Hygiene wiki page, which explains my responsibilities.
[X] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[X] I signed the CLA.
[X] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Per https://github.com/flutter/flutter/wiki/Tree-hygiene#tests, I think you'll either need to add tests or request an exemption (I think an exemption would be reasonable here, but it's ultimately not my call)

I am under the impression that the exemption is not needed, as long as the bot doesn't ask for tests.
Anyway, a test exemption was requested.

I am under the impression that the exemption is not needed, as long as the bot doesn't ask for tests.
Anyway, a test exemption was requested.

Ahh, good point, you're right, my bad!

test-exempt: Analysis fix before landing the lint in Dart

@asashour are you still interested in working on this PR?

Closing as stale, feel free to re-open if you choose to pick this up again @asashour


What is the name of the image in docker hub?

i have read the README ,but can't find anything about image. Whether to push the image to dockerhub?

Another guy has pushed the newest version to the dockerhub, see #104

thanks you


Stuck loading

Hi. I managed to run this in my local machine, but when I asked a question, what should be parameter for llm, it got stuck.

You probably ran it on another than the default port 9000, right? In the index.html the port is hardcoded into the request. Change it there and see what comes on the terminal. There might be issues you just haven't seen yet since the /chat endpoint was never called.

I don't think so. Like I said, everything pulled up. Just when I wrote the query and hit the button, it just doesn't move forward. If you use the Langchain version of this same one (on the git hub), it has the same issue. I assumed that was some server issue, so I ran it on my local machine, and it has the same issue. So the problem must be that something is outdated.


fix agents tests when using elixir 1.6+

closes https://github.com/bernardolins/fake_server/issues/34
Check if catch_exit returns a tuple before asserting:

if it does (elixir 16+): use the first element for assertion

else: just use the assert with the return value as is

Coverage decreased (-0.9%) to 99.115% when pulling 950a0ee44ebbc52431d3923c3fbc324538f06fa1 on herbstrith:fix_agents_tests_for_1.6+ into fb74f2a65c817939643c70d4178e9e411f89aa50 on bernardolins:master.

Coverage decreased (-0.9%) to 99.115% when pulling 950a0ee44ebbc52431d3923c3fbc324538f06fa1 on herbstrith:fix_agents_tests_for_1.6+ into fb74f2a65c817939643c70d4178e9e411f89aa50 on bernardolins:master.

Coverage decreased (-0.9%) to 99.115% when pulling 950a0ee44ebbc52431d3923c3fbc324538f06fa1 on herbstrith:fix_agents_tests_for_1.6+ into fb74f2a65c817939643c70d4178e9e411f89aa50 on bernardolins:master.

Coverage decreased (-0.9%) to 99.115% when pulling 950a0ee44ebbc52431d3923c3fbc324538f06fa1 on herbstrith:fix_agents_tests_for_1.6+ into fb74f2a65c817939643c70d4178e9e411f89aa50 on bernardolins:master.

Coverage decreased (-0.9%) to 99.115% when pulling 950a0ee44ebbc52431d3923c3fbc324538f06fa1 on herbstrith:fix_agents_tests_for_1.6+ into fb74f2a65c817939643c70d4178e9e411f89aa50 on bernardolins:master.


Implement stalebot

Might be worth us implementing stalebot - we are getting towards 100 issue open now, and stalebot will trim down the list by checking if the issues are abandoned or not.
Let me know you thoughts @ericwb and would this fit in with the  PyCQA plan of things @sigmavirus24 ?

I'd be happy to approve the app for PyCQA but GitHub doesn't send notifications for those requests as of the last time y'all wanted to add something so just give me a ping if/when you do so.


Add web UI

It would be super handy for when I’m on mobile to have a basic web interface where I could give the application a URL or file and get back a link.

I don't have enough time or resources to implement this for now but I agree that it would be pretty nice to have a web UI. Not sure if we should have that in this repository though, maybe I can create rustypaste organization in the future and have a separate repository for that. (e.g. splitting things as rustypaste-server and rustypaste-web)

I've been working on this in my fork and I think with a single change users could be empowered to do this themselves (or not).   If the content type of the landing page could be either changed or configurable to text/html then a user could update the landing page config option with an HTML interface.
Would you be open to a PR to make the landing page content type user configurable?

Thank you for the PR! Would you mind sharing an example how you use this new content type feature? Adding an example to the repository would be also nice!

Yes, I meant to add some docs about it but you merged that PR in so quickly 😄
I’ll open another one this week with an example.

Cool, thank you! I will wait for that one until the next release then. 🐻


Odd scroll behavior and occasional asserts with trackpad

Steps to reproduce

Run flutter create and replace main.dart with the provided code sample.
Run on macOS
Do a scroll gesture over the ListView using the trackpad

Expected results
Smooth scroll with bouncing overscroll effect
Can reverse scroll direction without releasing double tap
Actual results
Scroll appears to jump erratically, no overscroll effect
When at viewport top, after trying to scroll up further cannot reverse scroll down by reversing the swipe direction
Current master:

After reverting to 529a4d2:

Occasionally the following asserts are seen:
Logs
════════ Exception caught by scheduler library ═════════════════════════════════
The following assertion was thrown during a scheduler callback:
'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 898 pos 12: 'elapsedInSeconds >= 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

When the exception was thrown, this was the stack:
#2      AnimationController._tick (package:flutter/src/animation/animation_controller.dart:898:12)
#3      Ticker._tick (package:flutter/src/scheduler/ticker.dart:258:12)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#5      SchedulerBinding.handleBeginFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:1235:11)
#6      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)
#7      SchedulerBinding.handleBeginFrame (package:flutter/src/scheduler/binding.dart:1233:17)
#8      SchedulerBinding._handleBeginFrame (package:flutter/src/scheduler/binding.dart:1150:5)
#9      _invoke1 (dart:ui/hooks.dart:328:13)
#10     PlatformDispatcher._beginFrame (dart:ui/platform_dispatcher.dart:397:5)
#11     _beginFrame (dart:ui/hooks.dart:272:31)
(elided 2 frames from class _AssertionError)

This exception was thrown in the context of a scheduler callback. When the scheduler callback was _registered_ (as opposed to when the exception was thrown), this was the stack:
#2      SchedulerBinding.scheduleFrameCallback (package:flutter/src/scheduler/binding.dart:606:49)
#3      Ticker.scheduleTick (package:flutter/src/scheduler/ticker.dart:274:46)
#4      Ticker.start (package:flutter/src/scheduler/ticker.dart:180:7)
#5      AnimationController._startSimulation (package:flutter/src/animation/animation_controller.dart:818:42)
#6      AnimationController._animateToInternal (package:flutter/src/animation/animation_controller.dart:689:12)
#7      AnimationController.forward (package:flutter/src/animation/animation_controller.dart:498:12)
#8      new InkHighlight (package:flutter/src/material/ink_highlight.dart:60:9)
#9      _InkResponseState.updateHighlight (package:flutter/src/material/ink_well.dart:992:29)
#10     _InkResponseState.handleHoverChange (package:flutter/src/material/ink_well.dart:1269:5)
#11     _InkResponseState.handleMouseEnter (package:flutter/src/material/ink_well.dart:1257:7)
#12     MouseTracker._handleDeviceUpdateMouseEvents (package:flutter/src/rendering/mouse_tracker.dart:423:29)
#13     MouseTracker._handleDeviceUpdate (package:flutter/src/rendering/mouse_tracker.dart:277:5)
#14     MouseTracker.updateAllDevices.<anonymous closure> (package:flutter/src/rendering/mouse_tracker.dart:373:9)
#15     MouseTracker._deviceUpdatePhase (package:flutter/src/rendering/mouse_tracker.dart:205:9)
#16     MouseTracker.updateAllDevices (package:flutter/src/rendering/mouse_tracker.dart:367:5)
#17     RendererBinding._scheduleMouseTrackerUpdate.<anonymous closure> (package:flutter/src/rendering/binding.dart:485:22)
#18     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1392:15)
#19     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1326:11)
#20     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1171:5)
#21     _invoke (dart:ui/hooks.dart:312:13)
#22     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#23     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _FrameCallbackEntry)
════════════════════════════════════════════════════════════════════════════════

Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final ScrollController _scrollController = ScrollController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text('Scroll me'),
            Expanded(
              child: Scrollbar(
                controller: _scrollController,
                child: ScrollConfiguration(
                  behavior: ScrollConfiguration.of(context).copyWith(
                    scrollbars: false,
                    physics: const BouncingScrollPhysics(),
                  ),
                  child: ListView(
                    controller: _scrollController,
                    children: List<ListTile>.generate(50, (index) => ListTile(title: Text('Tile $index'), onTap: () => print('tap! $index'))),
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

@darshankawar - if you have a chance to check to see if this issue was introduced by https://github.com/flutter/flutter/pull/146654, we'd appreciate it.

I can reproduce this issue on master channel; this doesn't occur on stable 3.22.2.
I bisected this to https://github.com/flutter/flutter/commit/92f8455ff8e0850e79c0b7598352d27da4b1be18 which was introduced by https://github.com/flutter/flutter/pull/146654 as @HansMuller mentioned above.

Tailed git bisect
➜  flutter_master git:(92f8455ff8) git bisect bad
92f8455ff8e0850e79c0b7598352d27da4b1be18 is the first bad commit
commit 92f8455ff8e0850e79c0b7598352d27da4b1be18
Author: Hans Muller<EMAIL_ADDRESS>Date:   Tue Jun 4 15:02:12 2024 -0700

    Scrollbar thumb drag gestures now produce one start and one end scroll notification (#146654)

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.22.2 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (31 hours ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop) • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.23.0-13.0.pre.187, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.23.0-13.0.pre.187 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f05095e0b7 (3 hours ago), 2024-06-10 17:31:08 -0700
    • Engine revision 1cdbebee19
    • Dart version 3.5.0 (build 3.5.0-236.0.dev)
    • DevTools version 2.36.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.90.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop) • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

After applying https://github.com/flutter/flutter/pull/149925 I haven't been able to reproduce the crash however it looks like the fact that using the trackpad to drag the scrollbar doesn't cause a bounce is due to this logic from _getPrimaryDelta() in scrollbar.dart:
  // The physics may allow overscroll when actually *scrolling*, but
  // dragging on the scrollbar does not always allow us to enter overscroll.
  switch (ScrollConfiguration.of(context).getPlatform(context)) {
    case TargetPlatform.fuchsia:
    case TargetPlatform.linux:
    case TargetPlatform.macOS:
    case TargetPlatform.windows:
      newPosition = clampDouble(newPosition, position.minScrollExtent, position.maxScrollExtent);

    case TargetPlatform.iOS:
    case TargetPlatform.android:
      // We can only drag the scrollbar into overscroll on mobile
      // platforms, and only then if the physics allow it.
      break;
  }

I believe that we only want to clamp newPosition on desktop platforms if the user has not dragged the scrollbar thumb. Trackpad and touch-screen drags are all routed to the thumb gesture recognizer and its many thumbFoo methods, even though those drag gestures did not originate with a press on the scrollbar thumb.

@HansMuller Lack of overscroll after #146654 is one part of the problem, the other (and maybe more irksome) is how with multiple trackpad scroll gestures the scroll now goes back a bit before advancing in the desired direction. Let's see if I can capture a better recording:

I was out yesterday but will investigate this further today. I'm guessing that the more irksome problem is due to the scrollbar getting the conditions at the start of the drag wrong for trackpad drags. That problem had been masked by the clamp noted above.

Ok, this is interesting. I just realised that the incorrect behaviour also includes reversed scroll direction and no fling.
More interestingly, in our target app after restart, the trackpad scroll behaves the expected way (correct direction, overscroll, fling) but after a while the behaviour changes as if the scrollbar thumb was now dragged directly (reversed direction, no overscroll or fling, jumps when the second finger touches the trackpad). It seems that this happens after hovering over the scrollbar. Somehow I don't see this with the mini repro code here (always incorrect behaviour).

If you comment out the clamp noted in https://github.com/flutter/flutter/issues/149999#issuecomment-2161528397, which is what you'd want for the trackpad case, you'll see seriously bad behavior in the overscroll case. I'm afraid that after staring at this all for a while I haven't still haven't found a fix; will continue investigating tomorrow.

The source of the problem appears to be the coordinate system that a trackpad event's localPosition is reported relative to. Converting the globalPosition of incoming drag event details to the scrollbar coordinate system appears to fix the trackpad scrolling problems.

I think https://github.com/flutter/flutter/pull/150275 - still a WIP - will eliminate at least some of the trackpad issues reported here.

Just gave it a quick go (pull commit 53d83f3) - the overscroll is back and the jump back before advancing is no longer seen. The remaining issues are: scroll direction is reversed, scrolling is too fast and there's no scroll fling.

I've just added support for trackpad fling. Looking into "scroll direction is reversed, scrolling is too fast".  Currently both features match the scrollbar thumb ... not sure how exactly to the right scrolling speed for the trackpad case.

Thanks - fling is back indeed. I'm still puzzled by why in our complete app none of the issues are seen right after app restart and start as soon as any other UI element is hovered or the mouse cursor leaves the window and returns to it. In the recording below I'm repeatedly doing two-finger swipe down on the trackpad, before and after moving the cursor out and back over the window:

Trying to put together minimal repro code but this is proving difficult.

I think I've been able to understand the reason for different behaviour right after app (re)load and after hovering outside of the app window or another UI element. It has to do with what gesture recognisers are in the arena:

after app load (OK trackpad scroll behaviour): VerticalDragGestureRecognizer
after hovering somewhere (NOK trackpad scroll behaviour): VerticalDragGestureRecognizer + 2x _VerticalThumbDragGestureRecognizer
This in turn is because the content of the document painter is updated asynchronously using a method similar to updating EditableText via its TextEditingController value. As a result the scroll extent changes but in RawScrollbarState we don't update the recognizers first created using the _gestures getter when the scroll extent was 0.0. Sounds like we should be handling extent changes in _handleScrollNotification() to have the scrollbar widget rebuild itself.

Submitted #150342 for this part.
I guess another question is: if I hover the pointer over the middle of a scrollable widget (far away from the scrollbar thumb) and do a trackpad scroll gesture, should the thumb gesture recogniser really be responding?

Corrected "scroll direction is reversed, scrolling is too fast", investigating the reload problem

after hovering somewhere (NOK trackpad scroll behaviour): VerticalDragGestureRecognizer + 2x _VerticalThumbDragGestureRecognizer

I have looked at this a bit and, for the moment, can't understand the gesture detector log messages that imply that there are 2 _VerticalThumbDragGestureRecognizer entries in the gestures list.  I've done some checking and can't find any evidence that there two instances (the _gestures getter in scrollbar.dart only returns one).
Could you create a test case that demonstrates the problem in terms of incorrect scrolling behavior?

I guess another question is: if I hover the pointer over the middle of a scrollable widget (far away from the scrollbar thumb) and do a trackpad scroll gesture, should the thumb gesture recogniser really be responding?

Yes, that's the way it has always worked.

I have looked at this a bit and, for the moment, can't understand the gesture detector log messages that imply that there are 2 _VerticalThumbDragGestureRecognizer entries in the gestures list. I've done some checking and can't find any evidence that there two instances (the _gestures getter in scrollbar.dart only returns one).
Could you create a test case that demonstrates the problem in terms of incorrect scrolling behavior?

The different scroll behaviour is shown in the screen recording in #150342 - "OK" is at the beginning, "NOK" is after I move the pointer to tap the app bar. Maybe "OK" is a bit of a misnomer as it's the desired ("same as before #146654") but unexpected behaviour given we have the problems described in this issue here.
I believe the issue described in #150342 isn't that there are 2x _VerticalThumbDragGestureRecognizers in "NOK" case but that there are no thumb recognizers at all in "OK" and so none of the issues described here show up. The reason for the lack of scrollbar thumb is that the _gestures getter returns empty the first time it's called - and then no rebuild happens despite the scroll changing extent. So from what I can tell the events would be:

Widget tree is built, scrollable content is empty.
Since scroll extent is 0, _gestures getter returns an empty map due to _canHandleScrollGestures() condition _effectiveScrollController!.position.maxScrollExtent -> no _VerticalThumbDragGestureRecognizer is created.
EditableText content is updated and is now bigger than the viewport but this metrics update notification isn't handled (see `_handleScrollMetricsNotification()).
Scrolling appears to behave like before #146654.
Tapping elsewhere or hovering outside the app window and back triggers a rebuild of the scrollbar - now _VerticalThumbDragGestureRecognizer is created
Scrolling now behaves with the issues described here

https://github.com/flutter/flutter/pull/150275 updates _handleScrollMetricsNotification(): now the scrollbar rebuilds if the value of `metrics.maxScrollExtent > 0' changes.
At this point I believe I've addressed all of the issues raised here; let me know if everything works correctly for you.

Good stuff, thanks! Will give the PR some testing when back from leave next week.

@HansMuller everything's looking good - huge thanks!


New strategy: linear-vesting-power [linear-vesting-power]

New strategy
Changes proposed in this pull request:

new strategy which is an evolution of balance-of-with-vesting-power. Because Morpho plans to use multiple Vesters with only one balance of, we need to create a strategy adding the voting power from one vesting line, and we will batch the strategies to add multiple vesters + balance-of

Fixes
You added a test for the check "Voting power should not depend on other addresses", which is recomputing the distribution. However, we use Date.now() in the strategy, so the result is different. To fix it, I suggest to mock Date.now() to return always the same timestamp

@julien-devatom It looks good, except that it crosses the 5 requests limit see_no_evil ,
Can combine multiVestTotCaller and multiVestAccruedCaller into a single multicall and separate result? will reduce the number of requests and everything will be good :)

Yes, fixed and moved to 3 queries


Use the correct units in benchmarks

I didn't get your comment, should I use seconds instead of milliseconds?

0.x ms suggests you probably want to report the time from @btime in microseconds.
All the benchmarks don't need to follow the same units as long as you use the same ones for each test in flux3d and kaolin

I don't think this is reflected in the readme, and you missed the graphs I think

I have updated readme on master branch.

Compose => Chain in the plots?

@nirmal-suthar ^

Updated


[RBAC] Add default arg for organization foreign key fields

@Dostonbek1 where is the default organization created?


embebed video

embebed streaming in the website.

i will create a blog post with the embebed video, so we don't need this PR anymore


Looking for a maintainer

Unfortunately, I do not work with Angular 2 anymore and I am not able to develop & maintain this repository.
If one would like to become a contributor please contact me on email.

@atais I don't know how much time I will be able to provide after my regular work, but I would like to maintain this repository.

@souravmondal93 contact me on email for details

@fetrarij is officially a maintainer :-)
For now, we can close this issue.


Too fast clicking brakes collapse

When clicking multiple times fast on node when collapsible is set to true, it breaks it totally, maybe setTimeout to halt animation and calculation and after do that?

Duplicated

hello. may i know this issue is duplicate of which issue? because tree does break when we click on node too fast.. i just installed this yesterday

@nimitwalia89 👉 #8

@bkrem thanks. So this will be resolved in v1.11? Also i noticed 1 thing. if we add multiple trees in different div wrappers zoom and drag only works on the 1st one.

@nimitwalia89 yes, readdressing that ticket is the next priority for me.
Hmm interesting, haven't come across that yet but I have an intuitive idea of what the issue might be here due to the way D3 does DOM node selection.
Could you please open an issue for this, briefly describing what the reproduction case would be? :)


error: Value for SWIFT_VERSION cannot be empty. (in target 'flutter_crashlytics')

Hi, I a, getting this error when trying to build the iOS Project.
error: Value for SWIFT_VERSION cannot be empty. (in target 'flutter_crashlytics')

When opening it with XCode the following error came up:

You need to specify the swift version on your project check https://github.com/kiwi-bop/flutter_crashlytics/issues/22 and https://github.com/kiwi-bop/flutter_crashlytics/issues/3


Added proxyChildren property to ReorderableGridView

proxyChildren widgets would replace the dragging widget. So we can use it to show custom dragging widget with different properties like elevation, color, etc without affecting the look of non-dragging widgets.
https://user-images.githubusercontent.com/72334435/126956992-691c97cb-c0bb-4436-a6b7-6620f3f67e37.mp4

I have add the option dragWidgetBuilder, look like that better create just one proxyChild widget.

Thank you for the suggestion. But in my opinion and case, dragWidgetBuilder doesn't allow enough customization.
For example, my original widget box also contains a number of widgets and includes some major differences from what I want it to look at the time of dragging. Then this technique wouldn't work. as dragWidgetBuilder will be receiving a very different widget and I can only apply modifications over it but not under it.
Also, lets take the example present in the plugin - How would we change the color of numbers when dragging or increase the number by 1 while dragging, etc.

Hello,
I have created a new pull request to solve the issue of "specific customization" which was arising due to dragWidgetBuilder. Please have a look at it: #13.
Thank you.


Roll Dart to 4cf2d3990bac1f1df2f524899e1560a3683f3133

Included CLs:
4cf2d3990b [VM runtime] Store Smi instance type in type test cache when using the interpreter.
a6b1a99f4c Make mixins abstract by default
ab305f2f26 Recover from duplicated declarations
4e32a356e0 Ignore synthetic elements created by the parser
fc04f56430 [infra] Remove deleted Dart 1 builders (app/precomp) from the test matrix
8477dc2131 Update status after 570fd5a7884
1652850381 Compute static types during impact computation
b4341f02db Remove unneeded method rti need
570fd5a788 Error on re-export, export and import of libraries with same name.
4b312b2b8c Support multiple superclasses in the mixin on clause.
8debb4e9db [fuchsia] Add zx_vmo_replace_as_executable calls
d34337aa2d Ignore noSuchMethod() for the purpose of searching concrete member implementations.
b6284b41e3 Revert "[VM] Dart_Initialize no longer crashes after Dart_Cleanup"
94481adbd4 [vm] Only include debugger/profiler slots in RawCode in product mode.
519ee905f9 [VM] Dart_Initialize no longer crashes after Dart_Cleanup
53497549ab [vm] Specialize 'new List()' on kernel AST
afd4cc9d1a [vm/tfa] Infer concrete class of int literals in TFA
a4d48f49e7 [vm/tfa] Infer concrete class of string literals in TFA
9106228a55 [vm, dwarf] Set default_is_stmt to true for compatability with dsymutil.
6ce0dc0006 dartfix stub implementation
e4eb2437b8 Look into superclassConstraints while searching for a member in interfaces.
95d37b0921 Revert "Implement inheritance/override checks from the spec."
355c73d4ee [VM] Remove support for option --no-preview-dart-2
95b8a19a20 Mixin declarations don't have supertype, fix isMoreSpecificThan().
e9586a5d14 [vm] Update workaround for Android Kernel bug (b089d4f).
ef7d144bc7 Add regression test for issue 34392.
56f6c52d58 large_class_declaration_test is slow now.
0ac3b8fff9 [fuchsia] Add missing vm:entry-point annotation
19e844ed5b [dart/fuzzing] Use current directory as SDK top (by default)
58e44c1400 Don't use ClassElementImpl for now in override checking.
62d154f6a3 [vm/bytecode] Record null-initialized fields in bytecode
70cc34df21 Custom format errors and exceptions to show traces
95831136b4 Fix NPE when accessing superclass
836a1d7a88 Implement inheritance/override checks from the spec.
d07039782a Remove redundant resolution
dba8b37d38 [vm] Benchmark for reading kernel bytecode

Looks like cirrus is having trouble downloading or unpacking the Dart SDK for this engine revision.


New layer fixes

A few fixes for the forma/glad layers:

start animation at the end so you can see the full extent of the changes first
speed up the torque animations to match up with the existing loss/gain layer timing
show the correct geographic coverage layer for forma 250

:tada: :)


Error: 0x800c0008 when trying to install

I'm getting this when I attempt to install it from a domain user. I can install apps from the Windows Store from that user without problems otherwise. Also it works fine if I attempt the installation from a local user on the same machine.

I've getting the same issue - Windows 10 Enterprise Build 14316, logged in as a Domain User.

There's something more to this. I can install it at my work where I'm also running as a domain user.
At home where it doesn't work I'm connecting to a SAMBA server and have set ProtectionPolicy =1 in HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb as described in KB3000850.
Btw, @jsamuel1, I'm not sure Enterprise insider builds are officially supported? Don't you have to decrypt the ESD and then use Set-WindowsEdition?

Based on this Microsoft Community post I discovered deactivating "Don't save encrypted pages to disk" in Internet Options works around this error for me, as well as just using the "Restore advanced settings" button.

I tried that but still getting that error. It works for other accounts. It's just broken in mine.

Me too.  I found a few things to try with no luck.  I actually got this the first time but 0x800c0008 in subsequent tries...
Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful! The environment will start momentarily...
Error: 0x800706ba
C:\Users> bash
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms
Type "y" to continue: y
Downloading from the Windows Store... 0%Error: 0x800c0008

We are looking into this and have found a possible cause.
@aweinograd and @poizan42, can you please check that you do not have "Do not save encrypted pages to disk" checked in your internet explorer settings.

You can check this by:
Internet Explorer
Settings
Advanced tab
Scroll down to the Security Section
Verify "Do not save encrypted pages to disk" is not checked

We have found that having this checked causes Error: 0x800c0008.

@russalex Same here.  That option is unchecked for me.

Would it be possible for one of you who are experiencing this issue to look in your event viewer and see if there are any relevent warnings or errors?  Custom Views -> Administrative Events should have some data in there.

@benhillis I was just  about  to do that  for you.  I ran bash at the command prompt again (have received a new update and reboot) and it worked.  I wish I had steps to fix for everyone  else, but i have done nothing to make a change for this other  install a new update and reboot.

The problem persists in 14328. Nothing seems to be showing up in the event log.

The call that fails is URLDownloadToFile(NULL, L"https://go.microsoft.com/fwlink/?LinkID=730581", L"C:\Users\poizan\AppData\Local\Temp\lxss.tar.gz", 0, (a pointer to some CBindStatusCallback))

Tracing lxrun!CBindStatusCallback::OnProgress gives me this:
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_PROXYDETECTING, NULL)
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_FINDINGRESOURCE, L"go.microsoft.com")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_CONNECTING, L"<IP_ADDRESS>")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_SENDINGREQUEST, NULL)
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_RESERVED_7, L"302")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_REDIRECTING, L"https://wsldownload.azureedge.net/trusty-server-cloudimg-amd64-root.tar.gz")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_PROXYDETECTING, NULL)
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_FINDINGRESOURCE, L"wsldownload.azureedge.net")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_CONNECTING, L"<IP_ADDRESS>")
lxrun!CBindStatusCallback::OnProgress(<this>, 0, 0, BINDSTATUS_SENDINGREQUEST, NULL)

(URLDownloadToFile returns here)

We've switched APIs for downloading the file to one that should be more reliable. That change missed ha last flight but it will be in a build available soon. Thanks for the time spent debugging this!

Ok, sounds good. I'm still a bit worried why URLDownloadToFile fails, but that is of course another issue that doesn't have anything to do with the windows subsystem for linux

The api requires a class to implement an interface that is quite complicated. Our old implementation didn't handle some network configurations correctly so we switched to a more simple api.

No longer getting the 0x800c0008 error, but now I'm getting: Unable to download from the Windows Store. Please check your network connection.

@darvid Checking in, are you still getting the error on build 14352?

@russalex I am not, I was able to install it after a few fast ring updates ago. Thanks!

Great! Thanks for conforming. I'll close this issue out.

Oops. Confirming, autocorrect fail.

Based on this Microsoft Community post I discovered deactivating "Don't save encrypted pages to disk" in Internet Options - Advanced works around this error for me, as well as just using the "Restore advanced settings" button.

Just had this 0x800c0008 error during installation of Exact software on server 2022 platform and tried all kinds of solutions for hours until I unchecked the above option. Thank you!!


Add ViewController support

In order to make this framework relevant, it needs to support UIViewController nodes. Try to make a PoC of this.
The hard thing about view controllers is that you cant just present them at will. There are issues related to parentVC state and animated transitions ("warning, trying to present VC on another VC that is not in window", "warning, unbalanced calls to VC appearance"). Some kind of "locking" mechanism needs to be put in place. Hopefully its possible to do something like "if a child gets added, but cant be presented yet, create it, hold on to it, but dont present. Only start presenting when possible (if it hasnt been removed by then)."
The framework needs to be ready to support different kinds of nodes (UIView, UIViewController nodes for now, but also SpriteKit, SceneKit in the future). I have tried this in the past and it makes the implementation much more complicated. Hopefully basic support can be added without many changes to the framework (even in a unsafe way where adding a VC node as child of a View node would crash). This could later be made safe by only exposing the right stuff in node initializers. Moving to a safe underlying impl is desirable but Im not confident I can do it in one shot (so start with a version that works under ideal circumstances and refactor later).
A VC node might have some props that are passed through to its view property, or it might be forced to have exactly one child View node. Try to delay this decision to keep things simple for now.

If stuck, ReactNative should provide solutions. By looking at it briefly, its uses all kinds of different locks for all kinds of animated stuff that requires synchronization. Try to keep it simple if possible (dont try to port ReactNative right away)


Losing connection to Rancher Server UI

Rancher Server Setup

Rancher version: v2.6-head (19f459a)
Installation option (Docker install/Helm Chart):

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): rke1, 1.21.8+rke2r1

Proxy/Cert Details: rancher self-signed

Information about the Cluster

Kubernetes version: 1.21.8+rke2r1
Cluster Type (Local/Downstream): local

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

Standard

Describe the bug

When deploying rke1 local cluster, after some time of use, I seem to be losing connection to the Rancher Server UI randomly. The issue seemed reproducible based on length of use and not specifically what I was doing on the cluster.
To Reproduce

Scenario 1:

Deploy rke1 local HA cluster
On Rancher, create rke2 k8s v1.21 cluster with AWS node driver
Upgrade cluster k8s version from v1.21 to v1.22
Run some other tasks on the server and the connection breaks.

Scenario 2:

Deploy rke1 local HA cluster
Log into Rancher to see setup was successful
Disconnect from your wifi/internet
Reconnect to your wifi/internet
Try to log into Rancher

Result
Scenario 1 & 2: Rancher Server UI is not reachable and gives a timeout error in the browser.
Expected Result

Rancher Server UI is reachable and user is able to log in.
Screenshots

Additional context

logs will be given separately due to sensitive information

this might  be a misconfiguration, send it back to @timhaneunsoo for testing.

This issue was due to misconfiguration. there were two config files in the same directory, one containing unrelated information. After deleting the unrelated config file, I am no longer running into this issue.
Closing this issue as not reproducible.


My secret key is 128 but I want to use 256 blocks of data

Example Encryption key is "0123456789abcdef" and text is "123456"
http://tool.chacuo.net/cryptaes
(choice：ECB，pkcs7padding,256bit,utf-8)
128: Result D89D/OvFrItmxI9ct8JbAg==
256: Result 1jRJ/9iod2JHfvbCFUO2ykRZKmOdm35U0uFWw+Mha0E=
Now how do I get 256 results(1jRJ/9iod2JHfvbCFUO2ykRZKmOdm35U0uFWw+Mha0E=
) with your code

您好 @tangzejin921,
Sorry I haven't gotten to this sooner.
I'm curious how that library works. The output size should not change with the key size, since the output of AES is always 16-byte (128 bit) blocks.
The padding seems to be the wrong for both values. Under PKCS#7 padding, the string "123456" should be extended to 16 bytes. The 128-bit case you provided has a total length of 32 bytes, which is not correct (should be 16 bytes) and the 256 byte case you provided is 60 bytes, which should also be 16 bytes.
Here is an example:
// "123456"
var text = [ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36 ];

var plaintext = aesjs.padding.pkcs7.pad(text);
// Uint8Array [ 49, 50, 51, 52, 53, 54, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 ]

// "0123456789abcdef"
var key16 = [ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 ];

var ciphertext =(new aesjs.ModeOfOperation.ecb(key16)).encrypt(plaintext)
// Uint8Array [ 15, 207, 67, 252, 235, 197, 172, 139, 102, 196, 143, 92, 183, 194, 91, 2 ]

// "0123456789abcdef0123456789abcdef"
var key32 = [ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66 ];

var ciphertext.= (new aesjs.ModeOfOperation.ecb(key32)).encrypt(plaintext)
// Uint8Array [ 9, 27, 251, 100, 120, 71, 167, 86, 88, 149, 147, 67, 201, 195, 69, 245 ]

Does that make sense? It seems that the page you have included is doing something very different.

@tangzejin921 can this issue be closed?


Should allow apps that are in subdirectories

Describe the problem
We should be able to run svelte-kit dev from the root level and have the app in a subdirectory. E.g. /package.json and /my-app/src
This assumes that at a minimum package.json is at the root level so that packages are installed in the root node_modules and that you can run npm scripts when the root dir is your cwd.
The kit.paths.base and the kit.vite.root configurations do not accomplish this per my testing.
Describe the proposed solution
There should be a cli option or svelte.config.js param that would allow apps in subdirectories.
Alternatives considered
The alternative is:

cding in the subdirectory when you need to run commands
having 2 node_modules/package.json in your project (1 at root level and 1 in the subdir)

Importance
Would make my life easier
Additional Information
The context of this request is when you just want to supplement your current project with a svelte component.
Let's say I have an electron app and would like a svelte component to reside in a subdir at the root of the project.

you could do it with pnpm. that's how this repo is setup

you could do it with pnpm. that's how this repo is setup

Thanks for the suggestion. If I get too annoyed with constantly doing the alternative steps I mentioned in my OP and if svelte kit has not implemented this feature, I'll definitely give it a try.
For now I'll just wait.
I do think it should be a built-in feature as it seems pretty basic to me.

You could also set all the files options: https://kit.svelte.dev/docs#configuration-files


Look for superseded patches

The Oracle Client patches change quickly and previous patches cannot be downloaded. When a download link is not found, search for a message with the superseding patch number to display in the output.

Example patch number: https://updates.oracle.com/Orion/SimpleSearch/process_form?search_type=patch&patch_number=34133642&plat_lang=226P&display_type=&search_style=8&orderby=&direction=&old_type_list=&gobuttonpressed=&sortcolpressed=&tab_number=&c_release_parent=product&c_product_child=release


RTL version

I have add RTL version and right now just one page is compatible with RTL

Hi Mr Pazooki
I install your version but right menu do not work for me , it means when i click on menu , sub menu don't show.
Any idea or suggestion ?
thank so much .

Hi @niilaa
Please download last version from here https://github.com/iPazooki/gentelella-RTL
I have not completely changed all pages but form menu these should be no problem !
can you  send me picture ?
email<EMAIL_ADDRESS>

Hi,
Thank  so much  for your on time answer.
this problem solved for me.
I have another problem one of plugin ,i don't know which , quit me from firefox.
I didn't test other browser
it's not important which version rtl or ltr ,problem is.
again , any idea or suggestion.
thank so much .

@niilaa
wow, you mean when you browse the site you firfox will be closed !!!

Yes, and this is picture .

What should i do?

@niilaa
Thanks so much for reporting this bug, I'll fix it soon and inform you as soon as possible

@mshannaq Sure, I'll pull request as soon as possible.

Hi @mshannaq ,
It isn't important which version rtl or ltr the problem is.
 GPU #2: AdapterVendorID2: 0x10de, AdapterDeviceID2: 0x1140, AdapterSubsysID2: 10e91462, AdapterDriverVersion2: <IP_ADDRESS>3FP(D000-L10010-W00000000-T0000) D2D1.1? DWrite? DWrite+ D2D1.1+ D3D11 Layers? D3D11 Layers+ WebGL? EGL? EGL+ GL Context? GL Context+ WebGL+
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: beta
SafeMode: 0
SecondsSinceLastCrash: 72841
StartupTime:<PHONE_NUMBER>
SystemMemoryUsePercentage: 58
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86","buildId":"20160811031722","version":"49.0","vendor":"Mozilla","platformVersion":"49.0","xpcomAbi":"x86-msvc","hotfixVersion":"20160106.01"},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":8113,"virtualMaxMB":4096,"cpu":{"count":4,"cores":2,"vendor":"GenuineIntel","family":6,"model":60,"stepping":3,"l2cacheKB":256,"l3cacheKB":3072,"speedMHz":2494,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2"]},"os":{"name":"Windows_NT","version":"6.1","locale":"fa-IR","servicePackMajor":1,"servicePackMinor":0,"installYear":2014},"hdd":{"profile":{"model":"ATA WDC WD10JPVX-22J","revision":"1A01"},"binary":{"model":"ATA WDC WD10JPVX-22J","revision":"1A01"},"system":{"model":"ATA WDC WD10JPVX-22J","revision":"1A01"}},"gfx":{"D2DEnabled":true,"DWriteEnabled":true,"adapters":[{"description":"Intel(R) HD Graphics 4600","vendorID":"0x8086","deviceID":"0x0416","subsysID":"10e91462","RAM":null,"driver":"igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32","driverVersion":"<IP_ADDRESS>86","driverDate":"5-17-2013","GPUActive":true},{"description":"NVIDIA GeForce GT 720M","vendorID":"0x10de","deviceID":"0x1140","subsysID":"10e91462","RAM":2048,"driver":"nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um","driverVersion":"<IP_ADDRESS>3","driverDate":"3-10-2013","GPUActive":false}],"monitors":[{"screenWidth":1366,"screenHeight":768,"refreshRate":60,"pseudoDisplay":false}],"features":{"compositor":"d3d11","d3d11":{"status":"available","version":45056,"warp":false,"textureSharing":true,"blacklisted":false},"d2d":{"status":"available","version":"1.1"}}},"isWow64":true},"settings":{"blocklistEnabled":true,"e10sEnabled":false,"e10sCohort":"disqualified-control","telemetryEnabled":true,"locale":"en-US","update":{"channel":"beta","enabled":true,"autoDownload":true},"userPrefs":{"browser.cache.disk.capacity":358400,"browser.newtabpage.enhanced":true,"browser.urlbar.suggest.searches":true,"browser.urlbar.userMadeSearchSuggestionsChoice":true},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":true},"profile":{"creationDate":16196},"addons":{"activeAddons":{"{6AC85730-7D0F-4de0-B3FA-21142DD85326}":{"blocklisted":false,"description":"Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies","name":"ColorZilla","userDisabled":false,"appDisabled":false,"version":"2.8.2","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16682,"updateDay":16682,"signedState":2,"isSystem":false},"FirePHPExtension-Build@firephp.org":{"blocklisted":false,"description":"Firebug Extension for PHP based AJAX Development","name":"FirePHP","userDisabled":false,"appDisabled":false,"version":"<IP_ADDRESS>-signed.1-signed","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16217,"updateDay":16920,"signedState":2,"isSystem":false},"testpilot@labs.mozilla.com":{"blocklisted":false,"description":"Help make Firefox better by running user studies.","name":"Test Pilot","userDisabled":false,"appDisabled":false,"version":"<IP_ADDRESS>","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16196,"updateDay":16921,"signedState":2,"isSystem":false},"jid1-u9RbFp9JcoEGGw@jetpack":{"blocklisted":false,"description":"A JavaScript source highlighter.","name":"JavaScript View","userDisabled":false,"appDisabled":false,"version":"<IP_ADDRESS>-signed.1-signed","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16957,"updateDay":16957,"signedState":2,"isSystem":false},"firebug@software.joehewitt.com":{"blocklisted":false,"description":"Web Development Evolved. Firebug is free and open source software distributed under the BSD License.","name":"Firebug","userDisabled":false,"appDisabled":false,"version":"2.0.17","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16217,"updateDay":16961,"signedState":2,"isSystem":false},"jid0-GXjLLfbCoAx0LcltEdFrEkQdQPI@jetpack":{"blocklisted":false,"description":"Screen capture for all or part of any web page. Add annotations, comments, blur sensitive info, and ","name":"Awesome Screenshot - Capture, Annotate & More","userDisabled":false,"appDisabled":false,"version":"3.0.11","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16853,"updateDay":16998,"signedState":2,"isSystem":false},"e10srollout@mozilla.org":{"blocklisted":false,"description":"Staged rollout of Firefox multi-process feature.","name":"Multi-process staged rollout","userDisabled":false,"appDisabled":false,"version":"1.0","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16915,"updateDay":17017,"isSystem":true},"firefox@getpocket.com":{"blocklisted":false,"description":"When you find something you want to view later, put it in Pocket.","name":"Pocket","userDisabled":false,"appDisabled":false,"version":"1.0.4","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16915,"updateDay":17017,"isSystem":true},"webcompat@mozilla.org":{"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compat","userDisabled":false,"appDisabled":false,"version":"1.0","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":17017,"updateDay":17017,"isSystem":true},"helper-sig@savefrom.net":{"blocklisted":false,"description":"Download YouTube, VK.com and 40+ sites in one click","name":"SaveFrom.net - helper","userDisabled":false,"appDisabled":false,"version":"6.57","scope":1,"type":"extension","foreignInstall":false,"hasBinaryComponents":false,"installDay":16851,"updateDay":17024,"signedState":1,"isSystem":false}},"theme":{"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","blocklisted":false,"description":"The default theme.","name":"Default","userDisabled":false,"appDisabled":false,"version":"49.0","scope":4,"foreignInstall":false,"hasBinaryComponents":false,"installDay":16196,"updateDay":17017},"activePlugins":[{"name":"Adobe Acrobat","version":"<IP_ADDRESS>","description":"Adobe PDF Plug-In For Firefox and Netscape 11.0.03","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/pdf","application/vnd.adobe.pdfxml","application/vnd.adobe.x-mars","application/vnd.fdf","application/vnd.adobe.xfdf","application/vnd.adobe.xdp+xml","application/vnd.adobe.xfd+xml"],"updateDay":15836},{"name":"Adobe Acrobat","version":"<IP_ADDRESS>","description":"Adobe PDF Plug-In For Firefox and Netscape 11.0.03","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/pdf","application/vnd.adobe.pdfxml","application/vnd.adobe.x-mars","application/vnd.fdf","application/vnd.adobe.xfdf","application/vnd.adobe.xdp+xml","application/vnd.adobe.xfd+xml"],"updateDay":15836},{"name":"Google Update","version":"<IP_ADDRESS>","description":"Google Update","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-vnd.google.update3webcontrol.3","application/x-vnd.google.oneclickctrl.9"],"updateDay":17013},{"name":"Photo Gallery","version":"16.4.3505.912","description":"NPWLPG","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-wlpg3-detect","application/x-wlpg-detect"],"updateDay":15595},{"name":"Yahoo Application State Plugin","version":"<IP_ADDRESS>","description":"Yahoo Application State Plugin version <IP_ADDRESS>","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-vnd.yahoo.applicationstate"],"updateDay":15392},{"name":"","version":"<IP_ADDRESS>","description":"","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-vnd-intel-webapi-ipt-3.0.72"],"updateDay":15751},{"name":"","version":"<IP_ADDRESS>","description":"Intel web components updater - Installs and updates the Intel web components","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-vnd-intel-webapi-updater"],"updateDay":15751},{"name":"Shockwave Flash","version":"<IP_ADDRESS>","description":"Shockwave Flash 16.0 r0","blocklisted":false,"disabled":false,"clicktoplay":false,"mimeTypes":["application/x-shockwave-flash","application/futuresplash"],"updateDay":16482}],"activeGMPlugins":{"gmp-gmpopenh264":{"version":null,"userDisabled":false,"applyBackgroundUpdates":1},"gmp-eme-adobe":{"version":"17","userDisabled":false,"applyBackgroundUpdates":1},"gmp-widevinecdm":{"version":"<IP_ADDRESS>3","userDisabled":false,"applyBackgroundUpdates":1}},"activeExperiment":{},"persona":null}}
Theme: classic/1.0
Throttleable: 1
TotalPageFile:<PHONE_NUMBER>2
TotalPhysicalMemory:<PHONE_NUMBER>
TotalVirtualMemory:<PHONE_NUMBER>
URL: http://localhost/parsagroup2/panel
UptimeTS: 7519.390307099
Vendor: Mozilla
Version: 49.0
Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 2 : 1 : 6 : 0x20066 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : e70f1aa0-ab8b-11cf-8ca3-00805f48a192
MSAFD Tcpip [UDP/IP] : 2 : 2 : 2 : 17 : 0x20609 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : e70f1aa0-ab8b-11cf-8ca3-00805f48a192
MSAFD Tcpip [RAW/IP] : 2 : 2 : 3 : 0 : 0x20609 : 0xc : %SystemRoot%\system32\mswsock.dll :  : e70f1aa0-ab8b-11cf-8ca3-00805f48a192
MSAFD Tcpip [TCP/IPv6] : 2 : 23 : 1 : 6 : 0x20066 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : f9eab0c0-26d4-11d0-bbbf-00aa006c34e4
MSAFD Tcpip [UDP/IPv6] : 2 : 23 : 2 : 17 : 0x20609 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : f9eab0c0-26d4-11d0-bbbf-00aa006c34e4
MSAFD Tcpip [RAW/IPv6] : 2 : 23 : 3 : 0 : 0x20609 : 0xc : %SystemRoot%\system32\mswsock.dll :  : f9eab0c0-26d4-11d0-bbbf-00aa006c34e4
RSVP TCPv6 Service Provider : 2 : 23 : 1 : 6 : 0x22066 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : 9d60a9e0-337a-11d0-bd88-0000c082e69a
RSVP TCP Service Provider : 2 : 2 : 1 : 6 : 0x22066 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : 9d60a9e0-337a-11d0-bd88-0000c082e69a
RSVP UDPv6 Service Provider : 2 : 23 : 2 : 17 : 0x22609 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : 9d60a9e0-337a-11d0-bd88-0000c082e69a
RSVP UDP Service Provider : 2 : 2 : 2 : 17 : 0x22609 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : 9d60a9e0-337a-11d0-bd88-0000c082e69a
MSAFD RfComm [Bluetooth] : 2 : 32 : 1 : 3 : 0x20026 : 0x8 : %SystemRoot%\system32\mswsock.dll :  : 9fc48064-7298-43e4-b7bd-181f2089792a
useragent_locale: en-US
This report also contains technical information about the state of the application when it crashed.
)

Hi iPazooki ,
In RTL version responsive also have problem

@niilaa
Hi, I'm really sorry but recently I'm very busy with CRM project, I'll fix all mentioned problems as soon as possible.

I solve problem firefox .
but this version isn't responsive.
tnx

hi iPazooki: thank for your work for RTL version. but it's not  Responsive.

Hi,
I made some changes and fixes to the custom-rtl.css
it is now responsive and the menus slide to the correct directions
it was simple to fix just rename the class right_col to left_col and swap left with right and vice versa and also add some text-align in CSS.
the attached file is renamed because this form doesn't accept css extension.
custom-rtl.css.txt
regards


Strange artifacts when stringifying matrices

Howdy,
I'm seeing some strange occurrences when stringifying matrices
Here is the object
{
    matrixMock: [
		[1, 2],
		[3, 4]
	]
}

Here is the JSON representation of the schema object
{
  "matrixMock": {
    "type": "array",
    "items": [
      {
        "type": "array",
        "items": [
          {
            "type": "integer",
            "format": "int32",
            "example": 1
          }
        ],
        "example": [1, 2]
      }
    ],
    "example": [
      [1, 2],
      [3, 4]
    ]
  }
}

Here is the yaml stringified from the schema object
matrixMock:
type: array
items:
  - type: array
    items:
      - type: integer
        format: int32
        example: 1
    example: &a2
      - 1
      - 2
example:
  - *a2
  - - 3
  - 4

The &a2 & *a2 values in the final yaml are what I am inquiring about.

The &a2 is a YAML anchor, and *a2 is an alias referring to that anchor. They're included because the objects in question are the same in the input.
To disable this, use aliasDuplicateObjects: false as documented here: https://eemeli.org/yaml/#createnode-options

THAT is cool, thank you!
Not for me though :)


10.0 merge 2b70be1

@ilmir-k
check please take a look on some modules in this PR:
website_sale_search_tags
stock_picking_barcode
website_sale_search_clear
website_sale_search_custom

There is the error after installing website_sale_search_tags and moving to /shop:
Error message:
'__setitem__' not supported on frozendict

thank you :+1:


Lint-staged throws error and show lint msg 3 times on windows

Plugin throws error after lint message.
I tested this on 2 different PC with windows 10 pro with git-bash and powershell.
And same result, and no idea how can I fix this.
Test repo to reproduce on windows
Package json:
{
  "name": "lint-staged-throw-error-on-windows",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "precommit": "lint-staged"
  },
  "lint-staged": {
    "gitDir": "../../",
    "linters": {
      "*.scss": [
        "stylelint"
      ]
    }
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "husky": "^0.14.2",
    "lint-staged": "^4.0.0",
    "stylelint": "^7.12.0",
    "stylelint-config-standard": "^16.0.0"
  }
}

Test list-staged with precommit husky script
PS E:\git\app\sub1\sub2> npm run precommit

Output:
><EMAIL_ADDRESS>precommit E:\git\app\sub1\sub2
> lint-staged

 > Running tasks for *.scss
   × stylelint
     →  2:12  ×  Expected single space after ":" with a single-line declaration   declaration-colon-space-after
🚫 stylelint found some errors. Please fix them and try committing again.

css/style2.scss
  2:5   ×  Expected indentation of 2 spaces                               indentation
  3:5   ×  Expected indentation of 2 spaces                               indentation
  7:7   ×  Unexpected whitespace at end of line                           no-eol-whitespace
  7:8   ×  Expected single space before "{"                               block-opening-brace-space-before
  9:3   ×  Unexpected longhand value '4px 4px 4px 4px' instead of '4px'   shorthand-property-no-redundant-values
  9:26  ×  Expected a trailing semicolon                                  declaration-block-trailing-semicolon
 10:1   ×  Unexpected missing end-of-source newline                       no-missing-end-of-source-newline

css/style1.scss
 2:5   ×  Expected indentation of 2 spaces                                 indentation
 2:12  ×  Expected single space after ":" with a single-line declaration   declaration-colon-space-after

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "precommit"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>precommit: `lint-staged`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>precommit script 'lint-staged'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the lint-staged-throw-error-on-windows package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     lint-staged
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lint-staged-throw-error-on-windows
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lint-staged-throw-error-on-windows
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\git\app\sub1\sub2\npm-debug.log

Precommit message
PS E:\git\app\sub1\sub2> git commit -am "initial commit"

Output:
husky > npm run -s precommit (node v6.11.0)

25l[21:55:00] Running tasks for *.scss [started]
[21:55:00] stylelint [started]
[21:55:02] stylelint [failed]
[21:55:02] → 🚫 stylelint found some errors. Please fix them and try committing again.

css/style2.scss
  2:5   ×  Expected indentation of 2 spaces                               indentation
  3:5   ×  Expected indentation of 2 spaces                               indentation
  7:7   ×  Unexpected whitespace at end of line                           no-eol-whitespace
  7:8   ×  Expected single space before "{"                               block-opening-brace-space-before
  9:3   ×  Unexpected longhand value '4px 4px 4px 4px' instead of '4px'   shorthand-property-no-redundant-values
  9:26  ×  Expected a trailing semicolon                                  declaration-block-trailing-semicolon
 10:1   ×  Unexpected missing end-of-source newline                       no-missing-end-of-source-newline

css/style1.scss
 2:5   ×  Expected indentation of 2 spaces                                 indentation
 2:12  ×  Expected single space after ":" with a single-line declaration   declaration-colon-space-after

[21:55:02] Running tasks for *.scss [failed]
[21:55:02] → 🚫 stylelint found some errors. Please fix them and try committing again.

css/style2.scss
  2:5   ×  Expected indentation of 2 spaces                               indentation
  3:5   ×  Expected indentation of 2 spaces                               indentation
  7:7   ×  Unexpected whitespace at end of line                           no-eol-whitespace
  7:8   ×  Expected single space before "{"                               block-opening-brace-space-before
  9:3   ×  Unexpected longhand value '4px 4px 4px 4px' instead of '4px'   shorthand-property-no-redundant-values
  9:26  ×  Expected a trailing semicolon                                  declaration-block-trailing-semicolon
 10:1   ×  Unexpected missing end-of-source newline                       no-missing-end-of-source-newline

css/style1.scss
 2:5   ×  Expected indentation of 2 spaces                                 indentation
 2:12  ×  Expected single space after ":" with a single-line declaration   declaration-colon-space-after

25h🚫 stylelint found some errors. Please fix them and try committing again.

css/style2.scss
  2:5   ×  Expected indentation of 2 spaces                               indentation
  3:5   ×  Expected indentation of 2 spaces                               indentation
  7:7   ×  Unexpected whitespace at end of line                           no-eol-whitespace
  7:8   ×  Expected single space before "{"                               block-opening-brace-space-before
  9:3   ×  Unexpected longhand value '4px 4px 4px 4px' instead of '4px'   shorthand-property-no-redundant-values
  9:26  ×  Expected a trailing semicolon                                  declaration-block-trailing-semicolon
 10:1   ×  Unexpected missing end-of-source newline                       no-missing-end-of-source-newline

css/style1.scss
 2:5   ×  Expected indentation of 2 spaces                                 indentation
 2:12  ×  Expected single space after ":" with a single-line declaration   declaration-colon-space-after

25h
husky > pre-commit hook failed (add --no-verify to bypass)

Is this a duplicate of https://github.com/okonet/lint-staged/issues/142?

Oh, I was confused by word "Duplicated" in issue description.
It seems to be same issue.


Feature: make activity name editable

Right now the name is not editable in the GUI because the open item is a flag based on the name of the activity. This should be changed to the imutable ID field.
When a name is edited, all subtasks are to be updated.

Solved the trambu-app version of the application.
Currently not expanding on the trambu-web version as interest in this layer has fallen.


[BUG] when click swap button, lead to increment

https://app.increment.fi/swap

Swap button is hided by firebase config, will test this issue when app  launched

This bug already fixed in Android prod version i1.4.13


Nelson removing manual neighbours defined via FQDN

Expected behaviour
Nelson does not touch manually added iri neighbours
Actual behaviour
If nelson discovers a neighbour that is already added to iri via fqdn, it may remove it
Steps to reproduce
Add neighbour to iri via fqdn(not IP)
Said neighbour also runs Nelson
Nelson discovers and connects to neighbour via IP
Nelson removes neighbour
Basic Info

Operating System: Centos 7
Node (npm) Version: 3.10.10
IRI Version: <IP_ADDRESS>
Nelson version: 2.4.4

Nelson Info

Epoch:
Cycle:
Connected peers:

Just saw #17