Fill in custom fields for new work items

Hi,
I have an excel sheet with each sheet corresponding to multiple work items of same type with many attributes. I am developing python script to create work items and fill the custom fields with those attributes. Problem is for existing work item in polarion, I am able to get the custom fields as an array but for new work item, how do I fill the custom field values? There are really lot of work items and this will help me reduce lot of manual work.
Fields for already existing work item but for new work item I get nothing.
>>> tempWI.customFields
{
    'Custom': [
        {
            'key': 'field1',
            'value': {
                'id': 'lessThan6Months'
            }
        },
        {
            'key': 'field2',
            'value': 4
        },
        {
            'key': 'field3',
            'value': {
                'id': 'Expert'
            }
        }
]}

Also, polarion keeps logging me out and I have create a session every sometime. Is there a way to hold the session from logging out?
Thanks.

To do this, you would need to build a new customField type. I made an example for you to try, please let me know if this works out.
# create new workitem
new_workitem = project.createWorkitem('task')

# load the types needed from polarion
custom_type_array = client.getTypeFromService('Tracker', 'ns2:ArrayOfCustom')
custom_type = client.getTypeFromService('Tracker', 'ns2:Custom')

# build the custom types into an array
custom_array = custom_type_array()
custom_array.Custom.append(custom_type(key='string_field', value='Test string'))
custom_array.Custom.append(custom_type(key='int_field', value='1234'))

# assign it to the custom fields of the new workitem
new_workitem.customFields = custom_array

# save it
new_workitem.save()

For the logging out problem i have no solution ready yet.

