⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242719 in webkit


Ignore:
Timestamp:
Mar 11, 2019, 11:22:02 AM (7 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] Add support for submit-to-ews url
https://bugs.webkit.org/show_bug.cgi?id=195477

Reviewed by Lucas Forschler.

  • BuildSlaveSupport/ews-app/ews/fetcher.py:
  • BuildSlaveSupport/ews-app/ews/templates/statusbubble.html:
  • BuildSlaveSupport/ews-app/ews/templates/submittoews.html: Copied from QueueStatusServer/templates/submittoews.html.
  • BuildSlaveSupport/ews-app/ews/urls.py:
  • BuildSlaveSupport/ews-app/ews/views/submittoews.py: Added.
Location:
trunk/Tools
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/fetcher.py

    r240303 r242719  
    4949
    5050class BugzillaPatchFetcher():
    51     def fetch(self):
    52         patch_ids = Bugzilla.get_list_of_patches_needing_reviews()
     51    def fetch(self, patch_ids=None):
     52        if patch_ids and type(patch_ids) != list:
     53            _log.error('Error: patch_ids should be a list, found: {}'.format(type(patch_ids)))
     54            return -1
     55
     56        if not patch_ids:
     57            patch_ids = Bugzilla.get_list_of_patches_needing_reviews()
    5358        patch_ids = BugzillaPatchFetcher.filter_valid_patches(patch_ids)
    5459        _log.debug('r? patches: {}'.format(patch_ids))
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/templates/statusbubble.html

    r241440 r242719  
    9292
    9393{% if show_submit_to_ews %}
    94   <form name="submit_to_ews" method="POST" action="/submit-to-ews">
     94  <form name="submit_to_ews" method="POST" action="/submit-to-ews/">{% csrf_token %}
    9595    <input type="hidden" name="patch_id" value="{{ patch_id }}">
    9696    <input type="hidden" name="next_action" value="return_to_bubbles">
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/urls.py

    r240673 r242719  
    2727from ews.views.results import Results
    2828from ews.views.statusbubble import StatusBubble
     29from ews.views.submittoews import SubmitToEWS
    2930
    3031app_name = 'ews'
     
    3839    # ex: /status-bubble/5
    3940    url(r'^status-bubble/(?P<patch_id>[0-9]+)/$', StatusBubble.as_view(), name='statusbubble'),
     41    # ex: /submit-to-ews/
     42    url(r'^submit-to-ews/$', SubmitToEWS.as_view(), name='submittoews'),
    4043]
  • trunk/Tools/ChangeLog

    r242714 r242719  
     12019-03-11  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] Add support for submit-to-ews url
     4        https://bugs.webkit.org/show_bug.cgi?id=195477
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * BuildSlaveSupport/ews-app/ews/fetcher.py:
     9        * BuildSlaveSupport/ews-app/ews/templates/statusbubble.html:
     10        * BuildSlaveSupport/ews-app/ews/templates/submittoews.html: Copied from QueueStatusServer/templates/submittoews.html.
     11        * BuildSlaveSupport/ews-app/ews/urls.py:
     12        * BuildSlaveSupport/ews-app/ews/views/submittoews.py: Added.
     13
    1142019-03-11  Ryan Haddad  <ryanhaddad@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.