Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !32 opened Mar 16, 2014 by Őry Máté@orymate 
  • Report abuse
Report abuse

Add Node.flush

  • ✅ model
  • ✅ tasks
  • ☑ view
  • Discussion 11
  • Commits 13
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Őry Máté @orymate commented Mar 16, 2014
    Owner

    @kviktor please connect the gui buttons

    @kviktor please connect the gui buttons
  • Őry Máté @orymate

    mentioned in issue #60 (closed)

    Mar 16, 2014

    mentioned in issue #60 (closed)

    mentioned in issue #60
    Toggle commit list
  • Bach Dániel @bachdaniel commented Mar 16, 2014
    Owner

    👍

    :+1:
  • Őry Máté
    @orymate started a discussion on an old version of the diff Mar 16, 2014
    Last updated by Őry Máté Mar 18, 2014
    circle/vm/tasks/local_tasks.py
    57 57 @celery.task
    58 58 def migrate(instance, to_node, user):
    59 59 instance.migrate(to_node, task_uuid=migrate.request.id, user=user)
    60
    61
    62 @celery.task
    63 def flush(node, user):
    64 node.migrate(task_uuid=flush.request.id, user=user)
    • Őry Máté @orymate commented Mar 16, 2014
      Owner

      node.flush

      node.flush
    • Őry Máté @orymate commented Mar 18, 2014
      Owner

      fixed 39f2c65c

      fixed 39f2c65c6
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Mar 16, 2014
    Last updated by Őry Máté Mar 18, 2014
    circle/vm/models/node.py
    91 91 return 'OFFLINE'
    92 92  
    93 def disable(self, user=None):
    93 def disable(self, user=None, base_activity=None):
    94 94 ''' Disable the node.'''
    95 95 if self.enabled:
    96 with node_activity(code_suffix='disable', node=self, user=user):
    96 if base_activity:
    97 act_ctx = base_activity.sub_activity('disable')
    98 else:
    99 act_ctx = node_activity('disable', node=self, user=user)
    100 with act_ctx:
    97 101 self.enabled = False
    98 102 self.save()
    99 103  
    104 def flush(self, user=None):
    • Őry Máté @orymate commented Mar 16, 2014
      Owner

      allow task_uuid

      allow task_uuid
    • Őry Máté @orymate commented Mar 18, 2014
      Owner

      fixed 39f2c65c

      fixed 39f2c65c6
    Please register or sign in to reply
  • Guba Sándor @gubasandor commented Mar 18, 2014
    Owner

    👍 +1

    :+1: +1
  • Őry Máté
    @orymate started a discussion on an old version of the diff Mar 18, 2014
    circle/dashboard/templates/dashboard/node-detail.html
    29 29 <button type="button" class="btn {{ btn_size }} btn-warning nojs-dropdown-toogle dropdown-toggle" data-toggle="dropdown">Action <i class="icon-caret-down"></i></button>
    30 30 <ul class="dropdown-menu nojs-dropdown-toogle" role="menu">
    31 31 <li><a href="#" class="node-details-rename-button"><i class="icon-pencil"></i> {% trans "Rename" %}</a></li>
    32 <li><a href="#"><i class="icon-cloud-upload"></i> Flush</a></li>
    32 <li><a data-node-pk="{{ node.pk }}" class="real-link node-flush" href="{% url "dashboard.views.flush-node" pk=node.pk %}?next={{ request.path }}"><i class="icon-cloud-upload"></i> Flush</a>
    • Őry Máté @orymate commented Mar 18, 2014
      Owner

      trans pls

      `trans` pls
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on the diff Mar 18, 2014
    Last updated by Oláh István Gergely Mar 19, 2014
    circle/dashboard/views.py
    529 531 return redirect(reverse_lazy("dashboard.views.node-detail",
    530 532 kwargs={'pk': self.object.pk}))
    531 533  
    534 def __flush(self, request):
    • Őry Máté @orymate commented Mar 18, 2014
      Owner

      is this needed at all?

      is this needed at all?
    • Őry Máté @orymate commented Mar 19, 2014
      Owner

      fixed

      fixed
    • Oláh István Gergely @ogergo commented Mar 19, 2014
      Developer

      fixed.

      fixed.
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on commit 39f2c65c Mar 18, 2014
    Last updated by Őry Máté Mar 18, 2014
    • Őry Máté @orymate

      mentioned in merge request !32 (merged)

      Mar 18, 2014

      mentioned in merge request !32 (merged)

      mentioned in merge request !32
      Toggle commit list
    • Őry Máté @orymate

      mentioned in merge request !32 (merged)

      Mar 18, 2014

      mentioned in merge request !32 (merged)

      mentioned in merge request !32
      Toggle commit list
    Please register or sign in to reply
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
5
5 participants
Reference: circle/cloud!32