Thank you, I will try this. What about the values with id, like this
{
            'key': 'field3',
            'value': {
                'id': 'Expert'
            }

Is that an Enum type? and if so, is it a predefined one or a custom one as well?

Yes it is an Enum type and it is also custom one. Can you please explain but it might not be the right type if you want to edit it later?

So you can build the the type manually and save it to polarion. If you then load it again, there is no difference. But if you work with the same object as the one you created it on, there might be a type difference.
I would recommend to try and do it like this (snippet from workitem.py):
self.resolution = self._polarion.EnumOptionIdType(
                id=resolution)

So something alike should work:
custom_array.Custom.append(custom_type(key='int_field', polarion.EnumOptionIdType(id='234'}))

Great! so if the custom field is a value type then I get it updated but if the custom field is an enum type then I am getting:
>>> custom_array.Custom.append(custom_type(key='int_field', polarion.EnumOptionIdType(id='local')))
  File "<stdin>", line 1
    custom_array.Custom.append(custom_type(key='int_field', polarion.EnumOptionIdType(id='local')))
                                                                                ^
SyntaxError: positional argument follows keyword argument

To recover I interchanged the args and I get this error:
>>> custom_array.Custom.append(custom_type(polarion.EnumOptionIdType(id='local'), key='int_field'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'polarion.polarion' has no attribute 'EnumOptionIdType'

I changed the code to:
custom_array.Custom.append(custom_type(client.EnumOptionIdType(id='local'), key='int_field'))

Now it passes but the result is NOT what I want:
{
            'key': {
                'id': 'local'
            },
            'value': None
        }

I need it like:
{
            'key': 'int_field',
            'value': {
                'id': 'local'
            }
}

Try it like this; otherwise i need to check when i get home.
custom_array.Custom.append(custom_type(key='int_field', value=client.EnumOptionIdType(id='local')))

perfect. It works based on the preliminary testing. Thanks a lot.

Hi, I have following questions:

How to catch login issues or incompatible setting for any fields (zeep.exceptions.Fault: org.xml.sax.SAXException: SimpleDeserializer encountered a child element)?
How to link work items with custom roles?

Thanks.

I've created a new branch to add the workitem linking. Please see that if you want it now, I still need to improve the tests before i publish it, but it seems to work (even with custom links).
Can you provide an example of when the exception occurs? Or is the goal to find wrongly entered data before trying to save it?

I will try to find the work item linking. Thank you for creating it quickly.
I want to catch it before saving the incorrect data.

Hi, I encountered another issue. How do we set multi select custom fields?
{
    'key': 'contactMethod',
    'value': {
        'EnumOptionId': [
            {
                'id': 'phone'
            },
            {
                'id': 'email'
            }
        ]
    }
}

You're close. It needs to be build in an 'ArrayOfEnumOptionId'. Go ahead and try it with this example:
# create new workitem
new_workitem = project.createWorkitem('task')

# load the types needed from polarion
custom_type_array = client.getTypeFromService('Tracker', 'ns2:ArrayOfCustom')
custom_type = client.getTypeFromService('Tracker', 'ns2:Custom')
array_enum_id = client.getTypeFromService('Tracker', 'ns2:ArrayOfEnumOptionId')

# build the custom types into an array
enum_array = array_enum_id()
enum_array.EnumOptionId.append(client.EnumOptionIdType(id='open'))
enum_array.EnumOptionId.append(client.EnumOptionIdType(id='done'))

custom_array = custom_type_array()
custom_array.Custom.append(custom_type(key='string_field', value='Test string'))
custom_array.Custom.append(custom_type(key='int_field', value='1234'))
custom_array.Custom.append(custom_type(key='multi_enum_field', value=enum_array))

# assign it to the custom fields of the new workitem
new_workitem.customFields = custom_array

# save it
new_workitem.save()

I've taken some of you feedback and integrated it in the V0.1.13 release which is available now. See https://python-polarion.readthedocs.io/en/latest/workitem.html#linking for the new bits.
Feel free to try it and provide more feedback if you find anything.

Thank you for updating. I didn't check yet but will check and let you know.

Hi, the code for multi select fields works but for string type custom fields fail. I got the below format from the existing work item. This is how polarion expects I think
'value': {
        'type': 'text/html',
        'content': 'notes.',
        'contentLossy': False
    }

but this line custom_array.Custom.append(custom_type(key='string_field', value='Test string')) generates this:
'value': 'Notes.'

giving me this error
Traceback (most recent call last):
  File "C:\Users\Desktop\importWorkItems.py", line 92, in create_wi
    temp_wi.save()
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 509, in save
    service.updateWorkItem(updated_item)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: java.lang.IllegalArgumentException: type cannot be null

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Desktop\workItemImportExcel.py", line 35, in <module>
    WI.create_wi(ps, projectObj, projID, excel_sheet)
  File "C:\Users\Desktop\importDamageWorkItems.py", line 96, in create_wi
    temp_wi.save()
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 509, in save
    service.updateWorkItem(updated_item)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: java.lang.IllegalArgumentException: type cannot be null

Looks like value should have type with text/html

You can create that text/html type like this:
client.TextType(content='text here', type='text/html', contentLossy=False)

Not tested, but it should be something alike this:
custom_array.Custom.append(custom_type(key='string_field', value=client.TextType(content='text here', type='text/html', contentLossy=False))

Your code worked. So what difference does the below code has with your code? I tried the below one but got the same error.
custom_array.Custom.append(custom_type(key='string_field', value= { 'type': 'text/html', 'content': 'notes.', 'contentLossy': False}

The only difference is the type used is now the one supplied by polarion (or rather the zeep module). To be honest, i expected that line of code to work just fine. You can see in an older version i used to do the same thing with the description field:
https://github.com/jesper-raemaekers/python-polarion/blob/3a7e7958bb47d739f49a99e0a2ad5b932237b843/polarion/workitem.py#L159

ok. Is there a way to get a list of work items based on a query?

https://python-polarion.readthedocs.io/en/latest/project.html#polarion.project.Project.searchWorkitemFullItem
This should work in the same way the query within polarion work. I cannot make an example for you at the moment.

Hi,
I know you mentioned no access to live docs but I see that when I retrieve a work item, there is a location attribute. This results in
'default:/Sandbox/projID/modules/compValidation/doc/workitems/projID-10430/workitem.xml'

Can we use this to move the newly created work items to specific doc?

Good question; I'm not sure. I haven't played around much with the documents.
I do see some options in the polarion API to move workitem in a document (See the java docs for example). So there should be options, but i cannot give any example unfortunately.

In Polarion API, for moveWorkItemToDocument(), I could get workitemuri and moduleuri but unable to work out the function call. Looks like I need to write the request calls to access that api directly from python without your package. Correct?

I have multiple issues with test case work item.

How do I access test steps?

temp = projectObj.getWorkitem("proj-10430")

temp._polarion_test_steps or temp._parsed_test_steps resulted nothing.
2. Unable to get author for the work item.
temp.getAuthor() gives me error
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 110, in getAuthor
    return User(self._polarion, self.author)
  File "C:\UsersDesktop\venv\lib\site-packages\polarion\user.py", line 27, in __init__
    raise Exception(f'User not retrieved from Polarion')
Exception: User not retrieved from Polarion

Unable to get list of users for the project. projectObj = client.getProject(projID) and projectObj.getUsers() throws below error. Same error for projectObj.findUser("john") also tried with company userid.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\project.py", line 49, in getUsers
    users.append(User(self.polarion, user))
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\user.py", line 27, in __init__
    raise Exception(f'User not retrieved from Polarion')
Exception: User not retrieved from Polarion

Here is my workitem xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
--
<work-item>
<field id="JIRA" type="string">JIRA-12455</field>
<field id="author">S. John</field>
<field id="created">2021-01-26 23:04:29.705 -0600</field>
<field id="linkedWorkItems">
<list>
<struct>
<item id="role">verifies</item>
<item id="workItem">Proj-6561</item>
</struct>
</list>
</field>
<field id="previousStatus">open</field>
<field id="priority">50.0</field>
<field id="severity">basic</field>
<field id="status">tobereviewed</field>
<field id="testResults" type="enum:testing/test-result">failed</field>
<field id="testSteps" type="struct:TestSteps">
<struct>
<item id="keys">
<list>
<item>step</item>
<item>description</item>
</list>
</item>
<item id="steps">
<list>
<struct>
<item id="values">
<list>
<item text-type="text/html">Verify User Received call</item>
<item text-type="text/html">Continue from above
1. Make call
2. Click Dial
3. Verify call received</item>
</list>
</item>
</struct>
</list>
</item>
</struct>
</field>
<field id="testType" type="enum:testtype">automated_software</field>
<field id="testdate" type="string">12/14/2020 4:09:29 PM</field>
<field id="title">Debouncing 6</field>
<field id="type">testcase</field>
</work-item>

I do have Test Steps:

If I call temp.customFields.Custom, I get this but even here I do NOT see test steps.
[{
    'key': 'testType',
    'value': {
        'id': 'automated_software'
    }
}, {
    'key': 'testResults',
    'value': {
        'id': 'failed'
    }
}, {
    'key': 'JIRA',
    'value': JIRA-12455'
}, {
    'key': 'testdate',
    'value': '12/14/2020 4:09:29 PM'
}]

Sorry for long issues but I need to have these for my project. Thanks a lot.

In Polarion API, for moveWorkItemToDocument(), I could get workitemuri and moduleuri but unable to work out the function call. Looks like I need to write the request calls to access that api directly from python without your package. Correct?

Yes, i will play around with it a bit and see if i can make something useful.
The test step bug should now be fixed in V0.1.14. The user issue is not something i have here. Can you try and edit project.py to add a print, like so:
    def getUsers(self):
        """
        Gets all users in this project
        """
        users = []
        service = self.polarion.getService('Project')
        project_users = service.getProjectUsers(self.id)
        print(project_users)
        for user in project_users:
            users.append(User(self.polarion, user))
        return users

You can post the output, after removing names ofcourse, or compare it. This is what i get:
[{
    'description': None,
    'disabledNotifications': False,
    'email': None,
    'homePageContent': None,
    'id': 'admin',
    'name': 'System Administrator',
    'voteURIs': None,
    'watcheURIs': None,
    'uri': 'subterra:data-service:objects:/default/${User}admin',
    'unresolvable': False
}, {
    'description': None,
    'disabledNotifications': False,
    'email': None,
    'homePageContent': None,
    'id': 'user_a',
    'name': 'user_a',
    'voteURIs': None,
    'watcheURIs': None,
    'uri': 'subterra:data-service:objects:/default/${User}user_a',
    'unresolvable': False
}]

Thanks Jesper.
For the print statement for getUsers I can see the full list of users printed to console and then I see the same error.
I can see the test steps now but how do I add test steps for a new test case work item?
How about setting an author to a new work item?

Can you confirm the value for unresolvable is False?
For the tests steps, I've started making some code, but it's not ready to release yet since its missing documentation and tests. Have a look at this commit and copy the changes to your local installation to use it.
An example:
workitem1 = project.createWorkitem('softwaretestcase')

workitem1.addTestStep(['a', 'b', 'c'])
workitem1.addTestStep(['d', 'e', 'f'])
workitem1.addTestStep(['g', 'h', 'i'])

workitem1.removeTestStep(1)

The author is set based on the user you logged in with. You cannot change it, as you also cannot do that in Polarion.

Yes, unresolvable is False.
Add and remove test step works.
In regards to author, there is an import excel option in polarion to import all the test cases from excel sheet and create work items. Irrespective of the logged in user, we can map any author in the excel to any author in the polarion. Shown below at annotation 1
.

Okay, than when you request the users from the project step through the code. you'll find that it will pass the printed data to the User class. Please step through to and see what causes the exception. To me, if there is data and unresolvable is False, there should not be an exception. I'm not sure about the amount of users, but can you see if it's a specific user causing the issue?
Perhaps you can get away with commenting out the exception. If there is one user causing this, you might not run into issues.
If you want, and are allowed, you can send me the print of the full user list so i can have a look whats going on.
You are correct. Please modify your local copy like this:
project.py:71
def createWorkitem(self, workitem_type: str, user):
        return Workitem(self.polarion, self, new_workitem_type=workitem_type, new_user=user)

workitem.py:34
def __init__(self, polarion, project, id=None, uri=None, new_workitem_type=None, new_user=None):

workitem.py:61
self._polarion_item.project = self._project.polarion_data
self._polarion_item.author = new_user._polarion_record #< this one is new
new_uri = service.createWorkItem(self._polarion_item)

I will make this properly in the future.

I am NOT sure why but ONLY one user has unresolvable as True.
{
    'description': None,
    'disabledNotifications': None,
    'email': None,
    'homePageContent': None,
    'id': None,
    'name': None,
    'voteURIs': None,
    'watcheURIs': None,
    'uri': 'subterra:data-service:objects:/default/${User}1234uid',
    'unresolvable': True
}

How to use the new createWorkItem? Like this createWorkItem('testcase', 'john')?

I did it like this, so a search in that array would do.
x = project.getUsers()
workitem1 = project.getWorkitem('PYTH-1073')
workitem1 = project.createWorkitem('softwaretestcase', x[0])

For the users, for now, something like this could help you out:
    def getUsers(self):
        """
        Gets all users in this project
        """
        users = []
        service = self.polarion.getService('Project')
        project_users = service.getProjectUsers(self.id)
        for user in project_users:
            if user.unresolvable is False:
                users.append(User(self.polarion, user))
        return users

This is untested, but you get the idea. It's just to check if it's resolvable.

Yes, that works too for getUsers().
For createWorkItem, are you going to create the function call to take either 2 arguments (work item type and user) OR 1 argument (work item type)? This way createWorkItem can be used with or without user defined.

While linking work items, with this temp_wi.addLinkedItem('proj-6561','verifies'), I am getting this error
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 441, in addLinkedItem
    service = self._polarion.getService('Tracker')
AttributeError: 'str' object has no attribute 'uri'

The linking requires another workitem object, not the ID.
 new_workitem_1 = project.createWorkitem('task')
 new_workitem_2 = project.createWorkitem('task')
 new_workitem_2.addLinkedItem(new_workitem_1, 'relates_to')

The hyperlink expect the Workitem.Hyperlinkroles class:
from polarion.workitem import Workitem
workitem1.addHyperlink('<url>', Workitem.HyperlinkRoles.EXTERNAL_REF)

Those suggestions worked. Thank you.
Just following up on the moving work item to document, any update on it?

Very little.
I checked i can get 'locations' from the interface, but haven't tried yet.

Is there any reason to reload work item from server in this function? I see this for removeLinkedItem() as well.
https://github.com/jesper-raemaekers/python-polarion/blob/7da63f47b6c61d071ae9995bbf838ca6a56a09c1/polarion/workitem.py#L396
The reason I am asking is, lets say I have done some operations like creating Custom array and updated work item title and then when I call the addLinkedItem without .save(), all the updates I have made are being cleared and reloaded from server. I do not see this for any other function in work item. Can this be removed or is there any reason to keep?

For the code below,
try:
    temp_wi.save()
except:
    ps = polarion.Polarion(server, username, pwd)
    project_obj = ps.getProject(proj_id)
    temp_wi.save()

I am getting this error when saving the work item. There are 2 .save() and so getting the exception twice. What might be causing that?
Traceback (most recent call last):
  File "C:\Users\Desktop\importTestCases.py", line 116, in create_testcase_wi
    temp_wi.save()
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 556, in save
    service.updateWorkItem(updated_item)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:/Users/Desktop/main.py", line 31, in <module>
    importTestCases.create_testcase_wi(ps, projectObj, projID, dvp_sheet, proj_user_list)
  File "C:\Users\Desktop\importTestCases.py", line 120, in create_testcase_wi
    temp_wi.save()
  File "C:\Users\Desktop\venv\lib\site-packages\polarion\workitem.py", line 556, in save
    service.updateWorkItem(updated_item)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
python-BaseException

The reload is there to keep the local object and polarion in sync as some operations are done on the data locally and send to polarion and some are polarion functions and then loaded to the local data. I would just call save after you edited the data you need to and then call the other functions.
Those exceptions look like something in temp_wi is not as polarion expects. I think the problem is to be found in what you did to temp_wi beforehand.

Yeah, I had alternate way for work item reload.
For temp_wi, I was providing html type formatting for a simple straight value. Now everything works.
In regards to createworkitem() with user, can be done as function overloading? Or what are your thoughts?

Yes, I think you can just set None as default since that's the value of the property when no user is being set.

Hey Jesper, just checking on the moving work item to document, any update on it? sorry pushing you on this. I have some presentations to make in the organization within the timeline. I tried updating location from other work item but it didn't help. I also tried using child relation to title of the document, it worked but the work item did NOT move to the document. Thanks.

Yes there is some progress. I have been able to move a newly created workitem to a document. I'll give a brief description of the steps:
preparations in polarion.py:107
self.services[service]['client'].service.moveWorkItemToDocument._proxy._binding.get(
                    'moveWorkItemToDocument').input.body.type._element[2].nillable = True

creating and moving:
w = project.createWorkitem('Test workitem A')
w.setDescription('Just a test description')
service = client.getService('Tracker')
spaces = service.getDocumentSpaces('Python') # be aware this changes order sometimes
u = service.getModuleUris('Python', spaces[0])
service.moveWorkItemToDocument(w.uri, u[0], None, -1, True)

I hopes this helps you get going.
This will be refined at some point, but i cannot give a timeline on that. If absolutely critical we can discuss commercial support options.

I added the above line in polarion.py like this
    def _updateServices(self):
        """
        Updates all services with the correct session ID
        """
        if self.sessionHeaderElement == None:
            raise Exception('Cannot update services when not logged in')
        for service in self.services:
            if service != 'Session':
                if 'client' not in service:
                    self.services[service]['client'] = Client(
                        self.services[service]['url'] + '?wsdl')
                self.services[service]['client'].set_default_soapheaders(
                    [self.sessionHeaderElement])
            if service == 'Tracker':
                # allow addComment to be send without title, needed for reply comments
                self.services[service]['client'].service.addComment._proxy._binding.get(
                    'addComment').input.body.type._element[1].nillable = True
                self.services[service]['client'].service.moveWorkItemToDocument._proxy._binding.get(
                    'moveWorkItemToDocument').input.body.type._element[2].nillable = True

but when I try this spaces = service.getDocumentSpaces('Python') I get an error
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: com.polarion.platform.persistence.UnresolvableObjectException: uri: subterra:data-service:objects:/default/Python${Project}Python

I tried to create a new module using createModule in service this way:
newmUri = service.createModule('Python',service.getDocumentSpaces("Python")[0],'Test Document','testcase','parent',False,'Heading')

but for some reason, I get this error. I followed https://almdemo.polarion.com/polarion/sdk/doc/javadoc/com/polarion/alm/ws/client/tracker/TrackerWebService.html#createModule(java.lang.String,java.lang.String,java.lang.String,com.polarion.alm.ws.client.types.tracker.EnumOptionId[],com.polarion.alm.ws.client.types.tracker.EnumOptionId,boolean,java.lang.String). Do you have any idea?
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\proxy.py", line 46, in __call__
    return self._proxy._binding.send(
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 135, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 229, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\Desktop\venv\lib\site-packages\zeep\wsdl\bindings\soap.py", line 329, in process_error
    raise Fault(
zeep.exceptions.Fault: java.lang.NullPointerException

Maybe you have found the issue by now, but I see this:
service.getDocumentSpaces("Python")

But Python is my Polarion project name, so fill the correct name there.

service.getDocumentSpaces("")

I'm closing this now. Feel free to open when you have new questions.

I didn't get time to work on this again until today. Yes, I used my own project ID but couldn't solve the issue and later figured out that to create a new document I need to use createDocument() rather than createModule().
So here are my changes in _updateServices of polarion.py:
            if service == 'Tracker':
                # allow addComment to be send without title, needed for reply comments
                self.services[service]['client'].service.addComment._proxy._binding.get(
                    'addComment').input.body.type._element[1].nillable = True
                self.services[service]['client'].service.moveWorkItemToDocument._proxy._binding.get(
                    'moveWorkItemToDocument').input.body.type._element[2].nillable = True
                self.services[service]['client'].service.createDocument._proxy._binding.get(
                    'createDocument').input.body.type._element[4].nillable = True  # allowedWITypes
                self.services[service]['client'].service.createDocument._proxy._binding.get(
                    'createDocument').input.body.type._element[6].nillable = True  # homePageContent

This is how I call the service createDocument. structureLinkRole need to be passed as {'id': 'parent'}.
    # createDocument(java.lang.String projectId,
    #               java.lang.String location,
    #               java.lang.String documentName,
    #               java.lang.String documentTitle,
    #               EnumOptionId[] allowedWITypes,
    #               EnumOptionId structureLinkRole,
    #               java.lang.String homePageContent)
services.createDocument('Python', 'customSpace', 'documentID', document_title, None, {'id': 'parent'}, None)

Hope this gives a jump start for you while developing a function for creating documents. Thank you for all the support so far. I will create a new issue as needed.


Reduce usage of deprecated imp module

Replace imp.new_module with types.ModuleType which is available from
py2.7 to 3+

Thank you!

Haha no problem! So I didn't get rid of every instance of imp because I'm not 100% sure how to replace the find_module and load_module calls.
2 of the classes with find/load_module calls are nested in a func themselves, so it'll probably be quite difficult to be sure that the API stays consistent before and after any changes.
Admittedly though, VimPathFinder has no __init__ and 2 staticmethods so it might not be very difficult to completely remove.
Since it's inside of the path hook func I can't imagine anyone externally relying on that portion of the API

So I didn't get rid of every instance of imp because I'm not 100% sure how to replace the find_module and load_module calls.

yeah, I tried awhile ago and only got so far, so was happy that you made a bit more progress :)


Route 53 Resolver service controller

New ACK Service Controller
Support for Route 53 Resolver
List of API resources
List the API resources in order of importance to you:

ResolverEndpoint
ResolverRule

@bwagner5 I've consolidated these into https://github.com/aws/aws-controllers-k8s/issues/480.


fixed minor accessibility issues

Changes
The changes are made to fix issue #62
The website had minor accessibility issues like:

Form elements didn't have associated labels, added label for Email Address
Added title to Resume which will assist the user to Download Resume as a PDF

How Has This Been Tested?
The proposed changes were tested on the local computer, and a performance was checked using chrome lighthouse
Mentions
@Korusuke, kindly review the changes
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] New feature and improvements (non-breaking change which adds/improves functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Code Refactoring (internal change which is not user facing)
[ ] Documentation
[ ] Test, CI, or build

Checklist

[x] Coding style of this project is followed
[ ] Change in documentation is required
[ ] Documentation has been updated accordingly
[ ] Unit tests have been added to cover code change

Very small fix I'd like to see that isn't your fault, but will need to be fixed here since you're editing the line already:
{{ site.url }} isn't the right way to make absolute URLs in Jekyll. It works some of the time but can break. The proper way is to use {{ '/cv/resume.pdf' | absolute_url }}, which will work in all cases.

Thanks for the updates

@Korusuke, please review it. Thanks


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/96 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-source-version-target.git

Docs Build status updates of commit 07fe70b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

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


node-github should be able to translate asset urls into requests

GitHub response objects often return asset urls as part of their payload (such as https://api.github.com/repos/octocat/Hello-World/issues/1347/comments from this sample payload).
It would be awesome if this sdk could use these urls to make the appropriate requests without making the users parse the url.
In the meantime, I've resorted to helper functions that break down the url into the components the sdk is currently expecting for its requests:
  parseCommentURL(url) {
    const match = url.match('https://api.github.com/repos/(.*)/(.*)/issues/(.*)/comments');
    if (match === null) {
      return {};
    } else {
      return {
        owner:match[1],
        repo:match[2],
        number:match[3]
      };
    }
  }

This could be implemented either by overloading the sdk methods or creating an additional method for these parameters. Any example of an endpoint that could make use of a url like this is something like http://mikedeboer.github.io/node-github/#api-issues-getComments
originally requested by @wilhelm in probot-slack: https://probot-talk.slack.com/archives/C6S4FC8AF/p1504269385000439
cc/ @gr2m

I would probably implement this in a separate module first. Knowing npm, this might even already exists :) My thinking is that modularity is normal in JS land, and at least for more advanced users who built front-end applications where library size matters, I’d see if we can make it optional.
So in your example would be something like this
github.issues.getComments(
  githubParseUrl('https://api.github.com/repos/octocat/Hello-World/issues/1347/comments')
)

What do you think?

Thanks for posting this @jbjonesjr :)
I feel like parsing the URLs might be harder than it seems at first, just because there are so many different URLS. There are quite a few NPM packages that attempt to do this, and when I was last looking for a GitHub url parser (for an unrelated use-case, actually :P) none of them were quite able to get the job done.
Another, simpler and less powerful way of solving this problem is by having a separate method in this library that just takes the URL and makes an authenticated request to it. This would have sufficed for the use-case that sparked this feature request.
Having said that, it would be super nice to have a well functioning GitHub URL parser 💯

a separate method in this library that just takes the URL and makes an authenticated request to it

This sounds interesting. You mean a separate method like github.request(url, options) where url woudl be a full url to the API endpoint, and options could include method, data for PUT/PATCH/POST requests and maybe custom headers? And it would send the authentication configured for the github client?

Yep, exactly 👍
That would have been really nice to use

Having said that, it would be super nice to have a well functioning GitHub URL parser 💯

Just wanting to mention that this is a very good point. The same is probably true for other languages. As URL templates are so important to GitHub’s REST API, I think we should make them either part of the toolkits, or make separate officially supported libraries.

v16 makes the plugin API public, so you could build a plugin that adds this feature. I’d be a cool experiment!

I’ll close it due to lack of activity. I also don’t see a use case myself. But if anyone would like to build such a thing I’d be happy to help out


Added repr methods for model classes

Fixes #7
repr methods for string representation of model classes added

Sure
On Sat, Apr 15, 2017, 10:33 AM Sudheesh Singanamalla <
<EMAIL_ADDRESS>wrote:

@sudheesh001 approved this pull request.
This looks good. The next thing to do would be to add travis
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/susi_api_wrapper/pull/8#pullrequestreview-32921181,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APjbKgXpSaSsPxhoYyMNdFdYXOW4coUNks5rwE-ggaJpZM4M62Lj
.


Update OSE Logo

The OSE logo currently in use is an old prototype of the logo from before the game was published. I gave Freddy the official logo.


incorrect paths rendering

Hi, I am facing a very strange issue, when I change the state of paths, the canvas renders them incorrectly.
here is the demo:
https://github.com/user-attachments/assets/31602b1c-95f9-4208-9bc2-00b9e2e9f2f7
and here is the code:
import { Text, SafeAreaView, StyleSheet, Button, View } from 'react-native';
import {useState, useCallback} from 'react';
import { Canvas, Path } from '@shopify/react-native-skia';
const initPath = new Array(10).fill('').map((p, i) => `M50 ${(i + 1) * 20} L300 ${(i + 1) * 20}`);
export default function App() {
  const [paths, setPaths] = useState(initPath);
  const onPress = useCallback(() => {
    setPaths(ps => ps.slice(0, -1))
  }, []);

  const onAdd = useCallback(() => {
    setPaths((ps) => {
      return ps.concat(`M50 ${(ps.length + 1) * 20} L300 ${(ps.length + 1) * 20}`);
    });
  }, []);
  return (
    <SafeAreaView style={styles.container}>
      <Text style={styles.paragraph}>
        Paths not rendered correctly by set state
      </Text>
      <Text style={styles.paragraph}>
        Paths count: {paths.length}
      </Text>
      <Canvas style={{flex: 1}}>
        {
          paths.map(path => <Path
            strokeWidth={10}
            strokeJoin="round"
            strokeCap="round"
            color="#222"
            key={path}
            style="stroke"
            path={path} />)
        }
      </Canvas>
      <View style={{padding: 10, gap: 10}}>
      <Button onPress={onAdd} title="increase 1 path" />
      <Button onPress={onPress} title="decrease 1 path" />
      <Button onPress={() => setPaths(initPath)} title="reset" />
      </View>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    backgroundColor: '#ecf0f1',
    padding: 8,
  },
  paragraph: {
    margin: 24,
    fontSize: 18,
    fontWeight: 'bold',
    textAlign: 'center',
  },

});

The weird part is that when I test it on Expo https://snack.expo.dev/@loom2023/react-native-skia-path , it works properly.  I am not sure if it's my code issue or package issue, can you help?

My apologies but I couldn't spot the problem from the video recording?

Hi, for example:

you can see that when I set the state to 4 paths, the canvas only renders 3 paths, and some times when I decrease it to 1 path, it still renders 2, it only happens in bare react native project, actually I am not sure if it's my project issue or skia issue because I can not reproduce it on Expo,


Update zsh-autosuggestions submodule

Fixes #1705
After zsh-autosuggestions has been updated to v0.5.0, directory suggestion without cd (when autocd is set) stopped working. Now the issue has been fixed (see https://github.com/zsh-users/zsh-autosuggestions/issues/379 and https://github.com/zsh-users/zsh-autosuggestions/pull/402), so can we update the submodule to v0.5.2?

Fixed indeed! Thanks very much :)


Implemented a temporal plan validator and started testing.

Codecov Report
Base: 89.54% // Head: 89.54% // No change to project coverage :thumbsup:

Coverage data is based on head (1938f37) compared to base (1938f37).
Patch has no changes to coverable lines.

:exclamation: Current head 1938f37 differs from pull request most recent head 607a27b. Consider uploading reports for the commit 607a27b to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##           timed-simulator     #297   +/-   ##
================================================
  Coverage            89.54%   89.54%
================================================
  Files                  142      142
  Lines                17549    17549
================================================
  Hits                 15714    15714
  Misses                1835     1835

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

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


Failed to execute 'setRequestHeader' on 'XMLHttpRequest'

I was receiving this error also. Just posting the issue and solution workaround here.
In my case the error occured when i used the module: https://github.com/jpillora/xdomain
Haven't got time to investigate this so i just removed the xdomain script for now.

I located the source of the issue and opened a support ticket on https://github.com/jpillora/xdomain/issues/157

Fixed in version 5.0.9
Make sure you load ng-file-upload before xdomain.

Hi Danial, this fixes the error, much appreciated.
Out of curiosity, i checked your push and i noticed that you changed the order of files, which resulted in loads of changed lines. Was there anything else you did that fixed this? Because, as i recall, i have played alot with the loading order in our app, but that didn't fixed it, now it does.
Thanks again.

The order of files were supposed to be like that but I think at version 5.0.0 I accidentally changed the order when I was refactoring the grunt file.
As for the fix, I moved the part that changes the prototype of XMLHttpRequest outside the angular service function and in the root, so it would be executed right away so that xdomain would pick up the already modified XMLHttpRequest. Before that code was inside angular service so it would be run after xdoamin scripts was loaded.

I know this is old, but in case anyone else runs into this issue again and searches for this it can be fixed easily by doing the following.
<!-- xdomain should always be loaded first according to its documentation. -->
<script src="//cdn.rawgit.com/jpillora/xdomain/0.7.4/dist/xdomain.min.js"></script>
<script>
  // Revert the XMLHttpRequest to the original from before xdomain (xhook) modified it.
  xhook.disable();
</script>
<script src="somewhere/ng-file-upload.min.js"></script>
<script>
  // Re-enable the xdomain (xhook) XMLHttpRequest.
  xhook.enable();
</script>

This might cause some issues if you attempt to make a cross domain request before xhook is re-enabled, but in my case it works great.

I just downloaded the version x64 1.16.1 and the error is still there:

Is there a fix?

oooooooooooooooooo


Recording causing crash

I know this fork doesn't auto record or upload to comma servers. Can that be added?
When clicking the manual record button, the comma three freezes and then restarts.

doesn't auto record or upload to comma servers. --> yes.
can you please tell me which branch you are using?


[OCPBUGS-37466] InspectPolicyObjects logic inverted

the previous logic was working inverted, if the Policy had none of objectTemplatePresent and
objectTemplateRawPresent, was saying that had both.
That would happen if a Policy is created manually (not from the PolicyGenTemplate generator) wrongly.

/ok-to-test


Feature request: better process function exits for type guards and 'if'-s

Currently type guards are limited only to bodies of conditionals.
A simple example with 'if':
function f(s: string | number) {
      if (typeof s === "string") {
          // s is 'string'
      }
      else {
          // s is 'number'
      }
}

But what if I write the same code, but another way:
function f(s: string | number) {
      if (typeof s === "string") {
          // s is 'string'
          // do something
          return;
      }

      // s is 'string | number', according to the compiler
      // but control flow of 'if' block flows directly to a function exit
      // that's why, s is actually 'number' here, if no assignments are made
}

So, the suggestion is to augment the rule for 'if' as follows:

If the false branch is not present, and all control flow exits of the true branch point exactly to function exits, the type of a variable or parameter is narrowed by a type guard in the code after 'if' statement when false, provided the code after 'if' statement contains no assignments to the variable or parameter.
If all control flow exists of the false branch point exactly to function exits, the type of a variable or parameter is narrowed by a type guard in the code after 'if' statement when true, provided the code after 'if' statement contains no assignments to the variable or parameter.

looks like the same as #2388


✨ add commands to build and publish image and chart to makefile

Summary
add commands to build and publish image and chart to makefile
Fixes #1555

I tested and it worked for me. I'll merge but we will later need to add some paragraph in the doc on how to use it

/lgtm
/approve


refactor(mission_planner): add comment functions/remove unused stuff/add comment

Description

added doxygen comments to functions
removed unused functions / replaced with existing utility functions
for check_goal_footprint, use boost::within instead

Related links

Tests performed
https://evaluation.tier4.jp/evaluation/reports/71566d0a-8f2d-556b-95b0-4ab69d7fd4d4?project_id=prd_jt

Notes for reviewers

Interface changes
none
Effects on system behavior
none
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[X] I've confirmed the contribution guidelines.
[X] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[X] The PR follows the pull request guidelines.
[X] The PR has been properly tested.
[X] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[X] There are no open discussions or they are tracked via tickets.
[X] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

(please fix spell check)


Discuss playlist API

As a team we should discuss which kind of helpful APIs could be provided around playlists.
Hints
Some examples from video.js:

shuffle
reverse
repeat
...

Repeat might also have modes (all, one, etc.).
We could also discuss helpers (e.g. view model to sync model objects with player playlist).
Acceptance criteria

APIs have been discussed and proposals have been written down.

Tasks

[x] Discuss and document.
[ ] Create dedicated issues.

The current state is as follows:

Web API

Issues already created for the web:

https://github.com/SRGSSR/pillarbox-web-suite/issues/17
https://github.com/SRGSSR/pillarbox-web-suite/issues/18
https://github.com/SRGSSR/pillarbox-web-suite/issues/19


To operate well with the default multithreaded SLIME setup, python GIL should be released as soon as possible

In its default setting on linux (atleast, ubuntu-22.04), SLIME communicates with SBCL using multiple threads. This means, if you want to call python through threads other than the thread which loaded python, you want to release the GIL from the original thread.
(in-package :ouroboros)

(cffi:defcfun ("PyGILState_Check" pygilstate-check) :int)

Upon loading ouroboros partially, (pygilstate-check) returns 1 and trying to hold python GIL from any other emacs buffers hangs the thread. The work around I have employed in py4cl2-cffi is to release the GIL immediately after initializing python.
Alternatively, one needs to configure SLIME/Swank to communicate with SBCL using a single thread, but that significantly defeats the purpose of using lisp.
I'm not issuing a PR because I'm not sure how you want to initialize python. In py4cl2-cffi, I'm initializing python after someone calls (pystart). This will happen after py4cl2-cffi is completely loaded. The GIL too is, then, released after load time. The current ouroboros setup initializes python during load time itself.

Good spot!  That also explains why I could use Python from Slime just fine (because it already holds the lock after initialization), but I had to acquire the lock explicitly when loading Ouroboros into Python.
I think I will do the same that you do in py4cl2-cffi and release the GIL immediately.  The problem with that is that I don't know the PyGILState.  Seems I will do again what you did in py4cl-cffi and assume a value of zero :)
At this point I want to say you another big thanks for your work with py4cl-cffi, which is an invaluable source of information!

The problem with that is that I don't know the PyGILState. Seems I will do again what you did in py4cl-cffi and assume a value of zero.

Yes, this remains a mystery. But apparantly, it has worked on Linux and Mac across x86_64 and arm64.


render output with alpha

Hello,
Does Filament support render output with premultiplied alpha?  If so, can you please point me to an example?  Haven't found any in the samples dir.
Thanks!

We have two such samples for Android and iOS:
https://github.com/google/filament/tree/master/android/samples/transparent-view
https://github.com/google/filament/tree/master/ios/samples/transparent-rendering
It's very easy, just pass the right flag to Engine::createSwapChain():
engine->createSwapChain(nativeWindow, SwapChain::CONFIG_TRANSPARENT);

Great!  Thanks @romainguy I'll take a look

Hey guys, Is there an example for windows on how to output with alpha channel? I modified the sample app to add the correct transparent flag and mSwapChain = mFilamentApp->mEngine->createSwapChain(nativeWindow, SwapChain::CONFIG_TRANSPARENT);   and I also added view->setClearColor(math::float4(0.0f, 0.0f, 0.0f, 0.0f)); but the render output still doesn't have the alpha channel when I read the buffer using readPixel().

@bejado

I saw this comment in another issue. Looks like you don't support that on windows? has the transparent rendering support been added on windows? This is probably going to be make or break for the app I am working on.
https://github.com/google/filament/issues/187#issuecomment-462822781

render output still doesn't have the alpha channel when I read the buffer using readPixel()

Can you elaborate? How are you calling readPixels and what does the result alpha channel contain?

This is how I am calling it:
Texture::PixelBufferDescriptor pb(image_data, area * 4, Texture::Format::RGBA, Texture::Type::UBYTE);
	renderer->readPixels(0, 0, winwidth, winheight, std::move(pb));

Sorry I should have said that the alpha channel value is there in the buffer but the value is always 255 for the entire image, and the background appears black on the resulting image where it should be transparent just like the other person is saying here . I have tried adding another layer behind the resulting image and check the transparency toggle in my app that I am copying the resulting image to and it's just black color.

I see, I'm able to reproduce. Let me dig a bit more into it, there's no reason I can think of why Windows wouldn't support transparency.

Thank you so much for looking into this!

So there's actually a pretty simple fix for this. In PlatformWGL.cpp set cAlphaBits on the pixel descriptor:
mPfd = {
    sizeof(PIXELFORMATDESCRIPTOR),
    1,
    PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,    // Flags
    PFD_TYPE_RGBA,        // The kind of framebuffer. RGBA or palette.
    32,                   // Colordepth of the framebuffer.
    0, 0, 0, 0, 0, 0,
    0,
    0,
    0,
    0, 0, 0, 0,
    24,                   // Number of bits for the depthbuffer
    0,                    // Number of bits for the stencilbuffer
    0,                    // Number of Aux buffers in the framebuffer.
    PFD_MAIN_PLANE,
    0,
    0, 0, 0
};
mPfd.cAlphaBits = 8;

This should unblock you for now.

Thank you ! It works now.
Is it possible to have the image based lighting on but just toggle off the environment visibility?

What do you mean? You mean you want to not see the environment in the background? If so, yes. All you need is to not create a skybox.

Yup that's what I meant and not setting the skyboxes works. Thanks ! Looks like I will be able to also toggle this on and off at runtime by setting skybox to null. Cheers !

How to do this with web? It seems the engine.createSwapChain() method does not accept any arguments

You can override the WebGL 2.0 context config in the 2nd arg to Engine.create as per https://google.github.io/filament/webgl/reference.html#Engine

like this?    this.engine = Filament.Engine.create(canvas, {alpha: true,premultipliedAlpha: false,preserveDrawingBuffer:true});
?

const options = {
majorVersion: 2,
minorVersion: 0,
antialias: false,
depth: true,
alpha: true,
premultipliedAlpha: false,
preserveDrawingBuffer: true
};
this.engine = Filament.Engine.create(canvas, options);
I tried like this but it still doesn't seem to work

@bejado

So there's actually a pretty simple fix for this. In PlatformWGL.cpp set cAlphaBits on the pixel descriptor:
mPfd = {
    sizeof(PIXELFORMATDESCRIPTOR),
    1,
    PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,    // Flags
    PFD_TYPE_RGBA,        // The kind of framebuffer. RGBA or palette.
    32,                   // Colordepth of the framebuffer.
    0, 0, 0, 0, 0, 0,
    0,
    0,
    0,
    0, 0, 0, 0,
    24,                   // Number of bits for the depthbuffer
    0,                    // Number of bits for the stencilbuffer
    0,                    // Number of Aux buffers in the framebuffer.
    PFD_MAIN_PLANE,
    0,
    0, 0, 0
};
mPfd.cAlphaBits = 8;

This should unblock you for now.

For some reason, I must use old filament version,  why I copy this code to PlatformWGL.cpp , run it on windows  ,  then get this error:
FEngine (64 bits) created at 000001EA91E3C080 (threading is enabled)
FEngine resolved backend: OpenGL
NVIDIA Corporation, NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2, 4.1.0 NVIDIA 546.80, 4.10 NVIDIA via Cg compiler
OS version: 0
class utils::PostconditionPanic
in void __cdecl filament::PlatformWGL::makeCurrent(struct filament::backend::Platform::SwapChain *,struct filament::backend::Platform::SwapChain *) noexcept:241
in file D:\filament_build\new1\filament\filament\backend\src\opengl\PlatformWGL.cpp
reason: wglMakeCurrent() failed. hdc = FFFFFFFFC20144F5


Title Typo

"tp management group" should be "to management group"

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

ID: 9a46e3b3-b5da-d9a3-4da5-a77b9ae0c834
Version Independent ID: 6997b9f3-5f52-2fec-978b-f6cc1a9d18a1
Content: Use Bicep tp deploy resources to management group - Azure Resource Manager
Content Source: articles/azure-resource-manager/bicep/deploy-to-management-group.md
Service: azure-resource-manager
Sub-service: bicep
GitHub Login: @mumian
Microsoft Alias: jgao

@JustinGrote - Thanks again for bringing this to our notice and helping us improve our Azure documentation. I have raised a PR to fix the typo in the title within the metadata. Once the PR is reviewed and approved , changes would go live.
At this point it appears that there's no further edits or updates needed to the documentation, other than what has been listed above. We will go ahead and close this issue for now, however if you have any further feedback on the document please tag us in your reply and will be happy to reopen the thread and continue the conversation. Thank you


Repository made by factory method @doctrine.orm.default_entity_manager::getRepository($entityName) always have different EntityManager

Every repository i configure in my yaml conf file, using the factory method getRepository() of @doctrine.orm.default_entity_manager get a differente instance of EntityManager causing impossibility to save Entity with mapping associations
I really can't understand why using factory<EMAIL_ADDRESS>getRepository] generate inconsistent EntityManager instances across the repositories while using factory<EMAIL_ADDRESS>getRepository] have better stability.
TL;DR this story is very long, please go to my SO question here STACKOVERFLOW
PHP 7.2.7
| Version     | v2.6.1
| Version     | v2.6.2

Closing as invalid: not related to this repository.

Actually let's use this new GH feature and move it to appropriate repository. 😊


Flutter Forward — ilorin

Here

@Jemeni11, if you're free, please add this to the list

Hey
Thanks for assigning this to me.
I'm done with it :+1:

Ayy! It's nothing man!
Thanks for contributing as always!


Update broke pymaker extention

Issue Type: Bug
I installed the March 2022 version of VS code and now pymaker won't connect to my serial port... it doesn't seem to be working at all, I uninstalled and reinstalled it and it doesn't fix anything. I also installed the pymaker v2 alpha, also doesn't connect to my device.
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.89GB (1.15GB free)

Process Argv
--crash-reporter-id 36ea55df-4518-4083-b2ef-d629823a6a63

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

python
ms-
2022.4.0

jupyter
ms-
2022.3.1000901801

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.6

cpptools
ms-
1.9.7

pymakr
pyc
1.1.17

pymakr-preview
Pyc
2.8.1

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
dsvsc009:30452663
pythonvsnew555:30457759
vscscmwlcmc:30438804
vscgsvidc:30447482
pynewfile477:30463512

@Ladybrinx have you reported this to the extension repo? If so, please add the link here. Extension author is best placed to determine what changed in 1.66 to cause your problem.

Sorry no, I just clicked the Help->Report issue and it brought me here. Thanks, I'll try that

Same conditions, same problem.
@Ladybrinx Downgrade to VScode 1.65 solved the issue for me. (Turn off autoupdate)
Seems a common issue, VScode updated remap serial code bindings and break pymakr. There are multiple times the same issue over years...

@Tyriar, @gjsjohnmurray  sorry, i'm clueless at this level of software engineering. according to the number of same issues i found here and at the pymakr extension, this problem exists since years. can i ask you:
-why has vscode to remap serial port bindings with updates?
-is there any chance for the developers of the pymakr extension to automate their process of capture and implement this remaping?
thank you for your information

@schmt16 I did the same think, rolled back to the Feb Version and it works fine, I assume they will update this version too eventually

Sometimes when VS Code updates and extension may break for various reasons, this latest version updated the Electron version which bumps the node version an extension would use which is likely the problem. The extension needs to be updated to be compatible, there's nothing we can do on our end.

The issue is likely solved by uninstalling and reinstalling Pymakr, which should redownload / rebuild correct bindings.
There's also a preview version of Pymakr 2, which uses N-API bindings. These should be more reliable.
Backstory: Node can't communicate with the serial port directly, so we need to build binaries that handle this. These bindings have to match the Node / Electron environment, which occasionally changes with VSCode updates.

@jakobrosenberg could the extension catch the failure and give a good error message for node module version mismatches?

The issue is likely solved by uninstalling and reinstalling Pymakr, which should redownload / rebuild correct bindings.
There's also a preview version of Pymakr 2, which uses N-API bindings. These should be more reliable.
Backstory: Node can't communicate with the serial port directly, so we need to build binaries that handle this. These bindings have to match the Node / Electron environment, which occasionally changes with VSCode updates.

Uninstalling and reinstalling didn't work, I tried that first... I also tried the Pymakr 2, also didn't work.  The only thing that worked was rolling back to the Feb 2022 update.  I appreciate everyone's input here though.  added this before searching the web and finding the issue... I guess I should have waited.  I see that this is a common problem when there is an update.

@Tyriar the plugin should automatically rebuild the bindings if they aren't working, but for some reason it can't run command any longer. I'll have to look into the cause of this.
@Ladybrinx do you remember what error you got with the Pymakr 2 preview?

@jakobrosenberg  sorry I don't remember, I should have taken a screen shot, it was similar to the pymakr one but not as detailed, still talking about not being able to find the device.


WI mapping

Adds WI extractor and mapping entry point.
This is a lingering branch from a prior sprint that didn't get a PR.

wth -- why only one check run here?


Issues with IE 10 and 11

When using this preset, I am getting the following error only in IE 10 and IE 11:
ReactDOM.render(): Invalid component element. This may be caused by unintentionally loading two independent copies of React.

I need you to give me more information than that. Can you create a reproduction case?

Sorry @thejameskyle that was a pretty horrible bug report. Here are some steps to reproduce:

Pull down: https://github.com/gschwa/react-redux-starter-kit which is a fork of a very popular react-redux-starter-kit
npm install (requires npm 3.x)
npm deploy:prod (creates a dist directory with the babel compiled code)
npm install http-server -g
http-server ./dist
Open in either IE 10 or IE 11 to see the error (all other modern browsers work) You can DL a IE 11 VM  from here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/mac/

The preset is configured here: https://github.com/gschwa/react-redux-starter-kit/blob/master/build/webpack.config.js#L131
In order, to see it in a non-minified version I did the following:

Changed production to development here: https://github.com/gschwa/react-redux-starter-kit/blob/master/build/webpack.config.js#L130
npm run deploy:dev
http-server ./dist (stop the one from before first or you will get an address conflict)
Open in IE 11 or IE 10

This issue is also happen in Android browser(test with Galaxy Note 3), But Chrome Mobile is OK.

@gschwa it's not because of react-optimize, you could check this:  https://github.com/creatorkuang/react-redux-starter-kit/commit/dcb1c88c03d65b79c8ec70d63d2ef3e2236ffa84
to see if it help.

@creatorkuang Thank you that worked.

The root of this issue seems to be transform-react-inline-elements that require a global Symbol polyfill.
Have a look at https://babeljs.io/docs/plugins/transform-react-inline-elements/ for more details.

I'm also getting this issue in IE11. I'm loading babel-polyfillwith webpack but I'm not sure if I'm doing something wrong or not. I'm currently doing this:
  entry: {
    app: [
      'babel-polyfill',
      './src/index'
    ]
}

This should be enough to have transform-react-inline-elements working, no?

Actually no sense to load all 'babel-polyfill' (it's ~60Kb minified), you can just include Symbol polyfill in webpack config entries:
  entry: {
    app: [
      'core-js/es6/symbol',
      './src/index'
    ]
}

or import in your index.jsx (entry point for browser app):
import 'core-js/es6/symbol.js';


Migrate plugin plugin.keychain

Migrate the plugin: plugin.keychain
publisherId = "us.datalabs"

Sorry, I don't see plugin.keychain. Is this a new plugin you wish to create?

@Shchvova , no it is an old plugin from Corona. It was published in the Corona plugins portal.

Oh... I would need author's permission to publish it then. I will try to get it.

Great. I talked with him. Let me know if you need help to contact him.

Absolutely! Ask him to email me (vlad) either at coronalabs.com or solar2d.com. I am gladly bringing old or new plugins to this repository.

Done!


ConcatenatingAudioSource.clear()

when ConcatenatingAudioSource is not empty ConcatenatingAudioSource.clear() will throw "error running command".
I use ConcatenatingAudioSource.clear and ConcatenatingAudioSource.addAll change playing list.

I call player.pause before  ConcatenatingAudioSource.clear avoid "error running command".

Thank you. it works well.


Reporting ConcatMap.onNext implementation is invalid

This is happening in a multi threaded context on a source Observable transformed with a flatScan followed by a flatMap.
      // scan state contains a list of decoded values and the remainder bits
      src.flatScan(DecodeResult(List.empty[R], BitVector.empty)) {
        (prev, bits) =>
          val code = prev.remainder ++ bits
          // recursive decode yields a list of values and remainder
          decoder.decodeR(code).fold(
            err => if (strict) Observable.raiseError(StreamDecodeException(err, code)) else Observable(DecodeResult(List.empty[R], BitVector.empty)),
            result => Observable(result))
      }
      // flatten decoded list of values
      .flatMap(result => Observable.fromIterable(result.value))

Note
There seems to be some race condition in the processing of the first element. In some runs, the error is not encountered but the first element is not emitted. When the error does occur, it is always on the first element.
Log
opening usb adapter 067b:2303@002:051:002 ...
Thread[dev-11,5,main] 067b:2303@002:051:002 < BitVector(8 bits, 0x20)
Thread[dev-12,5,main] 067b:2303@002:051:002 < BitVector(152 bits, 0x5b4d616e75616c204275726e2043617264735d)
Thread[dev-13,5,main] 067b:2303@002:051:002 < BitVector(80 bits, 0x3c436172643a4b483e20)
java.lang.IllegalStateException: State Active(monix.execution.Cancelable.empty) in the Monix ConcatMap.onNext implementation is invalid, please send a bug report! See https://monix.io
	at monix.reactive.internal.operators.ConcatMapObservable$ConcatMapSubscriber.reportInvalidState(ConcatMapObservable.scala:332)
	at monix.reactive.internal.operators.ConcatMapObservable$ConcatMapSubscriber.onNext(ConcatMapObservable.scala:246)
	at monix.reactive.internal.operators.FlatScanObservable$$anon$1$$anon$2.onNext(FlatScanObservable.scala:84)
	at monix.reactive.internal.builders.IteratorAsObservable.monix$reactive$internal$builders$IteratorAsObservable$$fastLoop(IteratorAsObservable.scala:165)
	at monix.reactive.internal.builders.IteratorAsObservable.startLoop(IteratorAsObservable.scala:66)
	at monix.reactive.internal.builders.IteratorAsObservable.unsafeSubscribeFn(IteratorAsObservable.scala:45)
	at monix.reactive.internal.builders.IterableAsObservable.unsafeSubscribeFn(IterableAsObservable.scala:32)
	at monix.reactive.internal.operators.FlatScanObservable$$anon$1.liftedTree1$1(FlatScanObservable.scala:74)
	at monix.reactive.internal.operators.FlatScanObservable$$anon$1.onNext(FlatScanObservable.scala:70)
	at device.io.DebugObservable$$anon$1.onNext(DebugObservable.scala:27)
	at monix.reactive.observers.SafeSubscriber.liftedTree1$1(SafeSubscriber.scala:47)
	at monix.reactive.observers.SafeSubscriber.onNext(SafeSubscriber.scala:46)
	at device.io.AsyncSubscriber$$anonfun$onNext$1.apply(AsyncSubscriber.scala:15)
	at device.io.AsyncSubscriber$$anonfun$onNext$1.apply(AsyncSubscriber.scala:15)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

@ajaychandran that error can also happen in case the back-pressuring contract is violated (i.e. multiple onNext events happen that don't wait for the returned Future[Ack] on concatMap's internal subscriber.
Can you share your src with me?

@ajaychandran also, you don't have the latest version. Please upgrade to the latest 2.3.0.
In version 2.2.0 the implementation of concatMap was changed for optimisation purposes with a riskier version that uses getAndSet, benefiting from Java 8 platform intrinsics.
But since then at least 2 issues have been fixed:

https://github.com/monix/monix/issues/321
https://github.com/monix/monix/issues/335

Thanks for the quick turn around @alexandru
The back-pressure contract was being violated; introducing a BufferedSubscriber in the flow fixed the issue.

@ajaychandran if you cannot control the source, then a BufferedSubscriber is the right approach.
You also have ConcurrentSubject (which wraps subjects with a BufferedSubscriber) and Observable.create (which gives you a buffered subscriber as well).
Please UPGRADE to the latest version!
Also see this document for more details about that contract if interested:
https://monix.io/docs/2x/reactive/observers.html

Thanks. Upgraded to 2.3.0; was testing with 2.2.3.


Update FSL language

Add language about commercial licensing.

It looks like gears with FLS in them usually have a description of the license in the manifest.json in the "description".  See https://gitlab.com/search?group_id=5096867&scope=blobs&search=FSL&language[]=Markdown&language[]=JSON


Pin cloudflared version

seems like it’s no longer avail in the latest

I’m assuming this is temp until cloudflare fixes their build?

Yep assuming they will add it.
Unless we can use a diff compatible asset?

Seems like it’s just a bad build. Looks like it’s a missing the.binaries for a few of the different platforms.

https://github.com/cloudflare/cloudflared/issues/950


scCryptolType: unsupported type (var_blk1!_89 : Prelude.Nat)

$ saw bignum.saw
...
...
...
You have encountered a bug in cryptol-verifier's implementation.
*** Please create an issue at https://github.com/GaloisInc/cryptol-verifier/issues

%< ---------------------------------------------------
  Revision:  315a6d201bbc002bb5e414945e885db5d9958444
  Branch:    HEAD
  Location:  scCryptolType
  Message:   scCryptolType: unsupported type (var_blk1!_89 : Prelude.Nat)
-> (var_off1!_90 : Prelude.Vec 64 Prelude.Bool)
-> Prelude.Bool
CallStack (from HasCallStack):
  panic, called at src/Verifier/SAW/Cryptol/Panic.hs:13:9 in cryptol-verifier-0.1-aALHfjF4GzKez0Qlpznm1:Verifier.SAW.Cryptol.Panic
  panic, called at src/Verifier/SAW/Cryptol.hs:1158:19 in cryptol-verifier-0.1-aALHfjF4GzKez0Qlpznm1:Verifier.SAW.Cryptol
%< ---------------------------------------------------

scCryptolType.tar.gz

I ran into another one of these. Much simpler example attached (run saw xxhash.saw). It seems this panic happens when an unallocated pointer is passed to the function. Passing crucible-null instead allows the proof to succeed (see example below).
panic.tar.gz

This is annoying. You can see what's going on if you put a print_goal statement in a do block before the z3 proof tactic in the verification command. You'll see that the proof goal mentions a variable named car_blk0!_52 which has type Nat:
[21:23:00.538] Goal XXH32 (safety assertion:):
[21:23:00.538] let { x@1 = Prelude.bvNat 64 0
      x@2 = Prelude.equalNat 0 var_blk0!_52
      x@3 = Prelude.bvEq 64 x@1 var_off0!_53
      x@4 = Prelude.and x@2 x@3
    }
 in Prelude.EqTrue
      (Prelude.implies Prelude.True
         (Prelude.implies
            (Prelude.and
               (Prelude.not (Prelude.ite Prelude.Bool x@2 x@3 x@4))
               (Prelude.bvult 64 (Prelude.bvNat 64 15) length))
            (Prelude.or x@4
               (Prelude.and (Prelude.equalNat 1 var_blk0!_52)
                  (Prelude.not (Prelude.bvult 64 x@1 var_off0!_53))))))

The Nat-typed variable comes from the block ID of the symbolic pointer. (For an allocated pointer, the block ID would be a concrete number.) A Nat-typed variable shouldn't be a problem in and of itself, but it seems that somewhere in saw-script there is some code that expects proof goals to only mention variables that have types that come from Cryptol. We should really never be using that scCryptolType function anywhere, as it is so fragile and can cause panics.

As I mentioned in the thread for #31 (a duplicate of this issue), bisection shows that the panic from the cryptol-verifier package was fixed in GaloisInc/saw-script@f7bb948, which was part of GaloisInc/saw-script#728.
However, the proof still fails for a different reason, which is that crucible_fresh_pointer creates a symbolic saw-core variable of type Nat, and the saw-core backends can't handle symbolic variables of type Nat. I'll open a separate saw-script ticket for that.


Reth panicked with "body indices for block X must exist"

Describe the bug
Reth crashed. These are the logs before it exited.
2023-12-16T16:51:25.472382Z  INFO reth::cli: Status connected_peers=80 freelist=3716307 latest_block=18799847
thread 'tokio-runtime-worker' panicked at /project/crates/storage/provider/src/bundle_state/bundle_state_with_receipts.rs:377:25:
body indices for block 18799925 must exist. last available block number: Some(18799924)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-12-16T16:51:50.089843Z ERROR reth_tasks: Critical task `consensus engine` panicked: `body indices for block 18799925 must exist. last available block number: Some(18799924)`
2023-12-16T16:51:50.097081Z  INFO reth::cli: Wrote network peers to file peers_file="/reth/known-peers.json"
Error: Critical task `consensus engine` panicked: `body indices for block 18799925 must exist. last available block number: Some(18799924)`
Location:
    /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/convert/mod.rs:716:9

Steps to reproduce
I don't know how to reproduce it.
Node logs
reth-crash-2023-12-19.txt
Platform(s)
No response
What version/commit are you on?
0.1.0-alpha.13
What database version are you on?
Current database version: 1
What type of node are you running?
None
What prune config do you use, if any?
No response
If you've built Reth from source, provide the full command you used
No response
Code of Conduct

[X] I agree to follow the Code of Conduct

This has occurred again and I have captured debug logs this time. I have 2 nodes that crashed due to the same error but for different blocks. I attached both debug logs.
reth-crash-2023-01-01.log.zip
reth-crash-2023-01-01b.log.zip

This is related to the receipts in blockchain tree.
It's not relevant but it seems the block commit time is around 9s.
But the problem seems to be around this: https://github.com/paradigmxyz/reth/blob/8dff31e3accf63521f746dc797ce0c3da2ea86bf/crates/blockchain-tree/src/chain.rs#L159-L178
We are reverting the tip of the side chain that we want to fork, and that is okay, and after it we extend reverted state we new state change. Problem is we are not discarding receipt from chain that we want to fork and they stay in two places.
in essence we are doing something like:
let mut state = self.state().clone();
state.revert_to(parent.number);
let block_state = .... execute new_block and get new state ...
state.extend(block_state);

What we should add before last extend is remove_all_receipts this would remove all receipts that belong to the original chain.

fixed in https://github.com/paradigmxyz/reth/pull/5921


Can't install <IP_ADDRESS> NuGet Package

Hi!
I can't install the NuGet packages NBi.Framework (version <IP_ADDRESS>) or NBi.VisualStudio (version 1.18.0).
I am always getting the following errors:
Via Package Manager Console:
Install-Package NBi.Framework
  GET https://api.nuget.org/v3/registration3-gz-semver2/nbi.framework/index.json
  OK https://api.nuget.org/v3/registration3-gz-semver2/nbi.framework/index.json 638ms
Restoring packages for C:\XXX\XXX.csproj...
Install-Package : NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1). Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
At line:1 char:1
+ Install-Package NBi.Framework -Version <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
At line:1 char:1
+ Install-Package NBi.Framework -Version <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win-x64. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
At line:1 char:1
+ Install-Package NBi.Framework -Version <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win-x86. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
At line:1 char:1
+ Install-Package NBi.Framework -Version <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : Package restore failed. Rolling back package changes for 'TestAutomationDwh'.
At line:1 char:1
+ Install-Package NBi.Framework -Version <IP_ADDRESS>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand`

Or via Package Manager UI:
`Restoring packages for C:\XXX\XXX.csproj...
NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1). Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win-x64. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
NU1202: Package NBi.Framework <IP_ADDRESS> is not compatible with net471 (.NETFramework,Version=v4.7.1) / win-x86. Package NBi.Framework <IP_ADDRESS> supports: 461 (461,Version=v0.0)
Package restore failed. Rolling back package changes for 'XXX'.`

I tried to change the framework version of my project to different ones (4.6.1, 4.5, 4.5.1, ...) but nothing is working. I don't really know what "... supports: 461 ..." really means, because as already mentioned, changing project framwork to .net 4.6.1 doesn't work.
Installing the released v1.17.1 package is just working fine...
Using VS Professional 2017 15.7.5

Sorry for delay, I didn't see your post yesterday.
That's extremelly weird. I also have VS 15.7.5 and .net framework 4.7.1 is available. When I select a project class library with framework set to .NET Framework 4.7.1 and then I run Install-Package NBi.Framework on Package Manager Console, I've the following log:
PM> Install-Package NBi.Framework

Attempting to gather dependency information for package 'NBi.Framework.<IP_ADDRESS>' with respect to project 'ClassLibrary20', targeting '.NETFramework,Version=v4.7.1'
Gathering dependency information took 1.42 sec
Attempting to resolve dependencies for package 'NBi.Framework.<IP_ADDRESS>' with DependencyBehavior 'Lowest'

... (long list of dependencies) ...

Adding package 'NBi.Framework.<IP_ADDRESS>' to folder 'c:\users\cedri\documents\visual studio 2017\Projects\ClassLibrary20\packages'
Added package 'NBi.Framework.<IP_ADDRESS>' to folder 'c:\users\cedri\documents\visual studio 2017\Projects\ClassLibrary20\packages'
Added package 'NBi.Framework.<IP_ADDRESS>' to 'packages.config'
Successfully installed 'NBi.Framework <IP_ADDRESS>' to ClassLibrary20
Executing nuget actions took 12.78 sec
Time Elapsed: 00:00:14.2783797

Same result for Install-Package NBi.Framework with  Package Manager Console or with Nuget Package Manager.
According to Microsoft documentation, creating a project net471 and referencing a net461 package should not be an issue (and from my very own experience it's the case).
I found a few posts such as this one, with people having the same issue with other packages. It's apparently linked to how you installed the .Net Framework 4.7.1. Could you check the value of <TargetFramework> in your .csproj file.

Huuum, I found something else, meta information in the package are not correct (was lib\461 should be lib\net461). Could you try the following command Install-Package NBi.Framework -version 1.19.0-beta0044? If it fixes your issue, I'll rebuild a 1.18.1 with the same fix.

Hi - your fix solved the problem and I can install the package now.
Thanks!

Thx for confirmation. I also republish a new version of the framework 1.18 (and VisualStudio) with the correct metadata.
Install-Package NBi.Framework -Version 1.18.1
Install-Package NBi.VisualStudio -Version 1.18.1

By the way, except if you're doing some complex c# stuffs or trying to extend NBi, the package NBi.VisualStudio is probably more suited than the package NBi.Framework.


Update doc to reflect the use of RBAC in REST API

@jenmalloy Please review after the fact. I'm merging this now to ensure the docs are correct before tagging the 0.15.0 release. I'll address any comments you may have in another PR.

@jenmalloy Thanks, Ive pushed the requested changes to master (those that still applies anyway).


standard.ignoreDirectories will be better

What version of this package are you using?
standard 14.3.4
What problem do you want to solve?
I want to disable globally standard in some projects, like Enterprise Project whitch has own eslint rules.
What do you think is the correct solution to this problem?
Can't enabled in a project and disabled in another project at the same time.
Are you willing to submit a pull request to implement this change?

You can disable the extension globally in vscode with : "standard.enable": false in settings.json.
Then you can enable the extension in one specific project with the same settings in the root of your project : .vscode/settings.json.


New Release

There's been a lot of new features that have been added since the last release, it might be best to pull the trigger on this sooner rather than later. Here's a list of all the changes, I think we should copy and paste it into the release notes in the [Releases] (https://github.com/caolan/highland/releases) section.
New additions

drop Ignores the first n values of a stream and then emits the rest. #75 #244
done Calls the supplied function once the stream has ended. #161
sort Collects all values together then emits each value individually but in sorted order. #169 #245
streamifyAll: Takes an object or a constructor function and returns that object or constructor with streamified versions of its function properties. #226
Iterator Support: ECMA2015 (aka ES6) style iterators can now be passed to the Highland constructor function. #235

Improvements

each now returns an empty stream rather than nothing. #161.
Ensure through propagates Node stream errors. #240
Preserve this context of wrapped function when using wrapCallback. #248
Update tranduce to use latest version of  transformer protocol. #261

+1 on new release.
One more improvement

each now returns an empty stream rather than nothing. #161.

Ah I'd missed that one. Incidentally, if we're finally bringing in drop should we also merge slice (#250)?

I tried to make a release but eslint is not happy when calling npm test
lib/index.js
2896:40  error  err is already declared in the upper scope   no-shadow
3281:29  error  memo is already declared in the upper scope  no-shadow
3291:27  error  memo is already declared in the upper scope  no-shadow
3987:18  error  Empty block statement                        no-empty
✖ 4 problems (4 errors, 0 warnings)
do you have the same issue on your side ? it is probably due to recent  commits.

Slice has optional arguments. Not sure what to do about that...
@jeromew, that's strange. I don't see it. Fresh clone and everything.
On Thu, Apr 9, 2015 at 3:22 PM, jeromew<EMAIL_ADDRESS>wrote:

I tried to make a release but eslint is not happy when calling npm test
lib/index.js
2896:40 error err is already declared in the upper scope no-shadow
3281:29 error memo is already declared in the upper scope no-shadow
3291:27 error memo is already declared in the upper scope no-shadow
3987:18 error Empty block statement no-empty
✖ 4 problems (4 errors, 0 warnings)
do you have the same issue on your side ? it is probably due to recent
commits.
—
Reply to this email directly or view it on GitHub
https://github.com/caolan/highland/issues/267#issuecomment-91359614.

It's possible to configure Travis to release to npm when a tagged commit passes. Do we want to consider this so we don't have to wait for @caolan or @jeromew to release?

Wouldn't this expose their NPM credentials to the public? Unless travis encrypt uses a repository-specific public key.
On Fri, Apr 10, 2015 at 1:52 PM, Matt Brennan<EMAIL_ADDRESS>wrote:

It's possible to configure Travis to release to npm when a tagged commit
passes http://docs.travis-ci.com/user/deployment/npm/. Do we want to
consider this so we don't have to wait for @caolan
https://github.com/caolan or @jeromew https://github.com/jeromew to
release?
—
Reply to this email directly or view it on GitHub
https://github.com/caolan/highland/issues/267#issuecomment-91664296.

Regarding slice, I had noticed that although it's worth noting that it actually doesn't affect the currying. These all work as expected:
var arr = [1, 2, 3, 4, 5];

var first = _.slice(1);
var second = _.slice(1, 4);

first(3, _(arr)).toArray(_.log);
//=> [2, 3]

second(_(arr)).toArray(_.log);
//=> [2, 3, 4]

I prefer fixed arity functions though so a solution would be to just remove the default values in slice and be explicit in the implementation of drop:
Stream.prototype.drop = function (n) {
    if (n <= 0) {
        return this;
    }
    return this.slice(n, Infinity);
};
exposeMethod('drop');

The problem with optional arguments has always been if people try to do
var drop5 = _.slice(5);
drop(_([1, 2, 3, 4, 5])).toArray.log(_.log);
// => an error.

Not having optional args means people can't accidentally mess up like this. But, I'm also OK with relaxing our stance on optional args if we put a warning in big red letters in the docs that says the top-level slice requires an explicit end parameter. We'll just be pushing the hard work to the user.

I think I would rather keep things consistent and just have the blanket rule that transforms don't take optional arguments, they complicate the API and once that genie is out of the bottle it's hard put it back in.

I don't feel strongly either way, but slice is so ubiquitous that not having end be optional could cause the same kinds of confusion. Or we could implement drop and take in terms of a slice-like function, but not expose a slice transform.

Sorry, meant to reply to this. slice is quite useful though so it would be a shame to lose it. Does anyone else have any input? I'll go along with the consensus.

We could go the reduce route and have a slice1.
On the other hand, slice(start, end) is equivalent to .drop(start).take(end - start).

I'd vote for keeping fixed arity, I understand this would likely trip people up in the case of slice though. Any more suggestions on alternative names for slice? Perhaps 'substream(start, end)', similar to substr()?

@vqvu regarding the release, I still have the issue with linting and don't understand why you don't see it in a fresh clone
for instance, the warning
2896:40 error err is already declared in the upper scope no-shadow

correctly detects a linting problem when you look at line 2896 because a closure shadows the err param that is already used in the scope.
I am surprised to be the only one with this problem.

@vqvu ok ; after removing node_modules altogether + a fresh npm install, the linting issue has disappeared.
I still don't understand it because it looks like the
2896:40 error err is already declared in the upper scope no-shadow

issue really exists in the code line 2896 (there is an err variable used by the closure that shadows the err from the upper scope)
am i misunderstanding this 'no-shadow' directive ?

@svozza you said
I think we should copy and paste it into the release notes in the Releases section.

I think we should use the CHANGELOG file instead. It hasn't been used since 2.0.0 but should probably be used from now on.
regarding other options for slice, there could be cut, extract, section. cut is the word used for video cutting for instance when you want to extract a slice of a video.

Yeah, I just mentioned the Releases section because I saw it on the Bluebird page but changelog is as good a place as any. If we change the file name to changelog.md we can get the markup to work in it as well.

We'll want to fix #205 before we release or the page that gets generated will be broken again.
@jeromew Perhaps the no-shadow was turned off by default in a later version of eslint? We don't explicitly enable that check in our .eslintrc.
I like substream since `cut

Thought about it some more, and I now think it's just fine to have slice without the optional argument (so objection withdrawn! :)).
After all, if I was OK with slice and slice1, then I should be OK with slice and drop.
The PR is fine to merge, I think, after applying @svozza's proposed fix.

@svozza, @vqvu do you want to release with or without a merge of a renamed slice ? what do you think of the different options proposed & do you have other ideas ?

@vqvu so if I understand well you had the main objection regarding the slice name but that objection is gone now. @caolan was your message an objection also or do you agree with the slice name ?

@jeromew Yes.

I'd say everything for this release is merged now, we should depoly to NPM as soon as possible.

Sorry everyone about the delay.
I updated the CHANGELOG, renamed it CHANGELOG.md, mentioned batchWithTimeOrCount that was merged in between and pushed 2.5.0 to npm.
thanks to everyone for this release !


Add check mark when a step is validated

At the first i want to thank you for cool library.
I want to ask for implementation of 2 things.

Allow control of stepper via data props on the elements of steps.
Is possible when i'm reaching next steps to have them active too?

Like if i'm on the step 3 then 1,2,3 should be displayed as active too (indicating that i passed them).

Hi @jetpack3331,

Is possible when i'm reaching next steps to have them active too?

Yep I thought about that by adding a check mark for example: ✔ , that would be a good improvement 👍

Allow control of stepper via data props on the elements of steps.

Can you explain a bit more what you mean ?

Ah don't care about the last sentence. :)

A check icon would be great. I just tested the demo on my phone and was a bit surprised how the form validation example looked after I got to step 2. The grey color suggests for me that there is something missing.

I would like a checkmark for the previous steps that are completed.

any news on this feature?


GH2079: Set default nuget sources

Fixes #2079

@mholo65 your changes have been merged, thanks for your contribution 👍