関.
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # shun ## Git使い方 ### ピッチ用DBの画像を変えたい - 今devのS3を使っちゃってる - ↓のS3の画像全部ダウンロードしてdemoのphotobucketに移動 - https://s3.console.aws.amazon.com/s3/buckets/indig-webapp-dev-photo?region=ap-northeast-1&prefix=media/&showversions=false - 終わったらdemoのINSERT文の画像系を更新する。 ### よく使うコマンド *{}は省略 - `git status` ... 現在のブランチで変更したファイルが表示される。 - 使う場面 - 変更内容を確認する時 - addするファイルのフルパスを確認するとき - `git add {ファイル名}` ... 変更したファイルを追加する。 - 使う場面 - テストが通り、gitにpushする時 - エラーが出て、関に修正してもらう時 - `git commit -m "[add] test data"` ... addしたファイルをコミットする。 - 使う場面 - テストが通り、gitにpushする時 - エラーが出て、関に修正してもらう時 - `git push origin feature_INDIG-{JiraID}` 変更をプッシュする。 - 使う場面 - テストが通り、gitにpushする時 - エラーが出て、backendに報告し、修正してもらう時 - `git pull origin {ブランチ名}` ... 最新のソースを取得する。 - 使う場面 - ブランチを切り替えた直後 - エラーの修正が完了した時 - `git checkout {ファイル名}` ... 変更を破棄する。 - 使う場面 - 間違えて編集したファイルを初期状態に戻したい時 - `git checkout {ブランチ名}` ... ブランチを切り替える - 使う場面 - 作業が完了し、別の関数のテストを行う時 - `git fetch` ... リモートブランチを取得する - 使う場面 - git checkoutを実行してブランチが存在しないって言われたら叩く ### プルリクエスト - 作業ブランチのPUSH - 0.パス移動(indig-webapp) - 1.git status をし、変更したファイルを確認する。 - 変更した覚えがないファイルがあったら関に報告 - application.ymlを変更していた場合、git checkout application.ymlで取り消す - 2.git add {ファイル名} でファイルを追加する - 3.ファイルを全て追加したら `git commit -m "[add] test data"` を実行する - 4.git push origin feature_INDIG-{JiraID}でファイルを追加する。 - github画面からプルリクエストを送る - ### getACs - テストケース リクエスト - 正常 - 値が取れる系 - country_id=1,city_id=1,param=0 - country_id=1,city_id=1,param=1 - country_id=1,city_id=1,param=2 - country_id=1,city_id=0,param=0 - country_id=1,city_id=0,param=1 - country_id=1,city_id=0,param=2 - 値が取れない場合 - country_id=2,city_id=1000,param=0 - country_id=1000,city_id=0,param=0 - 異常 - パラメータが存在しない - country_id=2,city_id=3 - country_id=2,param=0 - city_id=3,param=0 - パラメータの値が空 - country_id=1,city_id=1,param="" - country_id=1,city_id="",param=0 - country_id="",city_id=1,param=0 - パラメータの型が不正 - country_id=2,city_id=3,param="a" - country_id=2,city_id="a",param=0 - country_id="a",city_id=3,param=0 - パラメータの値が不正 - country_id=2,city_id=3,param=-1 - country_id=2,city_id=3,param=4 ## Jira更新の一連の流れ 1. cloud9でレスポンスを確認する関数を見つける。 2. [フォルダ階層について](https://github.com/indig-japan/indig-webApp/wiki/%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E9%9A%8E%E5%B1%A4%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6)から1の関数名を検索し、JiraIDを控える 3. cloud9でRunをクリックし、必要なQueryStringParameterを控える 4. 対象の関数のURLをAPIGatewayで確認する。 - URL確認方法 - [APIGateway -> indig-webapp-dev-API -> ステージ]から対象の関数を探し、GETをクリックする。 5. 対象の関数がログイン後だった場合はcognitoのIdTokenを取得する。(**IdTokenは5分で有効期限が切れるため、IdTokenの有効期限が切れた場合はページをリロードする**) - ModHeaderのAuthorizationにcognitoのIdTokenを入力する。 - cognitoのIdTokenの取得方法は以下 - [React App](https://dev.indig-worldtravel.com/)にアクセスし、左上のログインから以下のログイン情報でログインし、デバッグモードの [Application -> Local Storage -> IdToken] のValueをコピーする。 - id: test_general_user01 - pass: P@ssw0rd1! - ログイン前の場合はこの手順はスキップする。 6. 4で確認したURLにアクセスし、必要であれば3で控えたQueryStringParameterを入力する。 - QueryStringParameterの入力方法 - URL?パラメータ1=値1&パラメータ2=値2のように入力する。 - 例: `https://y7whn88utl.execute-api.ap-northeast-1.amazonaws.com/dev/schools/logged_in/getPartnerACWIL?target_user_name=test_school_user11&count=0` 7. 表示されたレスポンスを[JSON Beautify \- CyberChef](https://gchq.github.io/CyberChef/#recipe=JSON_Beautify('%20%20%20%20',false))に貼り付け、フォーマットする。 - Lambda実行後に画面に表示されるレスポンスを全てコピーし、[JSON Beautify \- CyberChef](https://gchq.github.io/CyberChef/#recipe=JSON_Beautify('%20%20%20%20',false))のinputに貼り付けてBAKE!をクリックする。 - Outputを確認し、bodyの中身をJiraの取得内容に入力する - Jiraへ入力する際、value部分はわかりやすい言葉で書く 8. bodyの中身をJiraに入力する。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully