CCExtractor / sample-platform

CCExtractor's Sample & CI platform. Developed during GSoC 2016

Home Page:https://sampleplatform.ccextractor.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PROPOSAL] Add remove button to the blocked users functionality

aadibajpai opened this issue · comments

Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].

Sample platform commit (found at the bottom of each page) : X.X.X

In raising this issue, I confirm the following (please check boxes, eg [X]):

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm posting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.

My familiarity with the project is as follows (check one, eg [X]):

  • I have never visited/used the platform.
  • I have used the platform just a couple of times.
  • I have used the platform extensively, but have not contributed previously.
  • I am an active contributor to the platform.

Currently, it's a separate form where you input a GitHub ID. Instead, there should be an "x" button per every user blocked so that it is more user friendly to unblock someone.

can you elaborate this issue, i want to work on it

Currently the Sample Platform uses a separate form to unblock blocked users. If you have a list of blocked users, you need to copy/paste the ID of that user into the form below to remove the user from the list.

The idea/wanted result for this issue is to integrate a removal button in the table, so you can unblock users with a single click instead.

Related code:
https://github.com/CCExtractor/sample-platform/blob/master/mod_ci/controllers.py#L1252
https://github.com/CCExtractor/sample-platform/blob/master/templates/ci/blocked_users.html

I have some problems setting up the sample-platform in the configuration part, which asks to enter some info regarding these -

APPLICATION_ROOT = ${config_application_root}
CSRF_ENABLED = True
DATABASE_URI = '${config_db_uri}?charset=utf8'
GITHUB_TOKEN = '${github_token}'
GITHUB_OWNER = '${github_owner_name}'
GITHUB_REPOSITORY = '${github_repository}'
SERVER_NAME = '${server_name}'
EMAIL_DOMAIN = '${email_domain}'
EMAIL_API_KEY = '${email_api_key}'
HMAC_KEY = '${hmac_key}'
GITHUB_DEPLOY_KEY = '${github_deploy_key}'
GITHUB_CI_KEY = '${github_ci_key}'
INSTALL_FOLDER = '${root_dir}'
KVM_LINUX_NAME = '${kvm_linux_name}'
KVM_WINDOWS_NAME = '${kvm_windows_name}'
KVM_MAX_RUNTIME = $kvm_max_runtime # In minutes
SAMPLE_REPOSITORY = '${sample_repository}'
SESSION_COOKIE_PATH = '/'
FTP_PORT = $ftp_port
MAX_CONTENT_LENGTH = $max_content_length
MIN_PWD_LEN = $min_pwd_len
MAX_PWD_LEN = $max_pwd_len

Can u plz help?

what to assign to these fields?

Well, answer what is the correct answer. For example, for the question "domain this will be running on?", give "127.0.0.1". And similar for others give it accordingly. You would not be requiring a lot of settings and you can leave them blank such as EMAIL API Key etc.

Hello @canihavesomecoffee, I just ran through the complete code you have provided and found interesting to work on this issue, before that I want to experience this locally So will you please guide me how to do that. I'm trying to figure that out because only after that I'll get to know better where to add that particular button and how.
Thanks

The first step is checking the installation manual for the sample platform which is located here on the repo.

@canihavesomecoffee There is one error I'm facing, I'm raising one issue regarding it, whenever you get some time please do help me out.
Thanks and sorry for this much late reply.

closed in #510