Add versions for http_functions, whenever script is updated a new version is logged.
This commit is contained in:
@@ -8,6 +8,6 @@ refresh_url=url_for('get_http_function_edit_form', function_id=function_id), sho
|
||||
|
||||
{{ render_partial('function_editor.html', function_id=function_id, name=name, script=script,
|
||||
environment_info=environment_info,
|
||||
is_public=is_public, log_request=log_request, log_response=log_response, is_edit=True) }}
|
||||
is_public=is_public, log_request=log_request, log_response=log_response, version_number=version_number, is_edit=True) }}
|
||||
|
||||
{% endblock %}
|
||||
@@ -25,6 +25,9 @@ refresh_url=url_for('get_http_function_logs', function_id=function_id), show_edi
|
||||
</svg>
|
||||
</button>
|
||||
<span>{{ invocation.invocation_time.strftime('%Y-%m-%d %H:%M:%S') }}</span>
|
||||
<span class="bg-blue-500 text-white text-xs font-semibold px-2 py-1 rounded">
|
||||
v{{ invocation.version_number }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Request Data for Mobile and Desktop -->
|
||||
|
||||
@@ -32,11 +32,14 @@
|
||||
<tbody class="[&_tr:last-child]:border-0" data-id="62">
|
||||
{% for function in http_functions %}
|
||||
<tr class="border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted" data-id="63">
|
||||
<td class="p-4 align-middle [&:has([role=checkbox])]:pr-0 font-medium flex items-center">
|
||||
<td
|
||||
class="p-4 align-middle [&:has([role=checkbox])]:pr-0 font-medium flex items-center space-x-1">
|
||||
<span class="text-gray-800 text-base text-md">{{ function.name }}</span>
|
||||
<span
|
||||
class="inline-flex items-center justify-center w-5 h-5 ms-2 text-xs font-semibold text-blue-800 bg-blue-200 rounded-full ml-1">
|
||||
{{ function.invoked_count }}
|
||||
<span class="bg-green-500 text-white text-xs font-semibold px-2 py-1 rounded flex items-center">
|
||||
#{{ function.invoked_count }}
|
||||
</span>
|
||||
<span class="bg-blue-500 text-white text-xs font-semibold px-2 py-1 rounded">
|
||||
v{{ function.version_number }}
|
||||
</span>
|
||||
{% if function.is_public %}
|
||||
<span class="ml-1">
|
||||
|
||||
Reference in New Issue
Block a user