debops / debops-tools

Your Debian-based data center in a box
https://debops.org/
GNU General Public License v3.0
1.07k stars 116 forks source link

111+ -> 117+ #189

Closed AnBuKu closed 7 years ago

AnBuKu commented 7 years ago

Updated number of roles. Needs (since a long time!) as well update of https://pypi.python.org/pypi/debops where the number is still 60+....

AnBuKu commented 7 years ago

Hmmm... Sure, somehow boring on one hand and on the other hand rewarding in terms of "Hey, one role more!"

Or, we do it the same way as DebOps Status page...?

Looking at https://debops.org/status.html I see "There are 118 roles in the DebOps project." The 118 counted by HTML code <span id="role_count">118</span> or rather the embedded script (see part of script below), respectively https://api.debops.org/v0/roles/count:debops, automation might work for GitHub and https://pypi.python.org/pypi/debops as well. - Or does lots all that?

<script>
(function() {
  }
  function update_role_count() {
    var xhr = new XMLHttpRequest();
    xhr.open('get', 'https://api.debops.org/v0/roles/count:debops', true);
    xhr.onload = function() {
      var status = xhr.status;
      if (status == 200) {
        document.getElementById('role_count').innerHTML = xhr.response;
      }
    };
    xhr.send();
  }
</script>
drybjed commented 7 years ago

I'm not sure if GitHub or PyPI will allow embedded JavaScript in their respective pages.

AnBuKu commented 7 years ago

How could we find out? ;-) </ teasing>