Slot value not getting set & showing none while fetching the value of slot

Rasa NLU version (e.g. 0.7.3):
Used backend / pipeline (spacy_sklearn, ...):
Operating system (windows, osx, ...):
Issue: I have slot and entity of same name leavetype. I am trying to get the saved value of slot leavetype. I tried with both way using tracker.getslot("slot") & using tracker.get_latest_entity_values("slot"), None). But I got error

Content of configuration file (if used & relevant):
# class for custom _actions
class Action_testslot(Action):
    def name(self):
        return 'Action_testslot'

    # method for getting the leave_type slot value
    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message("leave type details:")
#       tmp = tracker.get_slot("leavetype")
#       dispatcher.utter_message(tmp)
        tmp = next(tracker.get_latest_entity_values("leavetype"), None)
        print(tmp)
        return

That's not an error, that's just a warning - you can ignore it. Can you enable your debug log and see if the entity is actually being extracted by nlu? Because it looks like it isn't

Ya I knew that warning is of Sklearn library it can be ignore, But the thing is I'm not able to get the slot values.

to enable debugging add --debug when you call rasa_core.run

@akelad yes after enabling debug log I show that entity is not extracting by nlu. So, how can I solve this problem?
What kind of leave you want to take
1: Paid Holiday (Paid Holiday)
2: Unpaid Holiday (Unpaid Holiday)
2018-04-06 11:12:54 DEBUG    rasa_core.processor - Bot utterance 'BotUttered(tex
t: What kind of leave you want to take, data: {
  "buttons": [
    {
      "title": "Paid Holiday",
      "payload": "Paid Holiday"
    },
    {
      "title": "Unpaid Holiday",
      "payload": "Unpaid Holiday"
    }
  ]
})'
2018-04-06 11:12:54 DEBUG    rasa_core.processor - Action 'action_leave' ended w
ith events '[]'
2018-04-06 11:12:54 DEBUG    rasa_core.policies.memoization - Current tracker st
ate [
        [('intent_greet', 1), ('prev_action_greet', 1)]
        [('intent_leave', 1), ('prev_action_listen', 1)]
        [('intent_leave', 1), ('prev_action_leave', 1)]]
2018-04-06 11:12:54 DEBUG    rasa_core.policies.memoization - Used memorised nex
t action '0'
2018-04-06 11:12:54 DEBUG    rasa_core.policies.ensemble - Predicted next action
 'action_listen' with prob 1.00.
2018-04-06 11:12:54 DEBUG    rasa_core.processor - Action 'action_listen' ended
with events '[]'
2018-04-06 11:12:54 DEBUG    rasa_core.processor - Current topic: None
unpaid holiday
2018-04-06 11:13:03 DEBUG    rasa_core.tracker_store - Recreating tracker for id
 'default'
C:\Python35\lib\site-packages\sklearn\preprocessing\label.py:151: DeprecationWar
ning: The truth value of an empty array is ambiguous. Returning False, but in fu
ture this will result in an error. Use `array.size > 0` to check that an array i
s not empty.
  if diff:
2018-04-06 11:13:03 DEBUG    rasa_core.processor - Received user message 'unpaid
 holiday' with intent '{'name': 'leave', 'confidence': 0.2976427068810778}' and
entities '[]'
2018-04-06 11:13:03 DEBUG    rasa_core.processor - Logged UserUtterance - tracke
r now has 10 events
2018-04-06 11:13:03 DEBUG    rasa_core.processor - Current slot values:
        fromdate: None
        leavetype: None
        username: None
        todate: None
2018-04-06 11:13:03 DEBUG    rasa_core.policies.memoization - Current tracker st
ate [
        [('intent_leave', 1), ('prev_action_listen', 1)]
        [('intent_leave', 1), ('prev_action_leave', 1)]
        [('intent_leave', 1), ('prev_action_listen', 1)]]
2018-04-06 11:13:03 DEBUG    rasa_core.policies.ensemble - Predicted next action
 'Action_testslot' with prob 0.55.
leave type details:
None
2018-04-06 11:13:03 DEBUG    rasa_core.processor - Bot utterance 'BotUttered(tex
t: leave type details:, data: null)'
2018-04-06 11:13:04 DEBUG    rasa_core.processor - Action 'Action_testslot' ende
d with events '[]'
2018-04-06 11:13:04 DEBUG    rasa_core.policies.memoization - Current tracker st
ate [
        [('intent_leave', 1), ('prev_action_leave', 1)]
        [('intent_leave', 1), ('prev_action_listen', 1)]
        [('intent_leave', 1), ('prev_Action_testslot', 1)]]
2018-04-06 11:13:04 DEBUG    rasa_core.policies.ensemble - Predicted next action
 'action_listen' with prob 0.72.
2018-04-06 11:13:04 DEBUG    rasa_core.processor - Action 'action_listen' ended
with events '[]'
2018-04-06 11:13:04 DEBUG    rasa_core.processor - Current topic: None

So one option is to add more NLU data with examples of that entity. The fact that the confidence for that intent is so low suggests you don't have any similar training data to that utterance at all? If you're using buttons however, a simple option would be to directly set the payload as the correct intent and entity. So in your domain file this would look like this:
buttons:

text: "Unpaid holiday"
payload: "/leave{"leave_type":"Unpaid holiday"}

Okay let me check this. thanks for response @akelad

@akelad , Yes, this would work. However, if user chooses to type "unpaid holiday", instead of button, you will have the same issue.

yes, that's why I suggested adding more NLU data

I'll close this for now, please let us know if you have any further questions.

Thanks @akelad @amn41  I got the solution. Issue was I am having less NLU data. I have increase the NLU data I got the values in slot.

I want the slot value in python variable, how it can be achieved?

How can I get the slot/entity value from python code?

My Story
Story1

Greeting

utter_greet

Tracking-TrackAnAWB

utter_askawb

Tracking-TrackAnAWB{"awb":<PHONE_NUMBER>1}

slot{"awb": "12345678901"}
utter_awbstatus
slot{"awb": "12345678901"}

goodbye

utter_goodbye
export

My training data excerpt
  {
    "text": "Track<PHONE_NUMBER>1",
    "intent": "Tracking-TrackAnAWB",
    "entities": [
      {
        "start": 6,
        "end": 17,
        "value": "12345678901",
        "entity": "awb"
      }
    ]
  },

entity name awb exactly matching with slot name awb
My domain
slots:
awb:
type: text
intents:

Greeting
Tracking-TrackAnAWB
goodbye
inform

entities:

awb

templates:
utter_greet:
- 'Greetings: Need help with these?  Note: Please click on relevant button to select that transaction.'
utter_askawb:
- 'What is the awb number?'
utter_awbstatus:
- 'Status of awb :{awb} is RCS at Delhi'
utter_goodbye:
- 'Talk to you later.'
- 'Bye bye :('
actions:

utter_greet
utter_goodbye
utter_askawb
utter_awbstatus

My config.yml
language: "en"
pipeline:

name: "nlp_spacy"
name: "tokenizer_spacy"
name: "ner_crf"
name: "intent_featurizer_spacy"
name: "intent_classifier_sklearn"
name: "ner_duckling"
dimensions: ['number']

In this Bot entity value never getting accepted and slot setting not happening. slot awb value returned is None in the final status message.
in the debug it showing
2018-09-19 15:34:32 DEBUG    rasa_core.processor  - Received user message 'Track<PHONE_NUMBER>1' with intent '{'name': 'Tracking-TrackAnAWB', 'confidence': 0.24322239017602057}' and entities '[{'start': 6, 'end': 17, 'text': '12345678901', 'value':<PHONE_NUMBER>1.0, 'confidence': 1.0, 'additional_info': {'value':<PHONE_NUMBER>1.0}, 'entity': 'number', 'extractor': 'ner_duckling'}]
not sure why is this showing entity name number ?
Name: rasa-nlu
Version: 0.13.3
Name: rasa-core
Version: 0.11.3

Please don't cross-post your issues, we'll get back to the new one you opened


firebase_auth onAuthStateChanged doesn't change when user is deleted/disabled from firebase console

Hello,
I'm trying to delete/disable a logged in user (using the firebase console website), but the onAuthStateChanged doesn't get triggered.
The only way I could find was to manually run 'user.reload()' and handle the 'ERROR_USER_DISABLED' or 'ERROR_USER_NOT_FOUND' out of it.
Thank you

Hi @RamiAil
can you please provide your flutter doctor -v ,
your flutter run --verbose
and your pubspec.yaml
or if possible a reproducible minimal code sample.
Thank you

hi @iapicca, this is my sample code, I'm using the provide package
Thank you !
import 'package:firebase_app/wrapper.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:firebase_auth/firebase_auth.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of myapplication.
@override
Widget build(BuildContext context) {
return StreamProvider.value(
value: FirebaseAuth.instance.onAuthStateChanged,
child: MaterialApp(
home: Wrapper(),
),
);
}
}

class Wrapper extends StatelessWidget {
@override
Widget build(BuildContext context) {
final user = Provider.of(context);
if (user == null) {
home = null;
return SignIn();
}
return Home();
}
}

Hi @RamiAil
thank you for the code sample,
can you please provide your flutter doctor -v ,
your flutter run --verbose
and your pubspec.yaml
as well
Thank you

I believe the behaviour you are experiencing is by design. This stackoverflow comment has more details.
If I understand that correctly, the authentication state is thus unchanged, which would explain why onAuthStateChanged is not triggered.

@red42 Thank you so much for clearing it out! it's all about token and revoking it!


clear edge field by id not works

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
acc.Update().ClearOwnerID().ClearOwningUserID().SaveX(ctx)

Issued
UPDATE `accounts` SET `owner_id` = NULL, `updated_at` = ? WHERE `id` = ?

