Wednesday, October 23, 2019

Watch Luc working : my second screencast for developers

Today once more I recorded myself while working. This is my second developer screencast and it’s called “Luc working on #3284”. It has three parts so far: part 1 / part 2 / part 3. It is about 2 hours of watch.

Here is what I did in that series of screncasts:

I did #3284 : Lino Noi now uses lino_xl.lib.groups. Actually a new plugin lino_noi.lib.groups (an extension of lino_xl.lib.groups) which extends Group to add a user field (the “team manager”). It also changes the verbose name “Group” to “Team”. Added a field lino_noi.lib.tickets.Site.group and adapted the get_notifications_owner method of lino_noi.lib.tickets.Ticket to return the group of the site instead of the site.

The demo fixture of lino_xl.lib.groups now adds first names for every user because otherwise Lino complains when users.Users inherits from contacts.Person

In lino_xl.lib.groups the Membership.user field is now labeled “User” instead of “Author”, and the model now has a detail layout and an insert layout (e.g. MembersByGroup now has a insert button)

502 Bad Gateway responding to GET with long URL

I opened #3293 which occurs only on an nginx server.

>>> s = "http://127.0.0.1:8000/api/avanti/Clients?_dc=1571855426112&cw=164&cw=60&cw=83&cw=83&cw=243&cw=83&cw=170&cw=83&cw=46&cw=83&cw=170&cw=170&cw=164&cw=164&cw=92&cw=164&cw=170&cw=170&cw=170&cw=92&cw=92&cw=170&cw=170&cw=170&cw=479&cw=164&cw=170&cw=170&cw=170&cw=170&cw=60&cw=100&cw=322&cw=164&cw=164&cw=164&cw=164&cw=170&cw=170&cw=108&cw=108&cw=60&cw=170&cw=170&cw=83&cw=100&cw=100&cw=60&cw=60&cw=164&cw=60&cw=164&cw=60&cw=479&cw=108&cw=108&cw=83&cw=108&cw=83&cw=83&cw=83&cw=108&cw=170&cw=479&cw=479&cw=479&cw=479&cw=479&cw=479&cw=164&cw=164&cw=479&cw=170&cw=164&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&cw=243&ch=&ch=&ch=&ch=&ch=&ch=&ch=&ch=&ch=&ch=&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ch=true&ci=name_column&ci=client_state&ci=national_id&ci=gsm&ci=address_column&ci=age&ci=email&ci=phone&ci=id&ci=language&ci=url&ci=fax&ci=country&ci=city&ci=zip_code&ci=region&ci=addr1&ci=street_prefix&ci=street&ci=street_no&ci=street_box&ci=addr2&ci=prefix&ci=name&ci=remarks&ci=client_contact_type&ci=title&ci=first_name&ci=middle_name&ci=last_name&ci=gender&ci=birth_date&ci=ref&ci=locked_by&ci=user&ci=nationality&ci=birth_country&ci=birth_place&ci=card_number&ci=card_valid_from&ci=card_valid_until&ci=card_type&ci=card_issuer&ci=noble_condition&ci=private&ci=in_belgium_since&ci=in_region_since&ci=starting_reason&ci=old_ending_reason&ci=ending_reason&ci=professional_state&ci=category&ci=translator_type&ci=translator_notes&ci=unemployed_since&ci=seeking_since&ci=needs_work_permit&ci=work_permit_suspended_until&ci=has_contact_pcsw&ci=has_contact_work_office&ci=declared_name&ci=unavailable_until&ci=unavailable_why&ci=family_notes&ci=residence_notes&ci=health_notes&ci=financial_notes&ci=integration_notes&ci=availability&ci=needed_course&ci=event_policy&ci=language_notes&ci=reason_of_stay&ci=nationality2&ci=municipality&ci=mobile_item&ci=overview&ci=workflow_buttons&ci=mti_navigator&ci=eid_info&ci=image&ci=language_knowledge&ci=mother_tongues&ci=cef_level_de&ci=cef_level_fr&ci=cef_level_en&name=0&pv=&pv=&pv=&pv=&pv=20&pv=&pv=&pv=&pv=&pv=&pv=&lv=1571808324.084085&an=export_excel&sr=114"
>>> print(len(s))
2682

I read this and similar threads, tried to change some parameters in /etc/nginx/sites-available/site1.conf but no success so far.