Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
V
venjob_thanhnd
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • thanhnd
  • venjob_thanhnd
  • Merge Requests
  • !8

Open
Opened May 08, 2020 by thanhnd@thanhnd 
  • Report abuse
Report abuse

Apply job feature

×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b apply-job-feature origin/apply-job-feature

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout master
git merge --no-ff apply-job-feature

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 4
  • Commits 16
  • Pipelines 8
  • Changes 74
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Trịnh Hoàng Phúc
    @phucth started a discussion on commit f302f7cb May 05, 2020
    Last updated by thanhnd May 08, 2020
    lib/solr.rb 0 → 100644
    1 require 'rsolr'
    2 class Solr
    3 attr_accessor :response, :solr
    4 def initialize
    5 # Direct connection
    6 @solr = RSolr.connect :url => 'http://localhost:8983/solr/jobs/'
    7 @response = nil
    8 end
    9
    10 # send a request to /select
    11 def query (cond)
    • Trịnh Hoàng Phúc @phucth commented May 05, 2020

      anh @thanhnd có thể thêm phân trang bằng cách này solr.paginate 1, 10, "select", :params => {:q => "test"}

      method query anh thêm 1 param truyền từ controller qua, lấy cái Settings.page như anh dùng ở commit trước

      Link tài liệu: https://github.com/rsolr/rsolr#pagination-

      Edited May 05, 2020 by Trịnh Hoàng Phúc
      anh @thanhnd có thể thêm phân trang bằng cách này `solr.paginate 1, 10, "select", :params => {:q => "test"}` `method query` anh thêm 1 param truyền từ controller qua, lấy cái `Settings.page` như anh dùng ở commit trước Link tài liệu: https://github.com/rsolr/rsolr#pagination-
    • thanhnd @thanhnd commented May 08, 2020
      Master

      fixed

      fixed
    Please register or sign in to reply
  • Trịnh Hoàng Phúc
    @phucth started a discussion on commit f302f7cb May 05, 2020
    Last updated by thanhnd May 08, 2020
    app/controllers/jobs_controller.rb
    12 12 def search
    13 13 return redirect_to root_path, alert: "Empty field!" if params[:search].blank?
    14 14
    15 @search_job = Job.includes(:city).where("job_name LIKE ?","%#{params[:search]}%")
    16 @pagin_job = @search_job.page(params[:page]).per(Settings.page)
    15 #@search_job = Job.includes(:city).where("job_name LIKE ?","%#{params[:search]}%")
    16 #@pagin_job = @search_job.page(params[:page]).per(Settings.page)
    17
    18 solr_rs = Solr.new
    19 @search_job = solr_rs.query(params[:search])
    • Trịnh Hoàng Phúc @phucth commented May 05, 2020

      Do rsolr sử dụng response['response']['docs'] để phân trang nên đoạn này anh gán

      @pagin_job = solr_rs.query(params[:search])

      Do `rsolr` sử dụng `response['response']['docs']` để phân trang nên đoạn này anh gán `@pagin_job = solr_rs.query(params[:search])`
    • thanhnd @thanhnd commented May 08, 2020
      Master

      fixed

      fixed
    Please register or sign in to reply
  • thanhnd @thanhnd

    added 1 commit

    • a03072fc - add favorites job with button

    Compare with previous version

    May 11, 2020

    added 1 commit

    • a03072fc - add favorites job with button

    Compare with previous version

    added 1 commit * a03072fc - add favorites job with button [Compare with previous version](https://gitlab.zigexn.vn/thanhnd/venjob_thanhnd/merge_requests/8/diffs?diff_id=4800&start_sha=5e04a98fec8a04192925c1290a813e57f122f2cc)
    Toggle commit list
  • thanhnd @thanhnd

    added 1 commit

    • 54283f89 - add favorites job with button 1

    Compare with previous version

    May 11, 2020

    added 1 commit

    • 54283f89 - add favorites job with button 1

    Compare with previous version

    added 1 commit * 54283f89 - add favorites job with button 1 [Compare with previous version](https://gitlab.zigexn.vn/thanhnd/venjob_thanhnd/merge_requests/8/diffs?diff_id=4801&start_sha=a03072fc3f908ea746d4471d5a458347c426be00)
    Toggle commit list
  • thanhnd @thanhnd

    added 1 commit

    • b8396dbd - Job apply, Job confirmation, Job done

    Compare with previous version

    May 15, 2020

    added 1 commit

    • b8396dbd - Job apply, Job confirmation, Job done

    Compare with previous version

    added 1 commit * b8396dbd - Job apply, Job confirmation, Job done [Compare with previous version](https://gitlab.zigexn.vn/thanhnd/venjob_thanhnd/merge_requests/8/diffs?diff_id=4814&start_sha=54283f89c2bedb95dc07f397224613783fb5c0de)
    Toggle commit list
  • thanhnd @thanhnd

    added 1 commit

    • 7aa058de - applied jobs list

    Compare with previous version

    May 18, 2020

    added 1 commit

    • 7aa058de - applied jobs list

    Compare with previous version

    added 1 commit * 7aa058de - applied jobs list [Compare with previous version](https://gitlab.zigexn.vn/thanhnd/venjob_thanhnd/merge_requests/8/diffs?diff_id=4815&start_sha=b8396dbdaabc7f66e4b9bfcde8b83a8d7fd41f17)
    Toggle commit list
  • thanhnd @thanhnd

    added 1 commit

    • 882536bd - send email confirm for user apply job

    Compare with previous version

    May 18, 2020

    added 1 commit

    • 882536bd - send email confirm for user apply job

    Compare with previous version

    added 1 commit * 882536bd - send email confirm for user apply job [Compare with previous version](https://gitlab.zigexn.vn/thanhnd/venjob_thanhnd/merge_requests/8/diffs?diff_id=4816&start_sha=7aa058de66013c3c32a90ed394da6c8080e0d2d0)
    Toggle commit list
  • 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
thanhnd
Assignee
thanhnd @thanhnd
Assign to
None
Milestone
None
Assign milestone
Time tracking
1
1 participant
Reference: thanhnd/venjob_thanhnd!8