The ClearOwningUserID not set field to null.
The field is defined like
field.String("owningUserID").GoType(models.ID("")).Optional().Nillable()

Expected Behavior 🤔

field set null
Steps to Reproduce 🕹

wenerme/ent-demo
log.Println("clear user id")
petA.Update().ClearOwningUserID().SaveX(ctx)
log.Println("clear user")
petA.Update().ClearOwningUser().SaveX(ctx)

clear id not works
2021/04/09 21:10:16 clear user id
    dialect.go:79: driver.Tx(25e5d935-f52d-42b7-b175-c9d56ea6e900): started
    dialect.go:79: Tx(25e5d935-f52d-42b7-b175-c9d56ea6e900).Query: query=SELECT `id`, `owner_id`, `owner_type`, `owning_user_id`, `name` FROM `pets` WHERE `id` = ? args=[1]
    dialect.go:79: Tx(25e5d935-f52d-42b7-b175-c9d56ea6e900): committed
2021/04/09 21:10:16 clear user
    dialect.go:79: driver.Tx(f4252fc7-84b5-4dbe-9371-2edc4ddf1368): started
    dialect.go:79: Tx(f4252fc7-84b5-4dbe-9371-2edc4ddf1368).Exec: query=UPDATE `pets` SET `owning_user_id` = NULL WHERE `id` = ? args=[1]
    dialect.go:79: Tx(f4252fc7-84b5-4dbe-9371-2edc4ddf1368).Query: query=SELECT `id`, `owner_id`, `owner_type`, `owning_user_id`, `name` FROM `pets` WHERE `id` = ? args=[1]
    dialect.go:79: Tx(f4252fc7-84b5-4dbe-9371-2edc4ddf1368): committed

Your Environment 🌎

Tech
Version

Go
1.17.?

Ent
0.7.?

Database
sqlite

Driver
n/a

Hey @wenerme and thanks for reporting this issue.
Before I'm giving it a look, just to make sure I understand it - it doesn't work for edge fields?

Found the issue. I'll send a patch soon.

@a8m would you mind to release a new version ?

@a8m would you mind to release a new version ?

Done, https://github.com/ent/ent/releases/tag/v0.8.0


After upgrade 0.18 to 0.20.0 the same code run freeze in iOS

After upgrade 0.18 to 0.20.0 the same code run freeze in iOS,init code as follow:
 NSURL *jsCodeLocation;
    jsCodeLocation = [NSURL URLWithString:APP_Config.rnBundlePath];
    RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:jsCodeLocation
                                              moduleProvider:nil
                                               launchOptions:launchOptions];

    APP_Context.bridge = bridge;// APP_Config and APP_Context is global variable

freeze code as follow:
void RCTExecuteOnMainThread(dispatch_block_t block, BOOL sync)
{
  if ([NSThread isMainThread]) {
    block();
  } else if (sync) {
    dispatch_sync(dispatch_get_main_queue(), ^{ // get freeze here
      block();
    });
  } else {
    dispatch_async(dispatch_get_main_queue(), ^{
      block();
    });
  }
}

I compare the different code between 0.18 and 0.20，i change RCTBatchedBridge.m
 dispatch_group_notify(initModulesAndLoadSource, dispatch_get_main_queue(), ^{
    RCTBatchedBridge *strongSelf = weakSelf;
    if (sourceCode && strongSelf.loading) {
            [strongSelf executeSourceCode:sourceCode];
    }
  });

to
 dispatch_group_notify(initModulesAndLoadSource, dispatch_get_main_queue(), ^{
    RCTBatchedBridge *strongSelf = weakSelf;
    if (sourceCode && strongSelf.loading) {
        dispatch_async(bridgeQueue, ^{
            [strongSelf executeSourceCode:sourceCode];
        });
    }
  });

the freeze disappear.So i dont know its right way to solve the problem,anyone can help solve it? thanks.

initWithBundleURL is deprecated. Maybe we should change the default AppDelegate.m to use initWithDelegate?

i have tried, use initWithDelegate is not useful too.

+1
the same problem

+1, same error

It May Help:
        /* RN0.20.0版本,存在潜在的死锁问题,此处可修复.主要可能是因为RN未充分考虑到嵌入RN的Native的场景,某个关键函数,使用同步GCD,引起主线程死锁.后续,如果再次死锁,可尝试将延时加大;当RN代码占到一定数量后,可将此处的延迟关闭,以提高效率. */
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            @strongify(self);
            RCTBridge * bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions: launchOptions];

            self.bridge = bridge;
        });

@ios122
hi , could you post some more details?
it may be solved my problem.
thank u.

Simple,when App Init,don't creat RCTBridge immediately; I do it,after 0.05 seconds;

@ios122
i fixed my bug as your idea
it's not the same problem , but thank you all the same.😄

@ios122 Lazy load is it right way? How long need to delay,how to judge?  I did same to you before,but i don't think it's the rightest way to solve it.

@Arnold134777 @oldashes  up to 0.21.0 It will be OK! It works,but i don't know how!

@ios122 you could read the source code in RCTModuleData.m , the - (void)setBridgeForInstance has changed.It may help you to know that.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/after-upgrade-018-to-0200-the-same-code-run-freeze-in-ios
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub. GitHub issues have voting too, nevertheless
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.


Fix more places that overzealously flush the stream.

Using std::endl will flush the stream with each line which is
definitely not what we want when dumping out a large design.
This speeds up uhdm-dump significantly.
Signed-off-by: Henner Zeller<EMAIL_ADDRESS>

verified with strace: without this, we get write()-calls for each line, with it the regular buffer size of the std::cout stream, which is 4k in my case (which is a typical size on intel platforms as this is exactly one page).

cc: @hs-apotell
context: https://github.com/chipsalliance/Surelog/issues/2962
#745 #743


callbacks

i was looking and comparing the code with Optim.jl, and one of the only missing features is the ability to provide a callback function to short-circuit procedure

Yes, that is correct. Work has been stopping progress here, but I'll soon make another push.

btw, i'm using this package, Mainly for non linear solving, both linesearch and trust region methods (not optimization yet, but ready to use when necessary), and i found some things:

retrieval of results of non linear systems are a little inconsistent. I found is that, the zeros of an NEqProblem using linesearch are stored in res.info.solution, whereas the same results using a trust region approach are stored in res.info.zero . i have a helper function to ease the access:

    function x_sol(res::NLSolvers.ConvergenceInfo{<:NLSolvers.LineSearch, <:Any, <:NLSolvers.NEqOptions})
        res.info.solution
    end

    function x_sol(res::NLSolvers.ConvergenceInfo{<:NLSolvers.TrustRegion, <:Any, <:NLSolvers.NEqOptions})
        return res.info.zero
    end

i use AD with non linear systems, and the jv!(x), and knowing that ForwardDiff.jl doesn't implement such function, i used an implementation in SparseDiffTools.jl:

struct DeivVecTag end

function jacvec!(dy, f, x, v,
                      cache1 = ForwardDiff.Dual{DeivVecTag}.(x, v),
                      cache2 = ForwardDiff.Dual{DeivVecTag}.(x, v))
    cache1 .= Dual{DeivVecTag}.(x, v)
    f(cache2,cache1)
    dy .= partials.(cache2, 1)
end

function jacvec(f, x, v)
    partials.(f(Dual{DeivVecTag}.(x, v)), 1)
end

#inside the auto AD of the NEqProblem, with f!(result, x) as input
    function jv!(x)
        function JacV(dy,v)
            return jacvec!(dy,f!,x,v)
        end
        return LinearMap(JacV,length(x))
    end

Surprisinly, The non linear solving procedure is ForwardDiff-friendly. Ideally dispatching on AbstractVector{<:Dual} and defining frules and rrules could be further advancing on that regard, but the status quo is favorable, as i can't use reverse mode AD with the functions i'm working with.

as always, great work!

retrieval of results of non linear systems are a little inconsistent. I found is that, the zeros of an NEqProblem using linesearch are stored in res.info.solution, whereas the same results using a trust region approach are stored in res.info.zero . i have a helper function to ease the access:

Good point. Ideally it should be retrieved using a solution_candidate function or similar.

. i use AD with non linear systems, and the `jv!(x)`, and knowing that `ForwardDiff.jl` doesn't implement such function, i used an implementation in `SparseDiffTools.jl`:

I suppose you mean that you're using the krylov methods? Yes that interface is not really polished. Happy to improve here.

1. Surprisinly, The non linear solving procedure is ForwardDiff-friendly. Ideally dispatching on `AbstractVector{<:Dual}` and defining `frule`s and `rrules` could be further advancing on that regard, but the status quo is favorable, as i can't use reverse mode AD with the functions i'm working with.

You mean that you've successfully nested your solve in some outer function that you use ForwardDiff on? That's good to hear. Would maybe be a good idea to test that. I am not too familiar with the frules and rrules setup, but it seems like the community is going in that direction, so I'm all for it!
Thanks for taking this for a spin. I hope to spend some time on it very soon


Blue/Green Deployments on AWS Elastic Beanstalk

Is your feature request related to a problem? Please describe.
EB takes minutes to deploy, meanwhile the app is offline the whole time.
Describe the solution you'd like
It would be great to implement a Blue/Green deployment in CI/CD (GitHub actions).
Describe alternatives you've considered
Alternatively could schedule updates at odd hours, but this could lead to missed events or upset users.
Additional context
AWS has a guide for Blue/Green deployments on EB here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.CNAMESwap.html

Fixed in switch to Redis (85c13bd) and AWS copilot (41c1073):
Copilot deployments with Github actions have minimal downtime.


minor corrections and add a section to have a running setup

