You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "dave2wave (via GitHub)" <gi...@apache.org> on 2025/04/23 22:47:12 UTC

[I] Bug: error when displaying a committee that has an added sub-project (tooling-trusted-release)

dave2wave opened a new issue, #36:
URL: https://github.com/apache/tooling-trusted-release/issues/36

   I added a sub-project to Pulsar and did a release.
   
   On the projects page I clicked on Pulsar. Then I clicked to show the PMC and get a 500 error:
   On the committees page I clicked on Pulsar and get the same 500 error.
   
   ```
   Traceback (most recent call last):
     File "/opt/atr/.venv/lib/python3.13/site-packages/quart/app.py", line 1500, in full_dispatch_request
       result = await self.dispatch_request(request_context)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/.venv/lib/python3.13/site-packages/quart/app.py", line 1597, in dispatch_request
       return await self.ensure_async(handler)(**request_.view_args)  # type: ignore[return-value]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/atr/routes/__init__.py", line 347, in wrapper
       future = coro.send(None)
     File "/opt/atr/atr/routes/__init__.py", line 539, in wrapper
       return await func(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/atr/routes/committees.py", line 43, in view
       return await quart.render_template("committee-view.html", committee=committee, algorithms=routes.algorithms)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/.venv/lib/python3.13/site-packages/quart/templating.py", line 58, in render_template
       return await _render(template, context, current_app._get_current_object())  # type: ignore
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/.venv/lib/python3.13/site-packages/quart/templating.py", line 80, in _render
       rendered_template = await template.render_async(context)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/.venv/lib/python3.13/site-packages/jinja2/environment.py", line 1318, in render_async
       return self.environment.handle_exception()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
     File "/opt/atr/.venv/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
       raise rewrite_traceback_stack(source=source)
     File "/opt/atr/atr/templates/committee-view.html", line 1, in top-level template code
       {% extends "layouts/base.html" %}
       ^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/opt/atr/atr/templates/layouts/base.html", line 48, in top-level template code
       {% block content %}
       ^^^^^^^^^^^^^
     File "/opt/atr/atr/templates/committee-view.html", line 71, in block 'content'
       {% set days_until_expiry = (key.expires - now).days %}
       
   jinja2.exceptions.UndefinedError: 'now' is undefined
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Bug: error when displaying a committee that has an added sub-project and uploaded KEYS (tooling-trusted-release)

Posted by "sbp (via GitHub)" <gi...@apache.org>.
sbp closed issue #36: Bug: error when displaying a committee that has an added sub-project and uploaded KEYS
URL: https://github.com/apache/tooling-trusted-release/issues/36


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org