Thanks for the fixes! About the Centrifugo settings: the values are generated when you install the websockets server and are not fixed: this needs to be documented (people should not copy the settings in the readme but the ones generated by the installws command


Remove internal access modifier from IWindowImpl.GetWindowsZOrder

What is the current behavior?
External platform implementations requiring IWindowImpl cannot be created by third-parties (affects 11.1.0 and 11.1.1 releases).
Fixed issues
Fixes #16553

Is there any other place where there are two lists/spans in a public API returned together where indexes are expected to match?
I'm pretty sure this is an API design violation. A single list should be returned with a container containing the window/zindex. Otherwise all consumers have to check and verify indexing.
This was internal for a reason I think.

On second thought, I don't think this should even be here. This interface is for a single window. We can have a GetZIndez that returns for the window instance ONLY. And higher level functionality should be some place else like a window manager.

@robloo that's a private API.
Public API method has different definition: https://github.com/AvaloniaUI/Avalonia/blob/4c2d9fcda7bb703600e4146cefb790c5cbbb3bb6/src/Avalonia.Controls/Window.cs#L849

@maxkatz6 @MrJul  This is "public" in the sense that 3rd parties are implementing it already. Although I realize Impl are considered unstable. I'm still really disappointed in this design. It's a mistake to have two arrays indexed together like this. It would have been better to use a Tuple within the Span at least.
Moreover, the architecture is very questionable. First, I think we got lazy adding this to the IWindowImpl interface. We are starting to have a number of issues in this area IMO. TopLevel, App, Lifetime and now Window are convoluted and the architecture and functionality was not designed properly between these. I ran across this already with the shutdown logic. Now here with Window being aware of and containing higher-level functionality. It's certainly not properly following a control hierarchy in the case of Window...
@BAndysc
This whole thing feels hacky to me. Your first ideas in the original PR seem much more in-line with what I am thinking here. I'm really surprised the core team asked you to change it. I disagree with the reasoning.

I would have added this functionality to the lifetime and kept sorting internal.
In fact, I would have the existing Windows property always return the windows sorted by ZOrder. Then the actual sorting logic like this doesn't need to be exposed to the application which is very strange especially as a static method in the Window.
The actual functionality to get OS window Z order should have been in IWindowingPlatform.
Proper API design should have been the number 1 consideration in the original PR and it seems it was not.

So long story short I still think all of this is a design mistake even though I agree the functionality is very important to have.

@robloo I suggest opening a new issue for redesign discussion. This PR is only meant to remedy a breaking change for third-party platform implementers that can't be worked around. This makes Avalonia better today with minimal effort. There aren't contract guarantees, so the API could be moved or reworked. I have no strong opinions about this design as I don't use the functionality.

@robloo
I'm answering here a last time, but let's open an issue or discussion if you want to push this further.

It's a mistake to have two arrays indexed together like this. It would have been better to use a Tuple within the Span at least.

While it's not the best API ever, I personally think it's fine enough for a low-level API, especially an internal one. For example Array.Sort(keys, items) (https://learn.microsoft.com/en-us/dotnet/api/system.array.sort?view=net-8.0#system-array-sort-2(-0()-1()) which is very similar has existed forever.

Moreover, the architecture is very questionable. First, I think we got lazy adding this to the IWindowImpl interface.
The actual functionality to get OS window Z order should have been in IWindowingPlatform.

Here I completely agree, it should definitely have been part of IWindowingPlatform or equivalent, it's quite odd on IWindowImpl.

TopLevel, App, Lifetime and now Window are convoluted and the architecture and functionality was not designed properly between these.

I also agree. Lifetime is a bit separate (it's really a higher optional level API compared to the *Impl one), but ITopLevelImpl and IWindowImpl are becoming a bit messy are are due for a cleanup. (For example, I've wished several times that Window wasn't a TopLevel.) But we can discuss that separately.

This is "public" in the sense that 3rd parties are implementing it already

I disagree with this point: these are marked unstable for a reason. Believe me, I've mentioned before v11 that I was disappointed in so many public API being made "semi-internal". But that's also the strength of the system: we're able to change them. People have been warned, and if anyone implemented them, they should be prepared for potential breaking changes. And I'm including myself in those people. It's not a perfect system, it's a difficult balance, but I much prefer this to having everything internal (I'm looking at you, WPF).
That being said, I really hope that in the future their shape would be stable enough to make them officially public again.
Regarding the ZOrder API itself:

Your first ideas in the original PR seem much more in-line with what I am thinking here

The original PR, while being better at first glance, was posing problems in both performance (which isn't good but can sometimes be accepted), and more importantly in correctness. Z-order stability wasn't guaranteed, which completely defeated the purpose of a Z-order.

In fact, I would have the existing Windows property always return the windows sorted by ZOrder.

So paying the overhead of iterating through most windows in the operating system to simply list the app's windows? For an order most people won't care about? Which could change between two properties calls? I'm sorry, but that's a recipe for disaster: a simple for loop without capturing the property could potentially return the same window twice.
I believe that every feature should be "pay for play" as much as possible.

Proper API design should have been the number 1 consideration in the original PR and it seems it was not.

Correctness is probably the number 1 consideration, but I agree that that the API design could have been better. Honestly, I wish we could have a proper API review process, that would work for both the core team and contributors. I know this has been discussed briefly in the past, but I think it's becoming more and more important. Even though I don't agree with everything you said, you raise an important point here.


style code correct rules and name rules

Proposed changes
Issue Number: close #9404
Problem Summary:

change below rules' severity to error and fix original code error:

Need Braces
Missing Switch Default
Fall Through
No Finalizer
Member Name
Constant Name
Parameter Name
LambdaParameterName
Local Variable Name
Class Type Parameter Name
Static Variable Name
Method Name
Abbreviation As Word In Name

update Intellij IDEA style xml
add inline suppression filter to check style xml

Checklist(Required)

Does it affect the original behavior: (No)
Has unit tests been added: (No Need)
Has document been added or modified: (No Need)
Does it need to update dependencies: (No)
Are there any changes that cannot be rolled back: (No)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

Wow, do you format it using a tool? I'm refactoring date/datetime type (#9611)  these days and meet lots of format problems, so I formatted so many codes by hand. But I think there will be many conflicts when this PR is merged.

just like step 1 #9460 , all fe check style error is not related to the rules this patch care about


Add angolia supported search

Add search to the site.

I don't think the site has been indexed yet, so I don't think the search functionality will actually work yet. But the search bar is there and should be configured correctly.


iOS using TFLiteC API TfLiteInterpreterInvoke() cause memory continues increasing on Metal delegate mode

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):not really
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: iPhone 12
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.7.0
GPU model and memory: GPU(Metal)

Describe the current behavior
I'm using TensorFlowLiteC API to handle video per frame. The model I used is trained by myself. The memory continues increasing while using Metal delegate after called TfLiteInterpreterInvoke() method.  This issue not happens while using CPU mode on iOS, and not happened on Android using GPU.
I'm running this demo code 30 times to simulate a 30 seconds duration video. And invoke the interpreter 30 times in one second to simulate 30 fps. The picture bellow shows memory decrease between the twice play event.

Note: If the video is long enough,  the app will crash!!!
The memory usage using CPU mode:

Describe the expected behavior
Hope the memory not increasing continuously while using Metal delegate on iOS.
Standalone code to reproduce the issue
The attachment bellow is the demo project to reproduce the issue. Please execute pod install  and then configure the code signing to run on iPhone (not simulator). After launch the app, please press the button start. You can see the issue.
PS: I don't think the model is the problem. Because using mobilenet_v1_1.0_224.tflite model has the same problem.
demo.zip
Any suggestion is appreciate. Thanks.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
there seems no useful log output

I think I have resolve the problem, I add @autoreleasepool{} before invoke interpreter. I will close the issue. Thank you!

@fakeyee did this indeed solve the problem?


Add Ckeditor

Ckeditor can be add under lfm_public publishing?

Please use https://github.com/UniSharp/laravel-ckeditor.
This repo contains main ckeditor, themes, jquery adapter, and many other stuff.
I think it is better to seperate ckeditor and filemanager.


Dapr Control Plane Operator as a way to deploy Dapr control plane

Need to mention in the docs that you can install the Dapr Control plane via this operator now
https://operatorhub.io/operator/dapr-kubernetes-operator
This can put here https://v1-11.docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/ as a new deployment choice. Will need to be need test that this deploys all service from the Dapr control plane.
Also suggest raise an issue on the https://github.com/dapr-sandbox/dapr-kubernetes-operator site to say this installs all the Dapr control plane services . Currently this is not clear.

Need to mention in the docs that you can install the Dapr Control plane via this operator now https://operatorhub.io/operator/dapr-kubernetes-operator
This can put here https://v1-11.docs.dapr.io/operations/hosting/kubernetes/kubernetes-deploy/ as a new deployment choice.

Should the the doc redirect to the dapr-kuberpenets-operator repo  ? or it should be a dedicated section with all the instructions ? Note that at this stage, the operator does not yet have branches and release channels that tracks dapr releases so the operator will install the dapr release it was built for.

Will need to be need test that this deploys all service from the Dapr control plane.

At this stage we have a minimal test  that check for the deployment of the following control plane components:

dapr-operator
dapr-sentry
dapr-sidecar-injector

Also suggest raise an issue on the https://github.com/dapr-sandbox/dapr-kubernetes-operator site to say this installs all the Dapr control plane services . Currently this is not clear.

Added some info here: https://github.com/dapr-sandbox/dapr-kubernetes-operator/pull/39

@msfussell friendly bump


DeleteObjects: ensure 400 MalformedXML is returned for empty list

Ref: https://github.com/ceph/ceph/pull/60579

@ivancich Thanks for QAing the original PR. I'm afraid I forgot to mention this test case boldly in the main PR, and you might have missed this running. Can you please have a look and maybe run it by any next QA to make sure it's not breaking anything, and we let this go through as well?


NGCC post-install script doesn't catch all libraries

🐞 Bug report
Command (mark with an x)

[x] new
[ ] build
[x] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

Yes, but only due to ivy/ngcc postinstall script
Description
 A clear and concise description of the problem...
Starting with a fresh project with the RC CLI, the postinstall script for ngcc doesn't cover all libraries and use cases for third-party libs.
🔬 Minimal Reproduction

ng new sampleApp
cd sampleApp
npm install @ionic-native/core@beta @ionic-native/status-bar@beta
Add the following to app.module.ts:

  import { BrowserModule } from '@angular/platform-browser';
  import { NgModule } from '@angular/core';
+ import { StatusBar } from '@ionic-native/status-bar/ngx'
  import { AppRoutingModule } from './app-routing.module';
  import { AppComponent } from './app.component';

  @NgModule({
    declarations: [
      AppComponent
    ],
    imports: [
      BrowserModule,
      AppRoutingModule
    ],
+   providers: [StatusBar],
    bootstrap: [AppComponent]
  })
  export class AppModule { }

npm run postinstall
ng serve -o

🔥 Exception or Error

Error: Angular JIT compilation failed: '@angular/compiler' not loaded!
  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.
  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?

If you just run ngcc fully without any arguments, the app will start successfully. So not sure if the postinstall script should be changed, or if ionic-native should change how they build/package their packages.
cc @mgechev

The problem is that @icon-native/status-bar/ngx is not a real entry-point. It has no package.json, which means that the TS compiler treats the import in app.module.ts as a local import (similar to ./app.component).
This means that the TS compiler never tries to resolve @icon-native/status-bar/ngx as an npm package, instead it just adds index.d.ts and carries on. Since it doesn't try to resolve it as an npm package, the CLI integration does not even trigger ngcc for this package.
Adding<EMAIL_ADDRESS>containing:
{
    "name": "ngx",
    "typings": "./index.d.ts",
    "module": "./index.js"
}

is enough to fix it.

I tested this out, but ngcc through this error
Compiling @ionic-native/status-bar : module as esm5
Error: Error on worker #1: Error: Tried to overwrite<EMAIL_ADDRESS>with an ngcc back up file, which is disallowed.
    at NewEntryPointFileWriter.InPlaceFileWriter.writeFileAndBackup (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/writing/in_place_file_writer.js:36:23)
    at NewEntryPointFileWriter.writeFile (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.js:63:53)
    at /Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.js:45:69
    at Array.forEach (<anonymous>)
    at NewEntryPointFileWriter.writeBundle (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.js:45:30)
    at ClusterWorker.compile (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/main.js:167:32)
    at Worker.<anonymous> (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:44:42)
    at Worker.emit (events.js:182:13)
    at process.Worker.process.on (internal/cluster/worker.js:28:12)
    at process.emit (events.js:182:13)
    at ClusterMaster.onWorkerMessage (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:158:27)
    at /Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:46:95
    at ClusterMaster.<anonymous> (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:238:57)
    at step (/Users/mhartington/GitHub/v9-sample/node_modules/tslib/tslib.js:136:27)
    at Object.next (/Users/mhartington/GitHub/v9-sample/node_modules/tslib/tslib.js:117:57)
    at /Users/mhartington/GitHub/v9-sample/node_modules/tslib/tslib.js:110:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/Users/mhartington/GitHub/v9-sample/node_modules/tslib/tslib.js:106:16)
    at EventEmitter.<anonymous> (/Users/mhartington/GitHub/v9-sample/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:232:32)
    at EventEmitter.emit (events.js:182:13)

Though it does serve the app correctly.

@mhartington - sorry for the delay in replying (xmas, etc).
This error indicates that two package entry-points are referencing @ionic-native/status-bar/ngx/index.d.ts as part of their program. I suspect that this is because the new package.json and the ngcc.config.js are conflicting with each other. Once you have<EMAIL_ADDRESS>in there, then the ngcc.config.js should be redundant and not needed.


Resource History Broken

As reported on Facebook PM

@dragonjet I had this issue sometime before the maintenance that ended on Friday after like getting the quest trackers to work. Not that quest tracking broke anything but pretty sure by then the screenshot I had at the time was broken for two of the three graphs. It looks like the third graph is working ok.
Presumably clearing the resource counts from within dev. console inside strategy page would make it work - at the expense of losing any previous resource history.

I told him to reinstall and he did, and knowing it clears all your logs, it happened that it wasn't fixed

Interesting. :open_mouth:


How to deploy as a web application?

Firstly, a big THANK YOU to @ramedina86 for making GUI development fun and efficient again!
I am creating a KNN demo for teaching purposes. Initially I tried Anvil (https://knn-demo.anvil.app/). Then Dash on Jupyter. Both experience was so-so. By chance, I came across StreamSync (the pigeon demo) and decided to give it a try. It was AWESOME! I love the separation of UI from backend code and the elegant UI designer.
So my KNN demo in StreamSync is now on GitHub (https://github.com/crxi/knn). I am looking for a way to deploy it (like the Anvil version). How do I go about doing that? Do I have to run it in Docker and host it on Google cloud? I am looking for a low-cost solution so that I can let my students interact with it instead of just watching me demo it over Zoom lessons. Any advice is appreciated.

Hi @crxi, I have developped a blueprint that show on how to use streamsync inside gitpod. We don't have option yet to host automatically streamsync project. It's recommanded to package it with docker.
Gitpod should match your usecase to allow students to use your code.

I can open a PR on your repo to implement this mechanism if it may help you. Let me know


Update b4 submission space

node ID: 0e1bacee0d551372

rejected:ID2
reason: It looks like you are trying to submit ID2, however it seems like the following submission critieria are problematic:address1 seems to be incorrect.

rejected:ID2
reason: It looks like you are trying to submit ID2, however it seems like the following submission critieria are problematic:address1 seems to be incorrect.

confirmed:B3

confirmed:B3

rejected:ID4
reason:We cannot fully verify this submission. It looks like you are trying to submit ID4, however, it seems like we cannot find the transaction between your account and Concordium Test Account.

rejected:ID4
reason:We cannot fully verify this submission. It looks like you are trying to submit ID4, however, it seems like we cannot find the transaction between your account and Concordium Test Account.

confirmed:B4
address:4KbMCjfSJzuwoTdW1VhChaDhAuXnsSGVRxP1jA4BTtwixizdqk
baker:569

confirmed:B4
address:4KbMCjfSJzuwoTdW1VhChaDhAuXnsSGVRxP1jA4BTtwixizdqk
baker:569

confirmed:ID4
address:4KbMCjfSJzuwoTdW1VhChaDhAuXnsSGVRxP1jA4BTtwixizdqk
DevideDetails:verified

confirmed:ID4
address:4KbMCjfSJzuwoTdW1VhChaDhAuXnsSGVRxP1jA4BTtwixizdqk
DevideDetails:verified

form submitted utc +3


Add a check submodule that provides a mini property-based testing framework

This module should be gated behind a check cargo feature.
It should provide a really simple property-based testing framework for combining Arbitrary-based generators with your oracles/property functions that can be used as smoke tests in local development and on CI, where it is often not always feasible to run the full cargo fuzz targets for a while due to various constraints (build time, length of time required to run, etc...). It would not be intended to replace long-running fuzzers leveraging coverage-guided feedback in the background, it would be a compliment to them for the local quick-test and CI uses previously described.
This is something I've wanted for a while, because I'm tired of doing it crappily by hand, but have obviously never gotten around to.
But, at some point, @matklad made the arbtest crate which is exactly what I'd been imagining, it's fantastic. Thank you very much for creating this, @matklad!
So my purposes for opening this issue are to gauge two things:

Other arbitrary maintainers: how do you feel about having such a feature/module in this crate?
@matklad: how do you feel about merging arbtest into this crate, as arbitrary::check?

The primary advantages I see of moving arbtest into arbitrary::check, instead of maintaining the current state with separate crates are:

More discoverability
Simpler usage for downstream users: don't need to depend on two different things; don't need to worry about version wrangling, especially if we ever make a breaking release of arbitrary
Tighter integration: can make sure that existing arbitrary features are properly taken advantage of by arbtest/arbitrary::check and can make sure that as we develop new arbitrary features they are designed in such a way that arbtest/arbitrary::check can actually leverage them, resulting in better designs and features overall

So, what do y'all think?

Yes please! I’d be delighted to not have to maintain arbtest, especially given that porting it to Zig for TigerBeetle is on my todo list!
I guess my only concern here is that there’s ecosystem pressure to add macros as an entry point to property tests, and to also pass T: Arbitrary rather than just unstructured directly (eg, I think cargo-fuzz works that way).
The macro-less API of arbtest that takes a raw unstructured is very intentional. This is required if you do distributed-systems-like testing where you don’t generate input up-front, but rather, in a loop, react to the current state of the system.
So, I would strongly prefer if this peculiarity of the API is preserved (but even if it isn`t no big deal, I can write some code of mine to that effect).

One other thing here: the shrinking in arbtest is criminally dumb (the input stream of bytes is just discarded, there’s no attempt to tweak it locally), so it might be good to spend some effort investigating whether it can be made 10x more efficient with little effort.
https://github.com/jlink/shrinking-challenge is one set of benchmarks there (hat tip to @stevana for that!)

I’d be delighted to not have to maintain arbtest

You'd be very welcome to continue helping out with arbitrary::check when you have cycles, if we go down this route :)

The macro-less API of arbtest that takes a raw unstructured is very intentional.

I think maintaining a macro-less API is very doable.
We should be able to do something like
pub fn check_raw(property: impl Fn(&mut Unstructured) -> Result<()>) {
    // ...
}

pub fn check<A>(property: impl Fn(A) -> Result<()>)
where
    A: Arbitrary,
{
    check_raw(|u| property(u.arbitrary_take_rest()?));
}

Although, at the risk of opening the bike shedding, I think we want to use a Check builder where you can do things like configure the length of time to run checks or a minimum number of iterations, and then with Check::{run,run_raw} methods to actually run the check once it is done being configured.

the shrinking in arbtest is criminally dumb ... so it might be good to spend some effort investigating whether it can be made 10x more efficient with little effort

Would be neat if someone could investigate this, but I personally don't have the cycles for it.


access path to the project from a crate's build script

I'm writing a library that needs to access the CARGO_MANIFEST_DIR from the app that uses it, is that possible? The objective is read application assets at compile time.

I'm not sure I understand the question.  You can can call std::env::var("CARGO_MANIFEST_DIR") from a build script to get the project directory (whichever project is using the build script).

When cargo starts building my crate (let's name it my-tool), it assigns the CARGO_MANIFEST_DIR environment variable to the path of this crate's manifest (e.g. /path/to/my-tool). What I'd like to know is the path of the manifest of the crate that's using my-tool as a dependency (let's name it my-app).
Is the only option here to force the my-app/build.rs to call my-tool/build.rs?

Ah, I think I see what you mean.  No, dependencies do not have any information about the packages that depend on it.  Your my-app/build.rs would need to specy my-tool as a build dependency and interact with it via its API.  Perhaps an analogous example is the cc crate where you load it as a build dependency, and then pass relative paths into it.

Alright, thank you for the help!


Consider a new MSVC+CMake build with GCS+gRPC enabled

The behavior on Windows is sufficiently different (see #4221) that maybe
a new MSVC+CMake build with GCS+gRPC enabled is worthwhile.

On second thought, I am not sure this build would add enough value.  #4221 suggest adding a build where the protobuf flags are not present when compiling GCS+gRPC, and the current builds already do that.


1.12.2 Flux Network Devices Disappear off of the Network when leaving the chunk and do not come back.

Hey, I'm running into a problem where I set up a network with:
1 Flux Plug,
1 Network Controller
1 Basic Flux Storage
1 Flux Point
And set Chunk: Loaded. but when I leave the area some, if not all, of the devices drop from the network.
I have a correct set-up as it is charging items when I am present, but when I leave and return and look at "Network Connections" the list is either empty and none of my flux points/plugs are lit up, or I might have a single flux plug connected or my Controller and Flux Storage Device connected. And the only way I can get them back on the network is to mine them and place them again manually setting them back to the right network. It isn't even like I am trying to connect devices from super far away or different dimensions, the machines are all within the same chunk of each other. Also this is happening in Multiplayer, haven't tried SinglePlayer

What forge / flux versions, do the connections appear as un-chunk loaded?

I updated to the newest version of Flux, I didn't realize there was a newer one when I posted this, so I'll close this. This was for 3.0.8

My flux points and plugs continue to reset and disappear off of the network in 3.0.10  when I leave the chunk or log off.  It shows they are part of the network when I click on them, but when I go to "Network Connections" there is nothing there. Or at times only parts of the network. And Yes, Chunk Loading is on.

#217 #216 - I believe all of these issue are linked. getDisplayStack is wrongly reloading the chunk, which causes the network to believe the point is both connected/disconnected simultaneously. I'll investigate soon.


[ARC-584] Conditionally load mpyl from lib or sources

depending on whether we run a local or ci build
branch: feature/ARC-584-clean-up-mpyl-example-and-try-to-use-it-as-the-main-runner

Looks good to me. One thing: when doing a local & dryrun, it still does the deploy to kubernetes step. I guess we should change that.

I just check from my machine (pipenv run run) and I can't reproduce. Could it be that it looks like it's doing a deploy? You will see a yaml dump during the dry run


GridEngineRunner not compatible with Windows

Runner uses shell script to run the job
command is constructed using single quotation characters not accepted on Windows

Servers rarely run on Windows anyway, so there is currently little incentive to target this platform specifically.


ci: fix checking for pr git sha in jenkinsfiles

builds running on master didn't have ghprbActualCommit env var, which
resulted in it being null in env object. This change changes the
check to make sure that in case this env var is not existing, correct
value is set as DOCKER_TAG

test-gke

test-net-next


Fix container ID extraction from /proc/self/mountinfo file

This PR fixes #355
On some systems both /proc/1/cpuset and /proc/self/cgroup are left empty, leaving only /proc/self/mountinfo to retrieve the ID of the container docker-gen is running inside of. This file differs slightly from the two others and the GetCurrentContainerID() and matchContainerID() functions had to be rewritten to

process each file separately
use a different regexp for /proc/self/mountinfo

in order to avoir retrieving a 64 characters ID that is not the container ID.

Matching container ID on the /etc/hostname in the mountinfo file instead of the first (in my case, overlay fs) may help.

That's more or less what the PR does, if matchContainerID() identifies the starting pattern of a /proc/<pid>/mountinfo files, it preprends containers/ to the regular expression, so that the function will match one of the lines with the correct ID instead of the first one.
It should work on setups similar to yours but that's unfortunately still a brittle solution without any guaranteed stability.


refactor: sort params of bridge call

Summary by CodeRabbit

Refactor

Reordered fields and adjusted parameters in various blockchain-related messages and functions for enhanced protocol interaction.

New Features

Added new fields to messages to support extended functionalities in cross-chain operations.

Bug Fixes

Removed unnecessary parameters and updated validation logic to prevent errors and improve system reliability.

Documentation

Updated internal documentation to reflect changes in message structures and function parameters.

mg


Fixed 8 flaky tests in hbase-handler

Created this PR to fix 8 flaky tests in TestHBaseSerDe which can be found here.

How was this test identified as flaky?
This test was identifies as flaky by using an open-source research tool named NonDex which is responsible for finding and diagnosing non-deterministic runtime exceptions in Java programs.

What do the tests do?

testHBaseSerDeWithTimestamp
Tests the serialization and deserialization of data with timestamps. It involves creating a test scenario with specific column families, qualifiers, and data types, then sorting and comparing the results. The test checks if the serialized and deserialized data matches the expected fields data.
testHBaseSerDeWithColumnPrefixes
Focuses on serialization and deserialization with column prefixes. It sets up a test scenario with specific column families, qualifiers, and data, then checks if the serialized and deserialized data matches the expected fields data. The test also verifies the handling of unwanted columns and ensures that the column prefixes are appropriately considered in the process.
testHBaseSerDeCompositeKeyWithoutSeparator
Focuses on serialization and deserialization of data with a composite key that lacks separators. It sets up a scenario with a composite key, a specific column family, qualifier, and test data. The test checks if the serialized and deserialized data match the expected fields, taking into account the absence of separators in the composite key.
testHBaseSerDeCustomStructValue
Focuses on the serialization and deserialization of data with a custom struct value. It sets up a scenario with a specific column family, qualifier, and test data represented by a custom struct TestStruct. The test checks if the serialized and deserialized data match the expected fields, taking into account automatic insertion of separators between different fields in the struct during serialization.
testHBaseSerDeII
Focuses on the serialization and deserialization of data with various data types and values. It sets up a test scenario with specific column families, qualifiers, and test data, then checks if the serialized and deserialized data match the expected fields data. The test covers a range of data types including byte, short, int, long, float, double, string, and boolean.
testHBaseSerDeCompositeKeyWithSeparator
Focuses on the serialization and deserialization of data with a composite key that includes separators. It sets up a scenario with a specific column family, qualifier, and test data represented by a custom struct TestStruct. The test checks if the serialized and deserialized data match the expected fields, considering the automatic insertion of separators between different fields in the struct during serialization.
testHBaseSerDeI
Focuses on the serialization and deserialization of data with various data types and values. It sets up a test scenario with specific column families, qualifiers, and test data, then checks if the serialized and deserialized data match the expected fields data. The test covers a range of data types, including byte, short, int, long, float, double, string, and boolean. The scenario includes different configurations, verifying the SerDe functionality under various property settings.
testHBaseSerDeWithHiveMapToHBaseColumnFamilyII
Focuses on mapping Hive columns to HBase column families. It sets up a test scenario with specific HBase column families, qualifiers, and test data. The test checks if the serialized and deserialized data match the expected fields data and if the Hive columns are correctly mapped to the specified HBase column families.

Why do the tests fail?
All of the above tests fail because we are comparing the strings of 2 Put objects i.e. p.toString() and put.toString(). However, there is an order mismatch in the strings returned by the toString() method between the fields of the 2 Put object causing the assertions to fail.

The mismatch in the order of the fields happens because the toString()method of  Put creates a Map<String, Object> which is then converted to a string using a JSONMapper. This Map<String, Object> does not guarantee the same order of the fields every time which causes the assertions to fail.
For example, in the test testHBaseSerDeCompositeKeyWithoutSeparator, the assertions which causes the test to fail is shown below:
https://github.com/apache/hive/blob/9546c10a748630ac5cf39d935a90a97446b93be8/hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java#L1052

How I fixed these tests?

This PR fixes the above tests by comparing the individual fields of the Put object instead of the strings of the Put objects.
You can run the following commands to run the tests using NonDex tool:
mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithTimestamp

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithColumnPrefixes

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCompositeKeyWithoutSeparator

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCustomStructValue

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeII

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCompositeKeyWithSeparator

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeI

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithHiveMapToHBaseColumnFamilyII

(Optional) You can also run the following command to run the test:
mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithTimestamp

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithColumnPrefixes

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCompositeKeyWithoutSeparator

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCustomStructValue

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeII

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeCompositeKeyWithSeparator

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeI

mvn test -pl hbase-handler -Dtest=org.apache.hadoop.hive.hbase.TestHBaseSerDe#testHBaseSerDeWithHiveMapToHBaseColumnFamilyII

Test Environment:
java version "1.8.0_202"
Apache Maven 3.6.3

Kindly let me know if this fix is acceptable.
Thank you

This Map<String, Object> does not guarantee the same order of the fields every time which causes the assertions to fail.

I almost understand what you mean. But i have never seen these tests fail. And i tested these tests in my local env, they all succeeded.
We have flaky test ci to chedk if these tests are stable. http://ci.hive.apache.org/job/hive-flaky-check/, you can try to test.


Update / add general documentation for first-time use

At this moment there are a few binaries that we can run, and there is a renderer that generates some graphical output. We should check if the current documentation reflects all the functionality we offer, and how to use it.

There is some additional documentation written. We probably want to improve that, but for now it's ok enough


Check for later "created in year"

Currently the results show accounts that were created in year <= 2011 (9 years ago), this is just to be safe and ensure the inactivity is long enough.
However, since github's claimable account inactivity period is unknown, we can try for <= 2015 (~5 years inactive) and get more accounts in results that still have a reasonable public inactivity period.

~ Deciding to stick with around 2011 (9+ years in inactive), all inactive users from this wordlist are here.


gRPC message exceeds maximum size

RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 5118829.
We should  increase the maximum size ?

This issue has been discussed before and solved at: https://github.com/wechaty/wechaty-puppet-hostie/issues/41
Please let me know if you have any questions after read the above link, thanks!

Thank you very much.I found how to increase the value.
maxInboundMessageSize(1024 * 1024 * 150)

You are welcome!
Very glad to know that you have found a way to solve it.


⚠ Bofrost.at has degraded performance

In 3f4858e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1877 ms

Resolved: Bofrost.at performance has improved in 85a7890.


FossIdScanResults: Replace problematic FossID licenses with valid expressions

Parenthesis are not allowed in license expressions, resulting in an
exception when trying to parse these with toSpdx().

The commit message is a bit misleading IMO, as in general parentheses are allowed in SPDX (compound) expressions.

The commit message is a bit misleading IMO, as in general parentheses are allowed in SPDX (compound) expressions.

I rephrased the message a bit to be more precise.


Use correct conversion to binary in hash calc for PoW

Supersedes PR #393 .
Please refer to commit message for details.

I see there is premined chain in repo used for some tests, and this PR would break that. I am investigating if I can amend tests not to need that premined chain, and get that PR in before this one.
Cc @velzevur

I see there is premined chain in repo used for some tests, and this PR would break that. I am investigating if I can amend tests not to need that premined chain, and get that PR in before this one.

I am trying to understand how to run Python tests - PR #406.

There seems to be an issue with python integration codes running in CI, please discard the premined chain issue.


Add new overlay components styles

There has been no activity on this issue for several months and that's why are closing it (automatically). If you think this still needs to be addressed please reopen it. The good news is that we are now working on the next version of CARTO.js, stay tuned.


@conda-forge-admin, update version

Additional comment:
@conda-forge-admin, update version

fyi @GiulioRomualdi this new command can be used to quickly generate a version update.


Ensure that the style.zIndex is only used in the olStyle module

The style.zIndex must not be confused with the layer.zIndex.
The style.zIndex defines the render order within a layer.canvas
The layer.index defines the order of layer canvases within the Openlayers mapview.

@simon-leech We will need to add in a condition to the auto-update to move the zIndex from the layer.style.zIndex to the layer.zIndex

@RobAndrewHurst  Good point!
PR for that fix is here https://github.com/GEOLYTIX/xyz-ignite/pull/56


Planning

Project list
Actions

Create a new project (ember new)

Installs all dependencies if needed
(maybe we want to do this manually and run ember init in the folder?)

Add existing projects to list

Project detail
Actions

Start server (ember serve)
Stop server
Build project (ember build)

Environments (-prod, -dev)

Generate code from blueprints (ember generate)
Install specific thing

Addons (ember install)
Bower-packages (bower install --save-dev)
npm-packages (npm install --save-dev)

Install everything that needs installing (npm install && bower install)
Run tests (ember test)

One time (ember test)
Server mode (ember test --server)
In browser (ember serve + going to browser

Open in finder
Open command line
Open text editor
Open config files

Brocfile.js
config/environment.js

Settings

Define pod structure (--pod) #2
Analytics

Menubar

Start/stop current server
Show app
Open in browser

Custom commands from addons are a thing. Hmm.

Updated list based on these changes: https://github.com/ember-cli/ember-cli/pull/3598


Typescript error when testing diamond

Describe the bug
I'm running into an error when adding a test for a simple diamond use case. From what I see, it all boils down to this method call
....
diamondCutFacet = (await ethers.getContract("DiamondCutFacet", diamondTemplate.address));
....
await diamondCutFacet.diamondCut(
            [{
                facetAddress: sampleFacet.address,
                action: FacetCutAction.Add,
                functionSelectors: SAMPLE_FACET_SELECTORS
            }],
            "0x0000000000000000000000000000000000000000",
            "0x"
        );

Error encountered is the following
An unexpected error occurred:

/Users/daniel.hursan/dev/blockchain-template/node_modules/hardhat-deploy/types.ts:2
import 'hardhat/types/runtime';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (/Users/daniel.hursan/dev/blockchain-template/node_modules/ts-node/src/index.ts:1587:43)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/daniel.hursan/dev/blockchain-template/test/Diamond/DiamondTemplate.ts:3:1)

It seems that only that particular call triggers the error and invokes the hardhat/types/runtime at some point
I've also tried to add "type": "modules" in package.json, which triggers other errors and it's not a solution, because I can't change requires with imports for dependencies of hardhat-deploy.
To Reproduce
Steps to reproduce the behavior:

Add a test for interacting with DiamondCutFacet contract
Attempt to call diamondCut() method
See error
If I comment out that first piece of code, error goes away.

Expected behavior
I would expect any error related to my code, missing function or whatever helpful, but stracktrace points to some internal references. Not sure if it's a conflict between hardhat-waffle and hardhat-deploy-ethers, that I understand use hardhat-ethers behind the scenes, but different forks.
versions
"devDependencies": {
        "@nomiclabs/hardhat-ethers": <EMAIL_ADDRESS>        "@types/chai": "^4.3.1",
        "@types/jest": "^28.1.1",
        "@types/mocha": "^9.1.1",
        "@types/node": "^17.0.42",
        "chai": "^4.3.6",
        "ethereum-waffle": "^3.4.4",
        "ethers": "^5.6.8",
        "hardhat": "^2.9.3",
        "hardhat-deploy": "^0.11.10",
        "ts-node": "^10.7.0",
        "typescript": "^4.6.4"
    },

@wighawag , any idea?


Add Performance Bot Best Practice MXP014 - Microflow CRUD placement

note: this is MxAssist Client team ref = AA-3298
SP version 9.12
@MariaShaposhnikova @jaspervanderhoek

I've copied changes from this PR to https://github.com/mendix/docs/pull/4338. It is easier to copy changes than solve the conflict.


comment parse like official protobuf with heading comment and trailing comment

comment should like official protobuf with heading comment and trailing comment
/**
* optional string leading_comments = 3;
*
*
* If this SourceCodeInfo represents a complete declaration, these are any
* comments appearing before and after the declaration which appear to be
* attached to the declaration.
* A series of line comments appearing on consecutive lines, with no other
* tokens appearing on those lines, will be treated as a single comment.
* Only the comment content is provided; comment markers (e.g. //) are
* stripped out.  For block comments, leading whitespace and an asterisk
* will be stripped from the beginning of each line other than the first.
* Newlines are included in the output.
* Examples:
*   optional int32 foo = 1;  // Comment attached to foo.
*   // Comment attached to bar.
*   optional int32 bar = 2;
*   optional string baz = 3;
*   // Comment attached to baz.
*   // Another line attached to baz.
*   // Comment attached to qux.
*   //
*   // Another line attached to qux.
*   optional double qux = 4;
*   optional string corge = 5;
*   /* Block comment attached
*    * to corge.  Leading asterisks
*    * will be removed. */
*   /* Block comment attached to
*    * grault. */
*   optional int32 grault = 6;
*
*/

What makes a comment leading vs. trailing?

I'd be interested in seeing the logic of how protoc does this, but we're not going to do it for now.
Specifically,
optional string baz = 3;
// Comment attached to baz.
// Another line attached to baz.
// Comment attached to qux.
//
// Another line attached to qux.
optional double qux = 4;

how it figures that one out is a mystery to me...


Github Code References Documentation

Github Code References Documentation

🚀 Deployed on https://64dd1f4a42677219bc419335--cozy-fox-0defec.netlify.app

Need to add to sidebar. Also can you include screenshots of the actual code reference dialog? And make sure the code does not contain anything sensitive.

Need to add to sidebar. Also can you include screenshots of the actual code reference dialog? And make sure the code does not contain anything sensitive.

I can include some of my dummy code references.


revert adding profiles

Wow, that was so much easier than I anticipated. :)
Manual testing of describe seems to work just fine.

LGTM! Good that the transition is this smooth


Use Seed Phrase For PoSValidatorSeed

Use Seed Phrase For PoSValidatorSeed
Create FromSeed function for BLS library

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

feature/pos-syncing-and-steady-state

PR #936

PR #935

PR #937

PR #938

PR #939

PR #940

PR #941

PR #946   👈

This stack of pull requests is managed by Graphite.


refactor: Adding CQRS Pattern for the Use Case (Application) Layer in src and tests

All projects have been unified for CQRS; based on the implementation of the sample project.
https://github.com/ardalis/CleanArchitecture/commit/089b3304e272fbdce03d1ee330076f2e565d9c59

Hi @ardalis,
Is this refactor beneficial for the project? If appropriate, I will resolve the conflicts.

Hi @aminsharifi ,
I originally was going to use a folder structure with Commands and Queries in it, but I ultimately decided against it because I figured it was obvious from the Use Case folder names (AddToDoItem for example) which ones were commands and which ones were queries. The extra folder and namespace clutter didn't seem to really add much. The CQRS principle requires that commands and queries be separated, and separating down to individual Use Cases goes above and beyond that requirement (and certainly achieves it). Thus I don't think we need more folders.
Thanks!


ERROR Unable to determine cluster name on orchestrator log.

Hi Mecea,
I have successfully installed operator but now facing some other issue. Unable to create nodes because of below errors. Can you Please suggest on this..
orchestrator log:
[martini] Started GET /api/cluster/my-cluster.2319727041 for <IP_ADDRESS>:38572
2020-02-11 06:59:49 ERROR Unable to determine cluster name. clusterHint=my-cluster.2319727041
[martini] Completed 500 Internal Server Error in 4.78072ms
[martini] Started GET /api/audit-recovery/my-cluster.2319727041 for <IP_ADDRESS>:38572
[martini] Completed 200 OK in 2.36537ms
Mysqlcluster describe log:
Conditions:
Last Transition Time:  2020-02-11T06:55:14Z
Message:               cluster is in read only
Reason:                ClusterReadOnlyTrue
Status:                True
Type:                  ReadOnly
Last Transition Time:  2020-02-11T07:01:59Z
Message:               StatefulSet is not ready
Reason:                StatefulSetNotReady
Status:                False
Type:                  Ready
Last Transition Time:  2020-02-11T06:55:14Z
Message:               no pending ack
Reason:                NoPendingFailoverAckExists
Status:                False
Type:                  PendingFailoverAck
Mysql operator log:
{"level":"info","ts":1581404914.2925975,"logger":"controller.orchestrator","msg":"reconciling cluster","cluster":"2319727041/my-cluster1"}
{"level":"warn","ts":1581404914.298542,"logger":"controller.orchestrator","msg":"can't get instances from Orchestrator","msg":"not found","alias":"my-cluster1.2319727041","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*infoLogger).Info\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:69\ngithub.com/presslabs/mysql-operator/pkg/controller/orchestrator.(*orcUpdater).getFromOrchestrator\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/orchestrator/orchestrator_reconcile.go:127\ngithub.com/presslabs/mysql-operator/pkg/controller/orchestrator.(*orcUpdater).Sync\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/orchestrator/orchestrator_reconcile.go:75\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/orchestrator.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/orchestrator/orchestrator_controller.go:205\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"level":"info","ts":1581404914.2985995,"logger":"controller.orchestrator","msg":"setting cluster in read-only","cluster":"my-cluster1.2319727041”}

Hi @slipu120,
2020-02-11 06:59:49 ERROR Unable to determine cluster name. clusterHint=...

This log is normal, this usually says that the cluster is not discovered by the orchestrator, this may be due to a variety of reasons like orchestrator is unable to connect to that cluster or PODs are not yet running.
You have to find the root cause: why the orchestrator can't register the cluster.


Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor

Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor
suddenly I got this message in my backend while in the  web site:
Error: Request failed with status code 500.

Hi, @xmariodiaz. Its related to an whatsappweb update releases yesterday. You need to update your whatsapp-web.js to fix it.
You can just run npm install<EMAIL_ADDRESS>in you'rs backend folder, and rebuild /  restart backend.
See: https://github.com/pedroslopez/whatsapp-web.js/releases/tag/v1.11.0


Adds babe rpc support

Adds the babe_epochAuthorship rpc method for querying information about slots that can be claimed in the current epoch.
closes #4102

looks like faulty code was merged into master.
error[E0624]: method `create_address` is private
   --> frame/evm/src/lib.rs:348:34
    |
348 |             let create_address = executor.create_address(source, evm::CreateScheme::Dynamic);
    |                                           ^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0624`.
error: could not compile `pallet-evm`.

Why is the Cargo.lock diff so large?

@rphmeier it's using the old, no-so-git-friendly style of Cargo.lock. @seunlanlege please run git checkout parity/master -- Cargo.lock and then cargo check to re-format it.

@andresilva could you take a look at this again?

@andresilva could you please take a look at this again?

Ping @tomusdrw , @andresilva
This should also be ready for merging.

I will give this another review in the afternoon. Did you test how this works in the actual node binary? (e.g. on dev chain we should get all slots).

Did you test how this works in the actual node binary?

➜ curl -v --data '{"jsonrpc":"2.0","method":"babe_epochAuthorship","params":[], "id": 1}' -H 'Content-Type:application/json'  http://<IP_ADDRESS>:9933
* Rebuilt URL to: http://<IP_ADDRESS>:9933/
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 9933 (#0)
> POST / HTTP/1.1
> Host: <IP_ADDRESS>:9933
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type:application/json
> Content-Length: 70
>
* upload completely sent off: 70 out of 70 bytes
< HTTP/1.1 200 OK
< content-type: application/json; charset=utf-8
< content-length: 2115
< date: Fri, 14 Feb 2020 15:15:19 GMT
<
{"jsonrpc":"2.0","result":{"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY":{"primary":[527231097,527231099,527231101,527231103,527231104,527231107,527231113,527231126,527231127,527231131,527231137,527231138,527231140,527231142,527231144,527231145,527231146,527231148,527231149,527231150,527231152,527231155,527231161,527231171,527231173,527231175,527231178,527231181,527231182,527231188,527231189,527231192,527231194,527231197,527231200,527231207,527231216,527231224,527231241,527231245,527231248,527231250,527231253,527231258,527231260,527231263,527231281,527231284,527231288,527231289,527231290,527231293,527231294],"secondary":[527231095,527231096,527231098,527231100,527231102,527231105,527231106,527231108,527231109,527231110,527231111,527231112,527231114,527231115,527231116,527231117,527231118,527231119,527231120,527231121,527231122,527231123,527231124,527231125,527231128,527231129,527231130,527231132,527231133,527231134,527231135,527231136,527231139,527231141,527231143,527231147,527231151,527231153,527231154,527231156,527231157,527231158,527231159,527231160,527231162,527231163,527231164,527231165,527231166,527231167,527231168,527231169,527231170,527231172,527231174,527231176,527231177,527231179,527231180,527231183,527231184,527231185,527231186,527231187,527231190,527231191,527231193,527231195,527231196,527231198,527231199,527231201,527231202,527231203,527231204,527231205,527231206,527231208,527231209,527231210,527231211,527231212,527231213,527231214,527231215,527231217,527231218,527231219,527231220,527231221,527231222,527231223,527231225,527231226,527231227,527231228,527231229,527231230,527231231,527231232,527231233,527231234,527231235,527231236,527231237,527231238,527231239,527231240,527231242,527231243,527231244,527231246,527231247,527231249,527231251,527231252,527231254,527231255,527231256,527231257,527231259,527231261,527231262,527231264,527231265,527231266,527231267,527231268,527231269,527231270,527231271,527231272,527231273,527231274,527231275,527231276,527231277,527231278,527231279,527231280,527231282,527231283,527231285,527231286,527231287,527231291,527231292]}},"id":1}
* Connection #0 to host <IP_ADDRESS> left intact

looks like all is well, cc @bkchr

Thanks @seunlanlege! :)


Allow users change password via UI

My reason:
Currently, there is no such interface, any user should be able to update the password.
Config file:
No config changes need it.

Suggest: implement as plugin interface

Any suggestion about the implementation?

Because I think we need allow also plugins to support such methods. It's not only UI related, or I'm wrong?

You are right, maybe blocked on #169 ? I'm not sure it's a huge change to plugin system or just minor improve

I haven't check. But I guess minor improve. We can ship that in 2.x I guess.

I would suggest go a little further and rethink the Verdaccio UI.
Then include an user profile section where info can be updated and in the future could support more stuff like data visualizations etc...
Current design is old (from good and old Synopia) and also doesn't match the brand changes yet.
Build on top of it will be just postpone the work that eventually must be done.

Could you help us to visualize how that idea would look like?

Suggestion: Create user role for user. Admin and member.
Reason: Because of whoever also can create their own account and publish whatever they want. If you could, please create an admin role which only admin allow to create username and password for user. And if user didn’t own an account he/she could not publish anything to the verdaccio and it will render error msg say that (you didn’t own an account <= sample error msg)

@juanpicado Sounds good, I'll provide some concepts

@juanpicado I can help with the roles concept if still needed

@ahoracek your help is very welcome. We need to trace a plan about what we need to achieve this feature. Could you trace such plan?

@juanpicado if you already have an idea how user/roles should work (e.g. whether it should be fully on auth plugins or part of core and only auth part implemented as plugins) let me know, based on your input I can prepare plan of what needs to be done. Where should I put the this?

I think it should be part of the core.
This is my mental quick roadmap:

[ ] Let's integrate your functionality into the core https://github.com/verdaccio/verdaccio/issues/392
creating API enpoints '/-/npm/v1/user' https://github.com/ahoracek/verdaccio-profile-api/blob/master/index.js#L102 into the core API endpoints
[ ]  Allow other auth plugins to implement such funtionality, for this I think you have integrate part of your logic into https://github.com/verdaccio/verdaccio-htpasswd (this is the hardest part )
[ ] Unit testing and functional testing
[ ]  Pretty likelike you might need to update Flow types
[ ]  Create web API endpoints for
[ ]  Create components and UI implementation in React

It this fine for you?
We should create a ticket (per repository) for each of them an reference them here and one single PR that group all changes + any @verdaccio/xxx update.
I can help you allong this process and work on some of the ticket, either UI or unit testing, ask whenever you need help.

That’s perferct. I will start later today

@ahoracek If you have any doubt or need any help in https://github.com/verdaccio/verdaccio-htpasswd Please let me know.
Also, I am creating a feature issue for this https://github.com/verdaccio/verdaccio-htpasswd/issues/32
Thanks,

@ahoracek any update on this?

@juanpicado Very little progress recently as I was very busy with my daily work. I get back to this at the end of the week. Sorry for the delay...

@priscilawebdev will take care of UI and I'll provide all required for UI #392 and https://github.com/verdaccio/verdaccio-htpasswd/pull/38


rxjs examples?

Would like some rxjs examples which are async

Never used it before, feel free to submit docs as a PR though


Added support for Long Arrays

were added in 1.11, today the first snapshot actually using them was released
closes https://github.com/minecraft-dotnet/Substrate/issues/42

Thanks for adding the long array support


Check if a binary tree is symmetric

Hey!! @plazzy99 @rudrakshi99 @nakul-19 @tarun26091999 @raksha009 @shreyanspoddar
I would like to solve this using c++.
I assure you that I will write a clear code and properly mention comments in code.
I request you to please assign me this problem

hey @tarun26091999 under gssoc'21 can i do this issue in python.
Thank you!

Hello @tarun26091999 @dheerajkotwani @esheetaparulekar @anubhavitis @jeelnathani, I think this is an important question and this should definitely be added in the Algo-Tree and I will start working on it as soon as I get assigned!! as I am a part of GSSoC'21, so I would like to implement this in c++.


Bump to upstream <IP_ADDRESS>

Let's see if this works.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

The recipe license should not include the word "License".

Oh, blah. CC @scopatz:

This release [<IP_ADDRESS>] fixes unintentional soname bumps in the included libraries in the 0.19.8 release.  Sorry for the inconvinience.

So I guess this PR is still fine, but it won't fix the problem — defaults needs to upgrade.

Hi! This is the friendly automated conda-forge-linting service.
I was trying to look for recipes to lint for you, but it appears we have a merge conflict.
Please try to merge or rebase with the base branch to resolve this conflict.
Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Merging because it is still an improvement!

This didn't originally build for Linux to some setting issues in the feedstock. Have fixed this by readding the recipe through staged-recipes. ( https://github.com/conda-forge/staged-recipes/pull/5112 )


differences between app and web

For druid tank sims, the windows app reports 26% chance of death VS 1% on web.
App:

Web:

This is WoW Wrath classic

That's expected, the app only gets releases every week (on mondays) and thus can have different results. Check again after the new version releases tomorrow.

v0.1.38 resolved the issue


build: only search for the needed python type

Windows has different types of runtime libraries which are ABI
incompatible with one another.  This requires that the debug build of
lldb link against the debug build of python.  Adjust the python search
to search for only the required type of python.  This permits building a
release build of lldb against just the release build of python.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@361915 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit f2c22bcc3a738f7b6f3d88260dbefa40b0b3cb34)

CC: @dcci @weliveindetail @adrian-prantl @JDevlieghere

@swift-ci please test

This will enable us to ship a working repl in the MSIs

@compnerd Really @JDevlieghere is the right person to review this.

@swift-ci please test and merge

I saw the upstream commit. This LGTM


Adding function to create new database

I have added (by re-using some of the already existing code in the CreateDatabase.py file) a function which allows a new database to be created. I like the DB class and have therefore added a new function called createDatabase instead of writing new code elsewhere. The new function means that that a new database can be created (passing in new database name) instead of it being created through the existing function called "connect" which uses the self.dbname which was set in the constructor.
I deliberately did not change the existing functions or their signatures (arguments) to avoid side effects but rather created a new function "createDatabase" and added the existing "query" function from the BookwormSQLDatabase class (which already existed in the CreateDatabase.py file below my new changes).
I have tested this code on a fresh installation and it works great.
Overall just a little bit of extra functionality. I hope to do a lot more with Bookworm (write Python code to harvest OAI-PMH from various places) and would much prefer to stay with your code than fork and head in another direction missing out on your future development.
Kind regards
Tim

Please don't hesitate to ask any questions, really appreciate the product guys.
Tim


Lazy computations on the pyramids

It should be possible to do lazy computations on the pyramids, so that they are only computed once the data is actually loaded.
One use case I just had was to compute an RGB image from a geotiff so that we can plot the RGB values directly instead of the single bands.
Starting with a Pyramid pyr it would be nice to be able to compute the RGB values based on the bands.
This works on a single raster to then also plot the raster data but it does not bring the computations on the levels.
julia> rgb = RGB.(view(pyr, Band=1)./255, view(pyr, Band=2)./255, view(pyr, Band=3).//255)

For this we would have to do a broadcasting along the whole levels and not only on the base level.

We would like to have broadcasting also for different combinations of pyramid and normal array; pyramid and pyramid; pyramid and diskarray.
For now we will focus on pyramid pyramid broadcasting. We can always wrap a normal array in a Pyramid first.

We plan to do a difference of high resolution AGB as a show case for the capabilities of the lazy computations.
For this I am going to use the ESA CCI Biomass dataset: https://catalogue.ceda.ac.uk/uuid/02e1b18071ad45a19b4d3e8adafa2817
I am going to save this locally as a zarr file and compute the pyramids of it for two different time steps.
Then we can compute the differences lazily and plot it interactively while the computations for the whole dataset is still running.

The broadcast of pyramids of the same size is working but not the one for a pyramid and a single number but we can use map for that.
The rgb example above should be possible by doing:
using Colors
using PyramidScheme
pyrdiv = map(x-> x/255, pyr)
rgb = RGB.(pyrdiv[Variable=1], pyrdiv[Variable=2], pyrdiv[Variable=3])


0 ETC Account balance issue

Dear all,
I made my first ETC withdraw from kraken to my Emerald Wallet account 3 days ago and my Emerald wallet account is 0.
someone could help me to display the correct balance?

Thank you very much.
Sylvain GLEYE

Your full node is still syncing (as I see on block # 1 213 575)  Balances will be updated after full synchronization

Dear,
thank you very much for this information.
Today the wallet was open all day and all night and the account is always 0
ETC.
How long will it take to download the full bocks?
I can se by now 1 730 249 blocks.
Than you very much,
Sylvain GLEYE
2018-02-27 1:17 GMT+11:00 gagarin55<EMAIL_ADDRESS>
Your full node is still syncing (as I see on block # 1 213 575) Balances
will be updated after full synchronization
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ethereumproject/emerald-wallet/issues/498#issuecomment-368516946,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AjGv3hBlkT1SYMhTmE795bD69QGHFYKRks5tYrzdgaJpZM4SSNsS
.

It usually takes more than a week to do a full sync on a modern hardware

Thank you very uche for this information.
best regards,
Sylvain
2018-03-01 1:51 GMT+11:00 Igor Artamonov<EMAIL_ADDRESS>
It usually takes more than a week to do a full sync on a modern hardware
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ethereumproject/emerald-wallet/issues/498#issuecomment-369262645,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AjGv3h3e9xBifvR0uBIj24sGnsPtELYOks5tZWeMgaJpZM4SSNsS
.


WIP: Sampler Example

Uses a large data set with the low barrel example, with automatic zooms and choice between sampling method.

Thanks @WPFerg, I think the example is great and a really compelling visualisation of what sampling is about and the benefits of using it. However, as there's so much commonality between this and the low barrel example (through no fault of your own!) I would like to hold off merging this.
There's some on-going work to extract the common components of the low-barrel example into the library itself. Once this has been done the amount of code in your example should drop dramatically and it'll be easier to comment on the specifics of your code.
As such I've marked this as a WIP and I've added a couple of high-level comments, but I'll save the rest for later.

No problem, I've made the indentation changes. I've got another PR coming for one more sampler that I'd like to integrate in to this, so I'll revisit it later.

@WPFerg I'm going to close this for now - good to see the code being made good use of in your blog post. Once we have a navigator component I'd like to revisit this example and potentially bring it into the project.


[stimulus-bundle] Symfony 6.4 and Assetmapper (importmap:require @hotwired/stimulus fails)

is there a way to test this with Symfony 6.4 and AssetMapper?
symfony new demo-64 --webapp --version=next && cd demo-64
composer config extra.symfony.allow-contrib true
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1245/index.json
composer req symfony/asset-mapper:^6.4
composer req symfony/stimulus-bundle:2.x-dev

It's failing on the all-important stimulus package:
bin/console importmap:require @hotwired/stimulus

In JsDelivrEsmResolver.php line 192:

  Error 400 downloading packages from jsDelivr for "@hotwired/stimulus". Check your package names. Response: Invalid URL. The URL structure is<EMAIL_ADDRESS>

In CommonResponseTrait.php line 173:

  HTTP/2 400  returned for<EMAIL_ADDRESS>

importmap:require [--entrypoint] [--path PATH] [--] <packages>...

Does the recipe need to be changed?

Thanks for keeping such a close eye on things Tac :). This is fixed in https://github.com/symfony/symfony/pull/52024 - just waiting for a merge


Resolve dependabot security vulnerabilities

Dependabot identified some security vulnerabilities that we need to resolve. None of the critical/high ones identified are applicable to our code base, but, we should resolve these to remove any false positives and keep our code clean.
The recently identified issues are here: https://github.com/emissary-ingress/emissary/security/dependabot

This has been addressed in Emissary-ingress 2.2, which is now available.